Class: Google::Apis::PeopleV1::Name
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::Name
 
- 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
A person's name. If the name is a mononym, the family name is empty.
Instance Attribute Summary collapse
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only display name formatted according to the locale specified by the viewer's account or the Accept-LanguageHTTP header.
- 
  
    
      #display_name_last_first  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only display name with the last name first formatted according to the locale specified by the viewer's account or the Accept-LanguageHTTP header.
- 
  
    
      #family_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The family name. 
- 
  
    
      #given_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The given name. 
- 
  
    
      #honorific_prefix  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The honorific prefixes, such as Mrs.orDr.Corresponds to the JSON propertyhonorificPrefix.
- 
  
    
      #honorific_suffix  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The honorific suffixes, such as Jr.Corresponds to the JSON propertyhonorificSuffix.
- 
  
    
      #metadata  ⇒ Google::Apis::PeopleV1::FieldMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Metadata about a field. 
- 
  
    
      #middle_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The middle name(s). 
- 
  
    
      #phonetic_family_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The family name spelled as it sounds. 
- 
  
    
      #phonetic_full_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The full name spelled as it sounds. 
- 
  
    
      #phonetic_given_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The given name spelled as it sounds. 
- 
  
    
      #phonetic_honorific_prefix  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The honorific prefixes spelled as they sound. 
- 
  
    
      #phonetic_honorific_suffix  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The honorific suffixes spelled as they sound. 
- 
  
    
      #phonetic_middle_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The middle name(s) spelled as they sound. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Name 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Name. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Name
Returns a new instance of Name
| 1125 1126 1127 | # File 'generated/google/apis/people_v1/classes.rb', line 1125 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#display_name ⇒ String
The read-only display name formatted according to the locale specified by
the viewer's account or the Accept-Language HTTP header.
Corresponds to the JSON property displayName
| 1056 1057 1058 | # File 'generated/google/apis/people_v1/classes.rb', line 1056 def display_name @display_name end | 
#display_name_last_first ⇒ String
The read-only display name with the last name first formatted according to
the locale specified by the viewer's account or the
Accept-Language HTTP header.
Corresponds to the JSON property displayNameLastFirst
| 1063 1064 1065 | # File 'generated/google/apis/people_v1/classes.rb', line 1063 def display_name_last_first @display_name_last_first end | 
#family_name ⇒ String
The family name.
Corresponds to the JSON property familyName
| 1068 1069 1070 | # File 'generated/google/apis/people_v1/classes.rb', line 1068 def family_name @family_name end | 
#given_name ⇒ String
The given name.
Corresponds to the JSON property givenName
| 1073 1074 1075 | # File 'generated/google/apis/people_v1/classes.rb', line 1073 def given_name @given_name end | 
#honorific_prefix ⇒ String
The honorific prefixes, such as Mrs. or Dr.
Corresponds to the JSON property honorificPrefix
| 1078 1079 1080 | # File 'generated/google/apis/people_v1/classes.rb', line 1078 def honorific_prefix @honorific_prefix end | 
#honorific_suffix ⇒ String
The honorific suffixes, such as Jr.
Corresponds to the JSON property honorificSuffix
| 1083 1084 1085 | # File 'generated/google/apis/people_v1/classes.rb', line 1083 def honorific_suffix @honorific_suffix end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 1088 1089 1090 | # File 'generated/google/apis/people_v1/classes.rb', line 1088 def @metadata end | 
#middle_name ⇒ String
The middle name(s).
Corresponds to the JSON property middleName
| 1093 1094 1095 | # File 'generated/google/apis/people_v1/classes.rb', line 1093 def middle_name @middle_name end | 
#phonetic_family_name ⇒ String
The family name spelled as it sounds.
Corresponds to the JSON property phoneticFamilyName
| 1098 1099 1100 | # File 'generated/google/apis/people_v1/classes.rb', line 1098 def phonetic_family_name @phonetic_family_name end | 
#phonetic_full_name ⇒ String
The full name spelled as it sounds.
Corresponds to the JSON property phoneticFullName
| 1103 1104 1105 | # File 'generated/google/apis/people_v1/classes.rb', line 1103 def phonetic_full_name @phonetic_full_name end | 
#phonetic_given_name ⇒ String
The given name spelled as it sounds.
Corresponds to the JSON property phoneticGivenName
| 1108 1109 1110 | # File 'generated/google/apis/people_v1/classes.rb', line 1108 def phonetic_given_name @phonetic_given_name end | 
#phonetic_honorific_prefix ⇒ String
The honorific prefixes spelled as they sound.
Corresponds to the JSON property phoneticHonorificPrefix
| 1113 1114 1115 | # File 'generated/google/apis/people_v1/classes.rb', line 1113 def phonetic_honorific_prefix @phonetic_honorific_prefix end | 
#phonetic_honorific_suffix ⇒ String
The honorific suffixes spelled as they sound.
Corresponds to the JSON property phoneticHonorificSuffix
| 1118 1119 1120 | # File 'generated/google/apis/people_v1/classes.rb', line 1118 def phonetic_honorific_suffix @phonetic_honorific_suffix end | 
#phonetic_middle_name ⇒ String
The middle name(s) spelled as they sound.
Corresponds to the JSON property phoneticMiddleName
| 1123 1124 1125 | # File 'generated/google/apis/people_v1/classes.rb', line 1123 def phonetic_middle_name @phonetic_middle_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 | # File 'generated/google/apis/people_v1/classes.rb', line 1130 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) @metadata = args[:metadata] if args.key?(:metadata) @middle_name = args[:middle_name] if args.key?(:middle_name) @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name) @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name) @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name) @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) end |