public final class Name
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the People API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Name() |
| Modifier and Type | Method and Description |
|---|---|
Name |
clone() |
java.lang.String |
getDisplayName()
The read-only display name formatted according to the locale specified by the viewer's account
or the `Accept-Language` HTTP header.
|
java.lang.String |
getDisplayNameLastFirst()
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.
|
java.lang.String |
getFamilyName()
The family name.
|
java.lang.String |
getGivenName()
The given name.
|
java.lang.String |
getHonorificPrefix()
The honorific prefixes, such as `Mrs.` or `Dr.`
|
java.lang.String |
getHonorificSuffix()
The honorific suffixes, such as `Jr.`
|
FieldMetadata |
getMetadata()
Metadata about the name.
|
java.lang.String |
getMiddleName()
The middle name(s).
|
java.lang.String |
getPhoneticFamilyName()
The family name spelled as it sounds.
|
java.lang.String |
getPhoneticFullName()
The full name spelled as it sounds.
|
java.lang.String |
getPhoneticGivenName()
The given name spelled as it sounds.
|
java.lang.String |
getPhoneticHonorificPrefix()
The honorific prefixes spelled as they sound.
|
java.lang.String |
getPhoneticHonorificSuffix()
The honorific suffixes spelled as they sound.
|
java.lang.String |
getPhoneticMiddleName()
The middle name(s) spelled as they sound.
|
Name |
set(java.lang.String fieldName,
java.lang.Object value) |
Name |
setDisplayName(java.lang.String displayName)
The read-only display name formatted according to the locale specified by the viewer's account
or the `Accept-Language` HTTP header.
|
Name |
setDisplayNameLastFirst(java.lang.String displayNameLastFirst)
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.
|
Name |
setFamilyName(java.lang.String familyName)
The family name.
|
Name |
setGivenName(java.lang.String givenName)
The given name.
|
Name |
setHonorificPrefix(java.lang.String honorificPrefix)
The honorific prefixes, such as `Mrs.` or `Dr.`
|
Name |
setHonorificSuffix(java.lang.String honorificSuffix)
The honorific suffixes, such as `Jr.`
|
Name |
setMetadata(FieldMetadata metadata)
Metadata about the name.
|
Name |
setMiddleName(java.lang.String middleName)
The middle name(s).
|
Name |
setPhoneticFamilyName(java.lang.String phoneticFamilyName)
The family name spelled as it sounds.
|
Name |
setPhoneticFullName(java.lang.String phoneticFullName)
The full name spelled as it sounds.
|
Name |
setPhoneticGivenName(java.lang.String phoneticGivenName)
The given name spelled as it sounds.
|
Name |
setPhoneticHonorificPrefix(java.lang.String phoneticHonorificPrefix)
The honorific prefixes spelled as they sound.
|
Name |
setPhoneticHonorificSuffix(java.lang.String phoneticHonorificSuffix)
The honorific suffixes spelled as they sound.
|
Name |
setPhoneticMiddleName(java.lang.String phoneticMiddleName)
The middle name(s) spelled as they sound.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getDisplayName()
null for nonepublic Name setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic java.lang.String getDisplayNameLastFirst()
null for nonepublic Name setDisplayNameLastFirst(java.lang.String displayNameLastFirst)
displayNameLastFirst - displayNameLastFirst or null for nonepublic java.lang.String getFamilyName()
null for nonepublic Name setFamilyName(java.lang.String familyName)
familyName - familyName or null for nonepublic java.lang.String getGivenName()
null for nonepublic Name setGivenName(java.lang.String givenName)
givenName - givenName or null for nonepublic java.lang.String getHonorificPrefix()
null for nonepublic Name setHonorificPrefix(java.lang.String honorificPrefix)
honorificPrefix - honorificPrefix or null for nonepublic java.lang.String getHonorificSuffix()
null for nonepublic Name setHonorificSuffix(java.lang.String honorificSuffix)
honorificSuffix - honorificSuffix or null for nonepublic FieldMetadata getMetadata()
null for nonepublic Name setMetadata(FieldMetadata metadata)
metadata - metadata or null for nonepublic java.lang.String getMiddleName()
null for nonepublic Name setMiddleName(java.lang.String middleName)
middleName - middleName or null for nonepublic java.lang.String getPhoneticFamilyName()
null for nonepublic Name setPhoneticFamilyName(java.lang.String phoneticFamilyName)
phoneticFamilyName - phoneticFamilyName or null for nonepublic java.lang.String getPhoneticFullName()
null for nonepublic Name setPhoneticFullName(java.lang.String phoneticFullName)
phoneticFullName - phoneticFullName or null for nonepublic java.lang.String getPhoneticGivenName()
null for nonepublic Name setPhoneticGivenName(java.lang.String phoneticGivenName)
phoneticGivenName - phoneticGivenName or null for nonepublic java.lang.String getPhoneticHonorificPrefix()
null for nonepublic Name setPhoneticHonorificPrefix(java.lang.String phoneticHonorificPrefix)
phoneticHonorificPrefix - phoneticHonorificPrefix or null for nonepublic java.lang.String getPhoneticHonorificSuffix()
null for nonepublic Name setPhoneticHonorificSuffix(java.lang.String phoneticHonorificSuffix)
phoneticHonorificSuffix - phoneticHonorificSuffix or null for nonepublic java.lang.String getPhoneticMiddleName()
null for nonepublic Name setPhoneticMiddleName(java.lang.String phoneticMiddleName)
phoneticMiddleName - phoneticMiddleName or null for nonepublic Name set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Name clone()
clone in class com.google.api.client.json.GenericJson