target.apidocs.com.google.api.services.content.model.AccountAddress.html Maven / Gradle / Ivy
AccountAddress (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class AccountAddress
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.AccountAddress
-
public final class AccountAddress
extends com.google.api.client.json.GenericJson
Model definition for AccountAddress.
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 Content API for Shopping. 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
com.google.api.client.util.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
AccountAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AccountAddress
clone()
String
getCountry()
CLDR country code (for example, "US").
String
getLocality()
City, town or commune.
String
getPostalCode()
Postal code or ZIP (for example, "94043").
String
getRegion()
Top-level administrative subdivision of the country.
String
getStreetAddress()
Street-level part of the address.
AccountAddress
set(String fieldName,
Object value)
AccountAddress
setCountry(String country)
CLDR country code (for example, "US").
AccountAddress
setLocality(String locality)
City, town or commune.
AccountAddress
setPostalCode(String postalCode)
Postal code or ZIP (for example, "94043").
AccountAddress
setRegion(String region)
Top-level administrative subdivision of the country.
AccountAddress
setStreetAddress(String streetAddress)
Street-level part of the address.
-
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()
CLDR country code (for example, "US"). All MCA sub-accounts inherit the country of their parent
MCA by default, however the country can be updated for individual sub-accounts.
- Returns:
- value or
null
for none
-
setCountry
public AccountAddress setCountry(String country)
CLDR country code (for example, "US"). All MCA sub-accounts inherit the country of their parent
MCA by default, however the country can be updated for individual sub-accounts.
- Parameters:
country
- country or null
for none
-
getLocality
public String getLocality()
City, town or commune. May also include dependent localities or sublocalities (for example,
neighborhoods or suburbs).
- Returns:
- value or
null
for none
-
setLocality
public AccountAddress setLocality(String locality)
City, town or commune. May also include dependent localities or sublocalities (for example,
neighborhoods or suburbs).
- Parameters:
locality
- locality or null
for none
-
getPostalCode
public String getPostalCode()
Postal code or ZIP (for example, "94043").
- Returns:
- value or
null
for none
-
setPostalCode
public AccountAddress setPostalCode(String postalCode)
Postal code or ZIP (for example, "94043").
- Parameters:
postalCode
- postalCode or null
for none
-
getRegion
public String getRegion()
Top-level administrative subdivision of the country. For example, a state like California
("CA") or a province like Quebec ("QC").
- Returns:
- value or
null
for none
-
setRegion
public AccountAddress setRegion(String region)
Top-level administrative subdivision of the country. For example, a state like California
("CA") or a province like Quebec ("QC").
- Parameters:
region
- region or null
for none
-
getStreetAddress
public String getStreetAddress()
Street-level part of the address. Use `\n` to add a second line.
- Returns:
- value or
null
for none
-
setStreetAddress
public AccountAddress setStreetAddress(String streetAddress)
Street-level part of the address. Use `\n` to add a second line.
- Parameters:
streetAddress
- streetAddress or null
for none
-
set
public AccountAddress set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AccountAddress clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy