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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
Address |
clone() |
String |
getCity()
The city of the address.
|
String |
getCountry()
The country of the address.
|
String |
getCountryCode()
The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.
|
String |
getExtendedAddress()
The extended address of the address; for example, the apartment number.
|
String |
getFormattedType()
Output only.
|
String |
getFormattedValue()
The unstructured value of the address.
|
FieldMetadata |
getMetadata()
Metadata about the address.
|
String |
getPoBox()
The P.O.
|
String |
getPostalCode()
The postal code of the address.
|
String |
getRegion()
The region of the address; for example, the state or province.
|
String |
getStreetAddress()
The street address.
|
String |
getType()
The type of the address.
|
Address |
set(String fieldName,
Object value) |
Address |
setCity(String city)
The city of the address.
|
Address |
setCountry(String country)
The country of the address.
|
Address |
setCountryCode(String countryCode)
The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.
|
Address |
setExtendedAddress(String extendedAddress)
The extended address of the address; for example, the apartment number.
|
Address |
setFormattedType(String formattedType)
Output only.
|
Address |
setFormattedValue(String formattedValue)
The unstructured value of the address.
|
Address |
setMetadata(FieldMetadata metadata)
Metadata about the address.
|
Address |
setPoBox(String poBox)
The P.O.
|
Address |
setPostalCode(String postalCode)
The postal code of the address.
|
Address |
setRegion(String region)
The region of the address; for example, the state or province.
|
Address |
setStreetAddress(String streetAddress)
The street address.
|
Address |
setType(String type)
The type of the address.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCity()
null for nonepublic Address setCity(String city)
city - city or null for nonepublic String getCountry()
null for nonepublic Address setCountry(String country)
country - country or null for nonepublic String getCountryCode()
null for nonepublic Address setCountryCode(String countryCode)
countryCode - countryCode or null for nonepublic String getExtendedAddress()
null for nonepublic Address setExtendedAddress(String extendedAddress)
extendedAddress - extendedAddress or null for nonepublic String getFormattedType()
null for nonepublic Address setFormattedType(String formattedType)
formattedType - formattedType or null for nonepublic String getFormattedValue()
null for nonepublic Address setFormattedValue(String formattedValue)
formattedValue - formattedValue or null for nonepublic FieldMetadata getMetadata()
null for nonepublic Address setMetadata(FieldMetadata metadata)
metadata - metadata or null for nonepublic String getPoBox()
null for nonepublic Address setPoBox(String poBox)
poBox - poBox or null for nonepublic String getPostalCode()
null for nonepublic Address setPostalCode(String postalCode)
postalCode - postalCode or null for nonepublic String getRegion()
null for nonepublic Address setRegion(String region)
region - region or null for nonepublic String getStreetAddress()
null for nonepublic Address setStreetAddress(String streetAddress)
streetAddress - streetAddress or null for nonepublic String getType()
null for nonepublic Address setType(String type)
type - type or null for nonepublic Address set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Address clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.