Class: Google::Apis::PeopleV1::FieldMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/google/apis/people_v1/representations.rb

Overview

Metadata about a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FieldMetadata

Returns a new instance of FieldMetadata



866
867
868
# File 'generated/google/apis/people_v1/classes.rb', line 866

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#primaryBoolean Also known as: primary?

True if the field is the primary field; false if the field is a secondary field. Corresponds to the JSON property primary

Returns:

  • (Boolean)


863
864
865
# File 'generated/google/apis/people_v1/classes.rb', line 863

def primary
  @primary
end

#sourceGoogle::Apis::PeopleV1::Source

The source of a field. Corresponds to the JSON property source



849
850
851
# File 'generated/google/apis/people_v1/classes.rb', line 849

def source
  @source
end

#verifiedBoolean Also known as: verified?

True if the field is verified; false if the field is unverified. A verified field is typically a name, email address, phone number, or website that has been confirmed to be owned by the person. Corresponds to the JSON property verified

Returns:

  • (Boolean)


856
857
858
# File 'generated/google/apis/people_v1/classes.rb', line 856

def verified
  @verified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



871
872
873
874
875
# File 'generated/google/apis/people_v1/classes.rb', line 871

def update!(**args)
  @source = args[:source] if args.key?(:source)
  @verified = args[:verified] if args.key?(:verified)
  @primary = args[:primary] if args.key?(:primary)
end