Class: Google::Apis::PeopleV1::FieldMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::FieldMetadata
- 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
-
#primary ⇒ Boolean
(also: #primary?)
Output only.
-
#source ⇒ Google::Apis::PeopleV1::Source
The source of a field.
-
#source_primary ⇒ Boolean
(also: #source_primary?)
True if the field is the primary field for the source.
-
#verified ⇒ Boolean
(also: #verified?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldMetadata
constructor
A new instance of FieldMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldMetadata
Returns a new instance of FieldMetadata.
1040 1041 1042 |
# File 'lib/google/apis/people_v1/classes.rb', line 1040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary ⇒ Boolean Also known as: primary?
Output only. True if the field is the primary field for all sources in the
person. Each person will have at most one field with primary
set to true.
Corresponds to the JSON property primary
1017 1018 1019 |
# File 'lib/google/apis/people_v1/classes.rb', line 1017 def primary @primary end |
#source ⇒ Google::Apis::PeopleV1::Source
The source of a field.
Corresponds to the JSON property source
1023 1024 1025 |
# File 'lib/google/apis/people_v1/classes.rb', line 1023 def source @source end |
#source_primary ⇒ Boolean Also known as: source_primary?
True if the field is the primary field for the source. Each source must have
at most one field with source_primary
set to true.
Corresponds to the JSON property sourcePrimary
1029 1030 1031 |
# File 'lib/google/apis/people_v1/classes.rb', line 1029 def source_primary @source_primary end |
#verified ⇒ Boolean 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
1037 1038 1039 |
# File 'lib/google/apis/people_v1/classes.rb', line 1037 def verified @verified end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1045 1046 1047 1048 1049 1050 |
# File 'lib/google/apis/people_v1/classes.rb', line 1045 def update!(**args) @primary = args[:primary] if args.key?(:primary) @source = args[:source] if args.key?(:source) @source_primary = args[:source_primary] if args.key?(:source_primary) @verified = args[:verified] if args.key?(:verified) end |