target.apidocs.com.google.api.services.directory.model.UserAddress.html Maven / Gradle / Ivy
UserAddress (Admin SDK API directory_v1-rev20220125-1.32.1)
com.google.api.services.directory.model
Class UserAddress
- 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.UserAddress
-
public final class UserAddress
extends GenericJson
JSON template for address.
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
UserAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UserAddress
clone()
String
getCountry()
Country.
String
getCountryCode()
Country code.
String
getCustomType()
Custom type.
String
getExtendedAddress()
Extended Address.
String
getFormatted()
Formatted address.
String
getLocality()
Locality.
String
getPoBox()
Other parts of address.
String
getPostalCode()
Postal code.
Boolean
getPrimary()
If this is user's primary address.
String
getRegion()
Region.
Boolean
getSourceIsStructured()
User supplied address was structured.
String
getStreetAddress()
Street.
String
getType()
Each entry can have a type which indicates standard values of that entry.
UserAddress
set(String fieldName,
Object value)
UserAddress
setCountry(String country)
Country.
UserAddress
setCountryCode(String countryCode)
Country code.
UserAddress
setCustomType(String customType)
Custom type.
UserAddress
setExtendedAddress(String extendedAddress)
Extended Address.
UserAddress
setFormatted(String formatted)
Formatted address.
UserAddress
setLocality(String locality)
Locality.
UserAddress
setPoBox(String poBox)
Other parts of address.
UserAddress
setPostalCode(String postalCode)
Postal code.
UserAddress
setPrimary(Boolean primary)
If this is user's primary address.
UserAddress
setRegion(String region)
Region.
UserAddress
setSourceIsStructured(Boolean sourceIsStructured)
User supplied address was structured.
UserAddress
setStreetAddress(String streetAddress)
Street.
UserAddress
setType(String type)
Each entry can have a type which indicates standard values of that entry.
-
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
-
getCountry
public String getCountry()
Country.
- Returns:
- value or
null
for none
-
setCountry
public UserAddress setCountry(String country)
Country.
- Parameters:
country
- country or null
for none
-
getCountryCode
public String getCountryCode()
Country code.
- Returns:
- value or
null
for none
-
setCountryCode
public UserAddress setCountryCode(String countryCode)
Country code.
- Parameters:
countryCode
- countryCode or null
for none
-
getCustomType
public String getCustomType()
Custom type.
- Returns:
- value or
null
for none
-
setCustomType
public UserAddress setCustomType(String customType)
Custom type.
- Parameters:
customType
- customType or null
for none
-
getExtendedAddress
public String getExtendedAddress()
Extended Address.
- Returns:
- value or
null
for none
-
setExtendedAddress
public UserAddress setExtendedAddress(String extendedAddress)
Extended Address.
- Parameters:
extendedAddress
- extendedAddress or null
for none
-
getFormatted
public String getFormatted()
Formatted address.
- Returns:
- value or
null
for none
-
setFormatted
public UserAddress setFormatted(String formatted)
Formatted address.
- Parameters:
formatted
- formatted or null
for none
-
getLocality
public String getLocality()
Locality.
- Returns:
- value or
null
for none
-
setLocality
public UserAddress setLocality(String locality)
Locality.
- Parameters:
locality
- locality or null
for none
-
getPoBox
public String getPoBox()
Other parts of address.
- Returns:
- value or
null
for none
-
setPoBox
public UserAddress setPoBox(String poBox)
Other parts of address.
- Parameters:
poBox
- poBox or null
for none
-
getPostalCode
public String getPostalCode()
Postal code.
- Returns:
- value or
null
for none
-
setPostalCode
public UserAddress setPostalCode(String postalCode)
Postal code.
- Parameters:
postalCode
- postalCode or null
for none
-
getPrimary
public Boolean getPrimary()
If this is user's primary address. Only one entry could be marked as primary.
- Returns:
- value or
null
for none
-
setPrimary
public UserAddress setPrimary(Boolean primary)
If this is user's primary address. Only one entry could be marked as primary.
- Parameters:
primary
- primary or null
for none
-
getRegion
public String getRegion()
Region.
- Returns:
- value or
null
for none
-
setRegion
public UserAddress setRegion(String region)
Region.
- Parameters:
region
- region or null
for none
-
getSourceIsStructured
public Boolean getSourceIsStructured()
User supplied address was structured. Structured addresses are NOT supported at this time. You
might be able to write structured addresses but any values will eventually be clobbered.
- Returns:
- value or
null
for none
-
setSourceIsStructured
public UserAddress setSourceIsStructured(Boolean sourceIsStructured)
User supplied address was structured. Structured addresses are NOT supported at this time. You
might be able to write structured addresses but any values will eventually be clobbered.
- Parameters:
sourceIsStructured
- sourceIsStructured or null
for none
-
getStreetAddress
public String getStreetAddress()
Street.
- Returns:
- value or
null
for none
-
setStreetAddress
public UserAddress setStreetAddress(String streetAddress)
Street.
- Parameters:
streetAddress
- streetAddress or null
for none
-
getType
public String getType()
Each entry can have a type which indicates standard values of that entry. For example address
could be of home work etc. In addition to the standard type an entry can have a custom type and
can take any value. Such type should have the CUSTOM value as type and also have a customType
value.
- Returns:
- value or
null
for none
-
setType
public UserAddress setType(String type)
Each entry can have a type which indicates standard values of that entry. For example address
could be of home work etc. In addition to the standard type an entry can have a custom type and
can take any value. Such type should have the CUSTOM value as type and also have a customType
value.
- Parameters:
type
- type or null
for none
-
set
public UserAddress set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public UserAddress clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.