public final class PhoneNumber
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 |
|---|
PhoneNumber() |
| Modifier and Type | Method and Description |
|---|---|
PhoneNumber |
clone() |
java.lang.String |
getCanonicalForm()
Output only.
|
java.lang.String |
getFormattedType()
Output only.
|
FieldMetadata |
getMetadata()
Metadata about the phone number.
|
java.lang.String |
getType()
The type of the phone number.
|
java.lang.String |
getValue()
The phone number.
|
PhoneNumber |
set(java.lang.String fieldName,
java.lang.Object value) |
PhoneNumber |
setCanonicalForm(java.lang.String canonicalForm)
Output only.
|
PhoneNumber |
setFormattedType(java.lang.String formattedType)
Output only.
|
PhoneNumber |
setMetadata(FieldMetadata metadata)
Metadata about the phone number.
|
PhoneNumber |
setType(java.lang.String type)
The type of the phone number.
|
PhoneNumber |
setValue(java.lang.String value)
The phone number.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getCanonicalForm()
null for nonepublic PhoneNumber setCanonicalForm(java.lang.String canonicalForm)
canonicalForm - canonicalForm or null for nonepublic java.lang.String getFormattedType()
null for nonepublic PhoneNumber setFormattedType(java.lang.String formattedType)
formattedType - formattedType or null for nonepublic FieldMetadata getMetadata()
null for nonepublic PhoneNumber setMetadata(FieldMetadata metadata)
metadata - metadata or null for nonepublic java.lang.String getType()
null for nonepublic PhoneNumber setType(java.lang.String type)
type - type or null for nonepublic java.lang.String getValue()
null for nonepublic PhoneNumber setValue(java.lang.String value)
value - value or null for nonepublic PhoneNumber set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic PhoneNumber clone()
clone in class com.google.api.client.json.GenericJson