target.apidocs.com.google.api.services.content.model.PosCustomBatchRequestEntry.html Maven / Gradle / Ivy
PosCustomBatchRequestEntry (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class PosCustomBatchRequestEntry
- 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.PosCustomBatchRequestEntry
-
public final class PosCustomBatchRequestEntry
extends com.google.api.client.json.GenericJson
Model definition for PosCustomBatchRequestEntry.
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
PosCustomBatchRequestEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PosCustomBatchRequestEntry
clone()
Long
getBatchId()
An entry ID, unique within the batch request.
PosInventory
getInventory()
The inventory to submit.
BigInteger
getMerchantId()
The ID of the POS data provider.
String
getMethod()
The method of the batch entry.
PosSale
getSale()
The sale information to submit.
PosStore
getStore()
The store information to submit.
String
getStoreCode()
The store code.
BigInteger
getTargetMerchantId()
The ID of the account for which to get/submit data.
PosCustomBatchRequestEntry
set(String fieldName,
Object value)
PosCustomBatchRequestEntry
setBatchId(Long batchId)
An entry ID, unique within the batch request.
PosCustomBatchRequestEntry
setInventory(PosInventory inventory)
The inventory to submit.
PosCustomBatchRequestEntry
setMerchantId(BigInteger merchantId)
The ID of the POS data provider.
PosCustomBatchRequestEntry
setMethod(String method)
The method of the batch entry.
PosCustomBatchRequestEntry
setSale(PosSale sale)
The sale information to submit.
PosCustomBatchRequestEntry
setStore(PosStore store)
The store information to submit.
PosCustomBatchRequestEntry
setStoreCode(String storeCode)
The store code.
PosCustomBatchRequestEntry
setTargetMerchantId(BigInteger targetMerchantId)
The ID of the account for which to get/submit data.
-
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, 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
-
getBatchId
public Long getBatchId()
An entry ID, unique within the batch request.
- Returns:
- value or
null
for none
-
setBatchId
public PosCustomBatchRequestEntry setBatchId(Long batchId)
An entry ID, unique within the batch request.
- Parameters:
batchId
- batchId or null
for none
-
getInventory
public PosInventory getInventory()
The inventory to submit. This should be set only if the method is `inventory`.
- Returns:
- value or
null
for none
-
setInventory
public PosCustomBatchRequestEntry setInventory(PosInventory inventory)
The inventory to submit. This should be set only if the method is `inventory`.
- Parameters:
inventory
- inventory or null
for none
-
getMerchantId
public BigInteger getMerchantId()
The ID of the POS data provider.
- Returns:
- value or
null
for none
-
setMerchantId
public PosCustomBatchRequestEntry setMerchantId(BigInteger merchantId)
The ID of the POS data provider.
- Parameters:
merchantId
- merchantId or null
for none
-
getMethod
public String getMethod()
The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" -
"`inventory`" - "`sale`"
- Returns:
- value or
null
for none
-
setMethod
public PosCustomBatchRequestEntry setMethod(String method)
The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" -
"`inventory`" - "`sale`"
- Parameters:
method
- method or null
for none
-
getSale
public PosSale getSale()
The sale information to submit. This should be set only if the method is `sale`.
- Returns:
- value or
null
for none
-
setSale
public PosCustomBatchRequestEntry setSale(PosSale sale)
The sale information to submit. This should be set only if the method is `sale`.
- Parameters:
sale
- sale or null
for none
-
getStore
public PosStore getStore()
The store information to submit. This should be set only if the method is `insert`.
- Returns:
- value or
null
for none
-
setStore
public PosCustomBatchRequestEntry setStore(PosStore store)
The store information to submit. This should be set only if the method is `insert`.
- Parameters:
store
- store or null
for none
-
getStoreCode
public String getStoreCode()
The store code. This should be set only if the method is `delete` or `get`.
- Returns:
- value or
null
for none
-
setStoreCode
public PosCustomBatchRequestEntry setStoreCode(String storeCode)
The store code. This should be set only if the method is `delete` or `get`.
- Parameters:
storeCode
- storeCode or null
for none
-
getTargetMerchantId
public BigInteger getTargetMerchantId()
The ID of the account for which to get/submit data.
- Returns:
- value or
null
for none
-
setTargetMerchantId
public PosCustomBatchRequestEntry setTargetMerchantId(BigInteger targetMerchantId)
The ID of the account for which to get/submit data.
- Parameters:
targetMerchantId
- targetMerchantId or null
for none
-
set
public PosCustomBatchRequestEntry set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public PosCustomBatchRequestEntry clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy