class Google::Apis::PeopleV1::Name
A person's name. If the name is a mononym, the family name is empty.
Attributes
Output only. The 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` @return [String]
Output only. The 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` @return [String]
The family name. Corresponds to the JSON property `familyName` @return [String]
The given name. Corresponds to the JSON property `givenName` @return [String]
The honorific prefixes, such as `Mrs.` or `Dr.` Corresponds to the JSON property `honorificPrefix` @return [String]
The honorific suffixes, such as `Jr.` Corresponds to the JSON property `honorificSuffix` @return [String]
Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]
The middle name(s). Corresponds to the JSON property `middleName` @return [String]
The family name spelled as it sounds. Corresponds to the JSON property `phoneticFamilyName` @return [String]
The full name spelled as it sounds. Corresponds to the JSON property `phoneticFullName` @return [String]
The given name spelled as it sounds. Corresponds to the JSON property `phoneticGivenName` @return [String]
The honorific prefixes spelled as they sound. Corresponds to the JSON property `phoneticHonorificPrefix` @return [String]
The honorific suffixes spelled as they sound. Corresponds to the JSON property `phoneticHonorificSuffix` @return [String]
The middle name(s) spelled as they sound. Corresponds to the JSON property `phoneticMiddleName` @return [String]
The free form name value. Corresponds to the JSON property `unstructuredName` @return [String]
Public Class Methods
# File lib/google/apis/people_v1/classes.rb, line 1700 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/people_v1/classes.rb, line 1705 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) @unstructured_name = args[:unstructured_name] if args.key?(:unstructured_name) end