target.apidocs.com.google.api.services.content.model.Address.html Maven / Gradle / Ivy
Address (Content API for Shopping v2.1-rev20220413-1.32.1)
com.google.api.services.content.model
Class Address
- 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.Address
-
public final class Address
extends GenericJson
Model definition 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 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
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
Address()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Address
clone()
String
getAdministrativeArea()
Required.
String
getCity()
Required.
String
getCountry()
Required.
String
getPostalCode()
Required.
String
getStreetAddress()
Street-level part of the address.
Address
set(String fieldName,
Object value)
Address
setAdministrativeArea(String administrativeArea)
Required.
Address
setCity(String city)
Required.
Address
setCountry(String country)
Required.
Address
setPostalCode(String postalCode)
Required.
Address
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
-
getAdministrativeArea
public String getAdministrativeArea()
Required. 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
-
setAdministrativeArea
public Address setAdministrativeArea(String administrativeArea)
Required. Top-level administrative subdivision of the country. For example, a state like
California ("CA") or a province like Quebec ("QC").
- Parameters:
administrativeArea
- administrativeArea or null
for none
-
getCity
public String getCity()
Required. City, town or commune. May also include dependent localities or sublocalities (for
example, neighborhoods or suburbs).
- Returns:
- value or
null
for none
-
setCity
public Address setCity(String city)
Required. City, town or commune. May also include dependent localities or sublocalities (for
example, neighborhoods or suburbs).
- Parameters:
city
- city or null
for none
-
getCountry
public String getCountry()
Required. [CLDR country code](https://github.com/unicode-
org/cldr/blob/latest/common/main/en.xml) (for example, "US").
- Returns:
- value or
null
for none
-
setCountry
public Address setCountry(String country)
Required. [CLDR country code](https://github.com/unicode-
org/cldr/blob/latest/common/main/en.xml) (for example, "US").
- Parameters:
country
- country or null
for none
-
getPostalCode
public String getPostalCode()
Required. Postal code or ZIP (for example, "94043").
- Returns:
- value or
null
for none
-
setPostalCode
public Address setPostalCode(String postalCode)
Required. Postal code or ZIP (for example, "94043").
- Parameters:
postalCode
- postalCode or null
for none
-
getStreetAddress
public String getStreetAddress()
Street-level part of the address.
- Returns:
- value or
null
for none
-
setStreetAddress
public Address setStreetAddress(String streetAddress)
Street-level part of the address.
- Parameters:
streetAddress
- streetAddress or null
for none
-
set
public Address set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Address clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy