public class ShoppingContent.Promotions.Get extends ShoppingContentRequest<Promotion>
com.google.api.client.util.GenericData.FlagsAbstractMap.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, 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(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>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Promotion>IOExceptionpublic ShoppingContent.Promotions.Get set$Xgafv(String $Xgafv)
ShoppingContentRequestset$Xgafv in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setAccessToken(String accessToken)
ShoppingContentRequestsetAccessToken in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setAlt(String alt)
ShoppingContentRequestsetAlt in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setCallback(String callback)
ShoppingContentRequestsetCallback in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setFields(String fields)
ShoppingContentRequestsetFields in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setKey(String key)
ShoppingContentRequestsetKey in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setOauthToken(String oauthToken)
ShoppingContentRequestsetOauthToken in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setPrettyPrint(Boolean prettyPrint)
ShoppingContentRequestsetPrettyPrint in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setQuotaUser(String quotaUser)
ShoppingContentRequestsetQuotaUser in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setUploadType(String uploadType)
ShoppingContentRequestsetUploadType in class ShoppingContentRequest<Promotion>public ShoppingContent.Promotions.Get setUploadProtocol(String uploadProtocol)
ShoppingContentRequestsetUploadProtocol 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.