target.apidocs.com.google.api.services.content.model.OrderAddress.html Maven / Gradle / Ivy
OrderAddress (Content API for Shopping v2.1-rev20210325-1.31.0)
com.google.api.services.content.model
Class OrderAddress
- 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.OrderAddress
-
public final class OrderAddress
extends GenericJson
Model definition for OrderAddress.
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
OrderAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OrderAddress
clone()
String
getCountry()
CLDR country code (e.g.
List<String>
getFullAddress()
Strings representing the lines of the printed label for mailing the order, for example: John
Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
Boolean
getIsPostOfficeBox()
Whether the address is a post office box.
String
getLocality()
City, town or commune.
String
getPostalCode()
Postal Code or ZIP (e.g.
String
getRecipientName()
Name of the recipient.
String
getRegion()
Top-level administrative subdivision of the country.
List<String>
getStreetAddress()
Street-level part of the address.
OrderAddress
set(String fieldName,
Object value)
OrderAddress
setCountry(String country)
CLDR country code (e.g.
OrderAddress
setFullAddress(List<String> fullAddress)
Strings representing the lines of the printed label for mailing the order, for example: John
Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
OrderAddress
setIsPostOfficeBox(Boolean isPostOfficeBox)
Whether the address is a post office box.
OrderAddress
setLocality(String locality)
City, town or commune.
OrderAddress
setPostalCode(String postalCode)
Postal Code or ZIP (e.g.
OrderAddress
setRecipientName(String recipientName)
Name of the recipient.
OrderAddress
setRegion(String region)
Top-level administrative subdivision of the country.
OrderAddress
setStreetAddress(List<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 (e.g. "US").
- Returns:
- value or
null
for none
-
setCountry
public OrderAddress setCountry(String country)
CLDR country code (e.g. "US").
- Parameters:
country
- country or null
for none
-
getFullAddress
public List<String> getFullAddress()
Strings representing the lines of the printed label for mailing the order, for example: John
Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
- Returns:
- value or
null
for none
-
setFullAddress
public OrderAddress setFullAddress(List<String> fullAddress)
Strings representing the lines of the printed label for mailing the order, for example: John
Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States
- Parameters:
fullAddress
- fullAddress or null
for none
-
getIsPostOfficeBox
public Boolean getIsPostOfficeBox()
Whether the address is a post office box.
- Returns:
- value or
null
for none
-
setIsPostOfficeBox
public OrderAddress setIsPostOfficeBox(Boolean isPostOfficeBox)
Whether the address is a post office box.
- Parameters:
isPostOfficeBox
- isPostOfficeBox or null
for none
-
getLocality
public String getLocality()
City, town or commune. May also include dependent localities or sublocalities (e.g.
neighborhoods or suburbs).
- Returns:
- value or
null
for none
-
setLocality
public OrderAddress setLocality(String locality)
City, town or commune. May also include dependent localities or sublocalities (e.g.
neighborhoods or suburbs).
- Parameters:
locality
- locality or null
for none
-
getPostalCode
public String getPostalCode()
Postal Code or ZIP (e.g. "94043").
- Returns:
- value or
null
for none
-
setPostalCode
public OrderAddress setPostalCode(String postalCode)
Postal Code or ZIP (e.g. "94043").
- Parameters:
postalCode
- postalCode or null
for none
-
getRecipientName
public String getRecipientName()
Name of the recipient.
- Returns:
- value or
null
for none
-
setRecipientName
public OrderAddress setRecipientName(String recipientName)
Name of the recipient.
- Parameters:
recipientName
- recipientName 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 OrderAddress 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 List<String> getStreetAddress()
Street-level part of the address.
- Returns:
- value or
null
for none
-
setStreetAddress
public OrderAddress setStreetAddress(List<String> streetAddress)
Street-level part of the address.
- Parameters:
streetAddress
- streetAddress or null
for none
-
set
public OrderAddress set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public OrderAddress clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy