public final class ProductShipping
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ProductShipping() |
Modifier and Type | Method and Description |
---|---|
ProductShipping |
clone() |
String |
getCountry()
The CLDR territory code of the country to which an item will ship.
|
String |
getLocationGroupName()
The location where the shipping is applicable, represented by a location group name.
|
Long |
getLocationId()
The numeric ID of a location that the shipping rate applies to as defined in the AdWords API.
|
String |
getPostalCode()
The postal code range that the shipping rate applies to, represented by a postal code, a postal
code prefix followed by a * wildcard, a range between two postal codes or two postal code
prefixes of equal length.
|
Price |
getPrice()
Fixed shipping price, represented as a number.
|
String |
getRegion()
The geographic region to which a shipping rate applies.
|
String |
getService()
A free-form description of the service class or delivery speed.
|
ProductShipping |
set(String fieldName,
Object value) |
ProductShipping |
setCountry(String country)
The CLDR territory code of the country to which an item will ship.
|
ProductShipping |
setLocationGroupName(String locationGroupName)
The location where the shipping is applicable, represented by a location group name.
|
ProductShipping |
setLocationId(Long locationId)
The numeric ID of a location that the shipping rate applies to as defined in the AdWords API.
|
ProductShipping |
setPostalCode(String postalCode)
The postal code range that the shipping rate applies to, represented by a postal code, a postal
code prefix followed by a * wildcard, a range between two postal codes or two postal code
prefixes of equal length.
|
ProductShipping |
setPrice(Price price)
Fixed shipping price, represented as a number.
|
ProductShipping |
setRegion(String region)
The geographic region to which a shipping rate applies.
|
ProductShipping |
setService(String service)
A free-form description of the service class or delivery speed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCountry()
null
for nonepublic ProductShipping setCountry(String country)
country
- country or null
for nonepublic String getLocationGroupName()
null
for nonepublic ProductShipping setLocationGroupName(String locationGroupName)
locationGroupName
- locationGroupName or null
for nonepublic Long getLocationId()
null
for nonepublic ProductShipping setLocationId(Long locationId)
locationId
- locationId or null
for nonepublic String getPostalCode()
null
for nonepublic ProductShipping setPostalCode(String postalCode)
postalCode
- postalCode or null
for nonepublic Price getPrice()
null
for nonepublic ProductShipping setPrice(Price price)
price
- price or null
for nonepublic String getRegion()
null
for nonepublic ProductShipping setRegion(String region)
region
- region or null
for nonepublic String getService()
null
for nonepublic ProductShipping setService(String service)
service
- service or null
for nonepublic ProductShipping set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ProductShipping clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.