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

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

Overview

Metadata about a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldMetadata

Returns a new instance of FieldMetadata.



1028
1029
1030
# File 'lib/google/apis/people_v1/classes.rb', line 1028

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)


1012
1013
1014
# File 'lib/google/apis/people_v1/classes.rb', line 1012

def primary
  @primary
end

#sourceGoogle::Apis::PeopleV1::Source

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



1018
1019
1020
# File 'lib/google/apis/people_v1/classes.rb', line 1018

def source
  @source
end

#verifiedBoolean Also known as: verified?

Output only. 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)


1025
1026
1027
# File 'lib/google/apis/people_v1/classes.rb', line 1025

def verified
  @verified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1033
1034
1035
1036
1037
# File 'lib/google/apis/people_v1/classes.rb', line 1033

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