public final class Inventory 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Inventory() |
| Modifier and Type | Method and Description |
|---|---|
Inventory |
clone() |
String |
getAvailability()
The availability of the product.
|
String |
getCustomLabel0()
Custom label 0 for custom grouping of items in a Shopping campaign.
|
String |
getCustomLabel1()
Custom label 1 for custom grouping of items in a Shopping campaign.
|
String |
getCustomLabel2()
Custom label 2 for custom grouping of items in a Shopping campaign.
|
String |
getCustomLabel3()
Custom label 3 for custom grouping of items in a Shopping campaign.
|
String |
getCustomLabel4()
Custom label 3 for custom grouping of items in a Shopping campaign.
|
Installment |
getInstallment()
Number and amount of installments to pay for an item.
|
String |
getInstoreProductLocation()
The instore product location.
|
String |
getKind()
Identifies what kind of resource this is.
|
LoyaltyPoints |
getLoyaltyPoints()
Loyalty points that users receive after purchasing the item.
|
InventoryPickup |
getPickup()
Store pickup information.
|
Price |
getPrice()
The price of the product.
|
Long |
getQuantity()
The quantity of the product.
|
Price |
getSalePrice()
The 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.
|
Long |
getSellOnGoogleQuantity()
The quantity of the product that is available for selling on Google.
|
Inventory |
set(String fieldName,
Object value) |
Inventory |
setAvailability(String availability)
The availability of the product.
|
Inventory |
setCustomLabel0(String customLabel0)
Custom label 0 for custom grouping of items in a Shopping campaign.
|
Inventory |
setCustomLabel1(String customLabel1)
Custom label 1 for custom grouping of items in a Shopping campaign.
|
Inventory |
setCustomLabel2(String customLabel2)
Custom label 2 for custom grouping of items in a Shopping campaign.
|
Inventory |
setCustomLabel3(String customLabel3)
Custom label 3 for custom grouping of items in a Shopping campaign.
|
Inventory |
setCustomLabel4(String customLabel4)
Custom label 3 for custom grouping of items in a Shopping campaign.
|
Inventory |
setInstallment(Installment installment)
Number and amount of installments to pay for an item.
|
Inventory |
setInstoreProductLocation(String instoreProductLocation)
The instore product location.
|
Inventory |
setKind(String kind)
Identifies what kind of resource this is.
|
Inventory |
setLoyaltyPoints(LoyaltyPoints loyaltyPoints)
Loyalty points that users receive after purchasing the item.
|
Inventory |
setPickup(InventoryPickup pickup)
Store pickup information.
|
Inventory |
setPrice(Price price)
The price of the product.
|
Inventory |
setQuantity(Long quantity)
The quantity of the product.
|
Inventory |
setSalePrice(Price salePrice)
The sale price of the product.
|
Inventory |
setSalePriceEffectiveDate(String salePriceEffectiveDate)
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
|
Inventory |
setSellOnGoogleQuantity(Long sellOnGoogleQuantity)
The quantity of the product that is available for selling on Google.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAvailability()
null for nonepublic Inventory setAvailability(String availability)
availability - availability or null for nonepublic String getCustomLabel0()
null for nonepublic Inventory setCustomLabel0(String customLabel0)
customLabel0 - customLabel0 or null for nonepublic String getCustomLabel1()
null for nonepublic Inventory setCustomLabel1(String customLabel1)
customLabel1 - customLabel1 or null for nonepublic String getCustomLabel2()
null for nonepublic Inventory setCustomLabel2(String customLabel2)
customLabel2 - customLabel2 or null for nonepublic String getCustomLabel3()
null for nonepublic Inventory setCustomLabel3(String customLabel3)
customLabel3 - customLabel3 or null for nonepublic String getCustomLabel4()
null for nonepublic Inventory setCustomLabel4(String customLabel4)
customLabel4 - customLabel4 or null for nonepublic Installment getInstallment()
null for nonepublic Inventory setInstallment(Installment installment)
installment - installment or null for nonepublic String getInstoreProductLocation()
null for nonepublic Inventory setInstoreProductLocation(String instoreProductLocation)
instoreProductLocation - instoreProductLocation or null for nonepublic String getKind()
null for nonepublic Inventory setKind(String kind)
kind - kind or null for nonepublic LoyaltyPoints getLoyaltyPoints()
null for nonepublic Inventory setLoyaltyPoints(LoyaltyPoints loyaltyPoints)
loyaltyPoints - loyaltyPoints or null for nonepublic InventoryPickup getPickup()
null for nonepublic Inventory setPickup(InventoryPickup pickup)
pickup - pickup or null for nonepublic Price getPrice()
null for nonepublic Inventory setPrice(Price price)
price - price or null for nonepublic Long getQuantity()
null for nonepublic Inventory setQuantity(Long quantity)
quantity - quantity or null for nonepublic Price getSalePrice()
null for nonepublic Inventory setSalePrice(Price salePrice)
salePrice - salePrice or null for nonepublic String getSalePriceEffectiveDate()
null for nonepublic Inventory setSalePriceEffectiveDate(String salePriceEffectiveDate)
salePriceEffectiveDate - salePriceEffectiveDate or null for nonepublic Long getSellOnGoogleQuantity()
null for nonepublic Inventory setSellOnGoogleQuantity(Long sellOnGoogleQuantity)
sellOnGoogleQuantity - sellOnGoogleQuantity or null for nonepublic Inventory set(String fieldName, Object value)
set in class GenericJsonpublic Inventory clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.