public class ShoppingContent.Promotions.Get extends ShoppingContentRequest<Promotion>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Get(Long merchantId,
String id)
Retrieves a promotion from your Merchant Center account.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Get(Long merchantId, String id)
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
- Required. The ID of the account that contains the collection.id
- Required. REST ID of the promotion to retrieve.public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Promotion>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Promotion>
IOException
public ShoppingContent.Promotions.Get set$Xgafv(String $Xgafv)
ShoppingContentRequest
set$Xgafv
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setAccessToken(String accessToken)
ShoppingContentRequest
setAccessToken
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setAlt(String alt)
ShoppingContentRequest
setAlt
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setCallback(String callback)
ShoppingContentRequest
setCallback
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setFields(String fields)
ShoppingContentRequest
setFields
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setKey(String key)
ShoppingContentRequest
setKey
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setOauthToken(String oauthToken)
ShoppingContentRequest
setOauthToken
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setPrettyPrint(Boolean prettyPrint)
ShoppingContentRequest
setPrettyPrint
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setQuotaUser(String quotaUser)
ShoppingContentRequest
setQuotaUser
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setUploadType(String uploadType)
ShoppingContentRequest
setUploadType
in class ShoppingContentRequest<Promotion>
public ShoppingContent.Promotions.Get setUploadProtocol(String uploadProtocol)
ShoppingContentRequest
setUploadProtocol
in class ShoppingContentRequest<Promotion>
public Long getMerchantId()
public ShoppingContent.Promotions.Get setMerchantId(Long merchantId)
public String getId()
public ShoppingContent.Promotions.Get setId(String id)
public ShoppingContent.Promotions.Get set(String parameterName, Object value)
set
in class ShoppingContentRequest<Promotion>
Copyright © 2011–2024 Google. All rights reserved.