Class: Google::Apis::PeopleV1::FieldMetadata
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::FieldMetadata
 
- 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
- 
  
    
      #primary  ⇒ Boolean 
    
    
      (also: #primary?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the field is the primary field; false if the field is a secondary field. 
- 
  
    
      #source  ⇒ Google::Apis::PeopleV1::Source 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The source of a field. 
- 
  
    
      #verified  ⇒ Boolean 
    
    
      (also: #verified?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the field is verified; false if the field is unverified. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FieldMetadata 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FieldMetadata. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FieldMetadata
Returns a new instance of FieldMetadata
| 702 703 704 | # File 'generated/google/apis/people_v1/classes.rb', line 702 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#primary ⇒ Boolean 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
| 686 687 688 | # File 'generated/google/apis/people_v1/classes.rb', line 686 def primary @primary end | 
#source ⇒ Google::Apis::PeopleV1::Source
The source of a field.
Corresponds to the JSON property source
| 692 693 694 | # File 'generated/google/apis/people_v1/classes.rb', line 692 def source @source end | 
#verified ⇒ Boolean 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
| 699 700 701 | # File 'generated/google/apis/people_v1/classes.rb', line 699 def verified @verified end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 707 708 709 710 711 | # File 'generated/google/apis/people_v1/classes.rb', line 707 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 |