public final class LocalInventory extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LocalInventory() |
Modifier and Type | Method and Description |
---|---|
LocalInventory |
clone() |
String |
getAvailability()
Availability of the product.
|
String |
getInstoreProductLocation()
In-store product location.
|
String |
getKind()
Identifies what kind of resource this is.
|
String |
getPickupMethod()
Supported pickup method for this offer.
|
String |
getPickupSla()
Expected date that an order will be ready for pickup relative to the order date.
|
Price |
getPrice()
Price of the product.
|
Long |
getQuantity()
Quantity of the product.
|
Price |
getSalePrice()
Sale price of the product.
|
String |
getSalePriceEffectiveDate()
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
|
String |
getStoreCode()
Required.
|
LocalInventory |
set(String fieldName,
Object value) |
LocalInventory |
setAvailability(String availability)
Availability of the product.
|
LocalInventory |
setInstoreProductLocation(String instoreProductLocation)
In-store product location.
|
LocalInventory |
setKind(String kind)
Identifies what kind of resource this is.
|
LocalInventory |
setPickupMethod(String pickupMethod)
Supported pickup method for this offer.
|
LocalInventory |
setPickupSla(String pickupSla)
Expected date that an order will be ready for pickup relative to the order date.
|
LocalInventory |
setPrice(Price price)
Price of the product.
|
LocalInventory |
setQuantity(Long quantity)
Quantity of the product.
|
LocalInventory |
setSalePrice(Price salePrice)
Sale price of the product.
|
LocalInventory |
setSalePriceEffectiveDate(String salePriceEffectiveDate)
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
|
LocalInventory |
setStoreCode(String storeCode)
Required.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAvailability()
null
for nonepublic LocalInventory setAvailability(String availability)
availability
- availability or null
for nonepublic String getInstoreProductLocation()
null
for nonepublic LocalInventory setInstoreProductLocation(String instoreProductLocation)
instoreProductLocation
- instoreProductLocation or null
for nonepublic String getKind()
null
for nonepublic LocalInventory setKind(String kind)
kind
- kind or null
for nonepublic String getPickupMethod()
null
for nonepublic LocalInventory setPickupMethod(String pickupMethod)
pickupMethod
- pickupMethod or null
for nonepublic String getPickupSla()
null
for nonepublic LocalInventory setPickupSla(String pickupSla)
pickupSla
- pickupSla or null
for nonepublic Price getPrice()
null
for nonepublic LocalInventory setPrice(Price price)
price
- price or null
for nonepublic Long getQuantity()
null
for nonepublic LocalInventory setQuantity(Long quantity)
quantity
- quantity or null
for nonepublic Price getSalePrice()
null
for nonepublic LocalInventory setSalePrice(Price salePrice)
salePrice
- salePrice or null
for nonepublic String getSalePriceEffectiveDate()
null
for nonepublic LocalInventory setSalePriceEffectiveDate(String salePriceEffectiveDate)
salePriceEffectiveDate
- salePriceEffectiveDate or null
for nonepublic String getStoreCode()
null
for nonepublic LocalInventory setStoreCode(String storeCode)
storeCode
- storeCode or null
for nonepublic LocalInventory set(String fieldName, Object value)
set
in class GenericJson
public LocalInventory clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.