public class ShoppingContent.Products.Get extends ShoppingContentRequest<Product>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(BigInteger merchantId,
String productId)
Retrieves a product from your Merchant Center account.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
BigInteger |
getMerchantId()
The ID of the account that contains the product.
|
String |
getProductId()
The REST ID of the product.
|
ShoppingContent.Products.Get |
set(String parameterName,
Object value) |
ShoppingContent.Products.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
ShoppingContent.Products.Get |
setAccessToken(String accessToken)
OAuth access token.
|
ShoppingContent.Products.Get |
setAlt(String alt)
Data format for response.
|
ShoppingContent.Products.Get |
setCallback(String callback)
JSONP
|
ShoppingContent.Products.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
ShoppingContent.Products.Get |
setKey(String key)
API key.
|
ShoppingContent.Products.Get |
setMerchantId(BigInteger merchantId)
The ID of the account that contains the product.
|
ShoppingContent.Products.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
ShoppingContent.Products.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
ShoppingContent.Products.Get |
setProductId(String productId)
The REST ID of the product.
|
ShoppingContent.Products.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
ShoppingContent.Products.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
ShoppingContent.Products.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(BigInteger merchantId, String productId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. ShoppingContent.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
merchantId - The ID of the account that contains the product. This account cannot be a multi-client account.productId - The REST ID of the product.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Product>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Product>IOExceptionpublic ShoppingContent.Products.Get set$Xgafv(String $Xgafv)
ShoppingContentRequestset$Xgafv in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setAccessToken(String accessToken)
ShoppingContentRequestsetAccessToken in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setAlt(String alt)
ShoppingContentRequestsetAlt in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setCallback(String callback)
ShoppingContentRequestsetCallback in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setFields(String fields)
ShoppingContentRequestsetFields in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setKey(String key)
ShoppingContentRequestsetKey in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setOauthToken(String oauthToken)
ShoppingContentRequestsetOauthToken in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setPrettyPrint(Boolean prettyPrint)
ShoppingContentRequestsetPrettyPrint in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setQuotaUser(String quotaUser)
ShoppingContentRequestsetQuotaUser in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setUploadType(String uploadType)
ShoppingContentRequestsetUploadType in class ShoppingContentRequest<Product>public ShoppingContent.Products.Get setUploadProtocol(String uploadProtocol)
ShoppingContentRequestsetUploadProtocol in class ShoppingContentRequest<Product>public BigInteger getMerchantId()
public ShoppingContent.Products.Get setMerchantId(BigInteger merchantId)
public String getProductId()
public ShoppingContent.Products.Get setProductId(String productId)
public ShoppingContent.Products.Get set(String parameterName, Object value)
set in class ShoppingContentRequest<Product>Copyright © 2011–2022 Google. All rights reserved.