target.apidocs.com.google.api.services.content.model.OrderPromotionItem.html Maven / Gradle / Ivy
OrderPromotionItem (Content API for Shopping v2.1-rev20190215-1.27.0)
com.google.api.services.content.model
Class OrderPromotionItem
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.OrderPromotionItem
-
public final class OrderPromotionItem
extends com.google.api.client.json.GenericJson
Model definition for OrderPromotionItem.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
OrderPromotionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OrderPromotionItem
clone()
String
getLineItemId()
String
getProductId()
Integer
getQuantity()
The quantity of the associated product.
OrderPromotionItem
set(String fieldName,
Object value)
OrderPromotionItem
setLineItemId(String lineItemId)
OrderPromotionItem
setProductId(String productId)
OrderPromotionItem
setQuantity(Integer quantity)
The quantity of the associated product.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getLineItemId
public String getLineItemId()
- Returns:
- value or
null
for none
-
setLineItemId
public OrderPromotionItem setLineItemId(String lineItemId)
- Parameters:
lineItemId
- lineItemId or null
for none
-
getProductId
public String getProductId()
- Returns:
- value or
null
for none
-
setProductId
public OrderPromotionItem setProductId(String productId)
- Parameters:
productId
- productId or null
for none
-
getQuantity
public Integer getQuantity()
The quantity of the associated product.
- Returns:
- value or
null
for none
-
setQuantity
public OrderPromotionItem setQuantity(Integer quantity)
The quantity of the associated product.
- Parameters:
quantity
- quantity or null
for none
-
set
public OrderPromotionItem set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OrderPromotionItem clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy