public final class InAppProduct
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 Google Play Developer API. 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
Constructor and Description |
---|
InAppProduct() |
Modifier and Type | Method and Description |
---|---|
InAppProduct |
clone() |
java.lang.String |
getDefaultLanguage()
The default language of the localized data, as defined by BCP 47.
|
Price |
getDefaultPrice()
Default price cannot be zero.
|
java.util.Map<java.lang.String,InAppProductListing> |
getListings()
List of localized title and description data.
|
java.lang.String |
getPackageName()
The package name of the parent app.
|
java.util.Map<java.lang.String,Price> |
getPrices()
Prices per buyer region.
|
java.lang.String |
getPurchaseType()
Purchase type enum value.
|
Season |
getSeason()
Definition of a season for a seasonal subscription.
|
java.lang.String |
getSku()
The stock-keeping-unit (SKU) of the product, unique within an app.
|
java.lang.String |
getStatus() |
java.lang.String |
getSubscriptionPeriod()
Subscription period, specified in ISO 8601 format.
|
java.lang.String |
getTrialPeriod()
Trial period, specified in ISO 8601 format.
|
InAppProduct |
set(java.lang.String fieldName,
java.lang.Object value) |
InAppProduct |
setDefaultLanguage(java.lang.String defaultLanguage)
The default language of the localized data, as defined by BCP 47.
|
InAppProduct |
setDefaultPrice(Price defaultPrice)
Default price cannot be zero.
|
InAppProduct |
setListings(java.util.Map<java.lang.String,InAppProductListing> listings)
List of localized title and description data.
|
InAppProduct |
setPackageName(java.lang.String packageName)
The package name of the parent app.
|
InAppProduct |
setPrices(java.util.Map<java.lang.String,Price> prices)
Prices per buyer region.
|
InAppProduct |
setPurchaseType(java.lang.String purchaseType)
Purchase type enum value.
|
InAppProduct |
setSeason(Season season)
Definition of a season for a seasonal subscription.
|
InAppProduct |
setSku(java.lang.String sku)
The stock-keeping-unit (SKU) of the product, unique within an app.
|
InAppProduct |
setStatus(java.lang.String status) |
InAppProduct |
setSubscriptionPeriod(java.lang.String subscriptionPeriod)
Subscription period, specified in ISO 8601 format.
|
InAppProduct |
setTrialPeriod(java.lang.String trialPeriod)
Trial period, specified in ISO 8601 format.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getDefaultLanguage()
null
for nonepublic InAppProduct setDefaultLanguage(java.lang.String defaultLanguage)
defaultLanguage
- defaultLanguage or null
for nonepublic Price getDefaultPrice()
null
for nonepublic InAppProduct setDefaultPrice(Price defaultPrice)
defaultPrice
- defaultPrice or null
for nonepublic java.util.Map<java.lang.String,InAppProductListing> getListings()
null
for nonepublic InAppProduct setListings(java.util.Map<java.lang.String,InAppProductListing> listings)
listings
- listings or null
for nonepublic java.lang.String getPackageName()
null
for nonepublic InAppProduct setPackageName(java.lang.String packageName)
packageName
- packageName or null
for nonepublic java.util.Map<java.lang.String,Price> getPrices()
null
for nonepublic InAppProduct setPrices(java.util.Map<java.lang.String,Price> prices)
prices
- prices or null
for nonepublic java.lang.String getPurchaseType()
null
for nonepublic InAppProduct setPurchaseType(java.lang.String purchaseType)
purchaseType
- purchaseType or null
for nonepublic Season getSeason()
null
for nonepublic InAppProduct setSeason(Season season)
season
- season or null
for nonepublic java.lang.String getSku()
null
for nonepublic InAppProduct setSku(java.lang.String sku)
sku
- sku or null
for nonepublic java.lang.String getStatus()
null
for nonepublic InAppProduct setStatus(java.lang.String status)
status
- status or null
for nonepublic java.lang.String getSubscriptionPeriod()
null
for nonepublic InAppProduct setSubscriptionPeriod(java.lang.String subscriptionPeriod)
subscriptionPeriod
- subscriptionPeriod or null
for nonepublic java.lang.String getTrialPeriod()
null
for nonepublic InAppProduct setTrialPeriod(java.lang.String trialPeriod)
trialPeriod
- trialPeriod or null
for nonepublic InAppProduct set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public InAppProduct clone()
clone
in class com.google.api.client.json.GenericJson