public final class Address
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 |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
Address |
clone() |
java.lang.String |
getCity()
The city of the address.
|
java.lang.String |
getCountry()
The country of the address.
|
java.lang.String |
getCountryCode()
The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.
|
java.lang.String |
getExtendedAddress()
The extended address of the address; for example, the apartment number.
|
java.lang.String |
getFormattedType()
Output only.
|
java.lang.String |
getFormattedValue()
The unstructured value of the address.
|
FieldMetadata |
getMetadata()
Metadata about the address.
|
java.lang.String |
getPoBox()
The P.O.
|
java.lang.String |
getPostalCode()
The postal code of the address.
|
java.lang.String |
getRegion()
The region of the address; for example, the state or province.
|
java.lang.String |
getStreetAddress()
The street address.
|
java.lang.String |
getType()
The type of the address.
|
Address |
set(java.lang.String fieldName,
java.lang.Object value) |
Address |
setCity(java.lang.String city)
The city of the address.
|
Address |
setCountry(java.lang.String country)
The country of the address.
|
Address |
setCountryCode(java.lang.String countryCode)
The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.
|
Address |
setExtendedAddress(java.lang.String extendedAddress)
The extended address of the address; for example, the apartment number.
|
Address |
setFormattedType(java.lang.String formattedType)
Output only.
|
Address |
setFormattedValue(java.lang.String formattedValue)
The unstructured value of the address.
|
Address |
setMetadata(FieldMetadata metadata)
Metadata about the address.
|
Address |
setPoBox(java.lang.String poBox)
The P.O.
|
Address |
setPostalCode(java.lang.String postalCode)
The postal code of the address.
|
Address |
setRegion(java.lang.String region)
The region of the address; for example, the state or province.
|
Address |
setStreetAddress(java.lang.String streetAddress)
The street address.
|
Address |
setType(java.lang.String type)
The type of the address.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCity()
null
for nonepublic Address setCity(java.lang.String city)
city
- city or null
for nonepublic java.lang.String getCountry()
null
for nonepublic Address setCountry(java.lang.String country)
country
- country or null
for nonepublic java.lang.String getCountryCode()
null
for nonepublic Address setCountryCode(java.lang.String countryCode)
countryCode
- countryCode or null
for nonepublic java.lang.String getExtendedAddress()
null
for nonepublic Address setExtendedAddress(java.lang.String extendedAddress)
extendedAddress
- extendedAddress or null
for nonepublic java.lang.String getFormattedType()
null
for nonepublic Address setFormattedType(java.lang.String formattedType)
formattedType
- formattedType or null
for nonepublic java.lang.String getFormattedValue()
null
for nonepublic Address setFormattedValue(java.lang.String formattedValue)
formattedValue
- formattedValue or null
for nonepublic FieldMetadata getMetadata()
null
for nonepublic Address setMetadata(FieldMetadata metadata)
metadata
- metadata or null
for nonepublic java.lang.String getPoBox()
null
for nonepublic Address setPoBox(java.lang.String poBox)
poBox
- poBox or null
for nonepublic java.lang.String getPostalCode()
null
for nonepublic Address setPostalCode(java.lang.String postalCode)
postalCode
- postalCode or null
for nonepublic java.lang.String getRegion()
null
for nonepublic Address setRegion(java.lang.String region)
region
- region or null
for nonepublic java.lang.String getStreetAddress()
null
for nonepublic Address setStreetAddress(java.lang.String streetAddress)
streetAddress
- streetAddress or null
for nonepublic java.lang.String getType()
null
for nonepublic Address setType(java.lang.String type)
type
- type or null
for nonepublic Address set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Address clone()
clone
in class com.google.api.client.json.GenericJson