All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.content.ShoppingContent Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.content;

/**
 * Service definition for ShoppingContent (v2).
 *
 * 

* Manage your product listings and accounts for Google Shopping *

* *

* For more information about this service, see the * API Documentation *

* *

* This service uses {@link ShoppingContentRequestInitializer} to initialize global parameters via its * {@link Builder}. *

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class ShoppingContent extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { // Note: Leave this static initializer at the top of the file. static { com.google.api.client.util.Preconditions.checkState( com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1)), "You are currently running with version %s of google-api-client. " + "You need at least version 1.31.1 of google-api-client to run version " + "1.31.0 of the Content API for Shopping library.", com.google.api.client.googleapis.GoogleUtils.VERSION); } /** * The default encoded root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_ROOT_URL = "https://shoppingcontent.googleapis.com/"; /** * The default encoded mTLS root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.31 */ public static final String DEFAULT_MTLS_ROOT_URL = "https://shoppingcontent.mtls.googleapis.com/"; /** * The default encoded service path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_SERVICE_PATH = ""; /** * The default encoded batch path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.23 */ public static final String DEFAULT_BATCH_PATH = "batch"; /** * The default encoded base URL of the service. This is determined when the library is generated * and normally should not be changed. */ public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; /** * Constructor. * *

* Use {@link Builder} if you need to specify any of the optional parameters. *

* * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public ShoppingContent(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { this(new Builder(transport, jsonFactory, httpRequestInitializer)); } /** * @param builder builder */ ShoppingContent(Builder builder) { super(builder); } @Override protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { super.initialize(httpClientRequest); } /** * An accessor for creating requests from the Accounts collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Accounts.List request = content.accounts().list(parameters ...)}
   * 
* * @return the resource collection */ public Accounts accounts() { return new Accounts(); } /** * The "accounts" collection of methods. */ public class Accounts { /** * Returns information about the authenticated user. * * Create a request for the method "accounts.authinfo". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Authinfo#execute()} method to invoke the remote operation. * * @return the request */ public Authinfo authinfo() throws java.io.IOException { Authinfo result = new Authinfo(); initialize(result); return result; } public class Authinfo extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/accounts/authinfo"; /** * Returns information about the authenticated user. * * Create a request for the method "accounts.authinfo". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Authinfo#execute()} method to invoke the remote operation.

* {@link * Authinfo#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @since 1.13 */ protected Authinfo() { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountsAuthInfoResponse.class); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Authinfo set$Xgafv(java.lang.String $Xgafv) { return (Authinfo) super.set$Xgafv($Xgafv); } @Override public Authinfo setAccessToken(java.lang.String accessToken) { return (Authinfo) super.setAccessToken(accessToken); } @Override public Authinfo setAlt(java.lang.String alt) { return (Authinfo) super.setAlt(alt); } @Override public Authinfo setCallback(java.lang.String callback) { return (Authinfo) super.setCallback(callback); } @Override public Authinfo setFields(java.lang.String fields) { return (Authinfo) super.setFields(fields); } @Override public Authinfo setKey(java.lang.String key) { return (Authinfo) super.setKey(key); } @Override public Authinfo setOauthToken(java.lang.String oauthToken) { return (Authinfo) super.setOauthToken(oauthToken); } @Override public Authinfo setPrettyPrint(java.lang.Boolean prettyPrint) { return (Authinfo) super.setPrettyPrint(prettyPrint); } @Override public Authinfo setQuotaUser(java.lang.String quotaUser) { return (Authinfo) super.setQuotaUser(quotaUser); } @Override public Authinfo setUploadType(java.lang.String uploadType) { return (Authinfo) super.setUploadType(uploadType); } @Override public Authinfo setUploadProtocol(java.lang.String uploadProtocol) { return (Authinfo) super.setUploadProtocol(uploadProtocol); } @Override public Authinfo set(String parameterName, Object value) { return (Authinfo) super.set(parameterName, value); } } /** * Claims the website of a Merchant Center sub-account. * * Create a request for the method "accounts.claimwebsite". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Claimwebsite#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account whose website is claimed. * @return the request */ public Claimwebsite claimwebsite(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Claimwebsite result = new Claimwebsite(merchantId, accountId); initialize(result); return result; } public class Claimwebsite extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts/{accountId}/claimwebsite"; /** * Claims the website of a Merchant Center sub-account. * * Create a request for the method "accounts.claimwebsite". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Claimwebsite#execute()} method to invoke the remote operation.

* {@link * Claimwebsite#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account whose website is claimed. * @since 1.13 */ protected Claimwebsite(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.AccountsClaimWebsiteResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Claimwebsite set$Xgafv(java.lang.String $Xgafv) { return (Claimwebsite) super.set$Xgafv($Xgafv); } @Override public Claimwebsite setAccessToken(java.lang.String accessToken) { return (Claimwebsite) super.setAccessToken(accessToken); } @Override public Claimwebsite setAlt(java.lang.String alt) { return (Claimwebsite) super.setAlt(alt); } @Override public Claimwebsite setCallback(java.lang.String callback) { return (Claimwebsite) super.setCallback(callback); } @Override public Claimwebsite setFields(java.lang.String fields) { return (Claimwebsite) super.setFields(fields); } @Override public Claimwebsite setKey(java.lang.String key) { return (Claimwebsite) super.setKey(key); } @Override public Claimwebsite setOauthToken(java.lang.String oauthToken) { return (Claimwebsite) super.setOauthToken(oauthToken); } @Override public Claimwebsite setPrettyPrint(java.lang.Boolean prettyPrint) { return (Claimwebsite) super.setPrettyPrint(prettyPrint); } @Override public Claimwebsite setQuotaUser(java.lang.String quotaUser) { return (Claimwebsite) super.setQuotaUser(quotaUser); } @Override public Claimwebsite setUploadType(java.lang.String uploadType) { return (Claimwebsite) super.setUploadType(uploadType); } @Override public Claimwebsite setUploadProtocol(java.lang.String uploadProtocol) { return (Claimwebsite) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Claimwebsite setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account whose website is claimed. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account whose website is claimed. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account whose website is claimed. */ public Claimwebsite setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Only available to selected merchants. When set to `True`, this flag removes any existing * claim on the requested website by another account and replaces it with a claim from this * account. */ @com.google.api.client.util.Key private java.lang.Boolean overwrite; /** Only available to selected merchants. When set to `True`, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account. */ public java.lang.Boolean getOverwrite() { return overwrite; } /** * Only available to selected merchants. When set to `True`, this flag removes any existing * claim on the requested website by another account and replaces it with a claim from this * account. */ public Claimwebsite setOverwrite(java.lang.Boolean overwrite) { this.overwrite = overwrite; return this; } @Override public Claimwebsite set(String parameterName, Object value) { return (Claimwebsite) super.set(parameterName, value); } } /** * Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single * request. * * Create a request for the method "accounts.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.AccountsCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.AccountsCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/accounts/batch"; /** * Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single * request. * * Create a request for the method "accounts.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.AccountsCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.AccountsCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccountsCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Deletes a Merchant Center sub-account. * * Create a request for the method "accounts.delete". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account, and accountId must be the ID of * a sub-account of this account. * @param accountId The ID of the account. * @return the request */ public Delete delete(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Delete result = new Delete(merchantId, accountId); initialize(result); return result; } public class Delete extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts/{accountId}"; /** * Deletes a Merchant Center sub-account. * * Create a request for the method "accounts.delete". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account, and accountId must be the ID of * a sub-account of this account. * @param accountId The ID of the account. * @since 1.13 */ protected Delete(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. This must be a multi-client account, and accountId must be * the ID of a sub-account of this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. This must be a multi-client account, and accountId must be * the ID of a sub-account of this account. */ public Delete setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account. */ public Delete setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Delete setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } /** Flag to delete sub-accounts with products. The default value is false. */ @com.google.api.client.util.Key private java.lang.Boolean force; /** Flag to delete sub-accounts with products. The default value is false. [default: false] */ public java.lang.Boolean getForce() { return force; } /** Flag to delete sub-accounts with products. The default value is false. */ public Delete setForce(java.lang.Boolean force) { this.force = force; return this; } /** * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. * *

* Boolean properties can have four possible values: * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} * or {@link Boolean#FALSE}. *

* *

* This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. *

* *

* Flag to delete sub-accounts with products. The default value is false. *

*/ public boolean isForce() { if (force == null || force == com.google.api.client.util.Data.NULL_BOOLEAN) { return false; } return force; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves a Merchant Center account. * * Create a request for the method "accounts.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Get result = new Get(merchantId, accountId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts/{accountId}"; /** * Retrieves a Merchant Center account. * * Create a request for the method "accounts.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Account.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account. */ public Get setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Creates a Merchant Center sub-account. * * Create a request for the method "accounts.insert". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @param content the {@link com.google.api.services.content.model.Account} * @return the request */ public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Account content) throws java.io.IOException { Insert result = new Insert(merchantId, content); initialize(result); return result; } public class Insert extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts"; /** * Creates a Merchant Center sub-account. * * Create a request for the method "accounts.insert". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @param content the {@link com.google.api.services.content.model.Account} * @since 1.13 */ protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Account content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Account.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public Insert set$Xgafv(java.lang.String $Xgafv) { return (Insert) super.set$Xgafv($Xgafv); } @Override public Insert setAccessToken(java.lang.String accessToken) { return (Insert) super.setAccessToken(accessToken); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setCallback(java.lang.String callback) { return (Insert) super.setCallback(callback); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUploadType(java.lang.String uploadType) { return (Insert) super.setUploadType(uploadType); } @Override public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public Insert setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Insert setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Performs an action on a link between two Merchant Center accounts, namely accountId and * linkedAccountId. * * Create a request for the method "accounts.link". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Link#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that should be linked. * @param content the {@link com.google.api.services.content.model.AccountsLinkRequest} * @return the request */ public Link link(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountsLinkRequest content) throws java.io.IOException { Link result = new Link(merchantId, accountId, content); initialize(result); return result; } public class Link extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts/{accountId}/link"; /** * Performs an action on a link between two Merchant Center accounts, namely accountId and * linkedAccountId. * * Create a request for the method "accounts.link". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Link#execute()} method to invoke the remote operation.

{@link * Link#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that should be linked. * @param content the {@link com.google.api.services.content.model.AccountsLinkRequest} * @since 1.13 */ protected Link(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountsLinkRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccountsLinkResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Link set$Xgafv(java.lang.String $Xgafv) { return (Link) super.set$Xgafv($Xgafv); } @Override public Link setAccessToken(java.lang.String accessToken) { return (Link) super.setAccessToken(accessToken); } @Override public Link setAlt(java.lang.String alt) { return (Link) super.setAlt(alt); } @Override public Link setCallback(java.lang.String callback) { return (Link) super.setCallback(callback); } @Override public Link setFields(java.lang.String fields) { return (Link) super.setFields(fields); } @Override public Link setKey(java.lang.String key) { return (Link) super.setKey(key); } @Override public Link setOauthToken(java.lang.String oauthToken) { return (Link) super.setOauthToken(oauthToken); } @Override public Link setPrettyPrint(java.lang.Boolean prettyPrint) { return (Link) super.setPrettyPrint(prettyPrint); } @Override public Link setQuotaUser(java.lang.String quotaUser) { return (Link) super.setQuotaUser(quotaUser); } @Override public Link setUploadType(java.lang.String uploadType) { return (Link) super.setUploadType(uploadType); } @Override public Link setUploadProtocol(java.lang.String uploadProtocol) { return (Link) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Link setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account that should be linked. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account that should be linked. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account that should be linked. */ public Link setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Link set(String parameterName, Object value) { return (Link) super.set(parameterName, value); } } /** * Lists the sub-accounts in your Merchant Center account. * * Create a request for the method "accounts.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts"; /** * Lists the sub-accounts in your Merchant Center account. * * Create a request for the method "accounts.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of accounts to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of accounts to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of accounts to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates a Merchant Center account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "accounts.update". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @param content the {@link com.google.api.services.content.model.Account} * @return the request */ public Update update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) throws java.io.IOException { Update result = new Update(merchantId, accountId, content); initialize(result); return result; } public class Update extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounts/{accountId}"; /** * Updates a Merchant Center account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "accounts.update". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @param content the {@link com.google.api.services.content.model.Account} * @since 1.13 */ protected Update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.Account content) { super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.Account.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Update setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account. */ public Update setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Update setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Accountstatuses collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Accountstatuses.List request = content.accountstatuses().list(parameters ...)}
   * 
* * @return the resource collection */ public Accountstatuses accountstatuses() { return new Accountstatuses(); } /** * The "accountstatuses" collection of methods. */ public class Accountstatuses { /** * Retrieves multiple Merchant Center account statuses in a single request. * * Create a request for the method "accountstatuses.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.AccountstatusesCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.AccountstatusesCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/accountstatuses/batch"; /** * Retrieves multiple Merchant Center account statuses in a single request. * * Create a request for the method "accountstatuses.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.AccountstatusesCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.AccountstatusesCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccountstatusesCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi- * client accounts. * * Create a request for the method "accountstatuses.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Get result = new Get(merchantId, accountId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accountstatuses/{accountId}"; /** * Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi- * client accounts. * * Create a request for the method "accountstatuses.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountStatus.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account. */ public Get setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ @com.google.api.client.util.Key private java.util.List destinations; /** If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. */ public java.util.List getDestinations() { return destinations; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ public Get setDestinations(java.util.List destinations) { this.destinations = destinations; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the statuses of the sub-accounts in your Merchant Center account. * * Create a request for the method "accountstatuses.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accountstatuses"; /** * Lists the statuses of the sub-accounts in your Merchant Center account. * * Create a request for the method "accountstatuses.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountstatusesListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ @com.google.api.client.util.Key private java.util.List destinations; /** If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. */ public java.util.List getDestinations() { return destinations; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ public List setDestinations(java.util.List destinations) { this.destinations = destinations; return this; } /** The maximum number of account statuses to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of account statuses to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of account statuses to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Accounttax collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Accounttax.List request = content.accounttax().list(parameters ...)}
   * 
* * @return the resource collection */ public Accounttax accounttax() { return new Accounttax(); } /** * The "accounttax" collection of methods. */ public class Accounttax { /** * Retrieves and updates tax settings of multiple accounts in a single request. * * Create a request for the method "accounttax.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.AccounttaxCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.AccounttaxCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/accounttax/batch"; /** * Retrieves and updates tax settings of multiple accounts in a single request. * * Create a request for the method "accounttax.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.AccounttaxCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.AccounttaxCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.AccounttaxCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves the tax settings of the account. * * Create a request for the method "accounttax.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update account tax settings. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Get result = new Get(merchantId, accountId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounttax/{accountId}"; /** * Retrieves the tax settings of the account. * * Create a request for the method "accounttax.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update account tax settings. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccountTax.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get/update account tax settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get/update account tax settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get/update account tax settings. */ public Get setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the tax settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "accounttax.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounttax"; /** * Lists the tax settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "accounttax.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.AccounttaxListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of tax settings to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of tax settings to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of tax settings to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the tax settings of the account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "accounttax.update". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update account tax settings. * @param content the {@link com.google.api.services.content.model.AccountTax} * @return the request */ public Update update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountTax content) throws java.io.IOException { Update result = new Update(merchantId, accountId, content); initialize(result); return result; } public class Update extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/accounttax/{accountId}"; /** * Updates the tax settings of the account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "accounttax.update". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update account tax settings. * @param content the {@link com.google.api.services.content.model.AccountTax} * @since 1.13 */ protected Update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.AccountTax content) { super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.AccountTax.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Update setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get/update account tax settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get/update account tax settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get/update account tax settings. */ public Update setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Update setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Datafeeds collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Datafeeds.List request = content.datafeeds().list(parameters ...)}
   * 
* * @return the resource collection */ public Datafeeds datafeeds() { return new Datafeeds(); } /** * The "datafeeds" collection of methods. */ public class Datafeeds { /** * Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. * * Create a request for the method "datafeeds.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.DatafeedsCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.DatafeedsCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/datafeeds/batch"; /** * Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. * * Create a request for the method "datafeeds.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.DatafeedsCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.DatafeedsCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedsCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Deletes a datafeed configuration from your Merchant Center account. * * Create a request for the method "datafeeds.delete". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @return the request */ public Delete delete(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException { Delete result = new Delete(merchantId, datafeedId); initialize(result); return result; } public class Delete extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds/{datafeedId}"; /** * Deletes a datafeed configuration from your Merchant Center account. * * Create a request for the method "datafeeds.delete". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @since 1.13 */ protected Delete(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) { super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Delete setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the datafeed. */ @com.google.api.client.util.Key private java.math.BigInteger datafeedId; /** The ID of the datafeed. */ public java.math.BigInteger getDatafeedId() { return datafeedId; } /** The ID of the datafeed. */ public Delete setDatafeedId(java.math.BigInteger datafeedId) { this.datafeedId = datafeedId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Delete setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method * more than once per day, we recommend you use the Products service to update your product data. * * Create a request for the method "datafeeds.fetchnow". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Fetchnow#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed to be fetched. * @return the request */ public Fetchnow fetchnow(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException { Fetchnow result = new Fetchnow(merchantId, datafeedId); initialize(result); return result; } public class Fetchnow extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow"; /** * Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this * method more than once per day, we recommend you use the Products service to update your product * data. * * Create a request for the method "datafeeds.fetchnow". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Fetchnow#execute()} method to invoke the remote operation.

* {@link * Fetchnow#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed to be fetched. * @since 1.13 */ protected Fetchnow(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.DatafeedsFetchNowResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified."); } @Override public Fetchnow set$Xgafv(java.lang.String $Xgafv) { return (Fetchnow) super.set$Xgafv($Xgafv); } @Override public Fetchnow setAccessToken(java.lang.String accessToken) { return (Fetchnow) super.setAccessToken(accessToken); } @Override public Fetchnow setAlt(java.lang.String alt) { return (Fetchnow) super.setAlt(alt); } @Override public Fetchnow setCallback(java.lang.String callback) { return (Fetchnow) super.setCallback(callback); } @Override public Fetchnow setFields(java.lang.String fields) { return (Fetchnow) super.setFields(fields); } @Override public Fetchnow setKey(java.lang.String key) { return (Fetchnow) super.setKey(key); } @Override public Fetchnow setOauthToken(java.lang.String oauthToken) { return (Fetchnow) super.setOauthToken(oauthToken); } @Override public Fetchnow setPrettyPrint(java.lang.Boolean prettyPrint) { return (Fetchnow) super.setPrettyPrint(prettyPrint); } @Override public Fetchnow setQuotaUser(java.lang.String quotaUser) { return (Fetchnow) super.setQuotaUser(quotaUser); } @Override public Fetchnow setUploadType(java.lang.String uploadType) { return (Fetchnow) super.setUploadType(uploadType); } @Override public Fetchnow setUploadProtocol(java.lang.String uploadProtocol) { return (Fetchnow) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Fetchnow setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the datafeed to be fetched. */ @com.google.api.client.util.Key private java.math.BigInteger datafeedId; /** The ID of the datafeed to be fetched. */ public java.math.BigInteger getDatafeedId() { return datafeedId; } /** The ID of the datafeed to be fetched. */ public Fetchnow setDatafeedId(java.math.BigInteger datafeedId) { this.datafeedId = datafeedId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Fetchnow setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Fetchnow set(String parameterName, Object value) { return (Fetchnow) super.set(parameterName, value); } } /** * Retrieves a datafeed configuration from your Merchant Center account. * * Create a request for the method "datafeeds.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException { Get result = new Get(merchantId, datafeedId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds/{datafeedId}"; /** * Retrieves a datafeed configuration from your Merchant Center account. * * Create a request for the method "datafeeds.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Datafeed.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the datafeed. */ @com.google.api.client.util.Key private java.math.BigInteger datafeedId; /** The ID of the datafeed. */ public java.math.BigInteger getDatafeedId() { return datafeedId; } /** The ID of the datafeed. */ public Get setDatafeedId(java.math.BigInteger datafeedId) { this.datafeedId = datafeedId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Registers a datafeed configuration with your Merchant Center account. * * Create a request for the method "datafeeds.insert". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.Datafeed} * @return the request */ public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Datafeed content) throws java.io.IOException { Insert result = new Insert(merchantId, content); initialize(result); return result; } public class Insert extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds"; /** * Registers a datafeed configuration with your Merchant Center account. * * Create a request for the method "datafeeds.insert". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.Datafeed} * @since 1.13 */ protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Datafeed content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Datafeed.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public Insert set$Xgafv(java.lang.String $Xgafv) { return (Insert) super.set$Xgafv($Xgafv); } @Override public Insert setAccessToken(java.lang.String accessToken) { return (Insert) super.setAccessToken(accessToken); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setCallback(java.lang.String callback) { return (Insert) super.setCallback(callback); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUploadType(java.lang.String uploadType) { return (Insert) super.setUploadType(uploadType); } @Override public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Insert setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Insert setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Lists the configurations for datafeeds in your Merchant Center account. * * Create a request for the method "datafeeds.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds"; /** * Lists the configurations for datafeeds in your Merchant Center account. * * Create a request for the method "datafeeds.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeeds. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeeds. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeeds. This account cannot be a multi-client * account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of products to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of products to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of products to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates a datafeed configuration of your Merchant Center account. Any fields that are not * provided are deleted from the resource. * * Create a request for the method "datafeeds.update". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @param content the {@link com.google.api.services.content.model.Datafeed} * @return the request */ public Update update(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) throws java.io.IOException { Update result = new Update(merchantId, datafeedId, content); initialize(result); return result; } public class Update extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeeds/{datafeedId}"; /** * Updates a datafeed configuration of your Merchant Center account. Any fields that are not * provided are deleted from the resource. * * Create a request for the method "datafeeds.update". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @param content the {@link com.google.api.services.content.model.Datafeed} * @since 1.13 */ protected Update(java.math.BigInteger merchantId, java.math.BigInteger datafeedId, com.google.api.services.content.model.Datafeed content) { super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.Datafeed.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified."); } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Update setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the datafeed. */ @com.google.api.client.util.Key private java.math.BigInteger datafeedId; /** The ID of the datafeed. */ public java.math.BigInteger getDatafeedId() { return datafeedId; } /** The ID of the datafeed. */ public Update setDatafeedId(java.math.BigInteger datafeedId) { this.datafeedId = datafeedId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Update setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Datafeedstatuses collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Datafeedstatuses.List request = content.datafeedstatuses().list(parameters ...)}
   * 
* * @return the resource collection */ public Datafeedstatuses datafeedstatuses() { return new Datafeedstatuses(); } /** * The "datafeedstatuses" collection of methods. */ public class Datafeedstatuses { /** * Gets multiple Merchant Center datafeed statuses in a single request. * * Create a request for the method "datafeedstatuses.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/datafeedstatuses/batch"; /** * Gets multiple Merchant Center datafeed statuses in a single request. * * Create a request for the method "datafeedstatuses.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.DatafeedstatusesCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.DatafeedstatusesCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves the status of a datafeed from your Merchant Center account. * * Create a request for the method "datafeedstatuses.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) throws java.io.IOException { Get result = new Get(merchantId, datafeedId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeedstatuses/{datafeedId}"; /** * Retrieves the status of a datafeed from your Merchant Center account. * * Create a request for the method "datafeedstatuses.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param datafeedId The ID of the datafeed. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger datafeedId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedStatus.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.datafeedId = com.google.api.client.util.Preconditions.checkNotNull(datafeedId, "Required parameter datafeedId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeed. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeed. This account cannot be a multi-client * account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the datafeed. */ @com.google.api.client.util.Key private java.math.BigInteger datafeedId; /** The ID of the datafeed. */ public java.math.BigInteger getDatafeedId() { return datafeedId; } /** The ID of the datafeed. */ public Get setDatafeedId(java.math.BigInteger datafeedId) { this.datafeedId = datafeedId; return this; } /** * The country for which to get the datafeed status. If this parameter is provided then * language must also be provided. Note that this parameter is required for feeds targeting * multiple countries and languages, since a feed may have a different status for each target. */ @com.google.api.client.util.Key private java.lang.String country; /** The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. */ public java.lang.String getCountry() { return country; } /** * The country for which to get the datafeed status. If this parameter is provided then * language must also be provided. Note that this parameter is required for feeds targeting * multiple countries and languages, since a feed may have a different status for each target. */ public Get setCountry(java.lang.String country) { this.country = country; return this; } /** * The language for which to get the datafeed status. If this parameter is provided then * country must also be provided. Note that this parameter is required for feeds targeting * multiple countries and languages, since a feed may have a different status for each target. */ @com.google.api.client.util.Key private java.lang.String language; /** The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. */ public java.lang.String getLanguage() { return language; } /** * The language for which to get the datafeed status. If this parameter is provided then * country must also be provided. Note that this parameter is required for feeds targeting * multiple countries and languages, since a feed may have a different status for each target. */ public Get setLanguage(java.lang.String language) { this.language = language; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the statuses of the datafeeds in your Merchant Center account. * * Create a request for the method "datafeedstatuses.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/datafeedstatuses"; /** * Lists the statuses of the datafeeds in your Merchant Center account. * * Create a request for the method "datafeedstatuses.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.DatafeedstatusesListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that manages the datafeeds. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the datafeeds. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that manages the datafeeds. This account cannot be a multi-client * account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of products to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of products to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of products to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Inventory collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Inventory.List request = content.inventory().list(parameters ...)}
   * 
* * @return the resource collection */ public Inventory inventory() { return new Inventory(); } /** * The "inventory" collection of methods. */ public class Inventory { /** * Updates price and availability for multiple products or stores in a single request. This * operation does not update the expiration date of the products. * * Create a request for the method "inventory.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.InventoryCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.InventoryCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/inventory/batch"; /** * Updates price and availability for multiple products or stores in a single request. This * operation does not update the expiration date of the products. * * Create a request for the method "inventory.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.InventoryCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.InventoryCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.InventoryCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Updates price and availability of a product in your Merchant Center account. * * Create a request for the method "inventory.set". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Set#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param storeCode The code of the store for which to update price and availability. Use `online` to update price and * availability of an online product. * @param productId The REST ID of the product for which to update price and availability. * @param content the {@link com.google.api.services.content.model.InventorySetRequest} * @return the request */ public Set set(java.math.BigInteger merchantId, java.lang.String storeCode, java.lang.String productId, com.google.api.services.content.model.InventorySetRequest content) throws java.io.IOException { Set result = new Set(merchantId, storeCode, productId, content); initialize(result); return result; } public class Set extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/inventory/{storeCode}/products/{productId}"; /** * Updates price and availability of a product in your Merchant Center account. * * Create a request for the method "inventory.set". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Set#execute()} method to invoke the remote operation.

{@link * Set#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param storeCode The code of the store for which to update price and availability. Use `online` to update price and * availability of an online product. * @param productId The REST ID of the product for which to update price and availability. * @param content the {@link com.google.api.services.content.model.InventorySetRequest} * @since 1.13 */ protected Set(java.math.BigInteger merchantId, java.lang.String storeCode, java.lang.String productId, com.google.api.services.content.model.InventorySetRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.InventorySetResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.storeCode = com.google.api.client.util.Preconditions.checkNotNull(storeCode, "Required parameter storeCode must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public Set set$Xgafv(java.lang.String $Xgafv) { return (Set) super.set$Xgafv($Xgafv); } @Override public Set setAccessToken(java.lang.String accessToken) { return (Set) super.setAccessToken(accessToken); } @Override public Set setAlt(java.lang.String alt) { return (Set) super.setAlt(alt); } @Override public Set setCallback(java.lang.String callback) { return (Set) super.setCallback(callback); } @Override public Set setFields(java.lang.String fields) { return (Set) super.setFields(fields); } @Override public Set setKey(java.lang.String key) { return (Set) super.setKey(key); } @Override public Set setOauthToken(java.lang.String oauthToken) { return (Set) super.setOauthToken(oauthToken); } @Override public Set setPrettyPrint(java.lang.Boolean prettyPrint) { return (Set) super.setPrettyPrint(prettyPrint); } @Override public Set setQuotaUser(java.lang.String quotaUser) { return (Set) super.setQuotaUser(quotaUser); } @Override public Set setUploadType(java.lang.String uploadType) { return (Set) super.setUploadType(uploadType); } @Override public Set setUploadProtocol(java.lang.String uploadProtocol) { return (Set) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the product. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ public Set setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * The code of the store for which to update price and availability. Use `online` to update * price and availability of an online product. */ @com.google.api.client.util.Key private java.lang.String storeCode; /** The code of the store for which to update price and availability. Use `online` to update price and availability of an online product. */ public java.lang.String getStoreCode() { return storeCode; } /** * The code of the store for which to update price and availability. Use `online` to update * price and availability of an online product. */ public Set setStoreCode(java.lang.String storeCode) { this.storeCode = storeCode; return this; } /** The REST ID of the product for which to update price and availability. */ @com.google.api.client.util.Key private java.lang.String productId; /** The REST ID of the product for which to update price and availability. */ public java.lang.String getProductId() { return productId; } /** The REST ID of the product for which to update price and availability. */ public Set setProductId(java.lang.String productId) { this.productId = productId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Set setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Set set(String parameterName, Object value) { return (Set) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Liasettings collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Liasettings.List request = content.liasettings().list(parameters ...)}
   * 
* * @return the resource collection */ public Liasettings liasettings() { return new Liasettings(); } /** * The "liasettings" collection of methods. */ public class Liasettings { /** * Retrieves and/or updates the LIA settings of multiple accounts in a single request. * * Create a request for the method "liasettings.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.LiasettingsCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.LiasettingsCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/liasettings/batch"; /** * Retrieves and/or updates the LIA settings of multiple accounts in a single request. * * Create a request for the method "liasettings.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.LiasettingsCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.LiasettingsCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.LiasettingsCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves the LIA settings of the account. * * Create a request for the method "liasettings.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get or update LIA settings. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Get result = new Get(merchantId, accountId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}"; /** * Retrieves the LIA settings of the account. * * Create a request for the method "liasettings.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get or update LIA settings. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.LiaSettings.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get or update LIA settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get or update LIA settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get or update LIA settings. */ public Get setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves the list of accessible Google My Business accounts. * * Create a request for the method "liasettings.getaccessiblegmbaccounts". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Getaccessiblegmbaccounts#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to retrieve accessible Google My Business accounts. * @return the request */ public Getaccessiblegmbaccounts getaccessiblegmbaccounts(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Getaccessiblegmbaccounts result = new Getaccessiblegmbaccounts(merchantId, accountId); initialize(result); return result; } public class Getaccessiblegmbaccounts extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts"; /** * Retrieves the list of accessible Google My Business accounts. * * Create a request for the method "liasettings.getaccessiblegmbaccounts". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Getaccessiblegmbaccounts#execute()} method to invoke the remote * operation.

{@link Getaccessiblegmbaccounts#initialize(com.google.api.client.googleapis.serv * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to retrieve accessible Google My Business accounts. * @since 1.13 */ protected Getaccessiblegmbaccounts(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.LiasettingsGetAccessibleGmbAccountsResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Getaccessiblegmbaccounts set$Xgafv(java.lang.String $Xgafv) { return (Getaccessiblegmbaccounts) super.set$Xgafv($Xgafv); } @Override public Getaccessiblegmbaccounts setAccessToken(java.lang.String accessToken) { return (Getaccessiblegmbaccounts) super.setAccessToken(accessToken); } @Override public Getaccessiblegmbaccounts setAlt(java.lang.String alt) { return (Getaccessiblegmbaccounts) super.setAlt(alt); } @Override public Getaccessiblegmbaccounts setCallback(java.lang.String callback) { return (Getaccessiblegmbaccounts) super.setCallback(callback); } @Override public Getaccessiblegmbaccounts setFields(java.lang.String fields) { return (Getaccessiblegmbaccounts) super.setFields(fields); } @Override public Getaccessiblegmbaccounts setKey(java.lang.String key) { return (Getaccessiblegmbaccounts) super.setKey(key); } @Override public Getaccessiblegmbaccounts setOauthToken(java.lang.String oauthToken) { return (Getaccessiblegmbaccounts) super.setOauthToken(oauthToken); } @Override public Getaccessiblegmbaccounts setPrettyPrint(java.lang.Boolean prettyPrint) { return (Getaccessiblegmbaccounts) super.setPrettyPrint(prettyPrint); } @Override public Getaccessiblegmbaccounts setQuotaUser(java.lang.String quotaUser) { return (Getaccessiblegmbaccounts) super.setQuotaUser(quotaUser); } @Override public Getaccessiblegmbaccounts setUploadType(java.lang.String uploadType) { return (Getaccessiblegmbaccounts) super.setUploadType(uploadType); } @Override public Getaccessiblegmbaccounts setUploadProtocol(java.lang.String uploadProtocol) { return (Getaccessiblegmbaccounts) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Getaccessiblegmbaccounts setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to retrieve accessible Google My Business accounts. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to retrieve accessible Google My Business accounts. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to retrieve accessible Google My Business accounts. */ public Getaccessiblegmbaccounts setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Getaccessiblegmbaccounts set(String parameterName, Object value) { return (Getaccessiblegmbaccounts) super.set(parameterName, value); } } /** * Lists the LIA settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "liasettings.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings"; /** * Lists the LIA settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "liasettings.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.LiasettingsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of LIA settings to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of LIA settings to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of LIA settings to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Retrieves the list of POS data providers that have active settings for the all eiligible * countries. * * Create a request for the method "liasettings.listposdataproviders". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Listposdataproviders#execute()} method to invoke the remote * operation. * * @return the request */ public Listposdataproviders listposdataproviders() throws java.io.IOException { Listposdataproviders result = new Listposdataproviders(); initialize(result); return result; } public class Listposdataproviders extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/liasettings/posdataproviders"; /** * Retrieves the list of POS data providers that have active settings for the all eiligible * countries. * * Create a request for the method "liasettings.listposdataproviders". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Listposdataproviders#execute()} method to invoke the remote * operation.

{@link Listposdataproviders#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @since 1.13 */ protected Listposdataproviders() { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.LiasettingsListPosDataProvidersResponse.class); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Listposdataproviders set$Xgafv(java.lang.String $Xgafv) { return (Listposdataproviders) super.set$Xgafv($Xgafv); } @Override public Listposdataproviders setAccessToken(java.lang.String accessToken) { return (Listposdataproviders) super.setAccessToken(accessToken); } @Override public Listposdataproviders setAlt(java.lang.String alt) { return (Listposdataproviders) super.setAlt(alt); } @Override public Listposdataproviders setCallback(java.lang.String callback) { return (Listposdataproviders) super.setCallback(callback); } @Override public Listposdataproviders setFields(java.lang.String fields) { return (Listposdataproviders) super.setFields(fields); } @Override public Listposdataproviders setKey(java.lang.String key) { return (Listposdataproviders) super.setKey(key); } @Override public Listposdataproviders setOauthToken(java.lang.String oauthToken) { return (Listposdataproviders) super.setOauthToken(oauthToken); } @Override public Listposdataproviders setPrettyPrint(java.lang.Boolean prettyPrint) { return (Listposdataproviders) super.setPrettyPrint(prettyPrint); } @Override public Listposdataproviders setQuotaUser(java.lang.String quotaUser) { return (Listposdataproviders) super.setQuotaUser(quotaUser); } @Override public Listposdataproviders setUploadType(java.lang.String uploadType) { return (Listposdataproviders) super.setUploadType(uploadType); } @Override public Listposdataproviders setUploadProtocol(java.lang.String uploadProtocol) { return (Listposdataproviders) super.setUploadProtocol(uploadProtocol); } @Override public Listposdataproviders set(String parameterName, Object value) { return (Listposdataproviders) super.set(parameterName, value); } } /** * Requests access to a specified Google My Business account. * * Create a request for the method "liasettings.requestgmbaccess". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Requestgmbaccess#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which GMB access is requested. * @param gmbEmail The email of the Google My Business account. * @return the request */ public Requestgmbaccess requestgmbaccess(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String gmbEmail) throws java.io.IOException { Requestgmbaccess result = new Requestgmbaccess(merchantId, accountId, gmbEmail); initialize(result); return result; } public class Requestgmbaccess extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess"; /** * Requests access to a specified Google My Business account. * * Create a request for the method "liasettings.requestgmbaccess". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Requestgmbaccess#execute()} method to invoke the remote operation. *

{@link Requestgmbaccess#initialize(com.google.api.client.googleapis.services.AbstractGoogle * ClientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which GMB access is requested. * @param gmbEmail The email of the Google My Business account. * @since 1.13 */ protected Requestgmbaccess(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String gmbEmail) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.LiasettingsRequestGmbAccessResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); this.gmbEmail = com.google.api.client.util.Preconditions.checkNotNull(gmbEmail, "Required parameter gmbEmail must be specified."); } @Override public Requestgmbaccess set$Xgafv(java.lang.String $Xgafv) { return (Requestgmbaccess) super.set$Xgafv($Xgafv); } @Override public Requestgmbaccess setAccessToken(java.lang.String accessToken) { return (Requestgmbaccess) super.setAccessToken(accessToken); } @Override public Requestgmbaccess setAlt(java.lang.String alt) { return (Requestgmbaccess) super.setAlt(alt); } @Override public Requestgmbaccess setCallback(java.lang.String callback) { return (Requestgmbaccess) super.setCallback(callback); } @Override public Requestgmbaccess setFields(java.lang.String fields) { return (Requestgmbaccess) super.setFields(fields); } @Override public Requestgmbaccess setKey(java.lang.String key) { return (Requestgmbaccess) super.setKey(key); } @Override public Requestgmbaccess setOauthToken(java.lang.String oauthToken) { return (Requestgmbaccess) super.setOauthToken(oauthToken); } @Override public Requestgmbaccess setPrettyPrint(java.lang.Boolean prettyPrint) { return (Requestgmbaccess) super.setPrettyPrint(prettyPrint); } @Override public Requestgmbaccess setQuotaUser(java.lang.String quotaUser) { return (Requestgmbaccess) super.setQuotaUser(quotaUser); } @Override public Requestgmbaccess setUploadType(java.lang.String uploadType) { return (Requestgmbaccess) super.setUploadType(uploadType); } @Override public Requestgmbaccess setUploadProtocol(java.lang.String uploadProtocol) { return (Requestgmbaccess) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Requestgmbaccess setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which GMB access is requested. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which GMB access is requested. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which GMB access is requested. */ public Requestgmbaccess setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** The email of the Google My Business account. */ @com.google.api.client.util.Key private java.lang.String gmbEmail; /** The email of the Google My Business account. */ public java.lang.String getGmbEmail() { return gmbEmail; } /** The email of the Google My Business account. */ public Requestgmbaccess setGmbEmail(java.lang.String gmbEmail) { this.gmbEmail = gmbEmail; return this; } @Override public Requestgmbaccess set(String parameterName, Object value) { return (Requestgmbaccess) super.set(parameterName, value); } } /** * Requests inventory validation for the specified country. * * Create a request for the method "liasettings.requestinventoryverification". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Requestinventoryverification#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that manages the order. This cannot be a multi-client account. * @param country The country for which inventory validation is requested. * @return the request */ public Requestinventoryverification requestinventoryverification(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country) throws java.io.IOException { Requestinventoryverification result = new Requestinventoryverification(merchantId, accountId, country); initialize(result); return result; } public class Requestinventoryverification extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}"; /** * Requests inventory validation for the specified country. * * Create a request for the method "liasettings.requestinventoryverification". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Requestinventoryverification#execute()} method to invoke the remote * operation.

{@link Requestinventoryverification#initialize(com.google.api.client.googleapis. * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that manages the order. This cannot be a multi-client account. * @param country The country for which inventory validation is requested. * @since 1.13 */ protected Requestinventoryverification(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.LiasettingsRequestInventoryVerificationResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); this.country = com.google.api.client.util.Preconditions.checkNotNull(country, "Required parameter country must be specified."); } @Override public Requestinventoryverification set$Xgafv(java.lang.String $Xgafv) { return (Requestinventoryverification) super.set$Xgafv($Xgafv); } @Override public Requestinventoryverification setAccessToken(java.lang.String accessToken) { return (Requestinventoryverification) super.setAccessToken(accessToken); } @Override public Requestinventoryverification setAlt(java.lang.String alt) { return (Requestinventoryverification) super.setAlt(alt); } @Override public Requestinventoryverification setCallback(java.lang.String callback) { return (Requestinventoryverification) super.setCallback(callback); } @Override public Requestinventoryverification setFields(java.lang.String fields) { return (Requestinventoryverification) super.setFields(fields); } @Override public Requestinventoryverification setKey(java.lang.String key) { return (Requestinventoryverification) super.setKey(key); } @Override public Requestinventoryverification setOauthToken(java.lang.String oauthToken) { return (Requestinventoryverification) super.setOauthToken(oauthToken); } @Override public Requestinventoryverification setPrettyPrint(java.lang.Boolean prettyPrint) { return (Requestinventoryverification) super.setPrettyPrint(prettyPrint); } @Override public Requestinventoryverification setQuotaUser(java.lang.String quotaUser) { return (Requestinventoryverification) super.setQuotaUser(quotaUser); } @Override public Requestinventoryverification setUploadType(java.lang.String uploadType) { return (Requestinventoryverification) super.setUploadType(uploadType); } @Override public Requestinventoryverification setUploadProtocol(java.lang.String uploadProtocol) { return (Requestinventoryverification) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Requestinventoryverification setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Requestinventoryverification setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** The country for which inventory validation is requested. */ @com.google.api.client.util.Key private java.lang.String country; /** The country for which inventory validation is requested. */ public java.lang.String getCountry() { return country; } /** The country for which inventory validation is requested. */ public Requestinventoryverification setCountry(java.lang.String country) { this.country = country; return this; } @Override public Requestinventoryverification set(String parameterName, Object value) { return (Requestinventoryverification) super.set(parameterName, value); } } /** * Sets the inventory verification contract for the specified country. * * Create a request for the method "liasettings.setinventoryverificationcontact". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Setinventoryverificationcontact#execute()} method to invoke the * remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that manages the order. This cannot be a multi-client account. * @param country The country for which inventory verification is requested. * @param language The language for which inventory verification is requested. * @param contactName The name of the inventory verification contact. * @param contactEmail The email of the inventory verification contact. * @return the request */ public Setinventoryverificationcontact setinventoryverificationcontact(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country, java.lang.String language, java.lang.String contactName, java.lang.String contactEmail) throws java.io.IOException { Setinventoryverificationcontact result = new Setinventoryverificationcontact(merchantId, accountId, country, language, contactName, contactEmail); initialize(result); return result; } public class Setinventoryverificationcontact extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact"; /** * Sets the inventory verification contract for the specified country. * * Create a request for the method "liasettings.setinventoryverificationcontact". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Setinventoryverificationcontact#execute()} method to invoke the * remote operation.

{@link Setinventoryverificationcontact#initialize(com.google.api.client.g * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance * immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account that manages the order. This cannot be a multi-client account. * @param country The country for which inventory verification is requested. * @param language The language for which inventory verification is requested. * @param contactName The name of the inventory verification contact. * @param contactEmail The email of the inventory verification contact. * @since 1.13 */ protected Setinventoryverificationcontact(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country, java.lang.String language, java.lang.String contactName, java.lang.String contactEmail) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.LiasettingsSetInventoryVerificationContactResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); this.country = com.google.api.client.util.Preconditions.checkNotNull(country, "Required parameter country must be specified."); this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); this.contactName = com.google.api.client.util.Preconditions.checkNotNull(contactName, "Required parameter contactName must be specified."); this.contactEmail = com.google.api.client.util.Preconditions.checkNotNull(contactEmail, "Required parameter contactEmail must be specified."); } @Override public Setinventoryverificationcontact set$Xgafv(java.lang.String $Xgafv) { return (Setinventoryverificationcontact) super.set$Xgafv($Xgafv); } @Override public Setinventoryverificationcontact setAccessToken(java.lang.String accessToken) { return (Setinventoryverificationcontact) super.setAccessToken(accessToken); } @Override public Setinventoryverificationcontact setAlt(java.lang.String alt) { return (Setinventoryverificationcontact) super.setAlt(alt); } @Override public Setinventoryverificationcontact setCallback(java.lang.String callback) { return (Setinventoryverificationcontact) super.setCallback(callback); } @Override public Setinventoryverificationcontact setFields(java.lang.String fields) { return (Setinventoryverificationcontact) super.setFields(fields); } @Override public Setinventoryverificationcontact setKey(java.lang.String key) { return (Setinventoryverificationcontact) super.setKey(key); } @Override public Setinventoryverificationcontact setOauthToken(java.lang.String oauthToken) { return (Setinventoryverificationcontact) super.setOauthToken(oauthToken); } @Override public Setinventoryverificationcontact setPrettyPrint(java.lang.Boolean prettyPrint) { return (Setinventoryverificationcontact) super.setPrettyPrint(prettyPrint); } @Override public Setinventoryverificationcontact setQuotaUser(java.lang.String quotaUser) { return (Setinventoryverificationcontact) super.setQuotaUser(quotaUser); } @Override public Setinventoryverificationcontact setUploadType(java.lang.String uploadType) { return (Setinventoryverificationcontact) super.setUploadType(uploadType); } @Override public Setinventoryverificationcontact setUploadProtocol(java.lang.String uploadProtocol) { return (Setinventoryverificationcontact) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Setinventoryverificationcontact setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Setinventoryverificationcontact setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** The country for which inventory verification is requested. */ @com.google.api.client.util.Key private java.lang.String country; /** The country for which inventory verification is requested. */ public java.lang.String getCountry() { return country; } /** The country for which inventory verification is requested. */ public Setinventoryverificationcontact setCountry(java.lang.String country) { this.country = country; return this; } /** The language for which inventory verification is requested. */ @com.google.api.client.util.Key private java.lang.String language; /** The language for which inventory verification is requested. */ public java.lang.String getLanguage() { return language; } /** The language for which inventory verification is requested. */ public Setinventoryverificationcontact setLanguage(java.lang.String language) { this.language = language; return this; } /** The name of the inventory verification contact. */ @com.google.api.client.util.Key private java.lang.String contactName; /** The name of the inventory verification contact. */ public java.lang.String getContactName() { return contactName; } /** The name of the inventory verification contact. */ public Setinventoryverificationcontact setContactName(java.lang.String contactName) { this.contactName = contactName; return this; } /** The email of the inventory verification contact. */ @com.google.api.client.util.Key private java.lang.String contactEmail; /** The email of the inventory verification contact. */ public java.lang.String getContactEmail() { return contactEmail; } /** The email of the inventory verification contact. */ public Setinventoryverificationcontact setContactEmail(java.lang.String contactEmail) { this.contactEmail = contactEmail; return this; } @Override public Setinventoryverificationcontact set(String parameterName, Object value) { return (Setinventoryverificationcontact) super.set(parameterName, value); } } /** * Sets the POS data provider for the specified country. * * Create a request for the method "liasettings.setposdataprovider". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Setposdataprovider#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to retrieve accessible Google My Business accounts. * @param country The country for which the POS data provider is selected. * @return the request */ public Setposdataprovider setposdataprovider(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country) throws java.io.IOException { Setposdataprovider result = new Setposdataprovider(merchantId, accountId, country); initialize(result); return result; } public class Setposdataprovider extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider"; /** * Sets the POS data provider for the specified country. * * Create a request for the method "liasettings.setposdataprovider". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Setposdataprovider#execute()} method to invoke the remote * operation.

{@link Setposdataprovider#initialize(com.google.api.client.googleapis.services.A * bstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to retrieve accessible Google My Business accounts. * @param country The country for which the POS data provider is selected. * @since 1.13 */ protected Setposdataprovider(java.math.BigInteger merchantId, java.math.BigInteger accountId, java.lang.String country) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.LiasettingsSetPosDataProviderResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); this.country = com.google.api.client.util.Preconditions.checkNotNull(country, "Required parameter country must be specified."); } @Override public Setposdataprovider set$Xgafv(java.lang.String $Xgafv) { return (Setposdataprovider) super.set$Xgafv($Xgafv); } @Override public Setposdataprovider setAccessToken(java.lang.String accessToken) { return (Setposdataprovider) super.setAccessToken(accessToken); } @Override public Setposdataprovider setAlt(java.lang.String alt) { return (Setposdataprovider) super.setAlt(alt); } @Override public Setposdataprovider setCallback(java.lang.String callback) { return (Setposdataprovider) super.setCallback(callback); } @Override public Setposdataprovider setFields(java.lang.String fields) { return (Setposdataprovider) super.setFields(fields); } @Override public Setposdataprovider setKey(java.lang.String key) { return (Setposdataprovider) super.setKey(key); } @Override public Setposdataprovider setOauthToken(java.lang.String oauthToken) { return (Setposdataprovider) super.setOauthToken(oauthToken); } @Override public Setposdataprovider setPrettyPrint(java.lang.Boolean prettyPrint) { return (Setposdataprovider) super.setPrettyPrint(prettyPrint); } @Override public Setposdataprovider setQuotaUser(java.lang.String quotaUser) { return (Setposdataprovider) super.setQuotaUser(quotaUser); } @Override public Setposdataprovider setUploadType(java.lang.String uploadType) { return (Setposdataprovider) super.setUploadType(uploadType); } @Override public Setposdataprovider setUploadProtocol(java.lang.String uploadProtocol) { return (Setposdataprovider) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Setposdataprovider setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to retrieve accessible Google My Business accounts. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to retrieve accessible Google My Business accounts. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to retrieve accessible Google My Business accounts. */ public Setposdataprovider setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** The country for which the POS data provider is selected. */ @com.google.api.client.util.Key private java.lang.String country; /** The country for which the POS data provider is selected. */ public java.lang.String getCountry() { return country; } /** The country for which the POS data provider is selected. */ public Setposdataprovider setCountry(java.lang.String country) { this.country = country; return this; } /** The ID of POS data provider. */ @com.google.api.client.util.Key private java.math.BigInteger posDataProviderId; /** The ID of POS data provider. */ public java.math.BigInteger getPosDataProviderId() { return posDataProviderId; } /** The ID of POS data provider. */ public Setposdataprovider setPosDataProviderId(java.math.BigInteger posDataProviderId) { this.posDataProviderId = posDataProviderId; return this; } /** The account ID by which this merchant is known to the POS data provider. */ @com.google.api.client.util.Key private java.lang.String posExternalAccountId; /** The account ID by which this merchant is known to the POS data provider. */ public java.lang.String getPosExternalAccountId() { return posExternalAccountId; } /** The account ID by which this merchant is known to the POS data provider. */ public Setposdataprovider setPosExternalAccountId(java.lang.String posExternalAccountId) { this.posExternalAccountId = posExternalAccountId; return this; } @Override public Setposdataprovider set(String parameterName, Object value) { return (Setposdataprovider) super.set(parameterName, value); } } /** * Updates the LIA settings of the account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "liasettings.update". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get or update LIA settings. * @param content the {@link com.google.api.services.content.model.LiaSettings} * @return the request */ public Update update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.LiaSettings content) throws java.io.IOException { Update result = new Update(merchantId, accountId, content); initialize(result); return result; } public class Update extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/liasettings/{accountId}"; /** * Updates the LIA settings of the account. Any fields that are not provided are deleted from the * resource. * * Create a request for the method "liasettings.update". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get or update LIA settings. * @param content the {@link com.google.api.services.content.model.LiaSettings} * @since 1.13 */ protected Update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.LiaSettings content) { super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.LiaSettings.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Update setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get or update LIA settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get or update LIA settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get or update LIA settings. */ public Update setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Update setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Orderinvoices collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Orderinvoices.List request = content.orderinvoices().list(parameters ...)}
   * 
* * @return the resource collection */ public Orderinvoices orderinvoices() { return new Orderinvoices(); } /** * The "orderinvoices" collection of methods. */ public class Orderinvoices { /** * Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice * enabled orders. * * Create a request for the method "orderinvoices.createchargeinvoice". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Createchargeinvoice#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrderinvoicesCreateChargeInvoiceRequest} * @return the request */ public Createchargeinvoice createchargeinvoice(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrderinvoicesCreateChargeInvoiceRequest content) throws java.io.IOException { Createchargeinvoice result = new Createchargeinvoice(merchantId, orderId, content); initialize(result); return result; } public class Createchargeinvoice extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice"; /** * Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice * enabled orders. * * Create a request for the method "orderinvoices.createchargeinvoice". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Createchargeinvoice#execute()} method to invoke the remote * operation.

{@link Createchargeinvoice#initialize(com.google.api.client.googleapis.services. * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrderinvoicesCreateChargeInvoiceRequest} * @since 1.13 */ protected Createchargeinvoice(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrderinvoicesCreateChargeInvoiceRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrderinvoicesCreateChargeInvoiceResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Createchargeinvoice set$Xgafv(java.lang.String $Xgafv) { return (Createchargeinvoice) super.set$Xgafv($Xgafv); } @Override public Createchargeinvoice setAccessToken(java.lang.String accessToken) { return (Createchargeinvoice) super.setAccessToken(accessToken); } @Override public Createchargeinvoice setAlt(java.lang.String alt) { return (Createchargeinvoice) super.setAlt(alt); } @Override public Createchargeinvoice setCallback(java.lang.String callback) { return (Createchargeinvoice) super.setCallback(callback); } @Override public Createchargeinvoice setFields(java.lang.String fields) { return (Createchargeinvoice) super.setFields(fields); } @Override public Createchargeinvoice setKey(java.lang.String key) { return (Createchargeinvoice) super.setKey(key); } @Override public Createchargeinvoice setOauthToken(java.lang.String oauthToken) { return (Createchargeinvoice) super.setOauthToken(oauthToken); } @Override public Createchargeinvoice setPrettyPrint(java.lang.Boolean prettyPrint) { return (Createchargeinvoice) super.setPrettyPrint(prettyPrint); } @Override public Createchargeinvoice setQuotaUser(java.lang.String quotaUser) { return (Createchargeinvoice) super.setQuotaUser(quotaUser); } @Override public Createchargeinvoice setUploadType(java.lang.String uploadType) { return (Createchargeinvoice) super.setUploadType(uploadType); } @Override public Createchargeinvoice setUploadProtocol(java.lang.String uploadProtocol) { return (Createchargeinvoice) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Createchargeinvoice setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Createchargeinvoice setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Createchargeinvoice set(String parameterName, Object value) { return (Createchargeinvoice) super.set(parameterName, value); } } /** * Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice * enabled orders. This can only be used for line items that have previously been charged using * `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the * previous invoice. * * Create a request for the method "orderinvoices.createrefundinvoice". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Createrefundinvoice#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrderinvoicesCreateRefundInvoiceRequest} * @return the request */ public Createrefundinvoice createrefundinvoice(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrderinvoicesCreateRefundInvoiceRequest content) throws java.io.IOException { Createrefundinvoice result = new Createrefundinvoice(merchantId, orderId, content); initialize(result); return result; } public class Createrefundinvoice extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice"; /** * Creates a refund invoice for one or more shipment groups, and triggers a refund for * orderinvoice enabled orders. This can only be used for line items that have previously been * charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with * respect to the previous invoice. * * Create a request for the method "orderinvoices.createrefundinvoice". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Createrefundinvoice#execute()} method to invoke the remote * operation.

{@link Createrefundinvoice#initialize(com.google.api.client.googleapis.services. * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrderinvoicesCreateRefundInvoiceRequest} * @since 1.13 */ protected Createrefundinvoice(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrderinvoicesCreateRefundInvoiceRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrderinvoicesCreateRefundInvoiceResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Createrefundinvoice set$Xgafv(java.lang.String $Xgafv) { return (Createrefundinvoice) super.set$Xgafv($Xgafv); } @Override public Createrefundinvoice setAccessToken(java.lang.String accessToken) { return (Createrefundinvoice) super.setAccessToken(accessToken); } @Override public Createrefundinvoice setAlt(java.lang.String alt) { return (Createrefundinvoice) super.setAlt(alt); } @Override public Createrefundinvoice setCallback(java.lang.String callback) { return (Createrefundinvoice) super.setCallback(callback); } @Override public Createrefundinvoice setFields(java.lang.String fields) { return (Createrefundinvoice) super.setFields(fields); } @Override public Createrefundinvoice setKey(java.lang.String key) { return (Createrefundinvoice) super.setKey(key); } @Override public Createrefundinvoice setOauthToken(java.lang.String oauthToken) { return (Createrefundinvoice) super.setOauthToken(oauthToken); } @Override public Createrefundinvoice setPrettyPrint(java.lang.Boolean prettyPrint) { return (Createrefundinvoice) super.setPrettyPrint(prettyPrint); } @Override public Createrefundinvoice setQuotaUser(java.lang.String quotaUser) { return (Createrefundinvoice) super.setQuotaUser(quotaUser); } @Override public Createrefundinvoice setUploadType(java.lang.String uploadType) { return (Createrefundinvoice) super.setUploadType(uploadType); } @Override public Createrefundinvoice setUploadProtocol(java.lang.String uploadProtocol) { return (Createrefundinvoice) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Createrefundinvoice setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Createrefundinvoice setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Createrefundinvoice set(String parameterName, Object value) { return (Createrefundinvoice) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Orderreports collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Orderreports.List request = content.orderreports().list(parameters ...)}
   * 
* * @return the resource collection */ public Orderreports orderreports() { return new Orderreports(); } /** * The "orderreports" collection of methods. */ public class Orderreports { /** * Retrieves a report for disbursements from your Merchant Center account. * * Create a request for the method "orderreports.listdisbursements". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Listdisbursements#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @return the request */ public Listdisbursements listdisbursements(java.math.BigInteger merchantId) throws java.io.IOException { Listdisbursements result = new Listdisbursements(merchantId); initialize(result); return result; } public class Listdisbursements extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderreports/disbursements"; /** * Retrieves a report for disbursements from your Merchant Center account. * * Create a request for the method "orderreports.listdisbursements". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Listdisbursements#execute()} method to invoke the remote operation. *

{@link Listdisbursements#initialize(com.google.api.client.googleapis.services.AbstractGoogl * eClientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @since 1.13 */ protected Listdisbursements(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrderreportsListDisbursementsResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Listdisbursements set$Xgafv(java.lang.String $Xgafv) { return (Listdisbursements) super.set$Xgafv($Xgafv); } @Override public Listdisbursements setAccessToken(java.lang.String accessToken) { return (Listdisbursements) super.setAccessToken(accessToken); } @Override public Listdisbursements setAlt(java.lang.String alt) { return (Listdisbursements) super.setAlt(alt); } @Override public Listdisbursements setCallback(java.lang.String callback) { return (Listdisbursements) super.setCallback(callback); } @Override public Listdisbursements setFields(java.lang.String fields) { return (Listdisbursements) super.setFields(fields); } @Override public Listdisbursements setKey(java.lang.String key) { return (Listdisbursements) super.setKey(key); } @Override public Listdisbursements setOauthToken(java.lang.String oauthToken) { return (Listdisbursements) super.setOauthToken(oauthToken); } @Override public Listdisbursements setPrettyPrint(java.lang.Boolean prettyPrint) { return (Listdisbursements) super.setPrettyPrint(prettyPrint); } @Override public Listdisbursements setQuotaUser(java.lang.String quotaUser) { return (Listdisbursements) super.setQuotaUser(quotaUser); } @Override public Listdisbursements setUploadType(java.lang.String uploadType) { return (Listdisbursements) super.setUploadType(uploadType); } @Override public Listdisbursements setUploadProtocol(java.lang.String uploadProtocol) { return (Listdisbursements) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Listdisbursements setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The last date which disbursements occurred. In ISO 8601 format. Default: current date. */ @com.google.api.client.util.Key private java.lang.String disbursementEndDate; /** The last date which disbursements occurred. In ISO 8601 format. Default: current date. */ public java.lang.String getDisbursementEndDate() { return disbursementEndDate; } /** The last date which disbursements occurred. In ISO 8601 format. Default: current date. */ public Listdisbursements setDisbursementEndDate(java.lang.String disbursementEndDate) { this.disbursementEndDate = disbursementEndDate; return this; } /** The first date which disbursements occurred. In ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String disbursementStartDate; /** The first date which disbursements occurred. In ISO 8601 format. */ public java.lang.String getDisbursementStartDate() { return disbursementStartDate; } /** The first date which disbursements occurred. In ISO 8601 format. */ public Listdisbursements setDisbursementStartDate(java.lang.String disbursementStartDate) { this.disbursementStartDate = disbursementStartDate; return this; } /** The maximum number of disbursements to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of disbursements to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of disbursements to return in the response, used for paging. */ public Listdisbursements setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public Listdisbursements setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public Listdisbursements set(String parameterName, Object value) { return (Listdisbursements) super.set(parameterName, value); } } /** * Retrieves a list of transactions for a disbursement from your Merchant Center account. * * Create a request for the method "orderreports.listtransactions". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Listtransactions#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param disbursementId The Google-provided ID of the disbursement (found in Wallet). * @return the request */ public Listtransactions listtransactions(java.math.BigInteger merchantId, java.lang.String disbursementId) throws java.io.IOException { Listtransactions result = new Listtransactions(merchantId, disbursementId); initialize(result); return result; } public class Listtransactions extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions"; /** * Retrieves a list of transactions for a disbursement from your Merchant Center account. * * Create a request for the method "orderreports.listtransactions". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Listtransactions#execute()} method to invoke the remote operation. *

{@link Listtransactions#initialize(com.google.api.client.googleapis.services.AbstractGoogle * ClientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param disbursementId The Google-provided ID of the disbursement (found in Wallet). * @since 1.13 */ protected Listtransactions(java.math.BigInteger merchantId, java.lang.String disbursementId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrderreportsListTransactionsResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.disbursementId = com.google.api.client.util.Preconditions.checkNotNull(disbursementId, "Required parameter disbursementId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Listtransactions set$Xgafv(java.lang.String $Xgafv) { return (Listtransactions) super.set$Xgafv($Xgafv); } @Override public Listtransactions setAccessToken(java.lang.String accessToken) { return (Listtransactions) super.setAccessToken(accessToken); } @Override public Listtransactions setAlt(java.lang.String alt) { return (Listtransactions) super.setAlt(alt); } @Override public Listtransactions setCallback(java.lang.String callback) { return (Listtransactions) super.setCallback(callback); } @Override public Listtransactions setFields(java.lang.String fields) { return (Listtransactions) super.setFields(fields); } @Override public Listtransactions setKey(java.lang.String key) { return (Listtransactions) super.setKey(key); } @Override public Listtransactions setOauthToken(java.lang.String oauthToken) { return (Listtransactions) super.setOauthToken(oauthToken); } @Override public Listtransactions setPrettyPrint(java.lang.Boolean prettyPrint) { return (Listtransactions) super.setPrettyPrint(prettyPrint); } @Override public Listtransactions setQuotaUser(java.lang.String quotaUser) { return (Listtransactions) super.setQuotaUser(quotaUser); } @Override public Listtransactions setUploadType(java.lang.String uploadType) { return (Listtransactions) super.setUploadType(uploadType); } @Override public Listtransactions setUploadProtocol(java.lang.String uploadProtocol) { return (Listtransactions) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Listtransactions setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The Google-provided ID of the disbursement (found in Wallet). */ @com.google.api.client.util.Key private java.lang.String disbursementId; /** The Google-provided ID of the disbursement (found in Wallet). */ public java.lang.String getDisbursementId() { return disbursementId; } /** The Google-provided ID of the disbursement (found in Wallet). */ public Listtransactions setDisbursementId(java.lang.String disbursementId) { this.disbursementId = disbursementId; return this; } /** The maximum number of disbursements to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of disbursements to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of disbursements to return in the response, used for paging. */ public Listtransactions setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public Listtransactions setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** * The last date in which transaction occurred. In ISO 8601 format. Default: current date. */ @com.google.api.client.util.Key private java.lang.String transactionEndDate; /** The last date in which transaction occurred. In ISO 8601 format. Default: current date. */ public java.lang.String getTransactionEndDate() { return transactionEndDate; } /** * The last date in which transaction occurred. In ISO 8601 format. Default: current date. */ public Listtransactions setTransactionEndDate(java.lang.String transactionEndDate) { this.transactionEndDate = transactionEndDate; return this; } /** The first date in which transaction occurred. In ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String transactionStartDate; /** The first date in which transaction occurred. In ISO 8601 format. */ public java.lang.String getTransactionStartDate() { return transactionStartDate; } /** The first date in which transaction occurred. In ISO 8601 format. */ public Listtransactions setTransactionStartDate(java.lang.String transactionStartDate) { this.transactionStartDate = transactionStartDate; return this; } @Override public Listtransactions set(String parameterName, Object value) { return (Listtransactions) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Orderreturns collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Orderreturns.List request = content.orderreturns().list(parameters ...)}
   * 
* * @return the resource collection */ public Orderreturns orderreturns() { return new Orderreturns(); } /** * The "orderreturns" collection of methods. */ public class Orderreturns { /** * Retrieves an order return from your Merchant Center account. * * Create a request for the method "orderreturns.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param returnId Merchant order return ID generated by Google. * @return the request */ public Get get(java.math.BigInteger merchantId, java.lang.String returnId) throws java.io.IOException { Get result = new Get(merchantId, returnId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderreturns/{returnId}"; /** * Retrieves an order return from your Merchant Center account. * * Create a request for the method "orderreturns.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param returnId Merchant order return ID generated by Google. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.lang.String returnId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.MerchantOrderReturn.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.returnId = com.google.api.client.util.Preconditions.checkNotNull(returnId, "Required parameter returnId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** Merchant order return ID generated by Google. */ @com.google.api.client.util.Key private java.lang.String returnId; /** Merchant order return ID generated by Google. */ public java.lang.String getReturnId() { return returnId; } /** Merchant order return ID generated by Google. */ public Get setReturnId(java.lang.String returnId) { this.returnId = returnId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists order returns in your Merchant Center account. * * Create a request for the method "orderreturns.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orderreturns"; /** * Lists order returns in your Merchant Center account. * * Create a request for the method "orderreturns.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrderreturnsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** Obtains order returns created before this date (inclusively), in ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String createdEndDate; /** Obtains order returns created before this date (inclusively), in ISO 8601 format. */ public java.lang.String getCreatedEndDate() { return createdEndDate; } /** Obtains order returns created before this date (inclusively), in ISO 8601 format. */ public List setCreatedEndDate(java.lang.String createdEndDate) { this.createdEndDate = createdEndDate; return this; } /** Obtains order returns created after this date (inclusively), in ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String createdStartDate; /** Obtains order returns created after this date (inclusively), in ISO 8601 format. */ public java.lang.String getCreatedStartDate() { return createdStartDate; } /** Obtains order returns created after this date (inclusively), in ISO 8601 format. */ public List setCreatedStartDate(java.lang.String createdStartDate) { this.createdStartDate = createdStartDate; return this; } /** * The maximum number of order returns to return in the response, used for paging. The default * value is 25 returns per page, and the maximum allowed value is 250 returns per page. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. */ public java.lang.Long getMaxResults() { return maxResults; } /** * The maximum number of order returns to return in the response, used for paging. The default * value is 25 returns per page, and the maximum allowed value is 250 returns per page. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** Return the results in the specified order. */ @com.google.api.client.util.Key private java.lang.String orderBy; /** Return the results in the specified order. */ public java.lang.String getOrderBy() { return orderBy; } /** Return the results in the specified order. */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Orders collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Orders.List request = content.orders().list(parameters ...)}
   * 
* * @return the resource collection */ public Orders orders() { return new Orders(); } /** * The "orders" collection of methods. */ public class Orders { /** * Marks an order as acknowledged. * * Create a request for the method "orders.acknowledge". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Acknowledge#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersAcknowledgeRequest} * @return the request */ public Acknowledge acknowledge(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersAcknowledgeRequest content) throws java.io.IOException { Acknowledge result = new Acknowledge(merchantId, orderId, content); initialize(result); return result; } public class Acknowledge extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/acknowledge"; /** * Marks an order as acknowledged. * * Create a request for the method "orders.acknowledge". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Acknowledge#execute()} method to invoke the remote operation.

* {@link * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersAcknowledgeRequest} * @since 1.13 */ protected Acknowledge(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersAcknowledgeRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersAcknowledgeResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Acknowledge set$Xgafv(java.lang.String $Xgafv) { return (Acknowledge) super.set$Xgafv($Xgafv); } @Override public Acknowledge setAccessToken(java.lang.String accessToken) { return (Acknowledge) super.setAccessToken(accessToken); } @Override public Acknowledge setAlt(java.lang.String alt) { return (Acknowledge) super.setAlt(alt); } @Override public Acknowledge setCallback(java.lang.String callback) { return (Acknowledge) super.setCallback(callback); } @Override public Acknowledge setFields(java.lang.String fields) { return (Acknowledge) super.setFields(fields); } @Override public Acknowledge setKey(java.lang.String key) { return (Acknowledge) super.setKey(key); } @Override public Acknowledge setOauthToken(java.lang.String oauthToken) { return (Acknowledge) super.setOauthToken(oauthToken); } @Override public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { return (Acknowledge) super.setPrettyPrint(prettyPrint); } @Override public Acknowledge setQuotaUser(java.lang.String quotaUser) { return (Acknowledge) super.setQuotaUser(quotaUser); } @Override public Acknowledge setUploadType(java.lang.String uploadType) { return (Acknowledge) super.setUploadType(uploadType); } @Override public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { return (Acknowledge) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Acknowledge setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Acknowledge setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Acknowledge set(String parameterName, Object value) { return (Acknowledge) super.set(parameterName, value); } } /** * Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`". * * Create a request for the method "orders.advancetestorder". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Advancetestorder#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the test order to modify. * @return the request */ public Advancetestorder advancetestorder(java.math.BigInteger merchantId, java.lang.String orderId) throws java.io.IOException { Advancetestorder result = new Advancetestorder(merchantId, orderId); initialize(result); return result; } public class Advancetestorder extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/testorders/{orderId}/advance"; /** * Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`". * * Create a request for the method "orders.advancetestorder". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Advancetestorder#execute()} method to invoke the remote operation. *

{@link Advancetestorder#initialize(com.google.api.client.googleapis.services.AbstractGoogle * ClientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the test order to modify. * @since 1.13 */ protected Advancetestorder(java.math.BigInteger merchantId, java.lang.String orderId) { super(ShoppingContent.this, "POST", REST_PATH, null, com.google.api.services.content.model.OrdersAdvanceTestOrderResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Advancetestorder set$Xgafv(java.lang.String $Xgafv) { return (Advancetestorder) super.set$Xgafv($Xgafv); } @Override public Advancetestorder setAccessToken(java.lang.String accessToken) { return (Advancetestorder) super.setAccessToken(accessToken); } @Override public Advancetestorder setAlt(java.lang.String alt) { return (Advancetestorder) super.setAlt(alt); } @Override public Advancetestorder setCallback(java.lang.String callback) { return (Advancetestorder) super.setCallback(callback); } @Override public Advancetestorder setFields(java.lang.String fields) { return (Advancetestorder) super.setFields(fields); } @Override public Advancetestorder setKey(java.lang.String key) { return (Advancetestorder) super.setKey(key); } @Override public Advancetestorder setOauthToken(java.lang.String oauthToken) { return (Advancetestorder) super.setOauthToken(oauthToken); } @Override public Advancetestorder setPrettyPrint(java.lang.Boolean prettyPrint) { return (Advancetestorder) super.setPrettyPrint(prettyPrint); } @Override public Advancetestorder setQuotaUser(java.lang.String quotaUser) { return (Advancetestorder) super.setQuotaUser(quotaUser); } @Override public Advancetestorder setUploadType(java.lang.String uploadType) { return (Advancetestorder) super.setUploadType(uploadType); } @Override public Advancetestorder setUploadProtocol(java.lang.String uploadProtocol) { return (Advancetestorder) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Advancetestorder setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the test order to modify. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the test order to modify. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the test order to modify. */ public Advancetestorder setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Advancetestorder set(String parameterName, Object value) { return (Advancetestorder) super.set(parameterName, value); } } /** * Cancels all line items in an order, making a full refund. * * Create a request for the method "orders.cancel". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order to cancel. * @param content the {@link com.google.api.services.content.model.OrdersCancelRequest} * @return the request */ public Cancel cancel(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelRequest content) throws java.io.IOException { Cancel result = new Cancel(merchantId, orderId, content); initialize(result); return result; } public class Cancel extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/cancel"; /** * Cancels all line items in an order, making a full refund. * * Create a request for the method "orders.cancel". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order to cancel. * @param content the {@link com.google.api.services.content.model.OrdersCancelRequest} * @since 1.13 */ protected Cancel(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCancelResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Cancel set$Xgafv(java.lang.String $Xgafv) { return (Cancel) super.set$Xgafv($Xgafv); } @Override public Cancel setAccessToken(java.lang.String accessToken) { return (Cancel) super.setAccessToken(accessToken); } @Override public Cancel setAlt(java.lang.String alt) { return (Cancel) super.setAlt(alt); } @Override public Cancel setCallback(java.lang.String callback) { return (Cancel) super.setCallback(callback); } @Override public Cancel setFields(java.lang.String fields) { return (Cancel) super.setFields(fields); } @Override public Cancel setKey(java.lang.String key) { return (Cancel) super.setKey(key); } @Override public Cancel setOauthToken(java.lang.String oauthToken) { return (Cancel) super.setOauthToken(oauthToken); } @Override public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { return (Cancel) super.setPrettyPrint(prettyPrint); } @Override public Cancel setQuotaUser(java.lang.String quotaUser) { return (Cancel) super.setQuotaUser(quotaUser); } @Override public Cancel setUploadType(java.lang.String uploadType) { return (Cancel) super.setUploadType(uploadType); } @Override public Cancel setUploadProtocol(java.lang.String uploadProtocol) { return (Cancel) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Cancel setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order to cancel. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order to cancel. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order to cancel. */ public Cancel setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } /** * Cancels a line item, making a full refund. * * Create a request for the method "orders.cancellineitem". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Cancellineitem#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersCancelLineItemRequest} * @return the request */ public Cancellineitem cancellineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelLineItemRequest content) throws java.io.IOException { Cancellineitem result = new Cancellineitem(merchantId, orderId, content); initialize(result); return result; } public class Cancellineitem extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/cancelLineItem"; /** * Cancels a line item, making a full refund. * * Create a request for the method "orders.cancellineitem". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Cancellineitem#execute()} method to invoke the remote operation. *

{@link Cancellineitem#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl * ientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersCancelLineItemRequest} * @since 1.13 */ protected Cancellineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelLineItemRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCancelLineItemResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Cancellineitem set$Xgafv(java.lang.String $Xgafv) { return (Cancellineitem) super.set$Xgafv($Xgafv); } @Override public Cancellineitem setAccessToken(java.lang.String accessToken) { return (Cancellineitem) super.setAccessToken(accessToken); } @Override public Cancellineitem setAlt(java.lang.String alt) { return (Cancellineitem) super.setAlt(alt); } @Override public Cancellineitem setCallback(java.lang.String callback) { return (Cancellineitem) super.setCallback(callback); } @Override public Cancellineitem setFields(java.lang.String fields) { return (Cancellineitem) super.setFields(fields); } @Override public Cancellineitem setKey(java.lang.String key) { return (Cancellineitem) super.setKey(key); } @Override public Cancellineitem setOauthToken(java.lang.String oauthToken) { return (Cancellineitem) super.setOauthToken(oauthToken); } @Override public Cancellineitem setPrettyPrint(java.lang.Boolean prettyPrint) { return (Cancellineitem) super.setPrettyPrint(prettyPrint); } @Override public Cancellineitem setQuotaUser(java.lang.String quotaUser) { return (Cancellineitem) super.setQuotaUser(quotaUser); } @Override public Cancellineitem setUploadType(java.lang.String uploadType) { return (Cancellineitem) super.setUploadType(uploadType); } @Override public Cancellineitem setUploadProtocol(java.lang.String uploadProtocol) { return (Cancellineitem) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Cancellineitem setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Cancellineitem setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Cancellineitem set(String parameterName, Object value) { return (Cancellineitem) super.set(parameterName, value); } } /** * Sandbox only. Cancels a test order for customer-initiated cancellation. * * Create a request for the method "orders.canceltestorderbycustomer". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Canceltestorderbycustomer#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the test order to cancel. * @param content the {@link com.google.api.services.content.model.OrdersCancelTestOrderByCustomerRequest} * @return the request */ public Canceltestorderbycustomer canceltestorderbycustomer(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelTestOrderByCustomerRequest content) throws java.io.IOException { Canceltestorderbycustomer result = new Canceltestorderbycustomer(merchantId, orderId, content); initialize(result); return result; } public class Canceltestorderbycustomer extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer"; /** * Sandbox only. Cancels a test order for customer-initiated cancellation. * * Create a request for the method "orders.canceltestorderbycustomer". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Canceltestorderbycustomer#execute()} method to invoke the remote * operation.

{@link Canceltestorderbycustomer#initialize(com.google.api.client.googleapis.ser * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the test order to cancel. * @param content the {@link com.google.api.services.content.model.OrdersCancelTestOrderByCustomerRequest} * @since 1.13 */ protected Canceltestorderbycustomer(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCancelTestOrderByCustomerRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCancelTestOrderByCustomerResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Canceltestorderbycustomer set$Xgafv(java.lang.String $Xgafv) { return (Canceltestorderbycustomer) super.set$Xgafv($Xgafv); } @Override public Canceltestorderbycustomer setAccessToken(java.lang.String accessToken) { return (Canceltestorderbycustomer) super.setAccessToken(accessToken); } @Override public Canceltestorderbycustomer setAlt(java.lang.String alt) { return (Canceltestorderbycustomer) super.setAlt(alt); } @Override public Canceltestorderbycustomer setCallback(java.lang.String callback) { return (Canceltestorderbycustomer) super.setCallback(callback); } @Override public Canceltestorderbycustomer setFields(java.lang.String fields) { return (Canceltestorderbycustomer) super.setFields(fields); } @Override public Canceltestorderbycustomer setKey(java.lang.String key) { return (Canceltestorderbycustomer) super.setKey(key); } @Override public Canceltestorderbycustomer setOauthToken(java.lang.String oauthToken) { return (Canceltestorderbycustomer) super.setOauthToken(oauthToken); } @Override public Canceltestorderbycustomer setPrettyPrint(java.lang.Boolean prettyPrint) { return (Canceltestorderbycustomer) super.setPrettyPrint(prettyPrint); } @Override public Canceltestorderbycustomer setQuotaUser(java.lang.String quotaUser) { return (Canceltestorderbycustomer) super.setQuotaUser(quotaUser); } @Override public Canceltestorderbycustomer setUploadType(java.lang.String uploadType) { return (Canceltestorderbycustomer) super.setUploadType(uploadType); } @Override public Canceltestorderbycustomer setUploadProtocol(java.lang.String uploadProtocol) { return (Canceltestorderbycustomer) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Canceltestorderbycustomer setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the test order to cancel. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the test order to cancel. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the test order to cancel. */ public Canceltestorderbycustomer setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Canceltestorderbycustomer set(String parameterName, Object value) { return (Canceltestorderbycustomer) super.set(parameterName, value); } } /** * Sandbox only. Creates a test order. * * Create a request for the method "orders.createtestorder". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Createtestorder#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that should manage the order. This cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.OrdersCreateTestOrderRequest} * @return the request */ public Createtestorder createtestorder(java.math.BigInteger merchantId, com.google.api.services.content.model.OrdersCreateTestOrderRequest content) throws java.io.IOException { Createtestorder result = new Createtestorder(merchantId, content); initialize(result); return result; } public class Createtestorder extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/testorders"; /** * Sandbox only. Creates a test order. * * Create a request for the method "orders.createtestorder". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Createtestorder#execute()} method to invoke the remote operation. *

{@link Createtestorder#initialize(com.google.api.client.googleapis.services.AbstractGoogleC * lientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that should manage the order. This cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.OrdersCreateTestOrderRequest} * @since 1.13 */ protected Createtestorder(java.math.BigInteger merchantId, com.google.api.services.content.model.OrdersCreateTestOrderRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCreateTestOrderResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public Createtestorder set$Xgafv(java.lang.String $Xgafv) { return (Createtestorder) super.set$Xgafv($Xgafv); } @Override public Createtestorder setAccessToken(java.lang.String accessToken) { return (Createtestorder) super.setAccessToken(accessToken); } @Override public Createtestorder setAlt(java.lang.String alt) { return (Createtestorder) super.setAlt(alt); } @Override public Createtestorder setCallback(java.lang.String callback) { return (Createtestorder) super.setCallback(callback); } @Override public Createtestorder setFields(java.lang.String fields) { return (Createtestorder) super.setFields(fields); } @Override public Createtestorder setKey(java.lang.String key) { return (Createtestorder) super.setKey(key); } @Override public Createtestorder setOauthToken(java.lang.String oauthToken) { return (Createtestorder) super.setOauthToken(oauthToken); } @Override public Createtestorder setPrettyPrint(java.lang.Boolean prettyPrint) { return (Createtestorder) super.setPrettyPrint(prettyPrint); } @Override public Createtestorder setQuotaUser(java.lang.String quotaUser) { return (Createtestorder) super.setQuotaUser(quotaUser); } @Override public Createtestorder setUploadType(java.lang.String uploadType) { return (Createtestorder) super.setUploadType(uploadType); } @Override public Createtestorder setUploadProtocol(java.lang.String uploadProtocol) { return (Createtestorder) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that should manage the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that should manage the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that should manage the order. This cannot be a multi-client account. */ public Createtestorder setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } @Override public Createtestorder set(String parameterName, Object value) { return (Createtestorder) super.set(parameterName, value); } } /** * Sandbox only. Creates a test return. * * Create a request for the method "orders.createtestreturn". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Createtestreturn#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersCreateTestReturnRequest} * @return the request */ public Createtestreturn createtestreturn(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCreateTestReturnRequest content) throws java.io.IOException { Createtestreturn result = new Createtestreturn(merchantId, orderId, content); initialize(result); return result; } public class Createtestreturn extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/testreturn"; /** * Sandbox only. Creates a test return. * * Create a request for the method "orders.createtestreturn". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Createtestreturn#execute()} method to invoke the remote operation. *

{@link Createtestreturn#initialize(com.google.api.client.googleapis.services.AbstractGoogle * ClientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersCreateTestReturnRequest} * @since 1.13 */ protected Createtestreturn(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersCreateTestReturnRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCreateTestReturnResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Createtestreturn set$Xgafv(java.lang.String $Xgafv) { return (Createtestreturn) super.set$Xgafv($Xgafv); } @Override public Createtestreturn setAccessToken(java.lang.String accessToken) { return (Createtestreturn) super.setAccessToken(accessToken); } @Override public Createtestreturn setAlt(java.lang.String alt) { return (Createtestreturn) super.setAlt(alt); } @Override public Createtestreturn setCallback(java.lang.String callback) { return (Createtestreturn) super.setCallback(callback); } @Override public Createtestreturn setFields(java.lang.String fields) { return (Createtestreturn) super.setFields(fields); } @Override public Createtestreturn setKey(java.lang.String key) { return (Createtestreturn) super.setKey(key); } @Override public Createtestreturn setOauthToken(java.lang.String oauthToken) { return (Createtestreturn) super.setOauthToken(oauthToken); } @Override public Createtestreturn setPrettyPrint(java.lang.Boolean prettyPrint) { return (Createtestreturn) super.setPrettyPrint(prettyPrint); } @Override public Createtestreturn setQuotaUser(java.lang.String quotaUser) { return (Createtestreturn) super.setQuotaUser(quotaUser); } @Override public Createtestreturn setUploadType(java.lang.String uploadType) { return (Createtestreturn) super.setUploadType(uploadType); } @Override public Createtestreturn setUploadProtocol(java.lang.String uploadProtocol) { return (Createtestreturn) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Createtestreturn setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Createtestreturn setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Createtestreturn set(String parameterName, Object value) { return (Createtestreturn) super.set(parameterName, value); } } /** * Retrieves or modifies multiple orders in a single request. * * Create a request for the method "orders.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.OrdersCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.OrdersCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/orders/batch"; /** * Retrieves or modifies multiple orders in a single request. * * Create a request for the method "orders.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.OrdersCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.OrdersCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves an order from your Merchant Center account. * * Create a request for the method "orders.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @return the request */ public Get get(java.math.BigInteger merchantId, java.lang.String orderId) throws java.io.IOException { Get result = new Get(merchantId, orderId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}"; /** * Retrieves an order from your Merchant Center account. * * Create a request for the method "orders.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.lang.String orderId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Order.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Get setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves an order using merchant order ID. * * Create a request for the method "orders.getbymerchantorderid". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Getbymerchantorderid#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param merchantOrderId The merchant order ID to be looked for. * @return the request */ public Getbymerchantorderid getbymerchantorderid(java.math.BigInteger merchantId, java.lang.String merchantOrderId) throws java.io.IOException { Getbymerchantorderid result = new Getbymerchantorderid(merchantId, merchantOrderId); initialize(result); return result; } public class Getbymerchantorderid extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}"; /** * Retrieves an order using merchant order ID. * * Create a request for the method "orders.getbymerchantorderid". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Getbymerchantorderid#execute()} method to invoke the remote * operation.

{@link Getbymerchantorderid#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param merchantOrderId The merchant order ID to be looked for. * @since 1.13 */ protected Getbymerchantorderid(java.math.BigInteger merchantId, java.lang.String merchantOrderId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrdersGetByMerchantOrderIdResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.merchantOrderId = com.google.api.client.util.Preconditions.checkNotNull(merchantOrderId, "Required parameter merchantOrderId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Getbymerchantorderid set$Xgafv(java.lang.String $Xgafv) { return (Getbymerchantorderid) super.set$Xgafv($Xgafv); } @Override public Getbymerchantorderid setAccessToken(java.lang.String accessToken) { return (Getbymerchantorderid) super.setAccessToken(accessToken); } @Override public Getbymerchantorderid setAlt(java.lang.String alt) { return (Getbymerchantorderid) super.setAlt(alt); } @Override public Getbymerchantorderid setCallback(java.lang.String callback) { return (Getbymerchantorderid) super.setCallback(callback); } @Override public Getbymerchantorderid setFields(java.lang.String fields) { return (Getbymerchantorderid) super.setFields(fields); } @Override public Getbymerchantorderid setKey(java.lang.String key) { return (Getbymerchantorderid) super.setKey(key); } @Override public Getbymerchantorderid setOauthToken(java.lang.String oauthToken) { return (Getbymerchantorderid) super.setOauthToken(oauthToken); } @Override public Getbymerchantorderid setPrettyPrint(java.lang.Boolean prettyPrint) { return (Getbymerchantorderid) super.setPrettyPrint(prettyPrint); } @Override public Getbymerchantorderid setQuotaUser(java.lang.String quotaUser) { return (Getbymerchantorderid) super.setQuotaUser(quotaUser); } @Override public Getbymerchantorderid setUploadType(java.lang.String uploadType) { return (Getbymerchantorderid) super.setUploadType(uploadType); } @Override public Getbymerchantorderid setUploadProtocol(java.lang.String uploadProtocol) { return (Getbymerchantorderid) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Getbymerchantorderid setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The merchant order ID to be looked for. */ @com.google.api.client.util.Key private java.lang.String merchantOrderId; /** The merchant order ID to be looked for. */ public java.lang.String getMerchantOrderId() { return merchantOrderId; } /** The merchant order ID to be looked for. */ public Getbymerchantorderid setMerchantOrderId(java.lang.String merchantOrderId) { this.merchantOrderId = merchantOrderId; return this; } @Override public Getbymerchantorderid set(String parameterName, Object value) { return (Getbymerchantorderid) super.set(parameterName, value); } } /** * Sandbox only. Retrieves an order template that can be used to quickly create a new order in * sandbox. * * Create a request for the method "orders.gettestordertemplate". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Gettestordertemplate#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that should manage the order. This cannot be a multi-client account. * @param templateName The name of the template to retrieve. * @return the request */ public Gettestordertemplate gettestordertemplate(java.math.BigInteger merchantId, java.lang.String templateName) throws java.io.IOException { Gettestordertemplate result = new Gettestordertemplate(merchantId, templateName); initialize(result); return result; } public class Gettestordertemplate extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/testordertemplates/{templateName}"; /** * Sandbox only. Retrieves an order template that can be used to quickly create a new order in * sandbox. * * Create a request for the method "orders.gettestordertemplate". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Gettestordertemplate#execute()} method to invoke the remote * operation.

{@link Gettestordertemplate#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that should manage the order. This cannot be a multi-client account. * @param templateName The name of the template to retrieve. * @since 1.13 */ protected Gettestordertemplate(java.math.BigInteger merchantId, java.lang.String templateName) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrdersGetTestOrderTemplateResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.templateName = com.google.api.client.util.Preconditions.checkNotNull(templateName, "Required parameter templateName must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Gettestordertemplate set$Xgafv(java.lang.String $Xgafv) { return (Gettestordertemplate) super.set$Xgafv($Xgafv); } @Override public Gettestordertemplate setAccessToken(java.lang.String accessToken) { return (Gettestordertemplate) super.setAccessToken(accessToken); } @Override public Gettestordertemplate setAlt(java.lang.String alt) { return (Gettestordertemplate) super.setAlt(alt); } @Override public Gettestordertemplate setCallback(java.lang.String callback) { return (Gettestordertemplate) super.setCallback(callback); } @Override public Gettestordertemplate setFields(java.lang.String fields) { return (Gettestordertemplate) super.setFields(fields); } @Override public Gettestordertemplate setKey(java.lang.String key) { return (Gettestordertemplate) super.setKey(key); } @Override public Gettestordertemplate setOauthToken(java.lang.String oauthToken) { return (Gettestordertemplate) super.setOauthToken(oauthToken); } @Override public Gettestordertemplate setPrettyPrint(java.lang.Boolean prettyPrint) { return (Gettestordertemplate) super.setPrettyPrint(prettyPrint); } @Override public Gettestordertemplate setQuotaUser(java.lang.String quotaUser) { return (Gettestordertemplate) super.setQuotaUser(quotaUser); } @Override public Gettestordertemplate setUploadType(java.lang.String uploadType) { return (Gettestordertemplate) super.setUploadType(uploadType); } @Override public Gettestordertemplate setUploadProtocol(java.lang.String uploadProtocol) { return (Gettestordertemplate) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that should manage the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that should manage the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that should manage the order. This cannot be a multi-client account. */ public Gettestordertemplate setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The name of the template to retrieve. */ @com.google.api.client.util.Key private java.lang.String templateName; /** The name of the template to retrieve. */ public java.lang.String getTemplateName() { return templateName; } /** The name of the template to retrieve. */ public Gettestordertemplate setTemplateName(java.lang.String templateName) { this.templateName = templateName; return this; } /** The country of the template to retrieve. Defaults to `US`. */ @com.google.api.client.util.Key private java.lang.String country; /** The country of the template to retrieve. Defaults to `US`. */ public java.lang.String getCountry() { return country; } /** The country of the template to retrieve. Defaults to `US`. */ public Gettestordertemplate setCountry(java.lang.String country) { this.country = country; return this; } @Override public Gettestordertemplate set(String parameterName, Object value) { return (Gettestordertemplate) super.set(parameterName, value); } } /** * Deprecated. Notifies that item return and refund was handled directly by merchant outside of * Google payments processing (e.g. cash refund done in store). Note: We recommend calling the * returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the * customer. This helps to prevent possible differences arising between merchant and Google * transaction records. We also recommend having the point of sale system communicate with Google to * ensure that customers do not receive a double refund by first refunding via Google then via an * in-store return. * * Create a request for the method "orders.instorerefundlineitem". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Instorerefundlineitem#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersInStoreRefundLineItemRequest} * @return the request */ public Instorerefundlineitem instorerefundlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersInStoreRefundLineItemRequest content) throws java.io.IOException { Instorerefundlineitem result = new Instorerefundlineitem(merchantId, orderId, content); initialize(result); return result; } public class Instorerefundlineitem extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem"; /** * Deprecated. Notifies that item return and refund was handled directly by merchant outside of * Google payments processing (e.g. cash refund done in store). Note: We recommend calling the * returnrefundlineitem method to refund in-store returns. We will issue the refund directly to * the customer. This helps to prevent possible differences arising between merchant and Google * transaction records. We also recommend having the point of sale system communicate with Google * to ensure that customers do not receive a double refund by first refunding via Google then via * an in-store return. * * Create a request for the method "orders.instorerefundlineitem". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Instorerefundlineitem#execute()} method to invoke the remote * operation.

{@link Instorerefundlineitem#initialize(com.google.api.client.googleapis.service * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersInStoreRefundLineItemRequest} * @since 1.13 */ protected Instorerefundlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersInStoreRefundLineItemRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersInStoreRefundLineItemResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Instorerefundlineitem set$Xgafv(java.lang.String $Xgafv) { return (Instorerefundlineitem) super.set$Xgafv($Xgafv); } @Override public Instorerefundlineitem setAccessToken(java.lang.String accessToken) { return (Instorerefundlineitem) super.setAccessToken(accessToken); } @Override public Instorerefundlineitem setAlt(java.lang.String alt) { return (Instorerefundlineitem) super.setAlt(alt); } @Override public Instorerefundlineitem setCallback(java.lang.String callback) { return (Instorerefundlineitem) super.setCallback(callback); } @Override public Instorerefundlineitem setFields(java.lang.String fields) { return (Instorerefundlineitem) super.setFields(fields); } @Override public Instorerefundlineitem setKey(java.lang.String key) { return (Instorerefundlineitem) super.setKey(key); } @Override public Instorerefundlineitem setOauthToken(java.lang.String oauthToken) { return (Instorerefundlineitem) super.setOauthToken(oauthToken); } @Override public Instorerefundlineitem setPrettyPrint(java.lang.Boolean prettyPrint) { return (Instorerefundlineitem) super.setPrettyPrint(prettyPrint); } @Override public Instorerefundlineitem setQuotaUser(java.lang.String quotaUser) { return (Instorerefundlineitem) super.setQuotaUser(quotaUser); } @Override public Instorerefundlineitem setUploadType(java.lang.String uploadType) { return (Instorerefundlineitem) super.setUploadType(uploadType); } @Override public Instorerefundlineitem setUploadProtocol(java.lang.String uploadProtocol) { return (Instorerefundlineitem) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Instorerefundlineitem setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Instorerefundlineitem setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Instorerefundlineitem set(String parameterName, Object value) { return (Instorerefundlineitem) super.set(parameterName, value); } } /** * Lists the orders in your Merchant Center account. * * Create a request for the method "orders.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders"; /** * Lists the orders in your Merchant Center account. * * Create a request for the method "orders.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.OrdersListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * Obtains orders that match the acknowledgement status. When set to true, obtains orders that * have been acknowledged. When false, obtains orders that have not been acknowledged. We * recommend using this filter set to `false`, in conjunction with the `acknowledge` call, * such that only un-acknowledged orders are returned. */ @com.google.api.client.util.Key private java.lang.Boolean acknowledged; /** Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un- acknowledged orders are returned. */ public java.lang.Boolean getAcknowledged() { return acknowledged; } /** * Obtains orders that match the acknowledgement status. When set to true, obtains orders that * have been acknowledged. When false, obtains orders that have not been acknowledged. We * recommend using this filter set to `false`, in conjunction with the `acknowledge` call, * such that only un-acknowledged orders are returned. */ public List setAcknowledged(java.lang.Boolean acknowledged) { this.acknowledged = acknowledged; return this; } /** * The maximum number of orders to return in the response, used for paging. The default value * is 25 orders per page, and the maximum allowed value is 250 orders per page. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. */ public java.lang.Long getMaxResults() { return maxResults; } /** * The maximum number of orders to return in the response, used for paging. The default value * is 25 orders per page, and the maximum allowed value is 250 orders per page. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** * Order results by placement date in descending or ascending order. Acceptable values are: - * placedDateAsc - placedDateDesc */ @com.google.api.client.util.Key private java.lang.String orderBy; /** Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc */ public java.lang.String getOrderBy() { return orderBy; } /** * Order results by placement date in descending or ascending order. Acceptable values are: - * placedDateAsc - placedDateDesc */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** Obtains orders placed before this date (exclusively), in ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String placedDateEnd; /** Obtains orders placed before this date (exclusively), in ISO 8601 format. */ public java.lang.String getPlacedDateEnd() { return placedDateEnd; } /** Obtains orders placed before this date (exclusively), in ISO 8601 format. */ public List setPlacedDateEnd(java.lang.String placedDateEnd) { this.placedDateEnd = placedDateEnd; return this; } /** Obtains orders placed after this date (inclusively), in ISO 8601 format. */ @com.google.api.client.util.Key private java.lang.String placedDateStart; /** Obtains orders placed after this date (inclusively), in ISO 8601 format. */ public java.lang.String getPlacedDateStart() { return placedDateStart; } /** Obtains orders placed after this date (inclusively), in ISO 8601 format. */ public List setPlacedDateStart(java.lang.String placedDateStart) { this.placedDateStart = placedDateStart; return this; } /** * Obtains orders that match any of the specified statuses. Please note that `active` is a * shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for * `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and * `canceled`. */ @com.google.api.client.util.Key private java.util.List statuses; /** Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. */ public java.util.List getStatuses() { return statuses; } /** * Obtains orders that match any of the specified statuses. Please note that `active` is a * shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for * `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and * `canceled`. */ public List setStatuses(java.util.List statuses) { this.statuses = statuses; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Deprecated, please use returnRefundLineItem instead. * * Create a request for the method "orders.refund". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Refund#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order to refund. * @param content the {@link com.google.api.services.content.model.OrdersRefundRequest} * @return the request */ public Refund refund(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersRefundRequest content) throws java.io.IOException { Refund result = new Refund(merchantId, orderId, content); initialize(result); return result; } public class Refund extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/refund"; /** * Deprecated, please use returnRefundLineItem instead. * * Create a request for the method "orders.refund". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Refund#execute()} method to invoke the remote operation.

{@link * Refund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order to refund. * @param content the {@link com.google.api.services.content.model.OrdersRefundRequest} * @since 1.13 */ protected Refund(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersRefundRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersRefundResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Refund set$Xgafv(java.lang.String $Xgafv) { return (Refund) super.set$Xgafv($Xgafv); } @Override public Refund setAccessToken(java.lang.String accessToken) { return (Refund) super.setAccessToken(accessToken); } @Override public Refund setAlt(java.lang.String alt) { return (Refund) super.setAlt(alt); } @Override public Refund setCallback(java.lang.String callback) { return (Refund) super.setCallback(callback); } @Override public Refund setFields(java.lang.String fields) { return (Refund) super.setFields(fields); } @Override public Refund setKey(java.lang.String key) { return (Refund) super.setKey(key); } @Override public Refund setOauthToken(java.lang.String oauthToken) { return (Refund) super.setOauthToken(oauthToken); } @Override public Refund setPrettyPrint(java.lang.Boolean prettyPrint) { return (Refund) super.setPrettyPrint(prettyPrint); } @Override public Refund setQuotaUser(java.lang.String quotaUser) { return (Refund) super.setQuotaUser(quotaUser); } @Override public Refund setUploadType(java.lang.String uploadType) { return (Refund) super.setUploadType(uploadType); } @Override public Refund setUploadProtocol(java.lang.String uploadProtocol) { return (Refund) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Refund setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order to refund. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order to refund. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order to refund. */ public Refund setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Refund set(String parameterName, Object value) { return (Refund) super.set(parameterName, value); } } /** * Rejects return on an line item. * * Create a request for the method "orders.rejectreturnlineitem". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Rejectreturnlineitem#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersRejectReturnLineItemRequest} * @return the request */ public Rejectreturnlineitem rejectreturnlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersRejectReturnLineItemRequest content) throws java.io.IOException { Rejectreturnlineitem result = new Rejectreturnlineitem(merchantId, orderId, content); initialize(result); return result; } public class Rejectreturnlineitem extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem"; /** * Rejects return on an line item. * * Create a request for the method "orders.rejectreturnlineitem". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Rejectreturnlineitem#execute()} method to invoke the remote * operation.

{@link Rejectreturnlineitem#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersRejectReturnLineItemRequest} * @since 1.13 */ protected Rejectreturnlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersRejectReturnLineItemRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersRejectReturnLineItemResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Rejectreturnlineitem set$Xgafv(java.lang.String $Xgafv) { return (Rejectreturnlineitem) super.set$Xgafv($Xgafv); } @Override public Rejectreturnlineitem setAccessToken(java.lang.String accessToken) { return (Rejectreturnlineitem) super.setAccessToken(accessToken); } @Override public Rejectreturnlineitem setAlt(java.lang.String alt) { return (Rejectreturnlineitem) super.setAlt(alt); } @Override public Rejectreturnlineitem setCallback(java.lang.String callback) { return (Rejectreturnlineitem) super.setCallback(callback); } @Override public Rejectreturnlineitem setFields(java.lang.String fields) { return (Rejectreturnlineitem) super.setFields(fields); } @Override public Rejectreturnlineitem setKey(java.lang.String key) { return (Rejectreturnlineitem) super.setKey(key); } @Override public Rejectreturnlineitem setOauthToken(java.lang.String oauthToken) { return (Rejectreturnlineitem) super.setOauthToken(oauthToken); } @Override public Rejectreturnlineitem setPrettyPrint(java.lang.Boolean prettyPrint) { return (Rejectreturnlineitem) super.setPrettyPrint(prettyPrint); } @Override public Rejectreturnlineitem setQuotaUser(java.lang.String quotaUser) { return (Rejectreturnlineitem) super.setQuotaUser(quotaUser); } @Override public Rejectreturnlineitem setUploadType(java.lang.String uploadType) { return (Rejectreturnlineitem) super.setUploadType(uploadType); } @Override public Rejectreturnlineitem setUploadProtocol(java.lang.String uploadProtocol) { return (Rejectreturnlineitem) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Rejectreturnlineitem setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Rejectreturnlineitem setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Rejectreturnlineitem set(String parameterName, Object value) { return (Rejectreturnlineitem) super.set(parameterName, value); } } /** * Returns a line item. * * Create a request for the method "orders.returnlineitem". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Returnlineitem#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersReturnLineItemRequest} * @return the request */ public Returnlineitem returnlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersReturnLineItemRequest content) throws java.io.IOException { Returnlineitem result = new Returnlineitem(merchantId, orderId, content); initialize(result); return result; } public class Returnlineitem extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/returnLineItem"; /** * Returns a line item. * * Create a request for the method "orders.returnlineitem". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Returnlineitem#execute()} method to invoke the remote operation. *

{@link Returnlineitem#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl * ientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersReturnLineItemRequest} * @since 1.13 */ protected Returnlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersReturnLineItemRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersReturnLineItemResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Returnlineitem set$Xgafv(java.lang.String $Xgafv) { return (Returnlineitem) super.set$Xgafv($Xgafv); } @Override public Returnlineitem setAccessToken(java.lang.String accessToken) { return (Returnlineitem) super.setAccessToken(accessToken); } @Override public Returnlineitem setAlt(java.lang.String alt) { return (Returnlineitem) super.setAlt(alt); } @Override public Returnlineitem setCallback(java.lang.String callback) { return (Returnlineitem) super.setCallback(callback); } @Override public Returnlineitem setFields(java.lang.String fields) { return (Returnlineitem) super.setFields(fields); } @Override public Returnlineitem setKey(java.lang.String key) { return (Returnlineitem) super.setKey(key); } @Override public Returnlineitem setOauthToken(java.lang.String oauthToken) { return (Returnlineitem) super.setOauthToken(oauthToken); } @Override public Returnlineitem setPrettyPrint(java.lang.Boolean prettyPrint) { return (Returnlineitem) super.setPrettyPrint(prettyPrint); } @Override public Returnlineitem setQuotaUser(java.lang.String quotaUser) { return (Returnlineitem) super.setQuotaUser(quotaUser); } @Override public Returnlineitem setUploadType(java.lang.String uploadType) { return (Returnlineitem) super.setUploadType(uploadType); } @Override public Returnlineitem setUploadProtocol(java.lang.String uploadProtocol) { return (Returnlineitem) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Returnlineitem setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Returnlineitem setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Returnlineitem set(String parameterName, Object value) { return (Returnlineitem) super.set(parameterName, value); } } /** * Returns and refunds a line item. Note that this method can only be called on fully shipped * orders. Please also note that the Orderreturns API is the preferred way to handle returns after * you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search * for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot * be found, then we recommend using this API to issue a refund. * * Create a request for the method "orders.returnrefundlineitem". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Returnrefundlineitem#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersReturnRefundLineItemRequest} * @return the request */ public Returnrefundlineitem returnrefundlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersReturnRefundLineItemRequest content) throws java.io.IOException { Returnrefundlineitem result = new Returnrefundlineitem(merchantId, orderId, content); initialize(result); return result; } public class Returnrefundlineitem extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem"; /** * Returns and refunds a line item. Note that this method can only be called on fully shipped * orders. Please also note that the Orderreturns API is the preferred way to handle returns after * you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to * search for the return, and then use Orderreturns.processreturn to issue the refund. If the * return cannot be found, then we recommend using this API to issue a refund. * * Create a request for the method "orders.returnrefundlineitem". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Returnrefundlineitem#execute()} method to invoke the remote * operation.

{@link Returnrefundlineitem#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersReturnRefundLineItemRequest} * @since 1.13 */ protected Returnrefundlineitem(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersReturnRefundLineItemRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersReturnRefundLineItemResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Returnrefundlineitem set$Xgafv(java.lang.String $Xgafv) { return (Returnrefundlineitem) super.set$Xgafv($Xgafv); } @Override public Returnrefundlineitem setAccessToken(java.lang.String accessToken) { return (Returnrefundlineitem) super.setAccessToken(accessToken); } @Override public Returnrefundlineitem setAlt(java.lang.String alt) { return (Returnrefundlineitem) super.setAlt(alt); } @Override public Returnrefundlineitem setCallback(java.lang.String callback) { return (Returnrefundlineitem) super.setCallback(callback); } @Override public Returnrefundlineitem setFields(java.lang.String fields) { return (Returnrefundlineitem) super.setFields(fields); } @Override public Returnrefundlineitem setKey(java.lang.String key) { return (Returnrefundlineitem) super.setKey(key); } @Override public Returnrefundlineitem setOauthToken(java.lang.String oauthToken) { return (Returnrefundlineitem) super.setOauthToken(oauthToken); } @Override public Returnrefundlineitem setPrettyPrint(java.lang.Boolean prettyPrint) { return (Returnrefundlineitem) super.setPrettyPrint(prettyPrint); } @Override public Returnrefundlineitem setQuotaUser(java.lang.String quotaUser) { return (Returnrefundlineitem) super.setQuotaUser(quotaUser); } @Override public Returnrefundlineitem setUploadType(java.lang.String uploadType) { return (Returnrefundlineitem) super.setUploadType(uploadType); } @Override public Returnrefundlineitem setUploadProtocol(java.lang.String uploadProtocol) { return (Returnrefundlineitem) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Returnrefundlineitem setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Returnrefundlineitem setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Returnrefundlineitem set(String parameterName, Object value) { return (Returnrefundlineitem) super.set(parameterName, value); } } /** * Sets (or overrides if it already exists) merchant provided annotations in the form of key-value * pairs. A common use case would be to supply us with additional structured information about a * line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved * as part of the orders resource. * * Create a request for the method "orders.setlineitemmetadata". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Setlineitemmetadata#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersSetLineItemMetadataRequest} * @return the request */ public Setlineitemmetadata setlineitemmetadata(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersSetLineItemMetadataRequest content) throws java.io.IOException { Setlineitemmetadata result = new Setlineitemmetadata(merchantId, orderId, content); initialize(result); return result; } public class Setlineitemmetadata extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata"; /** * Sets (or overrides if it already exists) merchant provided annotations in the form of key-value * pairs. A common use case would be to supply us with additional structured information about a * line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved * as part of the orders resource. * * Create a request for the method "orders.setlineitemmetadata". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Setlineitemmetadata#execute()} method to invoke the remote * operation.

{@link Setlineitemmetadata#initialize(com.google.api.client.googleapis.services. * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersSetLineItemMetadataRequest} * @since 1.13 */ protected Setlineitemmetadata(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersSetLineItemMetadataRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersSetLineItemMetadataResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Setlineitemmetadata set$Xgafv(java.lang.String $Xgafv) { return (Setlineitemmetadata) super.set$Xgafv($Xgafv); } @Override public Setlineitemmetadata setAccessToken(java.lang.String accessToken) { return (Setlineitemmetadata) super.setAccessToken(accessToken); } @Override public Setlineitemmetadata setAlt(java.lang.String alt) { return (Setlineitemmetadata) super.setAlt(alt); } @Override public Setlineitemmetadata setCallback(java.lang.String callback) { return (Setlineitemmetadata) super.setCallback(callback); } @Override public Setlineitemmetadata setFields(java.lang.String fields) { return (Setlineitemmetadata) super.setFields(fields); } @Override public Setlineitemmetadata setKey(java.lang.String key) { return (Setlineitemmetadata) super.setKey(key); } @Override public Setlineitemmetadata setOauthToken(java.lang.String oauthToken) { return (Setlineitemmetadata) super.setOauthToken(oauthToken); } @Override public Setlineitemmetadata setPrettyPrint(java.lang.Boolean prettyPrint) { return (Setlineitemmetadata) super.setPrettyPrint(prettyPrint); } @Override public Setlineitemmetadata setQuotaUser(java.lang.String quotaUser) { return (Setlineitemmetadata) super.setQuotaUser(quotaUser); } @Override public Setlineitemmetadata setUploadType(java.lang.String uploadType) { return (Setlineitemmetadata) super.setUploadType(uploadType); } @Override public Setlineitemmetadata setUploadProtocol(java.lang.String uploadProtocol) { return (Setlineitemmetadata) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Setlineitemmetadata setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Setlineitemmetadata setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Setlineitemmetadata set(String parameterName, Object value) { return (Setlineitemmetadata) super.set(parameterName, value); } } /** * Marks line item(s) as shipped. * * Create a request for the method "orders.shiplineitems". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Shiplineitems#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersShipLineItemsRequest} * @return the request */ public Shiplineitems shiplineitems(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersShipLineItemsRequest content) throws java.io.IOException { Shiplineitems result = new Shiplineitems(merchantId, orderId, content); initialize(result); return result; } public class Shiplineitems extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/shipLineItems"; /** * Marks line item(s) as shipped. * * Create a request for the method "orders.shiplineitems". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Shiplineitems#execute()} method to invoke the remote operation.

* {@link Shiplineitems#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR * equest)} must be called to initialize this instance immediately after invoking the constructor. *

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersShipLineItemsRequest} * @since 1.13 */ protected Shiplineitems(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersShipLineItemsRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersShipLineItemsResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Shiplineitems set$Xgafv(java.lang.String $Xgafv) { return (Shiplineitems) super.set$Xgafv($Xgafv); } @Override public Shiplineitems setAccessToken(java.lang.String accessToken) { return (Shiplineitems) super.setAccessToken(accessToken); } @Override public Shiplineitems setAlt(java.lang.String alt) { return (Shiplineitems) super.setAlt(alt); } @Override public Shiplineitems setCallback(java.lang.String callback) { return (Shiplineitems) super.setCallback(callback); } @Override public Shiplineitems setFields(java.lang.String fields) { return (Shiplineitems) super.setFields(fields); } @Override public Shiplineitems setKey(java.lang.String key) { return (Shiplineitems) super.setKey(key); } @Override public Shiplineitems setOauthToken(java.lang.String oauthToken) { return (Shiplineitems) super.setOauthToken(oauthToken); } @Override public Shiplineitems setPrettyPrint(java.lang.Boolean prettyPrint) { return (Shiplineitems) super.setPrettyPrint(prettyPrint); } @Override public Shiplineitems setQuotaUser(java.lang.String quotaUser) { return (Shiplineitems) super.setQuotaUser(quotaUser); } @Override public Shiplineitems setUploadType(java.lang.String uploadType) { return (Shiplineitems) super.setUploadType(uploadType); } @Override public Shiplineitems setUploadProtocol(java.lang.String uploadProtocol) { return (Shiplineitems) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Shiplineitems setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Shiplineitems setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Shiplineitems set(String parameterName, Object value) { return (Shiplineitems) super.set(parameterName, value); } } /** * Updates ship by and delivery by dates for a line item. * * Create a request for the method "orders.updatelineitemshippingdetails". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Updatelineitemshippingdetails#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateLineItemShippingDetailsRequest} * @return the request */ public Updatelineitemshippingdetails updatelineitemshippingdetails(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateLineItemShippingDetailsRequest content) throws java.io.IOException { Updatelineitemshippingdetails result = new Updatelineitemshippingdetails(merchantId, orderId, content); initialize(result); return result; } public class Updatelineitemshippingdetails extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails"; /** * Updates ship by and delivery by dates for a line item. * * Create a request for the method "orders.updatelineitemshippingdetails". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Updatelineitemshippingdetails#execute()} method to invoke the * remote operation.

{@link Updatelineitemshippingdetails#initialize(com.google.api.client.goo * gleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance * immediately after invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateLineItemShippingDetailsRequest} * @since 1.13 */ protected Updatelineitemshippingdetails(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateLineItemShippingDetailsRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersUpdateLineItemShippingDetailsResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Updatelineitemshippingdetails set$Xgafv(java.lang.String $Xgafv) { return (Updatelineitemshippingdetails) super.set$Xgafv($Xgafv); } @Override public Updatelineitemshippingdetails setAccessToken(java.lang.String accessToken) { return (Updatelineitemshippingdetails) super.setAccessToken(accessToken); } @Override public Updatelineitemshippingdetails setAlt(java.lang.String alt) { return (Updatelineitemshippingdetails) super.setAlt(alt); } @Override public Updatelineitemshippingdetails setCallback(java.lang.String callback) { return (Updatelineitemshippingdetails) super.setCallback(callback); } @Override public Updatelineitemshippingdetails setFields(java.lang.String fields) { return (Updatelineitemshippingdetails) super.setFields(fields); } @Override public Updatelineitemshippingdetails setKey(java.lang.String key) { return (Updatelineitemshippingdetails) super.setKey(key); } @Override public Updatelineitemshippingdetails setOauthToken(java.lang.String oauthToken) { return (Updatelineitemshippingdetails) super.setOauthToken(oauthToken); } @Override public Updatelineitemshippingdetails setPrettyPrint(java.lang.Boolean prettyPrint) { return (Updatelineitemshippingdetails) super.setPrettyPrint(prettyPrint); } @Override public Updatelineitemshippingdetails setQuotaUser(java.lang.String quotaUser) { return (Updatelineitemshippingdetails) super.setQuotaUser(quotaUser); } @Override public Updatelineitemshippingdetails setUploadType(java.lang.String uploadType) { return (Updatelineitemshippingdetails) super.setUploadType(uploadType); } @Override public Updatelineitemshippingdetails setUploadProtocol(java.lang.String uploadProtocol) { return (Updatelineitemshippingdetails) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Updatelineitemshippingdetails setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Updatelineitemshippingdetails setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Updatelineitemshippingdetails set(String parameterName, Object value) { return (Updatelineitemshippingdetails) super.set(parameterName, value); } } /** * Updates the merchant order ID for a given order. * * Create a request for the method "orders.updatemerchantorderid". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Updatemerchantorderid#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateMerchantOrderIdRequest} * @return the request */ public Updatemerchantorderid updatemerchantorderid(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateMerchantOrderIdRequest content) throws java.io.IOException { Updatemerchantorderid result = new Updatemerchantorderid(merchantId, orderId, content); initialize(result); return result; } public class Updatemerchantorderid extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId"; /** * Updates the merchant order ID for a given order. * * Create a request for the method "orders.updatemerchantorderid". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Updatemerchantorderid#execute()} method to invoke the remote * operation.

{@link Updatemerchantorderid#initialize(com.google.api.client.googleapis.service * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateMerchantOrderIdRequest} * @since 1.13 */ protected Updatemerchantorderid(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateMerchantOrderIdRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersUpdateMerchantOrderIdResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Updatemerchantorderid set$Xgafv(java.lang.String $Xgafv) { return (Updatemerchantorderid) super.set$Xgafv($Xgafv); } @Override public Updatemerchantorderid setAccessToken(java.lang.String accessToken) { return (Updatemerchantorderid) super.setAccessToken(accessToken); } @Override public Updatemerchantorderid setAlt(java.lang.String alt) { return (Updatemerchantorderid) super.setAlt(alt); } @Override public Updatemerchantorderid setCallback(java.lang.String callback) { return (Updatemerchantorderid) super.setCallback(callback); } @Override public Updatemerchantorderid setFields(java.lang.String fields) { return (Updatemerchantorderid) super.setFields(fields); } @Override public Updatemerchantorderid setKey(java.lang.String key) { return (Updatemerchantorderid) super.setKey(key); } @Override public Updatemerchantorderid setOauthToken(java.lang.String oauthToken) { return (Updatemerchantorderid) super.setOauthToken(oauthToken); } @Override public Updatemerchantorderid setPrettyPrint(java.lang.Boolean prettyPrint) { return (Updatemerchantorderid) super.setPrettyPrint(prettyPrint); } @Override public Updatemerchantorderid setQuotaUser(java.lang.String quotaUser) { return (Updatemerchantorderid) super.setQuotaUser(quotaUser); } @Override public Updatemerchantorderid setUploadType(java.lang.String uploadType) { return (Updatemerchantorderid) super.setUploadType(uploadType); } @Override public Updatemerchantorderid setUploadProtocol(java.lang.String uploadProtocol) { return (Updatemerchantorderid) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Updatemerchantorderid setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Updatemerchantorderid setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Updatemerchantorderid set(String parameterName, Object value) { return (Updatemerchantorderid) super.set(parameterName, value); } } /** * Updates a shipment's status, carrier, and/or tracking ID. * * Create a request for the method "orders.updateshipment". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Updateshipment#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateShipmentRequest} * @return the request */ public Updateshipment updateshipment(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateShipmentRequest content) throws java.io.IOException { Updateshipment result = new Updateshipment(merchantId, orderId, content); initialize(result); return result; } public class Updateshipment extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/orders/{orderId}/updateShipment"; /** * Updates a shipment's status, carrier, and/or tracking ID. * * Create a request for the method "orders.updateshipment". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Updateshipment#execute()} method to invoke the remote operation. *

{@link Updateshipment#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl * ientRequest)} must be called to initialize this instance immediately after invoking the * constructor.

* * @param merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param orderId The ID of the order. * @param content the {@link com.google.api.services.content.model.OrdersUpdateShipmentRequest} * @since 1.13 */ protected Updateshipment(java.math.BigInteger merchantId, java.lang.String orderId, com.google.api.services.content.model.OrdersUpdateShipmentRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.OrdersUpdateShipmentResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override public Updateshipment set$Xgafv(java.lang.String $Xgafv) { return (Updateshipment) super.set$Xgafv($Xgafv); } @Override public Updateshipment setAccessToken(java.lang.String accessToken) { return (Updateshipment) super.setAccessToken(accessToken); } @Override public Updateshipment setAlt(java.lang.String alt) { return (Updateshipment) super.setAlt(alt); } @Override public Updateshipment setCallback(java.lang.String callback) { return (Updateshipment) super.setCallback(callback); } @Override public Updateshipment setFields(java.lang.String fields) { return (Updateshipment) super.setFields(fields); } @Override public Updateshipment setKey(java.lang.String key) { return (Updateshipment) super.setKey(key); } @Override public Updateshipment setOauthToken(java.lang.String oauthToken) { return (Updateshipment) super.setOauthToken(oauthToken); } @Override public Updateshipment setPrettyPrint(java.lang.Boolean prettyPrint) { return (Updateshipment) super.setPrettyPrint(prettyPrint); } @Override public Updateshipment setQuotaUser(java.lang.String quotaUser) { return (Updateshipment) super.setQuotaUser(quotaUser); } @Override public Updateshipment setUploadType(java.lang.String uploadType) { return (Updateshipment) super.setUploadType(uploadType); } @Override public Updateshipment setUploadProtocol(java.lang.String uploadProtocol) { return (Updateshipment) super.setUploadProtocol(uploadProtocol); } /** The ID of the account that manages the order. This cannot be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that manages the order. This cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account that manages the order. This cannot be a multi-client account. */ public Updateshipment setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the order. */ @com.google.api.client.util.Key private java.lang.String orderId; /** The ID of the order. */ public java.lang.String getOrderId() { return orderId; } /** The ID of the order. */ public Updateshipment setOrderId(java.lang.String orderId) { this.orderId = orderId; return this; } @Override public Updateshipment set(String parameterName, Object value) { return (Updateshipment) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Pos collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Pos.List request = content.pos().list(parameters ...)}
   * 
* * @return the resource collection */ public Pos pos() { return new Pos(); } /** * The "pos" collection of methods. */ public class Pos { /** * Batches multiple POS-related calls in a single request. * * Create a request for the method "pos.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.PosCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.PosCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/pos/batch"; /** * Batches multiple POS-related calls in a single request. * * Create a request for the method "pos.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.PosCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.PosCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.PosCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Deletes a store for the given merchant. * * Create a request for the method "pos.delete". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param storeCode A store code that is unique per merchant. * @return the request */ public Delete delete(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, java.lang.String storeCode) throws java.io.IOException { Delete result = new Delete(merchantId, targetMerchantId, storeCode); initialize(result); return result; } public class Delete extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}"; /** * Deletes a store for the given merchant. * * Create a request for the method "pos.delete". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param storeCode A store code that is unique per merchant. * @since 1.13 */ protected Delete(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, java.lang.String storeCode) { super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); this.storeCode = com.google.api.client.util.Preconditions.checkNotNull(storeCode, "Required parameter storeCode must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public Delete setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public Delete setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } /** A store code that is unique per merchant. */ @com.google.api.client.util.Key private java.lang.String storeCode; /** A store code that is unique per merchant. */ public java.lang.String getStoreCode() { return storeCode; } /** A store code that is unique per merchant. */ public Delete setStoreCode(java.lang.String storeCode) { this.storeCode = storeCode; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Delete setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves information about the given store. * * Create a request for the method "pos.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param storeCode A store code that is unique per merchant. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, java.lang.String storeCode) throws java.io.IOException { Get result = new Get(merchantId, targetMerchantId, storeCode); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}"; /** * Retrieves information about the given store. * * Create a request for the method "pos.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param storeCode A store code that is unique per merchant. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, java.lang.String storeCode) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.PosStore.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); this.storeCode = com.google.api.client.util.Preconditions.checkNotNull(storeCode, "Required parameter storeCode must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public Get setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } /** A store code that is unique per merchant. */ @com.google.api.client.util.Key private java.lang.String storeCode; /** A store code that is unique per merchant. */ public java.lang.String getStoreCode() { return storeCode; } /** A store code that is unique per merchant. */ public Get setStoreCode(java.lang.String storeCode) { this.storeCode = storeCode; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Creates a store for the given merchant. * * Create a request for the method "pos.insert". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosStore} * @return the request */ public Insert insert(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosStore content) throws java.io.IOException { Insert result = new Insert(merchantId, targetMerchantId, content); initialize(result); return result; } public class Insert extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/store"; /** * Creates a store for the given merchant. * * Create a request for the method "pos.insert". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosStore} * @since 1.13 */ protected Insert(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosStore content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.PosStore.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); } @Override public Insert set$Xgafv(java.lang.String $Xgafv) { return (Insert) super.set$Xgafv($Xgafv); } @Override public Insert setAccessToken(java.lang.String accessToken) { return (Insert) super.setAccessToken(accessToken); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setCallback(java.lang.String callback) { return (Insert) super.setCallback(callback); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUploadType(java.lang.String uploadType) { return (Insert) super.setUploadType(uploadType); } @Override public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public Insert setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public Insert setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Insert setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Submit inventory for the given merchant. * * Create a request for the method "pos.inventory". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Inventory#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosInventoryRequest} * @return the request */ public Inventory inventory(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosInventoryRequest content) throws java.io.IOException { Inventory result = new Inventory(merchantId, targetMerchantId, content); initialize(result); return result; } public class Inventory extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/inventory"; /** * Submit inventory for the given merchant. * * Create a request for the method "pos.inventory". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Inventory#execute()} method to invoke the remote operation.

* {@link * Inventory#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosInventoryRequest} * @since 1.13 */ protected Inventory(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosInventoryRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.PosInventoryResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); } @Override public Inventory set$Xgafv(java.lang.String $Xgafv) { return (Inventory) super.set$Xgafv($Xgafv); } @Override public Inventory setAccessToken(java.lang.String accessToken) { return (Inventory) super.setAccessToken(accessToken); } @Override public Inventory setAlt(java.lang.String alt) { return (Inventory) super.setAlt(alt); } @Override public Inventory setCallback(java.lang.String callback) { return (Inventory) super.setCallback(callback); } @Override public Inventory setFields(java.lang.String fields) { return (Inventory) super.setFields(fields); } @Override public Inventory setKey(java.lang.String key) { return (Inventory) super.setKey(key); } @Override public Inventory setOauthToken(java.lang.String oauthToken) { return (Inventory) super.setOauthToken(oauthToken); } @Override public Inventory setPrettyPrint(java.lang.Boolean prettyPrint) { return (Inventory) super.setPrettyPrint(prettyPrint); } @Override public Inventory setQuotaUser(java.lang.String quotaUser) { return (Inventory) super.setQuotaUser(quotaUser); } @Override public Inventory setUploadType(java.lang.String uploadType) { return (Inventory) super.setUploadType(uploadType); } @Override public Inventory setUploadProtocol(java.lang.String uploadProtocol) { return (Inventory) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public Inventory setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public Inventory setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Inventory setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Inventory set(String parameterName, Object value) { return (Inventory) super.set(parameterName, value); } } /** * Lists the stores of the target merchant. * * Create a request for the method "pos.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @return the request */ public List list(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId) throws java.io.IOException { List result = new List(merchantId, targetMerchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/store"; /** * Lists the stores of the target merchant. * * Create a request for the method "pos.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @since 1.13 */ protected List(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.PosListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public List setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Submit a sale event for the given merchant. * * Create a request for the method "pos.sale". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Sale#execute()} method to invoke the remote operation. * * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosSaleRequest} * @return the request */ public Sale sale(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosSaleRequest content) throws java.io.IOException { Sale result = new Sale(merchantId, targetMerchantId, content); initialize(result); return result; } public class Sale extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/pos/{targetMerchantId}/sale"; /** * Submit a sale event for the given merchant. * * Create a request for the method "pos.sale". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Sale#execute()} method to invoke the remote operation.

{@link * Sale#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the POS or inventory data provider. * @param targetMerchantId The ID of the target merchant. * @param content the {@link com.google.api.services.content.model.PosSaleRequest} * @since 1.13 */ protected Sale(java.math.BigInteger merchantId, java.math.BigInteger targetMerchantId, com.google.api.services.content.model.PosSaleRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.PosSaleResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.targetMerchantId = com.google.api.client.util.Preconditions.checkNotNull(targetMerchantId, "Required parameter targetMerchantId must be specified."); } @Override public Sale set$Xgafv(java.lang.String $Xgafv) { return (Sale) super.set$Xgafv($Xgafv); } @Override public Sale setAccessToken(java.lang.String accessToken) { return (Sale) super.setAccessToken(accessToken); } @Override public Sale setAlt(java.lang.String alt) { return (Sale) super.setAlt(alt); } @Override public Sale setCallback(java.lang.String callback) { return (Sale) super.setCallback(callback); } @Override public Sale setFields(java.lang.String fields) { return (Sale) super.setFields(fields); } @Override public Sale setKey(java.lang.String key) { return (Sale) super.setKey(key); } @Override public Sale setOauthToken(java.lang.String oauthToken) { return (Sale) super.setOauthToken(oauthToken); } @Override public Sale setPrettyPrint(java.lang.Boolean prettyPrint) { return (Sale) super.setPrettyPrint(prettyPrint); } @Override public Sale setQuotaUser(java.lang.String quotaUser) { return (Sale) super.setQuotaUser(quotaUser); } @Override public Sale setUploadType(java.lang.String uploadType) { return (Sale) super.setUploadType(uploadType); } @Override public Sale setUploadProtocol(java.lang.String uploadProtocol) { return (Sale) super.setUploadProtocol(uploadProtocol); } /** The ID of the POS or inventory data provider. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the POS or inventory data provider. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the POS or inventory data provider. */ public Sale setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the target merchant. */ @com.google.api.client.util.Key private java.math.BigInteger targetMerchantId; /** The ID of the target merchant. */ public java.math.BigInteger getTargetMerchantId() { return targetMerchantId; } /** The ID of the target merchant. */ public Sale setTargetMerchantId(java.math.BigInteger targetMerchantId) { this.targetMerchantId = targetMerchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Sale setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Sale set(String parameterName, Object value) { return (Sale) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Products collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Products.List request = content.products().list(parameters ...)}
   * 
* * @return the resource collection */ public Products products() { return new Products(); } /** * The "products" collection of methods. */ public class Products { /** * Retrieves, inserts, and deletes multiple products in a single request. * * Create a request for the method "products.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.ProductsCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.ProductsCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/products/batch"; /** * Retrieves, inserts, and deletes multiple products in a single request. * * Create a request for the method "products.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.ProductsCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.ProductsCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.ProductsCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Deletes a product from your Merchant Center account. * * Create a request for the method "products.delete". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @return the request */ public Delete delete(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException { Delete result = new Delete(merchantId, productId); initialize(result); return result; } public class Delete extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/products/{productId}"; /** * Deletes a product from your Merchant Center account. * * Create a request for the method "products.delete". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @since 1.13 */ protected Delete(java.math.BigInteger merchantId, java.lang.String productId) { super(ShoppingContent.this, "DELETE", REST_PATH, null, Void.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the product. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ public Delete setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The REST ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The REST ID of the product. */ public java.lang.String getProductId() { return productId; } /** The REST ID of the product. */ public Delete setProductId(java.lang.String productId) { this.productId = productId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Delete setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Retrieves a product from your Merchant Center account. * * Create a request for the method "products.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @return the request */ public Get get(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException { Get result = new Get(merchantId, productId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/products/{productId}"; /** * Retrieves a product from your Merchant Center account. * * Create a request for the method "products.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.lang.String productId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.Product.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the product. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The REST ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The REST ID of the product. */ public java.lang.String getProductId() { return productId; } /** The REST ID of the product. */ public Get setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Uploads a product to your Merchant Center account. If an item with the same channel, * contentLanguage, offerId, and targetCountry already exists, this method updates that entry. * * Create a request for the method "products.insert". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.Product} * @return the request */ public Insert insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Product content) throws java.io.IOException { Insert result = new Insert(merchantId, content); initialize(result); return result; } public class Insert extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/products"; /** * Uploads a product to your Merchant Center account. If an item with the same channel, * contentLanguage, offerId, and targetCountry already exists, this method updates that entry. * * Create a request for the method "products.insert". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param content the {@link com.google.api.services.content.model.Product} * @since 1.13 */ protected Insert(java.math.BigInteger merchantId, com.google.api.services.content.model.Product content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.Product.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public Insert set$Xgafv(java.lang.String $Xgafv) { return (Insert) super.set$Xgafv($Xgafv); } @Override public Insert setAccessToken(java.lang.String accessToken) { return (Insert) super.setAccessToken(accessToken); } @Override public Insert setAlt(java.lang.String alt) { return (Insert) super.setAlt(alt); } @Override public Insert setCallback(java.lang.String callback) { return (Insert) super.setCallback(callback); } @Override public Insert setFields(java.lang.String fields) { return (Insert) super.setFields(fields); } @Override public Insert setKey(java.lang.String key) { return (Insert) super.setKey(key); } @Override public Insert setOauthToken(java.lang.String oauthToken) { return (Insert) super.setOauthToken(oauthToken); } @Override public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { return (Insert) super.setPrettyPrint(prettyPrint); } @Override public Insert setQuotaUser(java.lang.String quotaUser) { return (Insert) super.setQuotaUser(quotaUser); } @Override public Insert setUploadType(java.lang.String uploadType) { return (Insert) super.setUploadType(uploadType); } @Override public Insert setUploadProtocol(java.lang.String uploadProtocol) { return (Insert) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the product. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ public Insert setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Insert setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** * Lists the products in your Merchant Center account. The response might contain fewer items than * specified by maxResults. Rely on nextPageToken to determine if there are more items to be * requested. * * Create a request for the method "products.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the products. This account cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/products"; /** * Lists the products in your Merchant Center account. The response might contain fewer items than * specified by maxResults. Rely on nextPageToken to determine if there are more items to be * requested. * * Create a request for the method "products.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the products. This account cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the products. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the products. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the products. This account cannot be a multi-client * account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * Flag to include the invalid inserted items in the result of the list request. By default * the invalid items are not shown (the default value is false). */ @com.google.api.client.util.Key private java.lang.Boolean includeInvalidInsertedItems; /** Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false). */ public java.lang.Boolean getIncludeInvalidInsertedItems() { return includeInvalidInsertedItems; } /** * Flag to include the invalid inserted items in the result of the list request. By default * the invalid items are not shown (the default value is false). */ public List setIncludeInvalidInsertedItems(java.lang.Boolean includeInvalidInsertedItems) { this.includeInvalidInsertedItems = includeInvalidInsertedItems; return this; } /** The maximum number of products to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of products to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of products to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Productstatuses collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Productstatuses.List request = content.productstatuses().list(parameters ...)}
   * 
* * @return the resource collection */ public Productstatuses productstatuses() { return new Productstatuses(); } /** * The "productstatuses" collection of methods. */ public class Productstatuses { /** * Gets the statuses of multiple products in a single request. * * Create a request for the method "productstatuses.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.ProductstatusesCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.ProductstatusesCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/productstatuses/batch"; /** * Gets the statuses of multiple products in a single request. * * Create a request for the method "productstatuses.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.ProductstatusesCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.ProductstatusesCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.ProductstatusesCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to include full product data in the results of this request. The default value is * false. */ @com.google.api.client.util.Key private java.lang.Boolean includeAttributes; /** Flag to include full product data in the results of this request. The default value is false. */ public java.lang.Boolean getIncludeAttributes() { return includeAttributes; } /** * Flag to include full product data in the results of this request. The default value is * false. */ public Custombatch setIncludeAttributes(java.lang.Boolean includeAttributes) { this.includeAttributes = includeAttributes; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Gets the status of a product from your Merchant Center account. * * Create a request for the method "productstatuses.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @return the request */ public Get get(java.math.BigInteger merchantId, java.lang.String productId) throws java.io.IOException { Get result = new Get(merchantId, productId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/productstatuses/{productId}"; /** * Gets the status of a product from your Merchant Center account. * * Create a request for the method "productstatuses.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param productId The REST ID of the product. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.lang.String productId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductStatus.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the product. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the product. This account cannot be a multi-client * account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The REST ID of the product. */ @com.google.api.client.util.Key private java.lang.String productId; /** The REST ID of the product. */ public java.lang.String getProductId() { return productId; } /** The REST ID of the product. */ public Get setProductId(java.lang.String productId) { this.productId = productId; return this; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ @com.google.api.client.util.Key private java.util.List destinations; /** If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. */ public java.util.List getDestinations() { return destinations; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ public Get setDestinations(java.util.List destinations) { this.destinations = destinations; return this; } /** * Flag to include full product data in the result of this get request. The default value is * false. */ @com.google.api.client.util.Key private java.lang.Boolean includeAttributes; /** Flag to include full product data in the result of this get request. The default value is false. */ public java.lang.Boolean getIncludeAttributes() { return includeAttributes; } /** * Flag to include full product data in the result of this get request. The default value is * false. */ public Get setIncludeAttributes(java.lang.Boolean includeAttributes) { this.includeAttributes = includeAttributes; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists the statuses of the products in your Merchant Center account. * * Create a request for the method "productstatuses.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the account that contains the products. This account cannot be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/productstatuses"; /** * Lists the statuses of the products in your Merchant Center account. * * Create a request for the method "productstatuses.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the account that contains the products. This account cannot be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ProductstatusesListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * The ID of the account that contains the products. This account cannot be a multi-client * account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account that contains the products. This account cannot be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the account that contains the products. This account cannot be a multi-client * account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ @com.google.api.client.util.Key private java.util.List destinations; /** If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. */ public java.util.List getDestinations() { return destinations; } /** * If set, only issues for the specified destinations are returned, otherwise only issues for * the Shopping destination. */ public List setDestinations(java.util.List destinations) { this.destinations = destinations; return this; } /** * Flag to include full product data in the results of the list request. The default value is * false. */ @com.google.api.client.util.Key private java.lang.Boolean includeAttributes; /** Flag to include full product data in the results of the list request. The default value is false. */ public java.lang.Boolean getIncludeAttributes() { return includeAttributes; } /** * Flag to include full product data in the results of the list request. The default value is * false. */ public List setIncludeAttributes(java.lang.Boolean includeAttributes) { this.includeAttributes = includeAttributes; return this; } /** * Flag to include the invalid inserted items in the result of the list request. By default * the invalid items are not shown (the default value is false). */ @com.google.api.client.util.Key private java.lang.Boolean includeInvalidInsertedItems; /** Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false). */ public java.lang.Boolean getIncludeInvalidInsertedItems() { return includeInvalidInsertedItems; } /** * Flag to include the invalid inserted items in the result of the list request. By default * the invalid items are not shown (the default value is false). */ public List setIncludeInvalidInsertedItems(java.lang.Boolean includeInvalidInsertedItems) { this.includeInvalidInsertedItems = includeInvalidInsertedItems; return this; } /** The maximum number of product statuses to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of product statuses to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of product statuses to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Shippingsettings collection. * *

The typical use is:

*
   *   {@code ShoppingContent content = new ShoppingContent(...);}
   *   {@code ShoppingContent.Shippingsettings.List request = content.shippingsettings().list(parameters ...)}
   * 
* * @return the resource collection */ public Shippingsettings shippingsettings() { return new Shippingsettings(); } /** * The "shippingsettings" collection of methods. */ public class Shippingsettings { /** * Retrieves and updates the shipping settings of multiple accounts in a single request. * * Create a request for the method "shippingsettings.custombatch". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.content.model.ShippingsettingsCustomBatchRequest} * @return the request */ public Custombatch custombatch(com.google.api.services.content.model.ShippingsettingsCustomBatchRequest content) throws java.io.IOException { Custombatch result = new Custombatch(content); initialize(result); return result; } public class Custombatch extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/shippingsettings/batch"; /** * Retrieves and updates the shipping settings of multiple accounts in a single request. * * Create a request for the method "shippingsettings.custombatch". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Custombatch#execute()} method to invoke the remote operation.

* {@link * Custombatch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.content.model.ShippingsettingsCustomBatchRequest} * @since 1.13 */ protected Custombatch(com.google.api.services.content.model.ShippingsettingsCustomBatchRequest content) { super(ShoppingContent.this, "POST", REST_PATH, content, com.google.api.services.content.model.ShippingsettingsCustomBatchResponse.class); } @Override public Custombatch set$Xgafv(java.lang.String $Xgafv) { return (Custombatch) super.set$Xgafv($Xgafv); } @Override public Custombatch setAccessToken(java.lang.String accessToken) { return (Custombatch) super.setAccessToken(accessToken); } @Override public Custombatch setAlt(java.lang.String alt) { return (Custombatch) super.setAlt(alt); } @Override public Custombatch setCallback(java.lang.String callback) { return (Custombatch) super.setCallback(callback); } @Override public Custombatch setFields(java.lang.String fields) { return (Custombatch) super.setFields(fields); } @Override public Custombatch setKey(java.lang.String key) { return (Custombatch) super.setKey(key); } @Override public Custombatch setOauthToken(java.lang.String oauthToken) { return (Custombatch) super.setOauthToken(oauthToken); } @Override public Custombatch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Custombatch) super.setPrettyPrint(prettyPrint); } @Override public Custombatch setQuotaUser(java.lang.String quotaUser) { return (Custombatch) super.setQuotaUser(quotaUser); } @Override public Custombatch setUploadType(java.lang.String uploadType) { return (Custombatch) super.setUploadType(uploadType); } @Override public Custombatch setUploadProtocol(java.lang.String uploadProtocol) { return (Custombatch) super.setUploadProtocol(uploadProtocol); } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Custombatch setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Custombatch set(String parameterName, Object value) { return (Custombatch) super.set(parameterName, value); } } /** * Retrieves the shipping settings of the account. * * Create a request for the method "shippingsettings.get". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update shipping settings. * @return the request */ public Get get(java.math.BigInteger merchantId, java.math.BigInteger accountId) throws java.io.IOException { Get result = new Get(merchantId, accountId); initialize(result); return result; } public class Get extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/shippingsettings/{accountId}"; /** * Retrieves the shipping settings of the account. * * Create a request for the method "shippingsettings.get". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update shipping settings. * @since 1.13 */ protected Get(java.math.BigInteger merchantId, java.math.BigInteger accountId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ShippingSettings.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Get setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get/update shipping settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get/update shipping settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get/update shipping settings. */ public Get setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Retrieves supported carriers and carrier services for an account. * * Create a request for the method "shippingsettings.getsupportedcarriers". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Getsupportedcarriers#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account for which to retrieve the supported carriers. * @return the request */ public Getsupportedcarriers getsupportedcarriers(java.math.BigInteger merchantId) throws java.io.IOException { Getsupportedcarriers result = new Getsupportedcarriers(merchantId); initialize(result); return result; } public class Getsupportedcarriers extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/supportedCarriers"; /** * Retrieves supported carriers and carrier services for an account. * * Create a request for the method "shippingsettings.getsupportedcarriers". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Getsupportedcarriers#execute()} method to invoke the remote * operation.

{@link Getsupportedcarriers#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account for which to retrieve the supported carriers. * @since 1.13 */ protected Getsupportedcarriers(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ShippingsettingsGetSupportedCarriersResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Getsupportedcarriers set$Xgafv(java.lang.String $Xgafv) { return (Getsupportedcarriers) super.set$Xgafv($Xgafv); } @Override public Getsupportedcarriers setAccessToken(java.lang.String accessToken) { return (Getsupportedcarriers) super.setAccessToken(accessToken); } @Override public Getsupportedcarriers setAlt(java.lang.String alt) { return (Getsupportedcarriers) super.setAlt(alt); } @Override public Getsupportedcarriers setCallback(java.lang.String callback) { return (Getsupportedcarriers) super.setCallback(callback); } @Override public Getsupportedcarriers setFields(java.lang.String fields) { return (Getsupportedcarriers) super.setFields(fields); } @Override public Getsupportedcarriers setKey(java.lang.String key) { return (Getsupportedcarriers) super.setKey(key); } @Override public Getsupportedcarriers setOauthToken(java.lang.String oauthToken) { return (Getsupportedcarriers) super.setOauthToken(oauthToken); } @Override public Getsupportedcarriers setPrettyPrint(java.lang.Boolean prettyPrint) { return (Getsupportedcarriers) super.setPrettyPrint(prettyPrint); } @Override public Getsupportedcarriers setQuotaUser(java.lang.String quotaUser) { return (Getsupportedcarriers) super.setQuotaUser(quotaUser); } @Override public Getsupportedcarriers setUploadType(java.lang.String uploadType) { return (Getsupportedcarriers) super.setUploadType(uploadType); } @Override public Getsupportedcarriers setUploadProtocol(java.lang.String uploadProtocol) { return (Getsupportedcarriers) super.setUploadProtocol(uploadProtocol); } /** The ID of the account for which to retrieve the supported carriers. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account for which to retrieve the supported carriers. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account for which to retrieve the supported carriers. */ public Getsupportedcarriers setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } @Override public Getsupportedcarriers set(String parameterName, Object value) { return (Getsupportedcarriers) super.set(parameterName, value); } } /** * Retrieves supported holidays for an account. * * Create a request for the method "shippingsettings.getsupportedholidays". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Getsupportedholidays#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account for which to retrieve the supported holidays. * @return the request */ public Getsupportedholidays getsupportedholidays(java.math.BigInteger merchantId) throws java.io.IOException { Getsupportedholidays result = new Getsupportedholidays(merchantId); initialize(result); return result; } public class Getsupportedholidays extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/supportedHolidays"; /** * Retrieves supported holidays for an account. * * Create a request for the method "shippingsettings.getsupportedholidays". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Getsupportedholidays#execute()} method to invoke the remote * operation.

{@link Getsupportedholidays#initialize(com.google.api.client.googleapis.services * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after * invoking the constructor.

* * @param merchantId The ID of the account for which to retrieve the supported holidays. * @since 1.13 */ protected Getsupportedholidays(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ShippingsettingsGetSupportedHolidaysResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Getsupportedholidays set$Xgafv(java.lang.String $Xgafv) { return (Getsupportedholidays) super.set$Xgafv($Xgafv); } @Override public Getsupportedholidays setAccessToken(java.lang.String accessToken) { return (Getsupportedholidays) super.setAccessToken(accessToken); } @Override public Getsupportedholidays setAlt(java.lang.String alt) { return (Getsupportedholidays) super.setAlt(alt); } @Override public Getsupportedholidays setCallback(java.lang.String callback) { return (Getsupportedholidays) super.setCallback(callback); } @Override public Getsupportedholidays setFields(java.lang.String fields) { return (Getsupportedholidays) super.setFields(fields); } @Override public Getsupportedholidays setKey(java.lang.String key) { return (Getsupportedholidays) super.setKey(key); } @Override public Getsupportedholidays setOauthToken(java.lang.String oauthToken) { return (Getsupportedholidays) super.setOauthToken(oauthToken); } @Override public Getsupportedholidays setPrettyPrint(java.lang.Boolean prettyPrint) { return (Getsupportedholidays) super.setPrettyPrint(prettyPrint); } @Override public Getsupportedholidays setQuotaUser(java.lang.String quotaUser) { return (Getsupportedholidays) super.setQuotaUser(quotaUser); } @Override public Getsupportedholidays setUploadType(java.lang.String uploadType) { return (Getsupportedholidays) super.setUploadType(uploadType); } @Override public Getsupportedholidays setUploadProtocol(java.lang.String uploadProtocol) { return (Getsupportedholidays) super.setUploadProtocol(uploadProtocol); } /** The ID of the account for which to retrieve the supported holidays. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account for which to retrieve the supported holidays. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account for which to retrieve the supported holidays. */ public Getsupportedholidays setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } @Override public Getsupportedholidays set(String parameterName, Object value) { return (Getsupportedholidays) super.set(parameterName, value); } } /** * Retrieves supported pickup services for an account. * * Create a request for the method "shippingsettings.getsupportedpickupservices". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Getsupportedpickupservices#execute()} method to invoke the remote * operation. * * @param merchantId The ID of the account for which to retrieve the supported pickup services. * @return the request */ public Getsupportedpickupservices getsupportedpickupservices(java.math.BigInteger merchantId) throws java.io.IOException { Getsupportedpickupservices result = new Getsupportedpickupservices(merchantId); initialize(result); return result; } public class Getsupportedpickupservices extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/supportedPickupServices"; /** * Retrieves supported pickup services for an account. * * Create a request for the method "shippingsettings.getsupportedpickupservices". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Getsupportedpickupservices#execute()} method to invoke the remote * operation.

{@link Getsupportedpickupservices#initialize(com.google.api.client.googleapis.se * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately * after invoking the constructor.

* * @param merchantId The ID of the account for which to retrieve the supported pickup services. * @since 1.13 */ protected Getsupportedpickupservices(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ShippingsettingsGetSupportedPickupServicesResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Getsupportedpickupservices set$Xgafv(java.lang.String $Xgafv) { return (Getsupportedpickupservices) super.set$Xgafv($Xgafv); } @Override public Getsupportedpickupservices setAccessToken(java.lang.String accessToken) { return (Getsupportedpickupservices) super.setAccessToken(accessToken); } @Override public Getsupportedpickupservices setAlt(java.lang.String alt) { return (Getsupportedpickupservices) super.setAlt(alt); } @Override public Getsupportedpickupservices setCallback(java.lang.String callback) { return (Getsupportedpickupservices) super.setCallback(callback); } @Override public Getsupportedpickupservices setFields(java.lang.String fields) { return (Getsupportedpickupservices) super.setFields(fields); } @Override public Getsupportedpickupservices setKey(java.lang.String key) { return (Getsupportedpickupservices) super.setKey(key); } @Override public Getsupportedpickupservices setOauthToken(java.lang.String oauthToken) { return (Getsupportedpickupservices) super.setOauthToken(oauthToken); } @Override public Getsupportedpickupservices setPrettyPrint(java.lang.Boolean prettyPrint) { return (Getsupportedpickupservices) super.setPrettyPrint(prettyPrint); } @Override public Getsupportedpickupservices setQuotaUser(java.lang.String quotaUser) { return (Getsupportedpickupservices) super.setQuotaUser(quotaUser); } @Override public Getsupportedpickupservices setUploadType(java.lang.String uploadType) { return (Getsupportedpickupservices) super.setUploadType(uploadType); } @Override public Getsupportedpickupservices setUploadProtocol(java.lang.String uploadProtocol) { return (Getsupportedpickupservices) super.setUploadProtocol(uploadProtocol); } /** The ID of the account for which to retrieve the supported pickup services. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the account for which to retrieve the supported pickup services. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the account for which to retrieve the supported pickup services. */ public Getsupportedpickupservices setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } @Override public Getsupportedpickupservices set(String parameterName, Object value) { return (Getsupportedpickupservices) super.set(parameterName, value); } } /** * Lists the shipping settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "shippingsettings.list". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. This must be a multi-client account. * @return the request */ public List list(java.math.BigInteger merchantId) throws java.io.IOException { List result = new List(merchantId); initialize(result); return result; } public class List extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/shippingsettings"; /** * Lists the shipping settings of the sub-accounts in your Merchant Center account. * * Create a request for the method "shippingsettings.list". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. This must be a multi-client account. * @since 1.13 */ protected List(java.math.BigInteger merchantId) { super(ShoppingContent.this, "GET", REST_PATH, null, com.google.api.services.content.model.ShippingsettingsListResponse.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The ID of the managing account. This must be a multi-client account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. This must be a multi-client account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** The ID of the managing account. This must be a multi-client account. */ public List setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The maximum number of shipping settings to return in the response, used for paging. */ @com.google.api.client.util.Key private java.lang.Long maxResults; /** The maximum number of shipping settings to return in the response, used for paging. */ public java.lang.Long getMaxResults() { return maxResults; } /** The maximum number of shipping settings to return in the response, used for paging. */ public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } /** The token returned by the previous request. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The token returned by the previous request. */ public java.lang.String getPageToken() { return pageToken; } /** The token returned by the previous request. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates the shipping settings of the account. Any fields that are not provided are deleted from * the resource. * * Create a request for the method "shippingsettings.update". * * This request holds the parameters needed by the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update shipping settings. * @param content the {@link com.google.api.services.content.model.ShippingSettings} * @return the request */ public Update update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.ShippingSettings content) throws java.io.IOException { Update result = new Update(merchantId, accountId, content); initialize(result); return result; } public class Update extends ShoppingContentRequest { private static final String REST_PATH = "content/v2/{merchantId}/shippingsettings/{accountId}"; /** * Updates the shipping settings of the account. Any fields that are not provided are deleted from * the resource. * * Create a request for the method "shippingsettings.update". * * This request holds the parameters needed by the the content server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account * must be a multi-client account and `accountId` must be the ID of a sub-account of this * account. * @param accountId The ID of the account for which to get/update shipping settings. * @param content the {@link com.google.api.services.content.model.ShippingSettings} * @since 1.13 */ protected Update(java.math.BigInteger merchantId, java.math.BigInteger accountId, com.google.api.services.content.model.ShippingSettings content) { super(ShoppingContent.this, "PUT", REST_PATH, content, com.google.api.services.content.model.ShippingSettings.class); this.merchantId = com.google.api.client.util.Preconditions.checkNotNull(merchantId, "Required parameter merchantId must be specified."); this.accountId = com.google.api.client.util.Preconditions.checkNotNull(accountId, "Required parameter accountId must be specified."); } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ @com.google.api.client.util.Key private java.math.BigInteger merchantId; /** The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ public java.math.BigInteger getMerchantId() { return merchantId; } /** * The ID of the managing account. If this parameter is not the same as accountId, then this * account must be a multi-client account and `accountId` must be the ID of a sub-account of * this account. */ public Update setMerchantId(java.math.BigInteger merchantId) { this.merchantId = merchantId; return this; } /** The ID of the account for which to get/update shipping settings. */ @com.google.api.client.util.Key private java.math.BigInteger accountId; /** The ID of the account for which to get/update shipping settings. */ public java.math.BigInteger getAccountId() { return accountId; } /** The ID of the account for which to get/update shipping settings. */ public Update setAccountId(java.math.BigInteger accountId) { this.accountId = accountId; return this; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ @com.google.api.client.util.Key private java.lang.Boolean dryRun; /** Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). */ public java.lang.Boolean getDryRun() { return dryRun; } /** * Flag to simulate a request like in a live environment. If set to true, dry-run mode checks * the validity of the request and returns errors (if any). */ public Update setDryRun(java.lang.Boolean dryRun) { this.dryRun = dryRun; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } } /** * Builder for {@link ShoppingContent}. * *

* Implementation is not thread-safe. *

* * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. // Use the regular endpoint for all other cases. String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { return DEFAULT_MTLS_ROOT_URL; } return DEFAULT_ROOT_URL; } /** * Returns an instance of a new builder. * * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { super( transport, jsonFactory, Builder.chooseEndpoint(transport), DEFAULT_SERVICE_PATH, httpRequestInitializer, false); setBatchPath(DEFAULT_BATCH_PATH); } /** Builds a new instance of {@link ShoppingContent}. */ @Override public ShoppingContent build() { return new ShoppingContent(this); } @Override public Builder setRootUrl(String rootUrl) { return (Builder) super.setRootUrl(rootUrl); } @Override public Builder setServicePath(String servicePath) { return (Builder) super.setServicePath(servicePath); } @Override public Builder setBatchPath(String batchPath) { return (Builder) super.setBatchPath(batchPath); } @Override public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); } @Override public Builder setApplicationName(String applicationName) { return (Builder) super.setApplicationName(applicationName); } @Override public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); } @Override public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); } @Override public Builder setSuppressAllChecks(boolean suppressAllChecks) { return (Builder) super.setSuppressAllChecks(suppressAllChecks); } /** * Set the {@link ShoppingContentRequestInitializer}. * * @since 1.12 */ public Builder setShoppingContentRequestInitializer( ShoppingContentRequestInitializer shoppingcontentRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(shoppingcontentRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy