class Google::Apis::PeopleV1::Name

A person's name. If the name is a mononym, the family name is empty.

Attributes

display_name[RW]

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]

display_name_last_first[RW]

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]

family_name[RW]

The family name. Corresponds to the JSON property `familyName` @return [String]

given_name[RW]

The given name. Corresponds to the JSON property `givenName` @return [String]

honorific_prefix[RW]

The honorific prefixes, such as `Mrs.` or `Dr.` Corresponds to the JSON property `honorificPrefix` @return [String]

honorific_suffix[RW]

The honorific suffixes, such as `Jr.` Corresponds to the JSON property `honorificSuffix` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

middle_name[RW]

The middle name(s). Corresponds to the JSON property `middleName` @return [String]

phonetic_family_name[RW]

The family name spelled as it sounds. Corresponds to the JSON property `phoneticFamilyName` @return [String]

phonetic_full_name[RW]

The full name spelled as it sounds. Corresponds to the JSON property `phoneticFullName` @return [String]

phonetic_given_name[RW]

The given name spelled as it sounds. Corresponds to the JSON property `phoneticGivenName` @return [String]

phonetic_honorific_prefix[RW]

The honorific prefixes spelled as they sound. Corresponds to the JSON property `phoneticHonorificPrefix` @return [String]

phonetic_honorific_suffix[RW]

The honorific suffixes spelled as they sound. Corresponds to the JSON property `phoneticHonorificSuffix` @return [String]

phonetic_middle_name[RW]

The middle name(s) spelled as they sound. Corresponds to the JSON property `phoneticMiddleName` @return [String]

unstructured_name[RW]

The free form name value. Corresponds to the JSON property `unstructuredName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/people_v1/classes.rb, line 1700
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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