public final class ProductData 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 Analytics Reporting API. 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 |
|---|
ProductData() |
| Modifier and Type | Method and Description |
|---|---|
ProductData |
clone() |
Double |
getItemRevenue()
The total revenue from purchased product items.
|
String |
getProductName()
The product name, supplied by the e-commerce tracking application, for the purchased items.
|
Long |
getProductQuantity()
Total number of this product units in the transaction.
|
String |
getProductSku()
Unique code that represents the product.
|
ProductData |
set(String fieldName,
Object value) |
ProductData |
setItemRevenue(Double itemRevenue)
The total revenue from purchased product items.
|
ProductData |
setProductName(String productName)
The product name, supplied by the e-commerce tracking application, for the purchased items.
|
ProductData |
setProductQuantity(Long productQuantity)
Total number of this product units in the transaction.
|
ProductData |
setProductSku(String productSku)
Unique code that represents the product.
|
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 Double getItemRevenue()
null for nonepublic ProductData setItemRevenue(Double itemRevenue)
itemRevenue - itemRevenue or null for nonepublic String getProductName()
null for nonepublic ProductData setProductName(String productName)
productName - productName or null for nonepublic Long getProductQuantity()
null for nonepublic ProductData setProductQuantity(Long productQuantity)
productQuantity - productQuantity or null for nonepublic String getProductSku()
null for nonepublic ProductData setProductSku(String productSku)
productSku - productSku or null for nonepublic ProductData set(String fieldName, Object value)
set in class GenericJsonpublic ProductData clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.