target.apidocs.com.google.api.services.directory.model.BuildingAddress.html Maven / Gradle / Ivy
BuildingAddress (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class BuildingAddress
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.BuildingAddress
-
public final class BuildingAddress
extends GenericJson
Public API: Resources.buildings
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 Admin SDK API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
BuildingAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BuildingAddress
clone()
List<String>
getAddressLines()
Unstructured address lines describing the lower levels of an address.
String
getAdministrativeArea()
Optional.
String
getLanguageCode()
Optional.
String
getLocality()
Optional.
String
getPostalCode()
Optional.
String
getRegionCode()
Required.
String
getSublocality()
Optional.
BuildingAddress
set(String fieldName,
Object value)
BuildingAddress
setAddressLines(List<String> addressLines)
Unstructured address lines describing the lower levels of an address.
BuildingAddress
setAdministrativeArea(String administrativeArea)
Optional.
BuildingAddress
setLanguageCode(String languageCode)
Optional.
BuildingAddress
setLocality(String locality)
Optional.
BuildingAddress
setPostalCode(String postalCode)
Optional.
BuildingAddress
setRegionCode(String regionCode)
Required.
BuildingAddress
setSublocality(String sublocality)
Optional.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAddressLines
public List<String> getAddressLines()
Unstructured address lines describing the lower levels of an address.
- Returns:
- value or
null
for none
-
setAddressLines
public BuildingAddress setAddressLines(List<String> addressLines)
Unstructured address lines describing the lower levels of an address.
- Parameters:
addressLines
- addressLines or null
for none
-
getAdministrativeArea
public String getAdministrativeArea()
Optional. Highest administrative subdivision which is used for postal addresses of a country or
region.
- Returns:
- value or
null
for none
-
setAdministrativeArea
public BuildingAddress setAdministrativeArea(String administrativeArea)
Optional. Highest administrative subdivision which is used for postal addresses of a country or
region.
- Parameters:
administrativeArea
- administrativeArea or null
for none
-
getLanguageCode
public String getLanguageCode()
Optional. BCP-47 language code of the contents of this address (if known).
- Returns:
- value or
null
for none
-
setLanguageCode
public BuildingAddress setLanguageCode(String languageCode)
Optional. BCP-47 language code of the contents of this address (if known).
- Parameters:
languageCode
- languageCode or null
for none
-
getLocality
public String getLocality()
Optional. Generally refers to the city/town portion of the address. Examples: US city, IT
comune, UK post town. In regions of the world where localities are not well defined or do not
fit into this structure well, leave locality empty and use addressLines.
- Returns:
- value or
null
for none
-
setLocality
public BuildingAddress setLocality(String locality)
Optional. Generally refers to the city/town portion of the address. Examples: US city, IT
comune, UK post town. In regions of the world where localities are not well defined or do not
fit into this structure well, leave locality empty and use addressLines.
- Parameters:
locality
- locality or null
for none
-
getPostalCode
public String getPostalCode()
Optional. Postal code of the address.
- Returns:
- value or
null
for none
-
setPostalCode
public BuildingAddress setPostalCode(String postalCode)
Optional. Postal code of the address.
- Parameters:
postalCode
- postalCode or null
for none
-
getRegionCode
public String getRegionCode()
Required. CLDR region code of the country/region of the address.
- Returns:
- value or
null
for none
-
setRegionCode
public BuildingAddress setRegionCode(String regionCode)
Required. CLDR region code of the country/region of the address.
- Parameters:
regionCode
- regionCode or null
for none
-
getSublocality
public String getSublocality()
Optional. Sublocality of the address.
- Returns:
- value or
null
for none
-
setSublocality
public BuildingAddress setSublocality(String sublocality)
Optional. Sublocality of the address.
- Parameters:
sublocality
- sublocality or null
for none
-
set
public BuildingAddress set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public BuildingAddress clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.