public final class EmailAddress
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 |
|---|
EmailAddress() |
| Modifier and Type | Method and Description |
|---|---|
EmailAddress |
clone() |
java.lang.String |
getDisplayName()
The display name of the email.
|
java.lang.String |
getFormattedType()
The read-only type of the email address translated and formatted in the viewer's account locale
or the `Accept-Language` HTTP header locale.
|
FieldMetadata |
getMetadata()
Metadata about the email address.
|
java.lang.String |
getType()
The type of the email address.
|
java.lang.String |
getValue()
The email address.
|
EmailAddress |
set(java.lang.String fieldName,
java.lang.Object value) |
EmailAddress |
setDisplayName(java.lang.String displayName)
The display name of the email.
|
EmailAddress |
setFormattedType(java.lang.String formattedType)
The read-only type of the email address translated and formatted in the viewer's account locale
or the `Accept-Language` HTTP header locale.
|
EmailAddress |
setMetadata(FieldMetadata metadata)
Metadata about the email address.
|
EmailAddress |
setType(java.lang.String type)
The type of the email address.
|
EmailAddress |
setValue(java.lang.String value)
The email address.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getDisplayName()
null for nonepublic EmailAddress setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic java.lang.String getFormattedType()
null for nonepublic EmailAddress setFormattedType(java.lang.String formattedType)
formattedType - formattedType or null for nonepublic FieldMetadata getMetadata()
null for nonepublic EmailAddress setMetadata(FieldMetadata metadata)
metadata - metadata or null for nonepublic java.lang.String getType()
null for nonepublic EmailAddress setType(java.lang.String type)
type - type or null for nonepublic java.lang.String getValue()
null for nonepublic EmailAddress setValue(java.lang.String value)
value - value or null for nonepublic EmailAddress set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic EmailAddress clone()
clone in class com.google.api.client.json.GenericJson