diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/README.md b/clients/google-api-services-androidpublisher/v3/2.0.0/README.md
index 8fb3ac3559e..49b28110513 100644
--- a/clients/google-api-services-androidpublisher/v3/2.0.0/README.md
+++ b/clients/google-api-services-androidpublisher/v3/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
*
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Edits.List request = androidpublisher.edits().list(parameters ...)}
+ * {@code AndroidPublisher.Appstoreappsreview.List request = androidpublisher.appstoreappsreview().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Edits edits() {
- return new Edits();
+ public Appstoreappsreview appstoreappsreview() {
+ return new Appstoreappsreview();
}
/**
- * The "edits" collection of methods.
+ * The "appstoreappsreview" collection of methods.
*/
- public class Edits {
+ public class Appstoreappsreview {
/**
- * Commits an app edit.
+ * Creates an app store hosted app. This must be called before any other RPCs for this hosted app.
*
- * Create a request for the method "edits.commit".
+ * Create a request for the method "appstoreappsreview.createappstorehostedapp".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Createappstorehostedapp#execute()} method to invoke the
+ * remote operation.
*
- * @param packageName Package name of the app.
- * @param editId Identifier of the edit.
+ * @param appStorePackageName Required. Package name of the third-party app store.
+ * @param content the {@link com.google.api.services.androidpublisher.model.CreateAppStoreHostedAppRequest}
* @return the request
*/
- public Commit commit(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
- Commit result = new Commit(packageName, editId);
+ public Createappstorehostedapp createappstorehostedapp(java.lang.String appStorePackageName, com.google.api.services.androidpublisher.model.CreateAppStoreHostedAppRequest content) throws java.io.IOException {
+ Createappstorehostedapp result = new Createappstorehostedapp(appStorePackageName, content);
initialize(result);
return result;
}
- public class Commit extends AndroidPublisherRequest{@link - * Commit#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Createappstorehostedapp#execute()} method to invoke the + * remote operation.{@link Createappstorehostedapp#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param content the {@link com.google.api.services.androidpublisher.model.CreateAppStoreHostedAppRequest} * @since 1.13 */ - protected Commit(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + protected Createappstorehostedapp(java.lang.String appStorePackageName, com.google.api.services.androidpublisher.model.CreateAppStoreHostedAppRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.CreateAppStoreHostedAppResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); } @Override - public Commit set$Xgafv(java.lang.String $Xgafv) { - return (Commit) super.set$Xgafv($Xgafv); + public Createappstorehostedapp set$Xgafv(java.lang.String $Xgafv) { + return (Createappstorehostedapp) super.set$Xgafv($Xgafv); } @Override - public Commit setAccessToken(java.lang.String accessToken) { - return (Commit) super.setAccessToken(accessToken); + public Createappstorehostedapp setAccessToken(java.lang.String accessToken) { + return (Createappstorehostedapp) super.setAccessToken(accessToken); } @Override - public Commit setAlt(java.lang.String alt) { - return (Commit) super.setAlt(alt); + public Createappstorehostedapp setAlt(java.lang.String alt) { + return (Createappstorehostedapp) super.setAlt(alt); } @Override - public Commit setCallback(java.lang.String callback) { - return (Commit) super.setCallback(callback); + public Createappstorehostedapp setCallback(java.lang.String callback) { + return (Createappstorehostedapp) super.setCallback(callback); } @Override - public Commit setFields(java.lang.String fields) { - return (Commit) super.setFields(fields); + public Createappstorehostedapp setFields(java.lang.String fields) { + return (Createappstorehostedapp) super.setFields(fields); } @Override - public Commit setKey(java.lang.String key) { - return (Commit) super.setKey(key); + public Createappstorehostedapp setKey(java.lang.String key) { + return (Createappstorehostedapp) super.setKey(key); } @Override - public Commit setOauthToken(java.lang.String oauthToken) { - return (Commit) super.setOauthToken(oauthToken); + public Createappstorehostedapp setOauthToken(java.lang.String oauthToken) { + return (Createappstorehostedapp) super.setOauthToken(oauthToken); } @Override - public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Commit) super.setPrettyPrint(prettyPrint); + public Createappstorehostedapp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Createappstorehostedapp) super.setPrettyPrint(prettyPrint); } @Override - public Commit setQuotaUser(java.lang.String quotaUser) { - return (Commit) super.setQuotaUser(quotaUser); + public Createappstorehostedapp setQuotaUser(java.lang.String quotaUser) { + return (Createappstorehostedapp) super.setQuotaUser(quotaUser); } @Override - public Commit setUploadType(java.lang.String uploadType) { - return (Commit) super.setUploadType(uploadType); + public Createappstorehostedapp setUploadType(java.lang.String uploadType) { + return (Createappstorehostedapp) super.setUploadType(uploadType); } @Override - public Commit setUploadProtocol(java.lang.String uploadProtocol) { - return (Commit) super.setUploadProtocol(uploadProtocol); - } - - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } - - /** Package name of the app. */ - public Commit setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } - - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; - - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } - - /** Identifier of the edit. */ - public Commit setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } - - /** - * Optional. Specify how the API should behave if there are changes currently in review. If - * this value is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel - * the changes in review and then send all the changes for publishing. - */ - @com.google.api.client.util.Key - private java.lang.String changesInReviewBehavior; - - /** Optional. Specify how the API should behave if there are changes currently in review. If this value - is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel the changes in - review and then send all the changes for publishing. - */ - public java.lang.String getChangesInReviewBehavior() { - return changesInReviewBehavior; - } - - /** - * Optional. Specify how the API should behave if there are changes currently in review. If - * this value is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel - * the changes in review and then send all the changes for publishing. - */ - public Commit setChangesInReviewBehavior(java.lang.String changesInReviewBehavior) { - this.changesInReviewBehavior = changesInReviewBehavior; - return this; + public Createappstorehostedapp setUploadProtocol(java.lang.String uploadProtocol) { + return (Createappstorehostedapp) super.setUploadProtocol(uploadProtocol); } - /** - * When a rejection happens, the parameter will make sure that the changes in this edit won't - * be reviewed until they are explicitly sent for review from within the Google Play Console - * UI. These changes will be added to any other changes that are not yet sent for review. - */ + /** Required. Package name of the third-party app store. */ @com.google.api.client.util.Key - private java.lang.Boolean changesNotSentForReview; + private java.lang.String appStorePackageName; - /** When a rejection happens, the parameter will make sure that the changes in this edit won't be - reviewed until they are explicitly sent for review from within the Google Play Console UI. These - changes will be added to any other changes that are not yet sent for review. + /** Required. Package name of the third-party app store. */ - public java.lang.Boolean getChangesNotSentForReview() { - return changesNotSentForReview; + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - /** - * When a rejection happens, the parameter will make sure that the changes in this edit won't - * be reviewed until they are explicitly sent for review from within the Google Play Console - * UI. These changes will be added to any other changes that are not yet sent for review. - */ - public Commit setChangesNotSentForReview(java.lang.Boolean changesNotSentForReview) { - this.changesNotSentForReview = changesNotSentForReview; + /** Required. Package name of the third-party app store. */ + public Createappstorehostedapp setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; return this; } @Override - public Commit set(String parameterName, Object value) { - return (Commit) super.set(parameterName, value); + public Createappstorehostedapp set(String parameterName, Object value) { + return (Createappstorehostedapp) super.set(parameterName, value); } } /** - * Deletes an app edit. + * Updates details for an app hosted on an app store. Use this to provide details for a new app, or + * to update details for an existing app. The update will be sent for review immediately after + * creation. * - * Create a request for the method "edits.delete". + * Create a request for the method "appstoreappsreview.updateappstorehostedapp". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Updateappstorehostedapp#execute()} method to invoke the + * remote operation. * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param content the {@link com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppRequest} * @return the request */ - public Delete delete(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Delete result = new Delete(packageName, editId); + public Updateappstorehostedapp updateappstorehostedapp(java.lang.String appStorePackageName, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppRequest content) throws java.io.IOException { + Updateappstorehostedapp result = new Updateappstorehostedapp(appStorePackageName, content); initialize(result); return result; } - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Updateappstorehostedapp#execute()} method to invoke the + * remote operation.{@link Updateappstorehostedapp#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param content the {@link com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppRequest} * @since 1.13 */ - protected Delete(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + protected Updateappstorehostedapp(java.lang.String appStorePackageName, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Updateappstorehostedapp set$Xgafv(java.lang.String $Xgafv) { + return (Updateappstorehostedapp) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Updateappstorehostedapp setAccessToken(java.lang.String accessToken) { + return (Updateappstorehostedapp) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Updateappstorehostedapp setAlt(java.lang.String alt) { + return (Updateappstorehostedapp) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Updateappstorehostedapp setCallback(java.lang.String callback) { + return (Updateappstorehostedapp) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Updateappstorehostedapp setFields(java.lang.String fields) { + return (Updateappstorehostedapp) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Updateappstorehostedapp setKey(java.lang.String key) { + return (Updateappstorehostedapp) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Updateappstorehostedapp setOauthToken(java.lang.String oauthToken) { + return (Updateappstorehostedapp) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Updateappstorehostedapp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Updateappstorehostedapp) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Updateappstorehostedapp setQuotaUser(java.lang.String quotaUser) { + return (Updateappstorehostedapp) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Updateappstorehostedapp setUploadType(java.lang.String uploadType) { + return (Updateappstorehostedapp) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; + public Updateappstorehostedapp setUploadProtocol(java.lang.String uploadProtocol) { + return (Updateappstorehostedapp) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ - public Delete setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } - - /** Identifier of the edit. */ + /** Required. Package name of the third-party app store. */ @com.google.api.client.util.Key - private java.lang.String editId; + private java.lang.String appStorePackageName; - /** Identifier of the edit. + /** Required. Package name of the third-party app store. */ - public java.lang.String getEditId() { - return editId; + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - /** Identifier of the edit. */ - public Delete setEditId(java.lang.String editId) { - this.editId = editId; + /** Required. Package name of the third-party app store. */ + public Updateappstorehostedapp setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Updateappstorehostedapp set(String parameterName, Object value) { + return (Updateappstorehostedapp) super.set(parameterName, value); } } /** - * Gets an app edit. + * Updates the publish status of an app store hosted app. The default state after calling + * UpdateAppStoreHostedApp is PUBLISHED. It is not necessary to call this RPC explicitly to set an + * app to PUBLISHED. * - * Create a request for the method "edits.get". + * Create a request for the method "appstoreappsreview.updateappstorehostedapppublishstatus". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Updateappstorehostedapppublishstatus#execute()} method to + * invoke the remote operation. * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppPublishStatusRequest} * @return the request */ - public Get get(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Get result = new Get(packageName, editId); + public Updateappstorehostedapppublishstatus updateappstorehostedapppublishstatus(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppPublishStatusRequest content) throws java.io.IOException { + Updateappstorehostedapppublishstatus result = new Updateappstorehostedapppublishstatus(appStorePackageName, packageName, content); initialize(result); return result; } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Updateappstorehostedapppublishstatus#execute()} method to + * invoke the remote operation.{@link Updateappstorehostedapppublishstatus#initialize(com.goo + * gle.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize + * this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppPublishStatusRequest} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); + protected Updateappstorehostedapppublishstatus(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppPublishStatusRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.UpdateAppStoreHostedAppPublishStatusResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Updateappstorehostedapppublishstatus set$Xgafv(java.lang.String $Xgafv) { + return (Updateappstorehostedapppublishstatus) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Updateappstorehostedapppublishstatus setAccessToken(java.lang.String accessToken) { + return (Updateappstorehostedapppublishstatus) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Updateappstorehostedapppublishstatus setAlt(java.lang.String alt) { + return (Updateappstorehostedapppublishstatus) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Updateappstorehostedapppublishstatus setCallback(java.lang.String callback) { + return (Updateappstorehostedapppublishstatus) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Updateappstorehostedapppublishstatus setFields(java.lang.String fields) { + return (Updateappstorehostedapppublishstatus) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Updateappstorehostedapppublishstatus setKey(java.lang.String key) { + return (Updateappstorehostedapppublishstatus) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Updateappstorehostedapppublishstatus setOauthToken(java.lang.String oauthToken) { + return (Updateappstorehostedapppublishstatus) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Updateappstorehostedapppublishstatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Updateappstorehostedapppublishstatus) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Updateappstorehostedapppublishstatus setQuotaUser(java.lang.String quotaUser) { + return (Updateappstorehostedapppublishstatus) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Updateappstorehostedapppublishstatus setUploadType(java.lang.String uploadType) { + return (Updateappstorehostedapppublishstatus) super.setUploadType(uploadType); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Updateappstorehostedapppublishstatus setUploadProtocol(java.lang.String uploadProtocol) { + return (Updateappstorehostedapppublishstatus) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** Required. Package name of the third-party app store. */ + @com.google.api.client.util.Key + private java.lang.String appStorePackageName; + + /** Required. Package name of the third-party app store. + */ + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Required. Package name of the third-party app store. */ + public Updateappstorehostedapppublishstatus setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; + return this; } - /** Package name of the app. */ + /** Required. Package name of the app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Package name of the app. + /** Required. Package name of the app. */ public java.lang.String getPackageName() { return packageName; } - /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + /** Required. Package name of the app. */ + public Updateappstorehostedapppublishstatus setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; - - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } - - /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Updateappstorehostedapppublishstatus set(String parameterName, Object value) { + return (Updateappstorehostedapppublishstatus) super.set(parameterName, value); } } /** - * Creates a new edit for an app. + * Upload an APK file for the hosted app. Returns an ID to track this APK. * - * Create a request for the method "edits.insert". + * Create a request for the method "appstoreappsreview.uploadapk". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote operation. * - * @param packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.AppEdit} + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadApkRequest} * @return the request */ - public Insert insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.AppEdit content) throws java.io.IOException { - Insert result = new Insert(packageName, content); + public Uploadapk uploadapk(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadApkRequest content) throws java.io.IOException { + Uploadapk result = new Uploadapk(appStorePackageName, packageName, content); initialize(result); return result; } - public class Insert extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadApkRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Uploadapk uploadapk(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadApkRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Uploadapk result = new Uploadapk(appStorePackageName, packageName, content, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits"; + public class Uploadapk extends AndroidPublisherRequest{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote + * operation.{@link + * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.AppEdit} + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadApkRequest} * @since 1.13 */ - protected Insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.AppEdit content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.AppEdit.class); + protected Uploadapk(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadApkRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.UploadApkResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + } + + /** + * Upload an APK file for the hosted app. Returns an ID to track this APK. + * + * Create a request for the method "appstoreappsreview.uploadapk". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote + * operation.{@link + * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadApkRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Uploadapk(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadApkRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.androidpublisher.model.UploadApkResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Uploadapk set$Xgafv(java.lang.String $Xgafv) { + return (Uploadapk) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Uploadapk setAccessToken(java.lang.String accessToken) { + return (Uploadapk) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Uploadapk setAlt(java.lang.String alt) { + return (Uploadapk) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Uploadapk setCallback(java.lang.String callback) { + return (Uploadapk) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Uploadapk setFields(java.lang.String fields) { + return (Uploadapk) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Uploadapk setKey(java.lang.String key) { + return (Uploadapk) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Uploadapk setOauthToken(java.lang.String oauthToken) { + return (Uploadapk) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Uploadapk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadapk) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Uploadapk setQuotaUser(java.lang.String quotaUser) { + return (Uploadapk) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Uploadapk setUploadType(java.lang.String uploadType) { + return (Uploadapk) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Uploadapk setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadapk) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** Required. Package name of the third-party app store. */ + @com.google.api.client.util.Key + private java.lang.String appStorePackageName; + + /** Required. Package name of the third-party app store. + */ + public java.lang.String getAppStorePackageName() { + return appStorePackageName; + } + + /** Required. Package name of the third-party app store. */ + public Uploadapk setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; + return this; + } + + /** Required. Package name of the app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Package name of the app. + /** Required. Package name of the app. */ public java.lang.String getPackageName() { return packageName; } - /** Package name of the app. */ - public Insert setPackageName(java.lang.String packageName) { + /** Required. Package name of the app. */ + public Uploadapk setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Uploadapk set(String parameterName, Object value) { + return (Uploadapk) super.set(parameterName, value); } } /** - * Validates an app edit. + * Upload a policy declaration file for the hosted app. Returns an ID to track the file. * - * Create a request for the method "edits.validate". + * Create a request for the method "appstoreappsreview.uploadappstoreapppolicydeclarationfile". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Validate#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Uploadappstoreapppolicydeclarationfile#execute()} method to + * invoke the remote operation. * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest} * @return the request */ - public Validate validate(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Validate result = new Validate(packageName, editId); + public Uploadappstoreapppolicydeclarationfile uploadappstoreapppolicydeclarationfile(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest content) throws java.io.IOException { + Uploadappstoreapppolicydeclarationfile result = new Uploadappstoreapppolicydeclarationfile(appStorePackageName, packageName, content); initialize(result); return result; } - public class Validate extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Uploadappstoreapppolicydeclarationfile uploadappstoreapppolicydeclarationfile(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Uploadappstoreapppolicydeclarationfile result = new Uploadappstoreapppolicydeclarationfile(appStorePackageName, packageName, content, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate"; + public class Uploadappstoreapppolicydeclarationfile extends AndroidPublisherRequest{@link - * Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Uploadappstoreapppolicydeclarationfile#execute()} method + * to invoke the remote operation.{@link Uploadappstoreapppolicydeclarationfile#initialize(co + * m.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to + * initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest} * @since 1.13 */ - protected Validate(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); + protected Uploadappstoreapppolicydeclarationfile(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + } + + /** + * Upload a policy declaration file for the hosted app. Returns an ID to track the file. + * + * Create a request for the method "appstoreappsreview.uploadappstoreapppolicydeclarationfile". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadappstoreapppolicydeclarationfile#execute()} method + * to invoke the remote operation.{@link Uploadappstoreapppolicydeclarationfile#initialize(co + * m.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to + * initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Uploadappstoreapppolicydeclarationfile(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.androidpublisher.model.UploadAppStoreAppPolicyDeclarationFileResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); + public Uploadappstoreapppolicydeclarationfile set$Xgafv(java.lang.String $Xgafv) { + return (Uploadappstoreapppolicydeclarationfile) super.set$Xgafv($Xgafv); } @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); + public Uploadappstoreapppolicydeclarationfile setAccessToken(java.lang.String accessToken) { + return (Uploadappstoreapppolicydeclarationfile) super.setAccessToken(accessToken); } @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); + public Uploadappstoreapppolicydeclarationfile setAlt(java.lang.String alt) { + return (Uploadappstoreapppolicydeclarationfile) super.setAlt(alt); } @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); + public Uploadappstoreapppolicydeclarationfile setCallback(java.lang.String callback) { + return (Uploadappstoreapppolicydeclarationfile) super.setCallback(callback); } @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); + public Uploadappstoreapppolicydeclarationfile setFields(java.lang.String fields) { + return (Uploadappstoreapppolicydeclarationfile) super.setFields(fields); } @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); + public Uploadappstoreapppolicydeclarationfile setKey(java.lang.String key) { + return (Uploadappstoreapppolicydeclarationfile) super.setKey(key); } @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); + public Uploadappstoreapppolicydeclarationfile setOauthToken(java.lang.String oauthToken) { + return (Uploadappstoreapppolicydeclarationfile) super.setOauthToken(oauthToken); } @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); + public Uploadappstoreapppolicydeclarationfile setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadappstoreapppolicydeclarationfile) super.setPrettyPrint(prettyPrint); } @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); + public Uploadappstoreapppolicydeclarationfile setQuotaUser(java.lang.String quotaUser) { + return (Uploadappstoreapppolicydeclarationfile) super.setQuotaUser(quotaUser); } @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); + public Uploadappstoreapppolicydeclarationfile setUploadType(java.lang.String uploadType) { + return (Uploadappstoreapppolicydeclarationfile) super.setUploadType(uploadType); } @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); + public Uploadappstoreapppolicydeclarationfile setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadappstoreapppolicydeclarationfile) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** Required. Package name of the third-party app store. */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String appStorePackageName; - /** Package name of the app. + /** Required. Package name of the third-party app store. */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - /** Package name of the app. */ - public Validate setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** Required. Package name of the third-party app store. */ + public Uploadappstoreapppolicydeclarationfile setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; return this; } - /** Identifier of the edit. */ + /** Required. Package name of the app. */ @com.google.api.client.util.Key - private java.lang.String editId; + private java.lang.String packageName; - /** Identifier of the edit. + /** Required. Package name of the app. */ - public java.lang.String getEditId() { - return editId; + public java.lang.String getPackageName() { + return packageName; } - /** Identifier of the edit. */ - public Validate setEditId(java.lang.String editId) { - this.editId = editId; + /** Required. Package name of the app. */ + public Uploadappstoreapppolicydeclarationfile setPackageName(java.lang.String packageName) { + this.packageName = packageName; return this; } @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); + public Uploadappstoreapppolicydeclarationfile set(String parameterName, Object value) { + return (Uploadappstoreapppolicydeclarationfile) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Apks collection. + * Upload a screenshot or app icon for the hosted app. Returns an ID to track the image. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Apks.List request = androidpublisher.apks().list(parameters ...)}
- *
+ * Create a request for the method "appstoreappsreview.uploadimage".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Uploadimage#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param appStorePackageName Required. Package name of the third-party app store.
+ * @param packageName Required. Package name of the app.
+ * @param content the {@link com.google.api.services.androidpublisher.model.UploadImageRequest}
+ * @return the request
*/
- public Apks apks() {
- return new Apks();
+ public Uploadimage uploadimage(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadImageRequest content) throws java.io.IOException {
+ Uploadimage result = new Uploadimage(appStorePackageName, packageName, content);
+ initialize(result);
+ return result;
}
/**
- * The "apks" collection of methods.
+ * Upload a screenshot or app icon for the hosted app. Returns an ID to track the image.
+ *
+ * Create a request for the method "appstoreappsreview.uploadimage".
+ *
+ * This request holds the parameters needed by the the androidpublisher server. After setting any
+ * optional parameters, call the {@link Uploadimage#execute()} method to invoke the remote
+ * operation.
+ *
+ * + * This method should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadImageRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails */ - public class Apks { + public Uploadimage uploadimage(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadImageRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Uploadimage result = new Uploadimage(appStorePackageName, packageName, content, mediaContent); + initialize(result); + return result; + } + + public class Uploadimage extends AndroidPublisherRequest{@link + * Uploadimage#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} - * @return the request + * @param appStorePackageName Required. Package name of the third-party app store. + * @param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadImageRequest} + * @since 1.13 */ - public Addexternallyhosted addexternallyhosted(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest content) throws java.io.IOException { - Addexternallyhosted result = new Addexternallyhosted(packageName, editId, content); - initialize(result); - return result; + protected Uploadimage(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadImageRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.UploadImageResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class Addexternallyhosted extends AndroidPublisherRequest{@link Addexternallyhosted#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} - * @since 1.13 - */ - protected Addexternallyhosted(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - } - - @Override - public Addexternallyhosted set$Xgafv(java.lang.String $Xgafv) { - return (Addexternallyhosted) super.set$Xgafv($Xgafv); - } - - @Override - public Addexternallyhosted setAccessToken(java.lang.String accessToken) { - return (Addexternallyhosted) super.setAccessToken(accessToken); - } + /** + * Upload a screenshot or app icon for the hosted app. Returns an ID to track the image. + * + * Create a request for the method "appstoreappsreview.uploadimage". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadimage#execute()} method to invoke the remote + * operation.{@link + * Uploadimage#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param appStorePackageName Required. Package name of the third-party app store.@param packageName Required. Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.UploadImageRequest} media metadata or {@code null} if none + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Uploadimage(java.lang.String appStorePackageName, java.lang.String packageName, com.google.api.services.androidpublisher.model.UploadImageRequest content, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, content, com.google.api.services.androidpublisher.model.UploadImageResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); + } - @Override - public Addexternallyhosted setAlt(java.lang.String alt) { - return (Addexternallyhosted) super.setAlt(alt); - } + @Override + public Uploadimage set$Xgafv(java.lang.String $Xgafv) { + return (Uploadimage) super.set$Xgafv($Xgafv); + } - @Override - public Addexternallyhosted setCallback(java.lang.String callback) { - return (Addexternallyhosted) super.setCallback(callback); - } + @Override + public Uploadimage setAccessToken(java.lang.String accessToken) { + return (Uploadimage) super.setAccessToken(accessToken); + } - @Override - public Addexternallyhosted setFields(java.lang.String fields) { - return (Addexternallyhosted) super.setFields(fields); - } + @Override + public Uploadimage setAlt(java.lang.String alt) { + return (Uploadimage) super.setAlt(alt); + } - @Override - public Addexternallyhosted setKey(java.lang.String key) { - return (Addexternallyhosted) super.setKey(key); - } + @Override + public Uploadimage setCallback(java.lang.String callback) { + return (Uploadimage) super.setCallback(callback); + } - @Override - public Addexternallyhosted setOauthToken(java.lang.String oauthToken) { - return (Addexternallyhosted) super.setOauthToken(oauthToken); - } + @Override + public Uploadimage setFields(java.lang.String fields) { + return (Uploadimage) super.setFields(fields); + } - @Override - public Addexternallyhosted setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Addexternallyhosted) super.setPrettyPrint(prettyPrint); - } + @Override + public Uploadimage setKey(java.lang.String key) { + return (Uploadimage) super.setKey(key); + } - @Override - public Addexternallyhosted setQuotaUser(java.lang.String quotaUser) { - return (Addexternallyhosted) super.setQuotaUser(quotaUser); - } + @Override + public Uploadimage setOauthToken(java.lang.String oauthToken) { + return (Uploadimage) super.setOauthToken(oauthToken); + } - @Override - public Addexternallyhosted setUploadType(java.lang.String uploadType) { - return (Addexternallyhosted) super.setUploadType(uploadType); - } + @Override + public Uploadimage setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadimage) super.setPrettyPrint(prettyPrint); + } - @Override - public Addexternallyhosted setUploadProtocol(java.lang.String uploadProtocol) { - return (Addexternallyhosted) super.setUploadProtocol(uploadProtocol); - } + @Override + public Uploadimage setQuotaUser(java.lang.String quotaUser) { + return (Uploadimage) super.setQuotaUser(quotaUser); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Uploadimage setUploadType(java.lang.String uploadType) { + return (Uploadimage) super.setUploadType(uploadType); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Uploadimage setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadimage) super.setUploadProtocol(uploadProtocol); + } - /** Package name of the app. */ - public Addexternallyhosted setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. Package name of the third-party app store. */ + @com.google.api.client.util.Key + private java.lang.String appStorePackageName; - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + /** Required. Package name of the third-party app store. + */ + public java.lang.String getAppStorePackageName() { + return appStorePackageName; + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + /** Required. Package name of the third-party app store. */ + public Uploadimage setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; + return this; + } - /** Identifier of the edit. */ - public Addexternallyhosted setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + /** Required. Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Addexternallyhosted set(String parameterName, Object value) { - return (Addexternallyhosted) super.set(parameterName, value); - } - } - /** - * Lists all current APKs of the app and edit. - * - * Create a request for the method "apks.list". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @return the request + /** Required. Package name of the app. */ - public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - List result = new List(packageName, editId); - initialize(result); - return result; + public java.lang.String getPackageName() { + return packageName; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @since 1.13 - */ - protected List(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ApksListResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - } + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * An accessor for creating requests from the Edits collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Edits.List request = androidpublisher.edits().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Edits edits() {
+ return new Edits();
+ }
- @Override
- public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
- return super.buildHttpRequestUsingHead();
- }
+ /**
+ * The "edits" collection of methods.
+ */
+ public class Edits {
- @Override
- public List set$Xgafv(java.lang.String $Xgafv) {
- return (List) super.set$Xgafv($Xgafv);
- }
+ /**
+ * Commits an app edit.
+ *
+ * Create a request for the method "edits.commit".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Package name of the app.
+ * @param editId Identifier of the edit.
+ * @return the request
+ */
+ public Commit commit(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ Commit result = new Commit(packageName, editId);
+ initialize(result);
+ return result;
+ }
- @Override
- public List setAccessToken(java.lang.String accessToken) {
- return (List) super.setAccessToken(accessToken);
- }
+ public class Commit extends AndroidPublisherRequest{@link + * Commit#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @since 1.13 + */ + protected Commit(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Commit set$Xgafv(java.lang.String $Xgafv) { + return (Commit) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Commit setAccessToken(java.lang.String accessToken) { + return (Commit) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Commit setAlt(java.lang.String alt) { + return (Commit) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Commit setCallback(java.lang.String callback) { + return (Commit) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Commit setFields(java.lang.String fields) { + return (Commit) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Commit setKey(java.lang.String key) { + return (Commit) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Commit setOauthToken(java.lang.String oauthToken) { + return (Commit) super.setOauthToken(oauthToken); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Commit) super.setPrettyPrint(prettyPrint); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Commit setQuotaUser(java.lang.String quotaUser) { + return (Commit) super.setQuotaUser(quotaUser); + } - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Commit setUploadType(java.lang.String uploadType) { + return (Commit) super.setUploadType(uploadType); + } - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + @Override + public Commit setUploadProtocol(java.lang.String uploadProtocol) { + return (Commit) super.setUploadProtocol(uploadProtocol); + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Package name of the app. */ + public Commit setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; } - /** - * Uploads an APK and adds to the current edit. - * - * Create a request for the method "apks.upload". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @return the request + + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; + + /** Identifier of the edit. */ - public Upload upload(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Upload result = new Upload(packageName, editId); - initialize(result); - return result; + public java.lang.String getEditId() { + return editId; + } + + /** Identifier of the edit. */ + public Commit setEditId(java.lang.String editId) { + this.editId = editId; + return this; } /** - * Uploads an APK and adds to the current edit. - * - * Create a request for the method "apks.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - *- * This method should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit. - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails + * Optional. Specify how the API should behave if there are changes currently in review. If + * this value is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel + * the changes in review and then send all the changes for publishing. */ - public Upload upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, mediaContent); - initialize(result); - return result; - } + @com.google.api.client.util.Key + private java.lang.String changesInReviewBehavior; - public class Upload extends AndroidPublisherRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.Apk.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - } - - /** - * Uploads an APK and adds to the current edit. - * - * Create a request for the method "apks.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit. - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.Apk.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); - } - - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } - - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } - - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } - - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); - } - - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } - - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } - - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } - - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } - - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } - - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } - - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); - } - - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } - - /** Package name of the app. */ - public Upload setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } - - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + /** + * Optional. Specify how the API should behave if there are changes currently in review. If + * this value is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel + * the changes in review and then send all the changes for publishing. + */ + public Commit setChangesInReviewBehavior(java.lang.String changesInReviewBehavior) { + this.changesInReviewBehavior = changesInReviewBehavior; + return this; + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + /** + * When a rejection happens, the parameter will make sure that the changes in this edit won't + * be reviewed until they are explicitly sent for review from within the Google Play Console + * UI. These changes will be added to any other changes that are not yet sent for review. + */ + @com.google.api.client.util.Key + private java.lang.Boolean changesNotSentForReview; - /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + /** When a rejection happens, the parameter will make sure that the changes in this edit won't be + reviewed until they are explicitly sent for review from within the Google Play Console UI. These + changes will be added to any other changes that are not yet sent for review. + */ + public java.lang.Boolean getChangesNotSentForReview() { + return changesNotSentForReview; + } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); - } + /** + * When a rejection happens, the parameter will make sure that the changes in this edit won't + * be reviewed until they are explicitly sent for review from within the Google Play Console + * UI. These changes will be added to any other changes that are not yet sent for review. + */ + public Commit setChangesNotSentForReview(java.lang.Boolean changesNotSentForReview) { + this.changesNotSentForReview = changesNotSentForReview; + return this; } + @Override + public Commit set(String parameterName, Object value) { + return (Commit) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Bundles collection. + * Deletes an app edit. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Bundles.List request = androidpublisher.bundles().list(parameters ...)}
- *
+ * Create a request for the method "edits.delete".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Package name of the app.
+ * @param editId Identifier of the edit.
+ * @return the request
*/
- public Bundles bundles() {
- return new Bundles();
+ public Delete delete(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ Delete result = new Delete(packageName, editId);
+ initialize(result);
+ return result;
}
- /**
- * The "bundles" collection of methods.
- */
- public class Bundles {
+ public class Delete extends AndroidPublisherRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @return the request + * @since 1.13 */ - public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - List result = new List(packageName, editId); - initialize(result); - return result; + protected Delete(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @since 1.13 - */ - protected List(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BundlesListResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @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 Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Package name of the app. */ + public Delete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Identifier of the edit. */ + public Delete setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an app edit. + * + * Create a request for the method "edits.get". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @return the request + */ + public Get get(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + Get result = new Get(packageName, editId); + initialize(result); + return result; + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + public class Get extends AndroidPublisherRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @return the request + * @since 1.13 */ - public Upload upload(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Upload result = new Upload(packageName, editId); - initialize(result); - return result; + protected Get(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } - /** - * Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, - * please increase the timeout of the http request before calling this endpoint (a timeout of 2 - * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- - * library/java/google-api-java-client/errors) for an example in java. - * - * Create a request for the method "bundles.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - *- * This method should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit. - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails - */ - public Upload upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, mediaContent); - initialize(result); - return result; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - public class Upload extends AndroidPublisherRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.Bundle.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** - * Uploads a new Android App Bundle to this edit. If you are using the Google API client - * libraries, please increase the timeout of the http request before calling this endpoint (a - * timeout of 2 minutes is recommended). See [Timeouts and - * Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) - * for an example in java. - * - * Create a request for the method "bundles.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit. - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.Bundle.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); - } - - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } - - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } - - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } - - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); - } - - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } - - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } - - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } - - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } - - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } - - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Package name of the app. */ - public Upload setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Deprecated. The installation warning has been removed, it's not necessary to set this - * field anymore. - */ - @com.google.api.client.util.Key - private java.lang.Boolean ackBundleInstallationWarning; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Deprecated. The installation warning has been removed, it's not necessary to set this field - anymore. - */ - public java.lang.Boolean getAckBundleInstallationWarning() { - return ackBundleInstallationWarning; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** - * Deprecated. The installation warning has been removed, it's not necessary to set this - * field anymore. - */ - public Upload setAckBundleInstallationWarning(java.lang.Boolean ackBundleInstallationWarning) { - this.ackBundleInstallationWarning = ackBundleInstallationWarning; - return this; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of - * the DTC or "LATEST" for last uploaded DTC. - */ - @com.google.api.client.util.Key - private java.lang.String deviceTierConfigId; + /** Package name of the app. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or - "LATEST" for last uploaded DTC. - */ - public java.lang.String getDeviceTierConfigId() { - return deviceTierConfigId; - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** - * Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of - * the DTC or "LATEST" for last uploaded DTC. - */ - public Upload setDeviceTierConfigId(java.lang.String deviceTierConfigId) { - this.deviceTierConfigId = deviceTierConfigId; - return this; - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); - } + /** Identifier of the edit. */ + public Get setEditId(java.lang.String editId) { + this.editId = editId; + return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Countryavailability collection. + * Creates a new edit for an app. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Countryavailability.List request = androidpublisher.countryavailability().list(parameters ...)}
- *
+ * Create a request for the method "edits.insert".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Package name of the app.
+ * @param content the {@link com.google.api.services.androidpublisher.model.AppEdit}
+ * @return the request
*/
- public Countryavailability countryavailability() {
- return new Countryavailability();
+ public Insert insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.AppEdit content) throws java.io.IOException {
+ Insert result = new Insert(packageName, content);
+ initialize(result);
+ return result;
}
- /**
- * The "countryavailability" collection of methods.
- */
- public class Countryavailability {
+ public class Insert extends AndroidPublisherRequest{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @param track The track to read from. - * @return the request + * @param content the {@link com.google.api.services.androidpublisher.model.AppEdit} + * @since 1.13 */ - public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException { - Get result = new Get(packageName, editId, track); - initialize(result); - return result; + protected Insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.AppEdit content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.AppEdit.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @param track The track to read from. - * @since 1.13 - */ - protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.TrackCountryAvailability.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track 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 Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - /** Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - /** The track to read from. */ - @com.google.api.client.util.Key - private java.lang.String track; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } - /** The track to read from. - */ - public java.lang.String getTrack() { - return track; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** The track to read from. */ - public Get setTrack(java.lang.String track) { - this.track = track; - return this; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** Package name of the app. */ + public Insert setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; } + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Deobfuscationfiles collection. + * Validates an app edit. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Deobfuscationfiles.List request = androidpublisher.deobfuscationfiles().list(parameters ...)}
- *
+ * Create a request for the method "edits.validate".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Validate#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Package name of the app.
+ * @param editId Identifier of the edit.
+ * @return the request
*/
- public Deobfuscationfiles deobfuscationfiles() {
- return new Deobfuscationfiles();
+ public Validate validate(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ Validate result = new Validate(packageName, editId);
+ initialize(result);
+ return result;
}
- /**
- * The "deobfuscationfiles" collection of methods.
- */
- public class Deobfuscationfiles {
+ public class Validate extends AndroidPublisherRequest{@link + * Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Unique identifier for the Android app. - * @param editId Unique identifier for this edit. - * @param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded. - * @param deobfuscationFileType The type of the deobfuscation file. - * @return the request + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @since 1.13 */ - public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType) throws java.io.IOException { - Upload result = new Upload(packageName, editId, apkVersionCode, deobfuscationFileType); - initialize(result); - return result; + protected Validate(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.AppEdit.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } + + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } + + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } + + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } + + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } + + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } + + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } + + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } + + @Override + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); + } + + @Override + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); + } + + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Package name of the app. */ + public Validate setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; + + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } + + /** Identifier of the edit. */ + public Validate setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } + + @Override + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Apks collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Apks.List request = androidpublisher.apks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Apks apks() {
+ return new Apks();
+ }
+
+ /**
+ * The "apks" collection of methods.
+ */
+ public class Apks {
+
/**
- * Uploads a new deobfuscation file and attaches to the specified APK.
- *
- * Create a request for the method "deobfuscationfiles.upload".
+ * Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a
+ * specified URL. This function is only available to organizations using Managed Play whose
+ * application is configured to restrict distribution to the organizations.
*
- * This request holds the parameters needed by the the androidpublisher server. After setting any
- * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation.
+ * Create a request for the method "apks.addexternallyhosted".
*
- * - * This method should be used for uploading media content. - *
+ * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Addexternallyhosted#execute()} method to invoke the remote + * operation. * - * @param packageName Unique identifier for the Android app.@param editId Unique identifier for this edit.@param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded.@param deobfuscationFileType The type of the deobfuscation file. - * @param mediaContent The media HTTP content. + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} * @return the request - * @throws java.io.IOException if the initialization of the request fails */ - public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, apkVersionCode, deobfuscationFileType, mediaContent); + public Addexternallyhosted addexternallyhosted(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest content) throws java.io.IOException { + Addexternallyhosted result = new Addexternallyhosted(packageName, editId, content); initialize(result); return result; } - public class Upload extends AndroidPublisherRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Unique identifier for the Android app. - * @param editId Unique identifier for this edit. - * @param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded. - * @param deobfuscationFileType The type of the deobfuscation file. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.DeobfuscationFilesUploadResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.deobfuscationFileType = com.google.api.client.util.Preconditions.checkNotNull(deobfuscationFileType, "Required parameter deobfuscationFileType must be specified."); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted"; /** - * Uploads a new deobfuscation file and attaches to the specified APK. + * Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a + * specified URL. This function is only available to organizations using Managed Play whose + * application is configured to restrict distribution to the organizations. * - * Create a request for the method "deobfuscationfiles.upload". + * Create a request for the method "apks.addexternallyhosted". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
+ * optional parameters, call the {@link Addexternallyhosted#execute()} method to invoke the remote + * operation.{@link Addexternallyhosted#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param packageName Unique identifier for the Android app.@param editId Unique identifier for this edit.@param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded.@param deobfuscationFileType The type of the deobfuscation file. - * @param mediaContent The media HTTP content. + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} * @since 1.13 */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.DeobfuscationFilesUploadResponse.class); + protected Addexternallyhosted(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ApksAddExternallyHostedResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.deobfuscationFileType = com.google.api.client.util.Preconditions.checkNotNull(deobfuscationFileType, "Required parameter deobfuscationFileType must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public Addexternallyhosted set$Xgafv(java.lang.String $Xgafv) { + return (Addexternallyhosted) super.set$Xgafv($Xgafv); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public Addexternallyhosted setAccessToken(java.lang.String accessToken) { + return (Addexternallyhosted) super.setAccessToken(accessToken); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + public Addexternallyhosted setAlt(java.lang.String alt) { + return (Addexternallyhosted) super.setAlt(alt); } @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public Addexternallyhosted setCallback(java.lang.String callback) { + return (Addexternallyhosted) super.setCallback(callback); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public Addexternallyhosted setFields(java.lang.String fields) { + return (Addexternallyhosted) super.setFields(fields); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Addexternallyhosted setKey(java.lang.String key) { + return (Addexternallyhosted) super.setKey(key); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Addexternallyhosted setOauthToken(java.lang.String oauthToken) { + return (Addexternallyhosted) super.setOauthToken(oauthToken); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Addexternallyhosted setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Addexternallyhosted) super.setPrettyPrint(prettyPrint); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Addexternallyhosted setQuotaUser(java.lang.String quotaUser) { + return (Addexternallyhosted) super.setQuotaUser(quotaUser); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Addexternallyhosted setUploadType(java.lang.String uploadType) { + return (Addexternallyhosted) super.setUploadType(uploadType); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + public Addexternallyhosted setUploadProtocol(java.lang.String uploadProtocol) { + return (Addexternallyhosted) super.setUploadProtocol(uploadProtocol); } - /** Unique identifier for the Android app. */ + /** Package name of the app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Unique identifier for the Android app. + /** Package name of the app. */ public java.lang.String getPackageName() { return packageName; } - /** Unique identifier for the Android app. */ - public Upload setPackageName(java.lang.String packageName) { + /** Package name of the app. */ + public Addexternallyhosted setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Unique identifier for this edit. */ + /** Identifier of the edit. */ @com.google.api.client.util.Key private java.lang.String editId; - /** Unique identifier for this edit. + /** Identifier of the edit. */ public java.lang.String getEditId() { return editId; } - /** Unique identifier for this edit. */ - public Upload setEditId(java.lang.String editId) { + /** Identifier of the edit. */ + public Addexternallyhosted setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** The version code of the APK whose Deobfuscation File is being uploaded. */ - @com.google.api.client.util.Key - private java.lang.Integer apkVersionCode; - - /** The version code of the APK whose Deobfuscation File is being uploaded. - */ - public java.lang.Integer getApkVersionCode() { - return apkVersionCode; - } - - /** The version code of the APK whose Deobfuscation File is being uploaded. */ - public Upload setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; - return this; - } - - /** The type of the deobfuscation file. */ - @com.google.api.client.util.Key - private java.lang.String deobfuscationFileType; - - /** The type of the deobfuscation file. - */ - public java.lang.String getDeobfuscationFileType() { - return deobfuscationFileType; - } - - /** The type of the deobfuscation file. */ - public Upload setDeobfuscationFileType(java.lang.String deobfuscationFileType) { - this.deobfuscationFileType = deobfuscationFileType; - return this; - } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Addexternallyhosted set(String parameterName, Object value) { + return (Addexternallyhosted) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Details collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Details.List request = androidpublisher.details().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Details details() {
- return new Details();
- }
-
- /**
- * The "details" collection of methods.
- */
- public class Details {
-
/**
- * Gets details of an app.
+ * Lists all current APKs of the app and edit.
*
- * Create a request for the method "details.get".
+ * Create a request for the method "apks.list".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
- Get result = new Get(packageName, editId);
+ public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ List result = new List(packageName, editId);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 packageName Package name of the app. * @param editId Identifier of the edit. * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.AppDetails.class); + protected List(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ApksListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } @@ -3798,58 +3582,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -3863,7 +3647,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -3879,114 +3663,162 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public List setEditId(java.lang.String editId) { this.editId = editId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Patches details of an app. + * Uploads an APK and adds to the current edit. * - * Create a request for the method "details.patch". + * Create a request for the method "apks.upload". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @return the request */ - public Patch patch(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) throws java.io.IOException { - Patch result = new Patch(packageName, editId, content); + public Upload upload(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + Upload result = new Upload(packageName, editId); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Upload upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(packageName, editId, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; + public class Upload extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.AppDetails.class); + protected Upload(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.Apk.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + } + + /** + * Uploads an APK and adds to the current edit. + * + * Create a request for the method "apks.upload". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.Apk.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -4000,7 +3832,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public Upload setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -4016,114 +3848,143 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Patch setEditId(java.lang.String editId) { + public Upload setEditId(java.lang.String editId) { this.editId = editId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Bundles collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Bundles.List request = androidpublisher.bundles().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Bundles bundles() {
+ return new Bundles();
+ }
+
+ /**
+ * The "bundles" collection of methods.
+ */
+ public class Bundles {
+
/**
- * Updates details of an app.
+ * Lists all current Android App Bundles of the app and edit.
*
- * Create a request for the method "details.update".
+ * Create a request for the method "bundles.list".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Update#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails}
* @return the request
*/
- public Update update(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) throws java.io.IOException {
- Update result = new Update(packageName, editId, content);
+ public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ List result = new List(packageName, editId);
initialize(result);
return result;
}
- public class Update extends AndroidPublisherRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @since 1.13 */ - protected Update(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) { - super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.AppDetails.class); + protected List(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BundlesListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -4137,7 +3998,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -4153,149 +4014,176 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Update setEditId(java.lang.String editId) { + public List setEditId(java.lang.String editId) { this.editId = editId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Expansionfiles collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Expansionfiles.List request = androidpublisher.expansionfiles().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Expansionfiles expansionfiles() {
- return new Expansionfiles();
- }
-
- /**
- * The "expansionfiles" collection of methods.
- */
- public class Expansionfiles {
-
/**
- * Fetches the expansion file configuration for the specified APK.
+ * Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries,
+ * please increase the timeout of the http request before calling this endpoint (a timeout of 2
+ * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-
+ * library/java/google-api-java-client/errors) for an example in java.
*
- * Create a request for the method "expansionfiles.get".
+ * Create a request for the method "bundles.upload".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
- * @param expansionFileType The file type of the file configuration which is being read or modified.
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) throws java.io.IOException {
- Get result = new Get(packageName, editId, apkVersionCode, expansionFileType);
+ public Upload upload(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ Upload result = new Upload(packageName, editId);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Upload upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(packageName, editId, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + public class Upload extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. - * @param expansionFileType The file type of the file configuration which is being read or modified. * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFile.class); + protected Upload(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.Bundle.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); + } + + /** + * Uploads a new Android App Bundle to this edit. If you are using the Google API client + * libraries, please increase the timeout of the http request before calling this endpoint (a + * timeout of 2 minutes is recommended). See [Timeouts and + * Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) + * for an example in java. + * + * Create a request for the method "bundles.upload". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String packageName, java.lang.String editId, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.Bundle.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @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); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -4309,7 +4197,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public Upload setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -4325,158 +4213,192 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public Upload setEditId(java.lang.String editId) { this.editId = editId; return this; } /** - * The version code of the APK whose expansion file configuration is being read or modified. + * Deprecated. The installation warning has been removed, it's not necessary to set this + * field anymore. */ @com.google.api.client.util.Key - private java.lang.Integer apkVersionCode; + private java.lang.Boolean ackBundleInstallationWarning; - /** The version code of the APK whose expansion file configuration is being read or modified. + /** Deprecated. The installation warning has been removed, it's not necessary to set this field + anymore. */ - public java.lang.Integer getApkVersionCode() { - return apkVersionCode; + public java.lang.Boolean getAckBundleInstallationWarning() { + return ackBundleInstallationWarning; } /** - * The version code of the APK whose expansion file configuration is being read or modified. + * Deprecated. The installation warning has been removed, it's not necessary to set this + * field anymore. */ - public Get setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; + public Upload setAckBundleInstallationWarning(java.lang.Boolean ackBundleInstallationWarning) { + this.ackBundleInstallationWarning = ackBundleInstallationWarning; return this; } - /** The file type of the file configuration which is being read or modified. */ + /** + * Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of + * the DTC or "LATEST" for last uploaded DTC. + */ @com.google.api.client.util.Key - private java.lang.String expansionFileType; + private java.lang.String deviceTierConfigId; - /** The file type of the file configuration which is being read or modified. + /** Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or + "LATEST" for last uploaded DTC. */ - public java.lang.String getExpansionFileType() { - return expansionFileType; + public java.lang.String getDeviceTierConfigId() { + return deviceTierConfigId; } - /** The file type of the file configuration which is being read or modified. */ - public Get setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; + /** + * Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of + * the DTC or "LATEST" for last uploaded DTC. + */ + public Upload setDeviceTierConfigId(java.lang.String deviceTierConfigId) { + this.deviceTierConfigId = deviceTierConfigId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Countryavailability collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Countryavailability.List request = androidpublisher.countryavailability().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Countryavailability countryavailability() {
+ return new Countryavailability();
+ }
+
+ /**
+ * The "countryavailability" collection of methods.
+ */
+ public class Countryavailability {
+
/**
- * Patches the APK's expansion file configuration to reference another APK's expansion file. To add
- * a new expansion file use the Upload method.
+ * Gets country availability.
*
- * Create a request for the method "expansionfiles.patch".
+ * Create a request for the method "countryavailability.get".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
- * @param expansionFileType The file type of the expansion file configuration which is being updated.
- * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile}
+ * @param track The track to read from.
* @return the request
*/
- public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) throws java.io.IOException {
- Patch result = new Patch(packageName, editId, apkVersionCode, expansionFileType, content);
+ public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException {
+ Get result = new Get(packageName, editId, track);
initialize(result);
return result;
}
- public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. - * @param expansionFileType The file type of the expansion file configuration which is being updated. - * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} + * @param track The track to read from. * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.ExpansionFile.class); + protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.TrackCountryAvailability.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); + this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -4490,7 +4412,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -4506,387 +4428,406 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Patch setEditId(java.lang.String editId) { + public Get setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ + /** The track to read from. */ @com.google.api.client.util.Key - private java.lang.Integer apkVersionCode; + private java.lang.String track; - /** The version code of the APK whose expansion file configuration is being read or modified. + /** The track to read from. */ - public java.lang.Integer getApkVersionCode() { - return apkVersionCode; + public java.lang.String getTrack() { + return track; } - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ - public Patch setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; + /** The track to read from. */ + public Get setTrack(java.lang.String track) { + this.track = track; return this; } - /** The file type of the expansion file configuration which is being updated. */ - @com.google.api.client.util.Key - private java.lang.String expansionFileType; - - /** The file type of the expansion file configuration which is being updated. - */ - public java.lang.String getExpansionFileType() { - return expansionFileType; - } - - /** The file type of the expansion file configuration which is being updated. */ - public Patch setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; - return this; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + + } + /** + * An accessor for creating requests from the Deobfuscationfiles collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Deobfuscationfiles.List request = androidpublisher.deobfuscationfiles().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Deobfuscationfiles deobfuscationfiles() {
+ return new Deobfuscationfiles();
+ }
+
+ /**
+ * The "deobfuscationfiles" collection of methods.
+ */
+ public class Deobfuscationfiles {
- @Override
- public Patch set(String parameterName, Object value) {
- return (Patch) super.set(parameterName, value);
- }
- }
/**
- * Updates the APK's expansion file configuration to reference another APK's expansion file. To add
- * a new expansion file use the Upload method.
+ * Uploads a new deobfuscation file and attaches to the specified APK.
*
- * Create a request for the method "expansionfiles.update".
+ * Create a request for the method "deobfuscationfiles.upload".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Update#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation.
*
- * @param packageName Package name of the app.
- * @param editId Identifier of the edit.
- * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
- * @param expansionFileType The file type of the file configuration which is being read or modified.
- * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile}
+ * @param packageName Unique identifier for the Android app.
+ * @param editId Unique identifier for this edit.
+ * @param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded.
+ * @param deobfuscationFileType The type of the deobfuscation file.
* @return the request
*/
- public Update update(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) throws java.io.IOException {
- Update result = new Update(packageName, editId, apkVersionCode, expansionFileType, content);
+ public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType) throws java.io.IOException {
+ Upload result = new Upload(packageName, editId, apkVersionCode, deobfuscationFileType);
initialize(result);
return result;
}
- public class Update extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param packageName Unique identifier for the Android app.@param editId Unique identifier for this edit.@param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded.@param deobfuscationFileType The type of the deobfuscation file. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(packageName, editId, apkVersionCode, deobfuscationFileType, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + public class Upload extends AndroidPublisherRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. - * @param expansionFileType The file type of the file configuration which is being read or modified. - * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} + * @param packageName Unique identifier for the Android app. + * @param editId Unique identifier for this edit. + * @param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded. + * @param deobfuscationFileType The type of the deobfuscation file. * @since 1.13 */ - protected Update(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) { - super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.ExpansionFile.class); + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.DeobfuscationFilesUploadResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); + this.deobfuscationFileType = com.google.api.client.util.Preconditions.checkNotNull(deobfuscationFileType, "Required parameter deobfuscationFileType must be specified."); + } + + /** + * Uploads a new deobfuscation file and attaches to the specified APK. + * + * Create a request for the method "deobfuscationfiles.upload". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Unique identifier for the Android app.@param editId Unique identifier for this edit.@param apkVersionCode The version code of the APK whose Deobfuscation File is being uploaded.@param deobfuscationFileType The type of the deobfuscation file. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String deobfuscationFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.DeobfuscationFilesUploadResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.deobfuscationFileType = com.google.api.client.util.Preconditions.checkNotNull(deobfuscationFileType, "Required parameter deobfuscationFileType must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** Unique identifier for the Android app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Package name of the app. + /** Unique identifier for the Android app. */ public java.lang.String getPackageName() { return packageName; } - /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + /** Unique identifier for the Android app. */ + public Upload setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Identifier of the edit. */ + /** Unique identifier for this edit. */ @com.google.api.client.util.Key private java.lang.String editId; - /** Identifier of the edit. + /** Unique identifier for this edit. */ public java.lang.String getEditId() { return editId; } - /** Identifier of the edit. */ - public Update setEditId(java.lang.String editId) { + /** Unique identifier for this edit. */ + public Upload setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ + /** The version code of the APK whose Deobfuscation File is being uploaded. */ @com.google.api.client.util.Key private java.lang.Integer apkVersionCode; - /** The version code of the APK whose expansion file configuration is being read or modified. + /** The version code of the APK whose Deobfuscation File is being uploaded. */ public java.lang.Integer getApkVersionCode() { return apkVersionCode; } - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ - public Update setApkVersionCode(java.lang.Integer apkVersionCode) { + /** The version code of the APK whose Deobfuscation File is being uploaded. */ + public Upload setApkVersionCode(java.lang.Integer apkVersionCode) { this.apkVersionCode = apkVersionCode; return this; } - /** The file type of the file configuration which is being read or modified. */ + /** The type of the deobfuscation file. */ @com.google.api.client.util.Key - private java.lang.String expansionFileType; + private java.lang.String deobfuscationFileType; - /** The file type of the file configuration which is being read or modified. + /** The type of the deobfuscation file. */ - public java.lang.String getExpansionFileType() { - return expansionFileType; + public java.lang.String getDeobfuscationFileType() { + return deobfuscationFileType; } - /** The file type of the file configuration which is being read or modified. */ - public Update setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; + /** The type of the deobfuscation file. */ + public Upload setDeobfuscationFileType(java.lang.String deobfuscationFileType) { + this.deobfuscationFileType = deobfuscationFileType; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Details collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Details.List request = androidpublisher.details().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Details details() {
+ return new Details();
+ }
+
+ /**
+ * The "details" collection of methods.
+ */
+ public class Details {
+
/**
- * Uploads a new expansion file and attaches to the specified APK.
+ * Gets details of an app.
*
- * Create a request for the method "expansionfiles.upload".
+ * Create a request for the method "details.get".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
- * @param expansionFileType The file type of the expansion file configuration which is being updated.
* @return the request
*/
- public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) throws java.io.IOException {
- Upload result = new Upload(packageName, editId, apkVersionCode, expansionFileType);
+ public Get get(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ Get result = new Get(packageName, editId);
initialize(result);
return result;
}
- /**
- * Uploads a new expansion file and attaches to the specified APK.
- *
- * Create a request for the method "expansionfiles.upload".
- *
- * This request holds the parameters needed by the the androidpublisher server. After setting any
- * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation.
- *
- * - * This method should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit.@param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.@param expansionFileType The file type of the expansion file configuration which is being updated. - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails - */ - public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, apkVersionCode, expansionFileType, mediaContent); - initialize(result); - return result; - } - - public class Upload extends AndroidPublisherRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. - * @param expansionFileType The file type of the expansion file configuration which is being updated. * @since 1.13 */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFilesUploadResponse.class); + protected Get(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.AppDetails.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); } - /** - * Uploads a new expansion file and attaches to the specified APK. - * - * Create a request for the method "expansionfiles.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit.@param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.@param expansionFileType The file type of the expansion file configuration which is being updated. - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFilesUploadResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); - this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -4900,7 +4841,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Upload setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -4916,179 +4857,114 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { + public Get setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ - @com.google.api.client.util.Key - private java.lang.Integer apkVersionCode; - - /** The version code of the APK whose expansion file configuration is being read or modified. - */ - public java.lang.Integer getApkVersionCode() { - return apkVersionCode; - } - - /** - * The version code of the APK whose expansion file configuration is being read or modified. - */ - public Upload setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; - return this; - } - - /** The file type of the expansion file configuration which is being updated. */ - @com.google.api.client.util.Key - private java.lang.String expansionFileType; - - /** The file type of the expansion file configuration which is being updated. - */ - public java.lang.String getExpansionFileType() { - return expansionFileType; - } - - /** The file type of the expansion file configuration which is being updated. */ - public Upload setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; - return this; - } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Images collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Images.List request = androidpublisher.images().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Images images() {
- return new Images();
- }
-
- /**
- * The "images" collection of methods.
- */
- public class Images {
-
/**
- * Deletes the image (specified by id) from the edit.
+ * Patches details of an app.
*
- * Create a request for the method "images.delete".
+ * Create a request for the method "details.patch".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
- * @param imageType Type of the Image.
- * @param imageId Unique identifier an image within the set of images attached to this edit.
+ * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails}
* @return the request
*/
- public Delete delete(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, java.lang.String imageId) throws java.io.IOException {
- Delete result = new Delete(packageName, editId, language, imageType, imageId);
+ public Patch patch(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) throws java.io.IOException {
+ Patch result = new Patch(packageName, editId, content);
initialize(result);
return result;
}
- public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * @param imageType Type of the Image. - * @param imageId Unique identifier an image within the set of images attached to this edit. + * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @since 1.13 */ - protected Delete(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, java.lang.String imageId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + protected Patch(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.AppDetails.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); - this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); - this.imageId = com.google.api.client.util.Preconditions.checkNotNull(imageId, "Required parameter imageId must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5102,7 +4978,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Delete setPackageName(java.lang.String packageName) { + public Patch setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5118,176 +4994,114 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Delete setEditId(java.lang.String editId) { + public Patch setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). - */ - @com.google.api.client.util.Key - private java.lang.String language; - - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - */ - public java.lang.String getLanguage() { - return language; - } - - /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). - */ - public Delete setLanguage(java.lang.String language) { - this.language = language; - return this; - } - - /** Type of the Image. */ - @com.google.api.client.util.Key - private java.lang.String imageType; - - /** Type of the Image. - */ - public java.lang.String getImageType() { - return imageType; - } - - /** Type of the Image. */ - public Delete setImageType(java.lang.String imageType) { - this.imageType = imageType; - return this; - } - - /** Unique identifier an image within the set of images attached to this edit. */ - @com.google.api.client.util.Key - private java.lang.String imageId; - - /** Unique identifier an image within the set of images attached to this edit. - */ - public java.lang.String getImageId() { - return imageId; - } - - /** Unique identifier an image within the set of images attached to this edit. */ - public Delete setImageId(java.lang.String imageId) { - this.imageId = imageId; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes all images for the specified language and image type. Returns an empty response if no - * images are found. + * Updates details of an app. * - * Create a request for the method "images.deleteall". + * Create a request for the method "details.update". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op. - * @param imageType Type of the Image. Providing an image type that refers to no images is a no-op. + * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @return the request */ - public Deleteall deleteall(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException { - Deleteall result = new Deleteall(packageName, editId, language, imageType); + public Update update(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) throws java.io.IOException { + Update result = new Update(packageName, editId, content); initialize(result); return result; } - public class Deleteall extends AndroidPublisherRequest{@link - * Deleteall#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op. - * @param imageType Type of the Image. Providing an image type that refers to no images is a no-op. + * @param content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @since 1.13 */ - protected Deleteall(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesDeleteAllResponse.class); + protected Update(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.AppDetails content) { + super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.AppDetails.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); - this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); } @Override - public Deleteall set$Xgafv(java.lang.String $Xgafv) { - return (Deleteall) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Deleteall setAccessToken(java.lang.String accessToken) { - return (Deleteall) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Deleteall setAlt(java.lang.String alt) { - return (Deleteall) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Deleteall setCallback(java.lang.String callback) { - return (Deleteall) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Deleteall setFields(java.lang.String fields) { - return (Deleteall) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Deleteall setKey(java.lang.String key) { - return (Deleteall) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Deleteall setOauthToken(java.lang.String oauthToken) { - return (Deleteall) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deleteall) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Deleteall setQuotaUser(java.lang.String quotaUser) { - return (Deleteall) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Deleteall setUploadType(java.lang.String uploadType) { - return (Deleteall) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { - return (Deleteall) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5301,7 +5115,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Deleteall setPackageName(java.lang.String packageName) { + public Update setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5317,103 +5131,84 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Deleteall setEditId(java.lang.String editId) { + public Update setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). Providing a language that is not supported by the App is a no-op. - */ - @com.google.api.client.util.Key - private java.lang.String language; - - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - Providing a language that is not supported by the App is a no-op. - */ - public java.lang.String getLanguage() { - return language; - } - - /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). Providing a language that is not supported by the App is a no-op. - */ - public Deleteall setLanguage(java.lang.String language) { - this.language = language; - return this; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } + } - /** Type of the Image. Providing an image type that refers to no images is a no-op. */ - @com.google.api.client.util.Key - private java.lang.String imageType; - - /** Type of the Image. Providing an image type that refers to no images is a no-op. - */ - public java.lang.String getImageType() { - return imageType; - } + } + /** + * An accessor for creating requests from the Expansionfiles collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Expansionfiles.List request = androidpublisher.expansionfiles().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Expansionfiles expansionfiles() {
+ return new Expansionfiles();
+ }
- /** Type of the Image. Providing an image type that refers to no images is a no-op. */
- public Deleteall setImageType(java.lang.String imageType) {
- this.imageType = imageType;
- return this;
- }
+ /**
+ * The "expansionfiles" collection of methods.
+ */
+ public class Expansionfiles {
- @Override
- public Deleteall set(String parameterName, Object value) {
- return (Deleteall) super.set(parameterName, value);
- }
- }
/**
- * Lists all images. The response may be empty.
+ * Fetches the expansion file configuration for the specified APK.
*
- * Create a request for the method "images.list".
+ * Create a request for the method "expansionfiles.get".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There
- * must be a store listing for the specified language.
- * @param imageType Type of the Image. Providing an image type that refers to no images will return an empty response.
+ * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
+ * @param expansionFileType The file type of the file configuration which is being read or modified.
* @return the request
*/
- public List list(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException {
- List result = new List(packageName, editId, language, imageType);
+ public Get get(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) throws java.io.IOException {
+ Get result = new Get(packageName, editId, apkVersionCode, expansionFileType);
initialize(result);
return result;
}
- public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There - * must be a store listing for the specified language. - * @param imageType Type of the Image. Providing an image type that refers to no images will return an empty response. + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the file configuration which is being read or modified. * @since 1.13 */ - protected List(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesListResponse.class); + protected Get(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFile.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); - this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); } @Override @@ -5427,58 +5222,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5492,7 +5287,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5508,219 +5303,158 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { + public Get setEditId(java.lang.String editId) { this.editId = editId; return this; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). There must be a store listing for the specified language. + * The version code of the APK whose expansion file configuration is being read or modified. */ @com.google.api.client.util.Key - private java.lang.String language; + private java.lang.Integer apkVersionCode; - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There - must be a store listing for the specified language. + /** The version code of the APK whose expansion file configuration is being read or modified. */ - public java.lang.String getLanguage() { - return language; + public java.lang.Integer getApkVersionCode() { + return apkVersionCode; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). There must be a store listing for the specified language. + * The version code of the APK whose expansion file configuration is being read or modified. */ - public List setLanguage(java.lang.String language) { - this.language = language; + public Get setApkVersionCode(java.lang.Integer apkVersionCode) { + this.apkVersionCode = apkVersionCode; return this; } - /** - * Type of the Image. Providing an image type that refers to no images will return an empty - * response. - */ + /** The file type of the file configuration which is being read or modified. */ @com.google.api.client.util.Key - private java.lang.String imageType; + private java.lang.String expansionFileType; - /** Type of the Image. Providing an image type that refers to no images will return an empty response. + /** The file type of the file configuration which is being read or modified. */ - public java.lang.String getImageType() { - return imageType; + public java.lang.String getExpansionFileType() { + return expansionFileType; } - /** - * Type of the Image. Providing an image type that refers to no images will return an empty - * response. - */ - public List setImageType(java.lang.String imageType) { - this.imageType = imageType; + /** The file type of the file configuration which is being read or modified. */ + public Get setExpansionFileType(java.lang.String expansionFileType) { + this.expansionFileType = expansionFileType; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Uploads an image of the specified language and image type, and adds to the edit. + * Patches the APK's expansion file configuration to reference another APK's expansion file. To add + * a new expansion file use the Upload method. * - * Create a request for the method "images.upload". + * Create a request for the method "expansionfiles.patch". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op. - * @param imageType Type of the Image. - * @return the request - */ - public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException { - Upload result = new Upload(packageName, editId, language, imageType); - initialize(result); - return result; - } - - /** - * Uploads an image of the specified language and image type, and adds to the edit. - * - * Create a request for the method "images.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - * - *- * This method should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit.@param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op.@param imageType Type of the Image. - * @param mediaContent The media HTTP content. + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the expansion file configuration which is being updated. + * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} * @return the request - * @throws java.io.IOException if the initialization of the request fails */ - public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, language, imageType, mediaContent); + public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) throws java.io.IOException { + Patch result = new Patch(packageName, editId, apkVersionCode, expansionFileType, content); initialize(result); return result; } - public class Upload extends AndroidPublisherRequest{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op. - * @param imageType Type of the Image. - * @since 1.13 - */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesUploadResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); - this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); - } - - /** - * Uploads an image of the specified language and image type, and adds to the edit. - * - * Create a request for the method "images.upload". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. - *{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param packageName Package name of the app.@param editId Identifier of the edit.@param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * Providing a language that is not supported by the App is a no-op.@param imageType Type of the Image. - * @param mediaContent The media HTTP content. + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the expansion file configuration which is being updated. + * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} * @since 1.13 */ - protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesUploadResponse.class); + protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.ExpansionFile.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); - this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5734,7 +5468,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Upload setPackageName(java.lang.String packageName) { + public Patch setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5750,192 +5484,158 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { + public Patch setEditId(java.lang.String editId) { this.editId = editId; return this; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). Providing a language that is not supported by the App is a no-op. + * The version code of the APK whose expansion file configuration is being read or modified. */ @com.google.api.client.util.Key - private java.lang.String language; + private java.lang.Integer apkVersionCode; - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - Providing a language that is not supported by the App is a no-op. + /** The version code of the APK whose expansion file configuration is being read or modified. */ - public java.lang.String getLanguage() { - return language; + public java.lang.Integer getApkVersionCode() { + return apkVersionCode; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). Providing a language that is not supported by the App is a no-op. - */ - public Upload setLanguage(java.lang.String language) { - this.language = language; - return this; - } - - /** Type of the Image. */ - @com.google.api.client.util.Key - private java.lang.String imageType; - - /** Type of the Image. + * The version code of the APK whose expansion file configuration is being read or modified. */ - public java.lang.String getImageType() { - return imageType; - } - - /** Type of the Image. */ - public Upload setImageType(java.lang.String imageType) { - this.imageType = imageType; + public Patch setApkVersionCode(java.lang.Integer apkVersionCode) { + this.apkVersionCode = apkVersionCode; return this; } - /** Optional. Whether the image was generated by AI. Attested by the developer. */ + /** The file type of the expansion file configuration which is being updated. */ @com.google.api.client.util.Key - private java.lang.String aiGeneratedState; + private java.lang.String expansionFileType; - /** Optional. Whether the image was generated by AI. Attested by the developer. + /** The file type of the expansion file configuration which is being updated. */ - public java.lang.String getAiGeneratedState() { - return aiGeneratedState; + public java.lang.String getExpansionFileType() { + return expansionFileType; } - /** Optional. Whether the image was generated by AI. Attested by the developer. */ - public Upload setAiGeneratedState(java.lang.String aiGeneratedState) { - this.aiGeneratedState = aiGeneratedState; + /** The file type of the expansion file configuration which is being updated. */ + public Patch setExpansionFileType(java.lang.String expansionFileType) { + this.expansionFileType = expansionFileType; return this; } @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Listings collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Listings.List request = androidpublisher.listings().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Listings listings() {
- return new Listings();
- }
-
- /**
- * The "listings" collection of methods.
- */
- public class Listings {
-
/**
- * Deletes a localized store listing.
+ * Updates the APK's expansion file configuration to reference another APK's expansion file. To add
+ * a new expansion file use the Upload method.
*
- * Create a request for the method "listings.delete".
+ * Create a request for the method "expansionfiles.update".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
+ * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.
+ * @param expansionFileType The file type of the file configuration which is being read or modified.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile}
* @return the request
*/
- public Delete delete(java.lang.String packageName, java.lang.String editId, java.lang.String language) throws java.io.IOException {
- Delete result = new Delete(packageName, editId, language);
+ public Update update(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) throws java.io.IOException {
+ Update result = new Update(packageName, editId, apkVersionCode, expansionFileType, content);
initialize(result);
return result;
}
- public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the file configuration which is being read or modified. + * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} * @since 1.13 */ - protected Delete(java.lang.String packageName, java.lang.String editId, java.lang.String language) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + protected Update(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.services.androidpublisher.model.ExpansionFile content) { + super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.ExpansionFile.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5949,7 +5649,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Delete setPackageName(java.lang.String packageName) { + public Update setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5965,134 +5665,206 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Delete setEditId(java.lang.String editId) { + public Update setEditId(java.lang.String editId) { this.editId = editId; return this; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * The version code of the APK whose expansion file configuration is being read or modified. */ @com.google.api.client.util.Key - private java.lang.String language; + private java.lang.Integer apkVersionCode; - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + /** The version code of the APK whose expansion file configuration is being read or modified. */ - public java.lang.String getLanguage() { - return language; + public java.lang.Integer getApkVersionCode() { + return apkVersionCode; } /** - * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * The version code of the APK whose expansion file configuration is being read or modified. */ - public Delete setLanguage(java.lang.String language) { - this.language = language; + public Update setApkVersionCode(java.lang.Integer apkVersionCode) { + this.apkVersionCode = apkVersionCode; + return this; + } + + /** The file type of the file configuration which is being read or modified. */ + @com.google.api.client.util.Key + private java.lang.String expansionFileType; + + /** The file type of the file configuration which is being read or modified. + */ + public java.lang.String getExpansionFileType() { + return expansionFileType; + } + + /** The file type of the file configuration which is being read or modified. */ + public Update setExpansionFileType(java.lang.String expansionFileType) { + this.expansionFileType = expansionFileType; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Deletes all store listings. + * Uploads a new expansion file and attaches to the specified APK. * - * Create a request for the method "listings.deleteall". + * Create a request for the method "expansionfiles.upload". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the expansion file configuration which is being updated. * @return the request */ - public Deleteall deleteall(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Deleteall result = new Deleteall(packageName, editId); + public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) throws java.io.IOException { + Upload result = new Upload(packageName, editId, apkVersionCode, expansionFileType); initialize(result); return result; } - public class Deleteall extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit.@param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.@param expansionFileType The file type of the expansion file configuration which is being updated. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(packageName, editId, apkVersionCode, expansionFileType, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; + public class Upload extends AndroidPublisherRequest{@link - * Deleteall#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. + * @param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified. + * @param expansionFileType The file type of the expansion file configuration which is being updated. * @since 1.13 */ - protected Deleteall(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFilesUploadResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); } - @Override - public Deleteall set$Xgafv(java.lang.String $Xgafv) { - return (Deleteall) super.set$Xgafv($Xgafv); + /** + * Uploads a new expansion file and attaches to the specified APK. + * + * Create a request for the method "expansionfiles.upload". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit.@param apkVersionCode The version code of the APK whose expansion file configuration is being read or modified.@param expansionFileType The file type of the expansion file configuration which is being updated. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.Integer apkVersionCode, java.lang.String expansionFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFilesUploadResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.apkVersionCode = com.google.api.client.util.Preconditions.checkNotNull(apkVersionCode, "Required parameter apkVersionCode must be specified."); + this.expansionFileType = com.google.api.client.util.Preconditions.checkNotNull(expansionFileType, "Required parameter expansionFileType must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Deleteall setAccessToken(java.lang.String accessToken) { - return (Deleteall) super.setAccessToken(accessToken); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Deleteall setAlt(java.lang.String alt) { - return (Deleteall) super.setAlt(alt); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Deleteall setCallback(java.lang.String callback) { - return (Deleteall) super.setCallback(callback); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Deleteall setFields(java.lang.String fields) { - return (Deleteall) super.setFields(fields); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Deleteall setKey(java.lang.String key) { - return (Deleteall) super.setKey(key); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Deleteall setOauthToken(java.lang.String oauthToken) { - return (Deleteall) super.setOauthToken(oauthToken); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deleteall) super.setPrettyPrint(prettyPrint); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Deleteall setQuotaUser(java.lang.String quotaUser) { - return (Deleteall) super.setQuotaUser(quotaUser); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Deleteall setUploadType(java.lang.String uploadType) { - return (Deleteall) super.setUploadType(uploadType); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { - return (Deleteall) super.setUploadProtocol(uploadProtocol); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); + } + + @Override + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6106,7 +5878,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Deleteall setPackageName(java.lang.String packageName) { + public Upload setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6122,124 +5894,179 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Deleteall setEditId(java.lang.String editId) { + public Upload setEditId(java.lang.String editId) { this.editId = editId; return this; } + /** + * The version code of the APK whose expansion file configuration is being read or modified. + */ + @com.google.api.client.util.Key + private java.lang.Integer apkVersionCode; + + /** The version code of the APK whose expansion file configuration is being read or modified. + */ + public java.lang.Integer getApkVersionCode() { + return apkVersionCode; + } + + /** + * The version code of the APK whose expansion file configuration is being read or modified. + */ + public Upload setApkVersionCode(java.lang.Integer apkVersionCode) { + this.apkVersionCode = apkVersionCode; + return this; + } + + /** The file type of the expansion file configuration which is being updated. */ + @com.google.api.client.util.Key + private java.lang.String expansionFileType; + + /** The file type of the expansion file configuration which is being updated. + */ + public java.lang.String getExpansionFileType() { + return expansionFileType; + } + + /** The file type of the expansion file configuration which is being updated. */ + public Upload setExpansionFileType(java.lang.String expansionFileType) { + this.expansionFileType = expansionFileType; + return this; + } + @Override - public Deleteall set(String parameterName, Object value) { - return (Deleteall) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Images collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Images.List request = androidpublisher.images().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Images images() {
+ return new Images();
+ }
+
+ /**
+ * The "images" collection of methods.
+ */
+ public class Images {
+
/**
- * Gets a localized store listing.
+ * Deletes the image (specified by id) from the edit.
*
- * Create a request for the method "listings.get".
+ * Create a request for the method "images.delete".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
* @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
+ * @param imageType Type of the Image.
+ * @param imageId Unique identifier an image within the set of images attached to this edit.
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String language) throws java.io.IOException {
- Get result = new Get(packageName, editId, language);
+ public Delete delete(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, java.lang.String imageId) throws java.io.IOException {
+ Delete result = new Delete(packageName, editId, language, imageType, imageId);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param imageType Type of the Image. + * @param imageId Unique identifier an image within the set of images attached to this edit. * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String language) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Listing.class); + protected Delete(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, java.lang.String imageId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); + this.imageId = com.google.api.client.util.Preconditions.checkNotNull(imageId, "Required parameter imageId 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6253,7 +6080,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6269,7 +6096,7 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public Delete setEditId(java.lang.String editId) { this.editId = editId; return this; } @@ -6291,121 +6118,154 @@ public java.lang.String getLanguage() { * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian * German). */ - public Get setLanguage(java.lang.String language) { + public Delete setLanguage(java.lang.String language) { this.language = language; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** Type of the Image. */ + @com.google.api.client.util.Key + private java.lang.String imageType; + + /** Type of the Image. + */ + public java.lang.String getImageType() { + return imageType; } - } - /** - * Lists all localized store listings. - * - * Create a request for the method "listings.list". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param packageName Package name of the app. + + /** Type of the Image. */ + public Delete setImageType(java.lang.String imageType) { + this.imageType = imageType; + return this; + } + + /** Unique identifier an image within the set of images attached to this edit. */ + @com.google.api.client.util.Key + private java.lang.String imageId; + + /** Unique identifier an image within the set of images attached to this edit. + */ + public java.lang.String getImageId() { + return imageId; + } + + /** Unique identifier an image within the set of images attached to this edit. */ + public Delete setImageId(java.lang.String imageId) { + this.imageId = imageId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes all images for the specified language and image type. Returns an empty response if no + * images are found. + * + * Create a request for the method "images.deleteall". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. * @param editId Identifier of the edit. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * Providing a language that is not supported by the App is a no-op. + * @param imageType Type of the Image. Providing an image type that refers to no images is a no-op. * @return the request */ - public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - List result = new List(packageName, editId); + public Deleteall deleteall(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException { + Deleteall result = new Deleteall(packageName, editId, language, imageType); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote + * operation.
{@link + * Deleteall#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * Providing a language that is not supported by the App is a no-op. + * @param imageType Type of the Image. Providing an image type that refers to no images is a no-op. * @since 1.13 */ - protected List(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListingsListResponse.class); + protected Deleteall(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesDeleteAllResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType 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); + public Deleteall set$Xgafv(java.lang.String $Xgafv) { + return (Deleteall) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Deleteall setAccessToken(java.lang.String accessToken) { + return (Deleteall) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Deleteall setAlt(java.lang.String alt) { + return (Deleteall) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Deleteall setCallback(java.lang.String callback) { + return (Deleteall) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Deleteall setFields(java.lang.String fields) { + return (Deleteall) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Deleteall setKey(java.lang.String key) { + return (Deleteall) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Deleteall setOauthToken(java.lang.String oauthToken) { + return (Deleteall) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deleteall) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Deleteall setQuotaUser(java.lang.String quotaUser) { + return (Deleteall) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Deleteall setUploadType(java.lang.String uploadType) { + return (Deleteall) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { + return (Deleteall) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6419,7 +6279,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { + public Deleteall setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6435,122 +6295,173 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { + public Deleteall setEditId(java.lang.String editId) { this.editId = editId; return this; } + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). Providing a language that is not supported by the App is a no-op. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + Providing a language that is not supported by the App is a no-op. + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). Providing a language that is not supported by the App is a no-op. + */ + public Deleteall setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + /** Type of the Image. Providing an image type that refers to no images is a no-op. */ + @com.google.api.client.util.Key + private java.lang.String imageType; + + /** Type of the Image. Providing an image type that refers to no images is a no-op. + */ + public java.lang.String getImageType() { + return imageType; + } + + /** Type of the Image. Providing an image type that refers to no images is a no-op. */ + public Deleteall setImageType(java.lang.String imageType) { + this.imageType = imageType; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Deleteall set(String parameterName, Object value) { + return (Deleteall) super.set(parameterName, value); } } /** - * Patches a localized store listing. + * Lists all images. The response may be empty. * - * Create a request for the method "listings.patch". + * Create a request for the method "images.list". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * @param content the {@link com.google.api.services.androidpublisher.model.Listing} + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There + * must be a store listing for the specified language. + * @param imageType Type of the Image. Providing an image type that refers to no images will return an empty response. * @return the request */ - public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) throws java.io.IOException { - Patch result = new Patch(packageName, editId, language, content); + public List list(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException { + List result = new List(packageName, editId, language, imageType); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * @param content the {@link com.google.api.services.androidpublisher.model.Listing} + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There + * must be a store listing for the specified language. + * @param imageType Type of the Image. Providing an image type that refers to no images will return an empty response. * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Listing.class); + protected List(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @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); + } + + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; /** Package name of the app. */ @@ -6559,7 +6470,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6575,19 +6486,20 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Patch setEditId(java.lang.String editId) { + public List setEditId(java.lang.String editId) { this.editId = editId; return this; } /** * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * German). There must be a store listing for the specified language. */ @com.google.api.client.util.Key private java.lang.String language; - /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There + must be a store listing for the specified language. */ public java.lang.String getLanguage() { return language; @@ -6595,119 +6507,198 @@ public java.lang.String getLanguage() { /** * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * German). There must be a store listing for the specified language. */ - public Patch setLanguage(java.lang.String language) { + public List setLanguage(java.lang.String language) { this.language = language; return this; } + /** + * Type of the Image. Providing an image type that refers to no images will return an empty + * response. + */ + @com.google.api.client.util.Key + private java.lang.String imageType; + + /** Type of the Image. Providing an image type that refers to no images will return an empty response. + */ + public java.lang.String getImageType() { + return imageType; + } + + /** + * Type of the Image. Providing an image type that refers to no images will return an empty + * response. + */ + public List setImageType(java.lang.String imageType) { + this.imageType = imageType; + return this; + } + @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Creates or updates a localized store listing. + * Uploads an image of the specified language and image type, and adds to the edit. * - * Create a request for the method "listings.update". + * Create a request for the method "images.upload". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * @param content the {@link com.google.api.services.androidpublisher.model.Listing} + * Providing a language that is not supported by the App is a no-op. + * @param imageType Type of the Image. * @return the request */ - public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) throws java.io.IOException { - Update result = new Update(packageName, editId, language, content); + public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) throws java.io.IOException { + Upload result = new Upload(packageName, editId, language, imageType); initialize(result); return result; } - public class Update extends AndroidPublisherRequest+ * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit.@param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * Providing a language that is not supported by the App is a no-op.@param imageType Type of the Image. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Upload upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Upload result = new Upload(packageName, editId, language, imageType, mediaContent); + initialize(result); + return result; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; + public class Upload extends AndroidPublisherRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). - * @param content the {@link com.google.api.services.androidpublisher.model.Listing} + * Providing a language that is not supported by the App is a no-op. + * @param imageType Type of the Image. * @since 1.13 */ - protected Update(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) { - super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.Listing.class); + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesUploadResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); + } + + /** + * Uploads an image of the specified language and image type, and adds to the edit. + * + * Create a request for the method "images.upload". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app.@param editId Identifier of the edit.@param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * Providing a language that is not supported by the App is a no-op.@param imageType Type of the Image. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Upload(java.lang.String packageName, java.lang.String editId, java.lang.String language, java.lang.String imageType, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.ImagesUploadResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); + this.imageType = com.google.api.client.util.Preconditions.checkNotNull(imageType, "Required parameter imageType must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6721,7 +6712,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public Upload setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6737,19 +6728,20 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Update setEditId(java.lang.String editId) { + public Upload setEditId(java.lang.String editId) { this.editId = editId; return this; } /** * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * German). Providing a language that is not supported by the App is a no-op. */ @com.google.api.client.util.Key private java.lang.String language; /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + Providing a language that is not supported by the App is a no-op. */ public java.lang.String getLanguage() { return language; @@ -6757,148 +6749,171 @@ public java.lang.String getLanguage() { /** * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian - * German). + * German). Providing a language that is not supported by the App is a no-op. */ - public Update setLanguage(java.lang.String language) { + public Upload setLanguage(java.lang.String language) { this.language = language; return this; } + /** Type of the Image. */ + @com.google.api.client.util.Key + private java.lang.String imageType; + + /** Type of the Image. + */ + public java.lang.String getImageType() { + return imageType; + } + + /** Type of the Image. */ + public Upload setImageType(java.lang.String imageType) { + this.imageType = imageType; + return this; + } + + /** Optional. Whether the image was generated by AI. Attested by the developer. */ + @com.google.api.client.util.Key + private java.lang.String aiGeneratedState; + + /** Optional. Whether the image was generated by AI. Attested by the developer. + */ + public java.lang.String getAiGeneratedState() { + return aiGeneratedState; + } + + /** Optional. Whether the image was generated by AI. Attested by the developer. */ + public Upload setAiGeneratedState(java.lang.String aiGeneratedState) { + this.aiGeneratedState = aiGeneratedState; + return this; + } + @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Testers collection. + * An accessor for creating requests from the Listings collection. * *The typical use is:
*
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Testers.List request = androidpublisher.testers().list(parameters ...)}
+ * {@code AndroidPublisher.Listings.List request = androidpublisher.listings().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Testers testers() {
- return new Testers();
+ public Listings listings() {
+ return new Listings();
}
/**
- * The "testers" collection of methods.
+ * The "listings" collection of methods.
*/
- public class Testers {
+ public class Listings {
/**
- * Gets testers. Note: Testers resource does not support email lists.
+ * Deletes a localized store listing.
*
- * Create a request for the method "testers.get".
+ * Create a request for the method "listings.delete".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param track The track to read from.
+ * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException {
- Get result = new Get(packageName, editId, track);
+ public Delete delete(java.lang.String packageName, java.lang.String editId, java.lang.String language) throws java.io.IOException {
+ Delete result = new Delete(packageName, editId, language);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param track The track to read from. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Testers.class); + protected Delete(java.lang.String packageName, java.lang.String editId, java.lang.String language) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track 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(); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6912,7 +6927,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6928,133 +6943,134 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public Delete setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** The track to read from. */ + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ @com.google.api.client.util.Key - private java.lang.String track; + private java.lang.String language; - /** The track to read from. + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). */ - public java.lang.String getTrack() { - return track; + public java.lang.String getLanguage() { + return language; } - /** The track to read from. */ - public Get setTrack(java.lang.String track) { - this.track = track; + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ + public Delete setLanguage(java.lang.String language) { + this.language = language; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches testers. Note: Testers resource does not support email lists. + * Deletes all store listings. * - * Create a request for the method "testers.patch". + * Create a request for the method "listings.deleteall". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track The track to update. - * @param content the {@link com.google.api.services.androidpublisher.model.Testers} * @return the request */ - public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) throws java.io.IOException { - Patch result = new Patch(packageName, editId, track, content); + public Deleteall deleteall(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + Deleteall result = new Deleteall(packageName, editId); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Deleteall#execute()} method to invoke the remote + * operation.{@link + * Deleteall#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track The track to update. - * @param content the {@link com.google.api.services.androidpublisher.model.Testers} * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Testers.class); + protected Deleteall(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Deleteall set$Xgafv(java.lang.String $Xgafv) { + return (Deleteall) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Deleteall setAccessToken(java.lang.String accessToken) { + return (Deleteall) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Deleteall setAlt(java.lang.String alt) { + return (Deleteall) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Deleteall setCallback(java.lang.String callback) { + return (Deleteall) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Deleteall setFields(java.lang.String fields) { + return (Deleteall) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Deleteall setKey(java.lang.String key) { + return (Deleteall) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Deleteall setOauthToken(java.lang.String oauthToken) { + return (Deleteall) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deleteall) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Deleteall setQuotaUser(java.lang.String quotaUser) { + return (Deleteall) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Deleteall setUploadType(java.lang.String uploadType) { + return (Deleteall) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { + return (Deleteall) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -7068,7 +7084,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public Deleteall setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7084,133 +7100,124 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Patch setEditId(java.lang.String editId) { + public Deleteall setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** The track to update. */ - @com.google.api.client.util.Key - private java.lang.String track; - - /** The track to update. - */ - public java.lang.String getTrack() { - return track; - } - - /** The track to update. */ - public Patch setTrack(java.lang.String track) { - this.track = track; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Deleteall set(String parameterName, Object value) { + return (Deleteall) super.set(parameterName, value); } } /** - * Updates testers. Note: Testers resource does not support email lists. + * Gets a localized store listing. * - * Create a request for the method "testers.update". + * Create a request for the method "listings.get". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track The track to update. - * @param content the {@link com.google.api.services.androidpublisher.model.Testers} + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). * @return the request */ - public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) throws java.io.IOException { - Update result = new Update(packageName, editId, track, content); + public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String language) throws java.io.IOException { + Get result = new Get(packageName, editId, language); initialize(result); return result; } - public class Update extends AndroidPublisherRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param track The track to update. - * @param content the {@link com.google.api.services.androidpublisher.model.Testers} + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). * @since 1.13 */ - protected Update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) { - super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.Testers.class); + protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String language) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Listing.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -7224,7 +7231,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7240,301 +7247,283 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Update setEditId(java.lang.String editId) { + public Get setEditId(java.lang.String editId) { this.editId = editId; return this; } - /** The track to update. */ + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ @com.google.api.client.util.Key - private java.lang.String track; + private java.lang.String language; - /** The track to update. + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). */ - public java.lang.String getTrack() { - return track; + public java.lang.String getLanguage() { + return language; } - /** The track to update. */ - public Update setTrack(java.lang.String track) { - this.track = track; + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ + public Get setLanguage(java.lang.String language) { + this.language = language; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Tracks collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Tracks.List request = androidpublisher.tracks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Tracks tracks() {
- return new Tracks();
- }
-
- /**
- * The "tracks" collection of methods.
- */
- public class Tracks {
-
/**
- * Creates a new track.
+ * Lists all localized store listings.
*
- * Create a request for the method "tracks.create".
+ * Create a request for the method "listings.list".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param packageName Required. Package name of the app.
- * @param editId Required. Identifier of the edit.
- * @param content the {@link com.google.api.services.androidpublisher.model.TrackConfig}
+ * @param packageName Package name of the app.
+ * @param editId Identifier of the edit.
* @return the request
*/
- public Create create(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.TrackConfig content) throws java.io.IOException {
- Create result = new Create(packageName, editId, content);
+ public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException {
+ List result = new List(packageName, editId);
initialize(result);
return result;
}
- public class Create extends AndroidPublisherRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Required. Package name of the app. - * @param editId Required. Identifier of the edit. - * @param content the {@link com.google.api.services.androidpublisher.model.TrackConfig} + * @param packageName Package name of the app. + * @param editId Identifier of the edit. * @since 1.13 */ - protected Create(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.TrackConfig content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Track.class); + protected List(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListingsListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Required. Package name of the app. */ + @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); + } + + /** Package name of the app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. Package name of the app. + /** Package name of the app. */ public java.lang.String getPackageName() { return packageName; } - /** Required. Package name of the app. */ - public Create setPackageName(java.lang.String packageName) { + /** Package name of the app. */ + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. Identifier of the edit. */ + /** Identifier of the edit. */ @com.google.api.client.util.Key private java.lang.String editId; - /** Required. Identifier of the edit. + /** Identifier of the edit. */ public java.lang.String getEditId() { return editId; } - /** Required. Identifier of the edit. */ - public Create setEditId(java.lang.String editId) { + /** Identifier of the edit. */ + public List setEditId(java.lang.String editId) { this.editId = editId; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets a track. + * Patches a localized store listing. * - * Create a request for the method "tracks.get". + * Create a request for the method "listings.patch". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param content the {@link com.google.api.services.androidpublisher.model.Listing} * @return the request */ - public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException { - Get result = new Get(packageName, editId, track); + public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) throws java.io.IOException { + Patch result = new Patch(packageName, editId, language, content); initialize(result); return result; } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param content the {@link com.google.api.services.androidpublisher.model.Listing} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Track.class); + protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Listing.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); - this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @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); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -7548,7 +7537,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public Patch setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7564,144 +7553,139 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public Patch setEditId(java.lang.String editId) { this.editId = editId; return this; } /** - * Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). */ @com.google.api.client.util.Key - private java.lang.String track; + private java.lang.String language; - /** Identifier of the track. [More on track name](https://developers.google.com/android- - publisher/tracks#ff-track-name) + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). */ - public java.lang.String getTrack() { - return track; + public java.lang.String getLanguage() { + return language; } /** - * Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). */ - public Get setTrack(java.lang.String track) { - this.track = track; + public Patch setLanguage(java.lang.String language) { + this.language = language; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Lists all tracks. + * Creates or updates a localized store listing. * - * Create a request for the method "tracks.list". + * Create a request for the method "listings.update". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param content the {@link com.google.api.services.androidpublisher.model.Listing} * @return the request */ - public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - List result = new List(packageName, editId); + public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) throws java.io.IOException { + Update result = new Update(packageName, editId, language, content); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + * @param content the {@link com.google.api.services.androidpublisher.model.Listing} * @since 1.13 */ - protected List(java.lang.String packageName, java.lang.String editId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.TracksListResponse.class); + protected Update(java.lang.String packageName, java.lang.String editId, java.lang.String language, com.google.api.services.androidpublisher.model.Listing content) { + super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.Listing.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language 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); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -7715,7 +7699,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { + public Update setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7731,70 +7715,275 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { + public Update setEditId(java.lang.String editId) { this.editId = editId; return this; } + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian + * German). + */ + public Update setLanguage(java.lang.String language) { + this.language = language; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Testers collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Testers.List request = androidpublisher.testers().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Testers testers() {
+ return new Testers();
+ }
+
+ /**
+ * The "testers" collection of methods.
+ */
+ public class Testers {
+
/**
- * Patches a track.
+ * Gets testers. Note: Testers resource does not support email lists.
*
- * Create a request for the method "tracks.patch".
+ * Create a request for the method "testers.get".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
* @param editId Identifier of the edit.
- * @param track Identifier of the track. [More on track name](https://developers.google.com/android-
- * publisher/tracks#ff-track-name)
- * @param content the {@link com.google.api.services.androidpublisher.model.Track}
+ * @param track The track to read from.
* @return the request
*/
- public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) throws java.io.IOException {
- Patch result = new Patch(packageName, editId, track, content);
+ public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException {
+ Get result = new Get(packageName, editId, track);
initialize(result);
return result;
}
- public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName Package name of the app. * @param editId Identifier of the edit. - * @param track Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) - * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @param track The track to read from. * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Track.class); + protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Testers.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + 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); + } + + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Package name of the app. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; + + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } + + /** Identifier of the edit. */ + public Get setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } + + /** The track to read from. */ + @com.google.api.client.util.Key + private java.lang.String track; + + /** The track to read from. + */ + public java.lang.String getTrack() { + return track; + } + + /** The track to read from. */ + public Get setTrack(java.lang.String track) { + this.track = track; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patches testers. Note: Testers resource does not support email lists. + * + * Create a request for the method "testers.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track The track to update. + * @param content the {@link com.google.api.services.androidpublisher.model.Testers} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) throws java.io.IOException { + Patch result = new Patch(packageName, editId, track, content); + initialize(result); + return result; + } + + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track The track to update. + * @param content the {@link com.google.api.services.androidpublisher.model.Testers} + * @since 1.13 + */ + protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Testers.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } @Override public Patch setAccessToken(java.lang.String accessToken) { @@ -7878,24 +8067,17 @@ public Patch setEditId(java.lang.String editId) { return this; } - /** - * Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) - */ + /** The track to update. */ @com.google.api.client.util.Key private java.lang.String track; - /** Identifier of the track. [More on track name](https://developers.google.com/android- - publisher/tracks#ff-track-name) + /** The track to update. */ public java.lang.String getTrack() { return track; } - /** - * Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) - */ + /** The track to update. */ public Patch setTrack(java.lang.String track) { this.track = track; return this; @@ -7907,34 +8089,33 @@ public Patch set(String parameterName, Object value) { } } /** - * Updates a track. + * Updates testers. Note: Testers resource does not support email lists. * - * Create a request for the method "tracks.update". + * Create a request for the method "testers.update". * * This request holds the parameters needed by the androidpublisher server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param editId Identifier of the edit. - * @param track Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) - * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @param track The track to update. + * @param content the {@link com.google.api.services.androidpublisher.model.Testers} * @return the request */ - public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) throws java.io.IOException { + public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Testers content) throws java.io.IOException { Update result = new Update(packageName, editId, track, content); initialize(result); return result; } - public class Update extends AndroidPublisherRequest
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Externaltransactions.List request = androidpublisher.externaltransactions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Externaltransactions externaltransactions() {
- return new Externaltransactions();
- }
-
- /**
- * The "externaltransactions" collection of methods.
- */
- public class Externaltransactions {
-
/**
- * Creates a new external transaction.
+ * An accessor for creating requests from the Tracks collection.
*
- * Create a request for the method "externaltransactions.createexternaltransaction".
+ * The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Tracks.List request = androidpublisher.tracks().list(parameters ...)}
+ *
*
- * This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Createexternaltransaction#execute()} method to invoke the
- * remote operation.
- *
- * @param parent Required. The parent resource where this external transaction will be created. Format:
- * applications/{package_name}
- * @param content the {@link com.google.api.services.androidpublisher.model.ExternalTransaction}
- * @return the request
+ * @return the resource collection
*/
- public Createexternaltransaction createexternaltransaction(java.lang.String parent, com.google.api.services.androidpublisher.model.ExternalTransaction content) throws java.io.IOException {
- Createexternaltransaction result = new Createexternaltransaction(parent, content);
- initialize(result);
- return result;
+ public Tracks tracks() {
+ return new Tracks();
}
- public class Createexternaltransaction extends AndroidPublisherRequest{@link Createexternaltransaction#initialize(com.google.api.client.googlea - * pis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
+ * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource where this external transaction will be created. Format: - * applications/{package_name} - * @param content the {@link com.google.api.services.androidpublisher.model.ExternalTransaction} - * @since 1.13 + * @param packageName Required. Package name of the app. + * @param editId Required. Identifier of the edit. + * @param content the {@link com.google.api.services.androidpublisher.model.TrackConfig} + * @return the request */ - protected Createexternaltransaction(java.lang.String parent, com.google.api.services.androidpublisher.model.ExternalTransaction content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ExternalTransaction.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^applications/[^/]+$"); - } - } - - @Override - public Createexternaltransaction set$Xgafv(java.lang.String $Xgafv) { - return (Createexternaltransaction) super.set$Xgafv($Xgafv); - } - - @Override - public Createexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Createexternaltransaction) super.setAccessToken(accessToken); + public Create create(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.TrackConfig content) throws java.io.IOException { + Create result = new Create(packageName, editId, content); + initialize(result); + return result; } - @Override - public Createexternaltransaction setAlt(java.lang.String alt) { - return (Createexternaltransaction) super.setAlt(alt); - } + public class Create extends AndroidPublisherRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. Package name of the app. + * @param editId Required. Identifier of the edit. + * @param content the {@link com.google.api.services.androidpublisher.model.TrackConfig} + * @since 1.13 + */ + protected Create(java.lang.String packageName, java.lang.String editId, com.google.api.services.androidpublisher.model.TrackConfig content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Track.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + } - @Override - public Createexternaltransaction setKey(java.lang.String key) { - return (Createexternaltransaction) super.setKey(key); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Createexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Createexternaltransaction) super.setOauthToken(oauthToken); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Createexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Createexternaltransaction) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Createexternaltransaction setQuotaUser(java.lang.String quotaUser) { - return (Createexternaltransaction) super.setQuotaUser(quotaUser); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Createexternaltransaction setUploadType(java.lang.String uploadType) { - return (Createexternaltransaction) super.setUploadType(uploadType); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Createexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Createexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - /** - * Required. The parent resource where this external transaction will be created. Format: - * applications/{package_name} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** Required. The parent resource where this external transaction will be created. Format: - applications/{package_name} - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The parent resource where this external transaction will be created. Format: - * applications/{package_name} - */ - public Createexternaltransaction setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^applications/[^/]+$"); + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Required. The id to use for the external transaction. Must be unique across all other - * transactions for the app. This value should be 1-63 characters and valid characters are - * /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) - * such as emails. Attempting to store PII in this field may result in requests being blocked. - */ - @com.google.api.client.util.Key - private java.lang.String externalTransactionId; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Required. The id to use for the external transaction. Must be unique across all other transactions - for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not - use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to - store PII in this field may result in requests being blocked. - */ - public java.lang.String getExternalTransactionId() { - return externalTransactionId; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The id to use for the external transaction. Must be unique across all other - * transactions for the app. This value should be 1-63 characters and valid characters are - * /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) - * such as emails. Attempting to store PII in this field may result in requests being blocked. - */ - public Createexternaltransaction setExternalTransactionId(java.lang.String externalTransactionId) { - this.externalTransactionId = externalTransactionId; - return this; - } + /** Required. Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Createexternaltransaction set(String parameterName, Object value) { - return (Createexternaltransaction) super.set(parameterName, value); - } - } - /** - * Gets an existing external transaction. - * - * Create a request for the method "externaltransactions.getexternaltransaction". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Getexternaltransaction#execute()} method to invoke the - * remote operation. - * - * @param name Required. The name of the external transaction to retrieve. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - * @return the request - */ - public Getexternaltransaction getexternaltransaction(java.lang.String name) throws java.io.IOException { - Getexternaltransaction result = new Getexternaltransaction(name); - initialize(result); - return result; - } + /** Required. Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - public class Getexternaltransaction extends AndroidPublisherRequest{@link Getexternaltransaction#initialize(com.google.api.client.googleapis - * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
+ * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the external transaction to retrieve. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - * @since 1.13 + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @return the request */ - protected Getexternaltransaction(java.lang.String name) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ExternalTransaction.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^applications/[^/]+/externalTransactions/[^/]+$"); - } + public Get get(java.lang.String packageName, java.lang.String editId, java.lang.String track) throws java.io.IOException { + Get result = new Get(packageName, editId, track); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get extends AndroidPublisherRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @since 1.13 + */ + protected Get(java.lang.String packageName, java.lang.String editId, java.lang.String track) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Track.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + } - @Override - public Getexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Getexternaltransaction) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Getexternaltransaction setAlt(java.lang.String alt) { - return (Getexternaltransaction) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Getexternaltransaction setCallback(java.lang.String callback) { - return (Getexternaltransaction) super.setCallback(callback); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Getexternaltransaction setFields(java.lang.String fields) { - return (Getexternaltransaction) super.setFields(fields); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Getexternaltransaction setKey(java.lang.String key) { - return (Getexternaltransaction) super.setKey(key); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Getexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Getexternaltransaction) super.setOauthToken(oauthToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Getexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Getexternaltransaction) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Getexternaltransaction setQuotaUser(java.lang.String quotaUser) { - return (Getexternaltransaction) super.setQuotaUser(quotaUser); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Getexternaltransaction setUploadType(java.lang.String uploadType) { - return (Getexternaltransaction) super.setUploadType(uploadType); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Getexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Getexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The name of the external transaction to retrieve. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Required. The name of the external transaction to retrieve. Format: - applications/{package_name}/externalTransactions/{external_transaction} - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Required. The name of the external transaction to retrieve. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - */ - public Getexternaltransaction setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^applications/[^/]+/externalTransactions/[^/]+$"); + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - @Override - public Getexternaltransaction set(String parameterName, Object value) { - return (Getexternaltransaction) super.set(parameterName, value); - } - } - /** - * Refunds or partially refunds an existing external transaction. - * - * Create a request for the method "externaltransactions.refundexternaltransaction". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Refundexternaltransaction#execute()} method to invoke the - * remote operation. - * - * @param name Required. The name of the external transaction that will be refunded. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - * @param content the {@link com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest} - * @return the request - */ - public Refundexternaltransaction refundexternaltransaction(java.lang.String name, com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest content) throws java.io.IOException { - Refundexternaltransaction result = new Refundexternaltransaction(name, content); - initialize(result); - return result; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - public class Refundexternaltransaction extends AndroidPublisherRequest{@link Refundexternaltransaction#initialize(com.google.api.client.googlea - * pis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The name of the external transaction that will be refunded. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - * @param content the {@link com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest} - * @since 1.13 - */ - protected Refundexternaltransaction(java.lang.String name, com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ExternalTransaction.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^applications/[^/]+/externalTransactions/[^/]+$"); + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; } - } - @Override - public Refundexternaltransaction set$Xgafv(java.lang.String $Xgafv) { - return (Refundexternaltransaction) super.set$Xgafv($Xgafv); - } + /** Identifier of the edit. */ + public Get setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - @Override - public Refundexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Refundexternaltransaction) super.setAccessToken(accessToken); - } + /** + * Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + */ + @com.google.api.client.util.Key + private java.lang.String track; - @Override - public Refundexternaltransaction setAlt(java.lang.String alt) { - return (Refundexternaltransaction) super.setAlt(alt); - } + /** Identifier of the track. [More on track name](https://developers.google.com/android- + publisher/tracks#ff-track-name) + */ + public java.lang.String getTrack() { + return track; + } - @Override - public Refundexternaltransaction setCallback(java.lang.String callback) { - return (Refundexternaltransaction) super.setCallback(callback); - } + /** + * Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + */ + public Get setTrack(java.lang.String track) { + this.track = track; + return this; + } - @Override - public Refundexternaltransaction setFields(java.lang.String fields) { - return (Refundexternaltransaction) super.setFields(fields); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - - @Override - public Refundexternaltransaction setKey(java.lang.String key) { - return (Refundexternaltransaction) super.setKey(key); + /** + * Lists all tracks. + * + * Create a request for the method "tracks.list". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @return the request + */ + public List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + List result = new List(packageName, editId); + initialize(result); + return result; } - @Override - public Refundexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Refundexternaltransaction) super.setOauthToken(oauthToken); - } + public class List extends AndroidPublisherRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @since 1.13 + */ + protected List(java.lang.String packageName, java.lang.String editId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.TracksListResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + } - @Override - public Refundexternaltransaction setUploadType(java.lang.String uploadType) { - return (Refundexternaltransaction) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Refundexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Refundexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Required. The name of the external transaction that will be refunded. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Required. The name of the external transaction that will be refunded. Format: - applications/{package_name}/externalTransactions/{external_transaction} - */ - public java.lang.String getName() { - return name; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Required. The name of the external transaction that will be refunded. Format: - * applications/{package_name}/externalTransactions/{external_transaction} - */ - public Refundexternaltransaction setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^applications/[^/]+/externalTransactions/[^/]+$"); + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } - this.name = name; - return this; - } - @Override - public Refundexternaltransaction set(String parameterName, Object value) { - return (Refundexternaltransaction) super.set(parameterName, value); - } - } + @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); + } - /** - * An accessor for creating requests from the Generatedapks collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Generatedapks.List request = androidpublisher.generatedapks().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Generatedapks generatedapks() {
- return new Generatedapks();
- }
+ @Override
+ public List setKey(java.lang.String key) {
+ return (List) super.setKey(key);
+ }
- /**
- * The "generatedapks" collection of methods.
- */
- public class Generatedapks {
+ @Override
+ public List setOauthToken(java.lang.String oauthToken) {
+ return (List) super.setOauthToken(oauthToken);
+ }
- /**
- * Downloads a single signed APK generated from an app bundle.
- *
- * Create a request for the method "generatedapks.download".
- *
- * This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Download#execute()} method to invoke the remote operation.
- *
- * @param packageName Package name of the app.
- * @param versionCode Version code of the app bundle.
- * @param downloadId Download ID, which uniquely identifies the APK to download. Can be obtained from the response of
- * `generatedapks.list` method.
- * @return the request
- */
- public Download download(java.lang.String packageName, java.lang.Integer versionCode, java.lang.String downloadId) throws java.io.IOException {
- Download result = new Download(packageName, versionCode, downloadId);
- initialize(result);
- return result;
- }
+ @Override
+ public List setPrettyPrint(java.lang.Boolean prettyPrint) {
+ return (List) super.setPrettyPrint(prettyPrint);
+ }
- public class Download extends AndroidPublisherRequest{@link - * Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @param versionCode Version code of the app bundle. - * @param downloadId Download ID, which uniquely identifies the APK to download. Can be obtained from the response of - * `generatedapks.list` method. - * @since 1.13 - */ - protected Download(java.lang.String packageName, java.lang.Integer versionCode, java.lang.String downloadId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.versionCode = com.google.api.client.util.Preconditions.checkNotNull(versionCode, "Required parameter versionCode must be specified."); - this.downloadId = com.google.api.client.util.Preconditions.checkNotNull(downloadId, "Required parameter downloadId must be specified."); - initializeMediaDownload(); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); - } + /** Package name of the app. */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { - java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) - ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); - return new com.google.api.client.http.GenericUrl( - com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Identifier of the edit. */ + public List setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - @Override - public Download set$Xgafv(java.lang.String $Xgafv) { - return (Download) super.set$Xgafv($Xgafv); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - - @Override - public Download setAccessToken(java.lang.String accessToken) { - return (Download) super.setAccessToken(accessToken); + /** + * Patches a track. + * + * Create a request for the method "tracks.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) throws java.io.IOException { + Patch result = new Patch(packageName, editId, track, content); + initialize(result); + return result; } - @Override - public Download setAlt(java.lang.String alt) { - return (Download) super.setAlt(alt); - } + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @since 1.13 + */ + protected Patch(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Track.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + } - @Override - public Download setKey(java.lang.String key) { - return (Download) super.setKey(key); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Download setOauthToken(java.lang.String oauthToken) { - return (Download) super.setOauthToken(oauthToken); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Download setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Download) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Download setQuotaUser(java.lang.String quotaUser) { - return (Download) super.setQuotaUser(quotaUser); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Download setUploadType(java.lang.String uploadType) { - return (Download) super.setUploadType(uploadType); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Download setUploadProtocol(java.lang.String uploadProtocol) { - return (Download) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Package name of the app. */ - public Download setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Version code of the app bundle. */ - @com.google.api.client.util.Key - private java.lang.Integer versionCode; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** Version code of the app bundle. - */ - public java.lang.Integer getVersionCode() { - return versionCode; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** Version code of the app bundle. */ - public Download setVersionCode(java.lang.Integer versionCode) { - this.versionCode = versionCode; - return this; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** - * Download ID, which uniquely identifies the APK to download. Can be obtained from the - * response of `generatedapks.list` method. - */ - @com.google.api.client.util.Key - private java.lang.String downloadId; + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Download ID, which uniquely identifies the APK to download. Can be obtained from the response of - `generatedapks.list` method. - */ - public java.lang.String getDownloadId() { - return downloadId; - } + /** Package name of the app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Download ID, which uniquely identifies the APK to download. Can be obtained from the - * response of `generatedapks.list` method. - */ - public Download setDownloadId(java.lang.String downloadId) { - this.downloadId = downloadId; - return this; - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - @Override - public Download set(String parameterName, Object value) { - return (Download) super.set(parameterName, value); - } - } - /** - * Returns download metadata for all APKs that were generated from a given app bundle. - * - * Create a request for the method "generatedapks.list". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param packageName Package name of the app. - * @param versionCode Version code of the app bundle. - * @return the request - */ - public List list(java.lang.String packageName, java.lang.Integer versionCode) throws java.io.IOException { - List result = new List(packageName, versionCode); - initialize(result); - return result; - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. - * @param versionCode Version code of the app bundle. - * @since 1.13 + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @return the request */ - protected List(java.lang.String packageName, java.lang.Integer versionCode) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.GeneratedApksListResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.versionCode = com.google.api.client.util.Preconditions.checkNotNull(versionCode, "Required parameter versionCode must be specified."); + public Update update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) throws java.io.IOException { + Update result = new Update(packageName, editId, track, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Update extends AndroidPublisherRequest{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @param track Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @since 1.13 + */ + protected Update(java.lang.String packageName, java.lang.String editId, java.lang.String track, com.google.api.services.androidpublisher.model.Track content) { + super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.Track.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.editId = com.google.api.client.util.Preconditions.checkNotNull(editId, "Required parameter editId must be specified."); + this.track = com.google.api.client.util.Preconditions.checkNotNull(track, "Required parameter track must be specified."); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Version code of the app bundle. */ - @com.google.api.client.util.Key - private java.lang.Integer versionCode; + /** Package name of the app. */ + public Update setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Version code of the app bundle. - */ - public java.lang.Integer getVersionCode() { - return versionCode; - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** Version code of the app bundle. */ - public List setVersionCode(java.lang.Integer versionCode) { - this.versionCode = versionCode; - return this; - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** Identifier of the edit. */ + public Update setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } + + /** + * Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + */ + @com.google.api.client.util.Key + private java.lang.String track; + + /** Identifier of the track. [More on track name](https://developers.google.com/android- + publisher/tracks#ff-track-name) + */ + public java.lang.String getTrack() { + return track; + } + + /** + * Identifier of the track. [More on track name](https://developers.google.com/android- + * publisher/tracks#ff-track-name) + */ + public Update setTrack(java.lang.String track) { + this.track = track; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } } - } + } } /** - * An accessor for creating requests from the Grants collection. + * An accessor for creating requests from the Externaltransactions collection. * *The typical use is:
*
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Grants.List request = androidpublisher.grants().list(parameters ...)}
+ * {@code AndroidPublisher.Externaltransactions.List request = androidpublisher.externaltransactions().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Grants grants() {
- return new Grants();
+ public Externaltransactions externaltransactions() {
+ return new Externaltransactions();
}
/**
- * The "grants" collection of methods.
+ * The "externaltransactions" collection of methods.
*/
- public class Grants {
+ public class Externaltransactions {
/**
- * Grant access for a user to the given package.
+ * Creates a new external transaction.
*
- * Create a request for the method "grants.create".
+ * Create a request for the method "externaltransactions.createexternaltransaction".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Createexternaltransaction#execute()} method to invoke the
+ * remote operation.
*
- * @param parent Required. The user which needs permission. Format: developers/{developer}/users/{user}
- * @param content the {@link com.google.api.services.androidpublisher.model.Grant}
+ * @param parent Required. The parent resource where this external transaction will be created. Format:
+ * applications/{package_name}
+ * @param content the {@link com.google.api.services.androidpublisher.model.ExternalTransaction}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.androidpublisher.model.Grant content) throws java.io.IOException {
- Create result = new Create(parent, content);
+ public Createexternaltransaction createexternaltransaction(java.lang.String parent, com.google.api.services.androidpublisher.model.ExternalTransaction content) throws java.io.IOException {
+ Createexternaltransaction result = new Createexternaltransaction(parent, content);
initialize(result);
return result;
}
- public class Create extends AndroidPublisherRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Createexternaltransaction#execute()} method to invoke the + * remote operation.{@link Createexternaltransaction#initialize(com.google.api.client.googlea + * pis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param parent Required. The user which needs permission. Format: developers/{developer}/users/{user} - * @param content the {@link com.google.api.services.androidpublisher.model.Grant} + * @param parent Required. The parent resource where this external transaction will be created. Format: + * applications/{package_name} + * @param content the {@link com.google.api.services.androidpublisher.model.ExternalTransaction} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.androidpublisher.model.Grant content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Grant.class); + protected Createexternaltransaction(java.lang.String parent, com.google.api.services.androidpublisher.model.ExternalTransaction content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ExternalTransaction.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^developers/[^/]+/users/[^/]+$"); + "^applications/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Createexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Createexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Createexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Createexternaltransaction) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Createexternaltransaction setAlt(java.lang.String alt) { + return (Createexternaltransaction) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Createexternaltransaction setCallback(java.lang.String callback) { + return (Createexternaltransaction) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Createexternaltransaction setFields(java.lang.String fields) { + return (Createexternaltransaction) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Createexternaltransaction setKey(java.lang.String key) { + return (Createexternaltransaction) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Createexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Createexternaltransaction) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Createexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Createexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Createexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Createexternaltransaction) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Createexternaltransaction setUploadType(java.lang.String uploadType) { + return (Createexternaltransaction) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Createexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Createexternaltransaction) super.setUploadProtocol(uploadProtocol); } - /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ + /** + * Required. The parent resource where this external transaction will be created. Format: + * applications/{package_name} + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The user which needs permission. Format: developers/{developer}/users/{user} + /** Required. The parent resource where this external transaction will be created. Format: + applications/{package_name} */ public java.lang.String getParent() { return parent; } - /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ - public Create setParent(java.lang.String parent) { + /** + * Required. The parent resource where this external transaction will be created. Format: + * applications/{package_name} + */ + public Createexternaltransaction setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^developers/[^/]+/users/[^/]+$"); + "^applications/[^/]+$"); } this.parent = parent; return this; } + /** + * Required. The id to use for the external transaction. Must be unique across all other + * transactions for the app. This value should be 1-63 characters and valid characters are + * /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) + * such as emails. Attempting to store PII in this field may result in requests being blocked. + */ + @com.google.api.client.util.Key + private java.lang.String externalTransactionId; + + /** Required. The id to use for the external transaction. Must be unique across all other transactions + for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not + use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to + store PII in this field may result in requests being blocked. + */ + public java.lang.String getExternalTransactionId() { + return externalTransactionId; + } + + /** + * Required. The id to use for the external transaction. Must be unique across all other + * transactions for the app. This value should be 1-63 characters and valid characters are + * /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) + * such as emails. Attempting to store PII in this field may result in requests being blocked. + */ + public Createexternaltransaction setExternalTransactionId(java.lang.String externalTransactionId) { + this.externalTransactionId = externalTransactionId; + return this; + } + @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Createexternaltransaction set(String parameterName, Object value) { + return (Createexternaltransaction) super.set(parameterName, value); } } /** - * Removes all access for the user to the given package or developer account. + * Gets an existing external transaction. * - * Create a request for the method "grants.delete". + * Create a request for the method "externaltransactions.getexternaltransaction". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Getexternaltransaction#execute()} method to invoke the + * remote operation. * - * @param name Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} + * @param name Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Getexternaltransaction getexternaltransaction(java.lang.String name) throws java.io.IOException { + Getexternaltransaction result = new Getexternaltransaction(name); initialize(result); return result; } - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Getexternaltransaction#execute()} method to invoke the + * remote operation.{@link Getexternaltransaction#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param name Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} + * @param name Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + protected Getexternaltransaction(java.lang.String name) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ExternalTransaction.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + "^applications/[^/]+/externalTransactions/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Getexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Getexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Getexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Getexternaltransaction) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + public Getexternaltransaction setAlt(java.lang.String alt) { + return (Getexternaltransaction) super.setAlt(alt); + } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Getexternaltransaction setCallback(java.lang.String callback) { + return (Getexternaltransaction) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Getexternaltransaction setFields(java.lang.String fields) { + return (Getexternaltransaction) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Getexternaltransaction setKey(java.lang.String key) { + return (Getexternaltransaction) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Getexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Getexternaltransaction) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Getexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Getexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Getexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Getexternaltransaction) super.setQuotaUser(quotaUser); + } + + @Override + public Getexternaltransaction setUploadType(java.lang.String uploadType) { + return (Getexternaltransaction) super.setUploadType(uploadType); + } + + @Override + public Getexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Getexternaltransaction) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} + * Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the grant to delete. Format: - developers/{developer}/users/{email}/grants/{package_name} + /** Required. The name of the external transaction to retrieve. Format: + applications/{package_name}/externalTransactions/{external_transaction} */ public java.lang.String getName() { return name; } /** - * Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} + * Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} */ - public Delete setName(java.lang.String name) { + public Getexternaltransaction setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + "^applications/[^/]+/externalTransactions/[^/]+$"); } this.name = name; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Getexternaltransaction set(String parameterName, Object value) { + return (Getexternaltransaction) super.set(parameterName, value); } } /** - * Updates access for the user to the given package. + * Refunds or partially refunds an existing external transaction. * - * Create a request for the method "grants.patch". + * Create a request for the method "externaltransactions.refundexternaltransaction". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Refundexternaltransaction#execute()} method to invoke the + * remote operation. * - * @param name Required. Resource name for this grant, following the pattern - * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft - * app, the app ID will be used in this resource name instead of the package name. - * @param content the {@link com.google.api.services.androidpublisher.model.Grant} + * @param name Required. The name of the external transaction that will be refunded. Format: + * applications/{package_name}/externalTransactions/{external_transaction} + * @param content the {@link com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.androidpublisher.model.Grant content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Refundexternaltransaction refundexternaltransaction(java.lang.String name, com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest content) throws java.io.IOException { + Refundexternaltransaction result = new Refundexternaltransaction(name, content); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Refundexternaltransaction#execute()} method to invoke the + * remote operation.{@link Refundexternaltransaction#initialize(com.google.api.client.googlea + * pis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param name Required. Resource name for this grant, following the pattern - * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft - * app, the app ID will be used in this resource name instead of the package name. - * @param content the {@link com.google.api.services.androidpublisher.model.Grant} + * @param name Required. The name of the external transaction that will be refunded. Format: + * applications/{package_name}/externalTransactions/{external_transaction} + * @param content the {@link com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.androidpublisher.model.Grant content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Grant.class); + protected Refundexternaltransaction(java.lang.String name, com.google.api.services.androidpublisher.model.RefundExternalTransactionRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ExternalTransaction.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + "^applications/[^/]+/externalTransactions/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Refundexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Refundexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Refundexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Refundexternaltransaction) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Refundexternaltransaction setAlt(java.lang.String alt) { + return (Refundexternaltransaction) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Refundexternaltransaction setCallback(java.lang.String callback) { + return (Refundexternaltransaction) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Refundexternaltransaction setFields(java.lang.String fields) { + return (Refundexternaltransaction) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Refundexternaltransaction setKey(java.lang.String key) { + return (Refundexternaltransaction) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Refundexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Refundexternaltransaction) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Refundexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Refundexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Refundexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Refundexternaltransaction) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Refundexternaltransaction setUploadType(java.lang.String uploadType) { + return (Refundexternaltransaction) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Refundexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Refundexternaltransaction) super.setUploadProtocol(uploadProtocol); } /** - * Required. Resource name for this grant, following the pattern - * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft - * app, the app ID will be used in this resource name instead of the package name. + * Required. The name of the external transaction that will be refunded. Format: + * applications/{package_name}/externalTransactions/{external_transaction} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Resource name for this grant, following the pattern - "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the - app ID will be used in this resource name instead of the package name. + /** Required. The name of the external transaction that will be refunded. Format: + applications/{package_name}/externalTransactions/{external_transaction} */ public java.lang.String getName() { return name; } /** - * Required. Resource name for this grant, following the pattern - * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft - * app, the app ID will be used in this resource name instead of the package name. + * Required. The name of the external transaction that will be refunded. Format: + * applications/{package_name}/externalTransactions/{external_transaction} */ - public Patch setName(java.lang.String name) { + public Refundexternaltransaction setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + "^applications/[^/]+/externalTransactions/[^/]+$"); } this.name = name; return this; } - /** Optional. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Optional. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Refundexternaltransaction set(String parameterName, Object value) { + return (Refundexternaltransaction) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Inappproducts collection. + * An accessor for creating requests from the Generatedapks collection. * *The typical use is:
*
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Inappproducts.List request = androidpublisher.inappproducts().list(parameters ...)}
+ * {@code AndroidPublisher.Generatedapks.List request = androidpublisher.generatedapks().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Inappproducts inappproducts() {
- return new Inappproducts();
+ public Generatedapks generatedapks() {
+ return new Generatedapks();
}
/**
- * The "inappproducts" collection of methods.
+ * The "generatedapks" collection of methods.
*/
- public class Inappproducts {
+ public class Generatedapks {
/**
- * Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on
- * nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
- * throughput. This method should not be used to delete subscriptions. See [this
- * article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-
- * june-2023.html) for more information.
+ * Downloads a single signed APK generated from an app bundle.
*
- * Create a request for the method "inappproducts.batchDelete".
+ * Create a request for the method "generatedapks.download".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link Download#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
- * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest}
+ * @param versionCode Version code of the app bundle.
+ * @param downloadId Download ID, which uniquely identifies the APK to download. Can be obtained from the response of
+ * `generatedapks.list` method.
* @return the request
*/
- public BatchDelete batchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest content) throws java.io.IOException {
- BatchDelete result = new BatchDelete(packageName, content);
+ public Download download(java.lang.String packageName, java.lang.Integer versionCode, java.lang.String downloadId) throws java.io.IOException {
+ Download result = new Download(packageName, versionCode, downloadId);
initialize(result);
return result;
}
- public class BatchDelete extends AndroidPublisherRequest{@link - * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. + *
{@link + * Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest} + * @param versionCode Version code of the app bundle. + * @param downloadId Download ID, which uniquely identifies the APK to download. Can be obtained from the response of + * `generatedapks.list` method. * @since 1.13 */ - protected BatchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + protected Download(java.lang.String packageName, java.lang.Integer versionCode, java.lang.String downloadId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.versionCode = com.google.api.client.util.Preconditions.checkNotNull(versionCode, "Required parameter versionCode must be specified."); + this.downloadId = com.google.api.client.util.Preconditions.checkNotNull(downloadId, "Required parameter downloadId must be specified."); + initializeMediaDownload(); } @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); } @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); } @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); + public Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); } @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); } @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); } @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); } @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); + } + + @Override + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -9512,60 +9704,95 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public BatchDelete setPackageName(java.lang.String packageName) { + public Download setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } + /** Version code of the app bundle. */ + @com.google.api.client.util.Key + private java.lang.Integer versionCode; + + /** Version code of the app bundle. + */ + public java.lang.Integer getVersionCode() { + return versionCode; + } + + /** Version code of the app bundle. */ + public Download setVersionCode(java.lang.Integer versionCode) { + this.versionCode = versionCode; + return this; + } + + /** + * Download ID, which uniquely identifies the APK to download. Can be obtained from the + * response of `generatedapks.list` method. + */ + @com.google.api.client.util.Key + private java.lang.String downloadId; + + /** Download ID, which uniquely identifies the APK to download. Can be obtained from the response of + `generatedapks.list` method. + */ + public java.lang.String getDownloadId() { + return downloadId; + } + + /** + * Download ID, which uniquely identifies the APK to download. Can be obtained from the + * response of `generatedapks.list` method. + */ + public Download setDownloadId(java.lang.String downloadId) { + this.downloadId = downloadId; + return this; + } + @Override - public BatchDelete set(String parameterName, Object value) { - return (BatchDelete) super.set(parameterName, value); + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); } } /** - * Reads multiple in-app products, which can be managed products or subscriptions. This method - * should not be used to retrieve subscriptions. See [this article](https://android- - * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more - * information. + * Returns download metadata for all APKs that were generated from a given app bundle. * - * Create a request for the method "inappproducts.batchGet". + * Create a request for the method "generatedapks.list". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. + * @param versionCode Version code of the app bundle. * @return the request */ - public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { - BatchGet result = new BatchGet(packageName); + public List list(java.lang.String packageName, java.lang.Integer versionCode) throws java.io.IOException { + List result = new List(packageName, versionCode); initialize(result); return result; } - public class BatchGet extends AndroidPublisherRequest{@link - * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 packageName Package name of the app. + * @param versionCode Version code of the app bundle. * @since 1.13 */ - protected BatchGet(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InappproductsBatchGetResponse.class); + protected List(java.lang.String packageName, java.lang.Integer versionCode) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.GeneratedApksListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.versionCode = com.google.api.client.util.Preconditions.checkNotNull(versionCode, "Required parameter versionCode must be specified."); } @Override @@ -9579,58 +9806,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -9644,191 +9871,215 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public BatchGet setPackageName(java.lang.String packageName) { + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Unique identifier for the in-app products. */ + /** Version code of the app bundle. */ @com.google.api.client.util.Key - private java.util.ListThe typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Grants.List request = androidpublisher.grants().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Grants grants() {
+ return new Grants();
+ }
+
+ /**
+ * The "grants" collection of methods.
+ */
+ public class Grants {
+
/**
- * Updates or inserts one or more in-app products (managed products or subscriptions). Set the
- * latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to
- * achieve maximum update throughput. This method should no longer be used to update subscriptions.
- * See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-
- * developer-api-june-2023.html) for more information.
+ * Grant access for a user to the given package.
*
- * Create a request for the method "inappproducts.batchUpdate".
+ * Create a request for the method "grants.create".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param packageName Package name of the app.
- * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest}
- * @return the request
+ * @param parent Required. The user which needs permission. Format: developers/{developer}/users/{user}
+ * @param content the {@link com.google.api.services.androidpublisher.model.Grant}
+ * @return the request
*/
- public BatchUpdate batchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest content) throws java.io.IOException {
- BatchUpdate result = new BatchUpdate(packageName, content);
+ public Create create(java.lang.String parent, com.google.api.services.androidpublisher.model.Grant content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class BatchUpdate extends AndroidPublisherRequest{@link - * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest} + * @param parent Required. The user which needs permission. Format: developers/{developer}/users/{user} + * @param content the {@link com.google.api.services.androidpublisher.model.Grant} * @since 1.13 */ - protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + protected Create(java.lang.String parent, com.google.api.services.androidpublisher.model.Grant content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Grant.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^developers/[^/]+/users/[^/]+$"); + } } @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String parent; - /** Package name of the app. + /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getParent() { + return parent; } - /** Package name of the app. */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^developers/[^/]+/users/[^/]+$"); + } + this.parent = parent; return this; } @Override - public BatchUpdate set(String parameterName, Object value) { - return (BatchUpdate) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Deletes an in-app product (a managed product or a subscription). This method should no longer be - * used to delete subscriptions. See [this article](https://android- - * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more - * information. + * Removes all access for the user to the given package or developer account. * - * Create a request for the method "inappproducts.delete". + * Create a request for the method "grants.delete". * * This request holds the parameters needed by the androidpublisher server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param packageName Package name of the app. - * @param sku Unique identifier for the in-app product. + * @param name Required. The name of the grant to delete. Format: + * developers/{developer}/users/{email}/grants/{package_name} * @return the request */ - public Delete delete(java.lang.String packageName, java.lang.String sku) throws java.io.IOException { - Delete result = new Delete(packageName, sku); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } public class Delete extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Package name of the app. - * @param sku Unique identifier for the in-app product. + * @param name Required. Resource name for this grant, following the pattern + * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft + * app, the app ID will be used in this resource name instead of the package name. + * @param content the {@link com.google.api.services.androidpublisher.model.Grant} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String sku) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InAppProduct.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku 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(); + protected Patch(java.lang.String name, com.google.api.services.androidpublisher.model.Grant content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Grant.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** + * Required. Resource name for this grant, following the pattern + * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft + * app, the app ID will be used in this resource name instead of the package name. + */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String name; - /** Package name of the app. + /** Required. Resource name for this grant, following the pattern + "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the + app ID will be used in this resource name instead of the package name. */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getName() { + return name; } - /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** + * Required. Resource name for this grant, following the pattern + * "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft + * app, the app ID will be used in this resource name instead of the package name. + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + } + this.name = name; return this; } - /** Unique identifier for the in-app product. */ + /** Optional. The list of fields to be updated. */ @com.google.api.client.util.Key - private java.lang.String sku; + private String updateMask; - /** Unique identifier for the in-app product. + /** Optional. The list of fields to be updated. */ - public java.lang.String getSku() { - return sku; + public String getUpdateMask() { + return updateMask; } - /** Unique identifier for the in-app product. */ - public Get setSku(java.lang.String sku) { - this.sku = sku; + /** Optional. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Inappproducts collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Inappproducts.List request = androidpublisher.inappproducts().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Inappproducts inappproducts() {
+ return new Inappproducts();
+ }
+
+ /**
+ * The "inappproducts" collection of methods.
+ */
+ public class Inappproducts {
+
/**
- * Creates an in-app product (a managed product or a subscription). This method should no longer be
- * used to create subscriptions. See [this article](https://android-
- * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more
- * information.
+ * Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on
+ * nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
+ * throughput. This method should not be used to delete subscriptions. See [this
+ * article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-
+ * june-2023.html) for more information.
*
- * Create a request for the method "inappproducts.insert".
+ * Create a request for the method "inappproducts.batchDelete".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
+ * operation.
*
* @param packageName Package name of the app.
- * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct}
+ * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest}
* @return the request
*/
- public Insert insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.InAppProduct content) throws java.io.IOException {
- Insert result = new Insert(packageName, content);
+ public BatchDelete batchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest content) throws java.io.IOException {
+ BatchDelete result = new BatchDelete(packageName, content);
initialize(result);
return result;
}
- public class Insert extends AndroidPublisherRequest{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote + * operation.{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest} * @since 1.13 */ - protected Insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.InAppProduct content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); + protected BatchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -10225,89 +10490,59 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Insert setPackageName(java.lang.String packageName) { + public BatchDelete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoConvertMissingPrices; - - /** If true the prices for all regions targeted by the parent app that don't have a price specified for - this in-app product will be auto converted to the target currency based on the default price. - Defaults to false. - */ - public java.lang.Boolean getAutoConvertMissingPrices() { - return autoConvertMissingPrices; - } - - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - public Insert setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) { - this.autoConvertMissingPrices = autoConvertMissingPrices; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); } } /** - * Lists all in-app products - both managed products and subscriptions. If an app has a large number - * of in-app products, the response may be paginated. In this case the response field - * `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` - * request parameter to retrieve the next page. This method should no longer be used to retrieve - * subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to- - * google-play-developer-api-june-2023.html) for more information. + * Reads multiple in-app products, which can be managed products or subscriptions. This method + * should not be used to retrieve subscriptions. See [this article](https://android- + * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more + * information. * - * Create a request for the method "inappproducts.list". + * Create a request for the method "inappproducts.batchGet". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @return the request */ - public List list(java.lang.String packageName) throws java.io.IOException { - List result = new List(packageName); + public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { + BatchGet result = new BatchGet(packageName); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. + *
{@link + * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @since 1.13 */ - protected List(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InappproductsListResponse.class); + protected BatchGet(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InappproductsBatchGetResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } @@ -10322,58 +10557,58 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -10387,168 +10622,136 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { + public BatchGet setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Deprecated and ignored. The page size is determined by the server. */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** Deprecated and ignored. The page size is determined by the server. - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** Deprecated and ignored. The page size is determined by the server. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. */ - @com.google.api.client.util.Key - private java.lang.Long startIndex; - - /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. - */ - public java.lang.Long getStartIndex() { - return startIndex; - } - - /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. */ - public List setStartIndex(java.lang.Long startIndex) { - this.startIndex = startIndex; - return this; - } - - /** Pagination token. If empty, list starts at the first product. */ + /** Unique identifier for the in-app products. */ @com.google.api.client.util.Key - private java.lang.String token; + private java.util.List{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation.{@link + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. - * @param sku Unique identifier for the in-app product. - * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest} * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); + protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -10562,185 +10765,118 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public BatchUpdate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Unique identifier for the in-app product. */ - @com.google.api.client.util.Key - private java.lang.String sku; - - /** Unique identifier for the in-app product. - */ - public java.lang.String getSku() { - return sku; - } - - /** Unique identifier for the in-app product. */ - public Patch setSku(java.lang.String sku) { - this.sku = sku; - return this; - } - - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoConvertMissingPrices; - - /** If true the prices for all regions targeted by the parent app that don't have a price specified for - this in-app product will be auto converted to the target currency based on the default price. - Defaults to false. - */ - public java.lang.Boolean getAutoConvertMissingPrices() { - return autoConvertMissingPrices; - } - - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - public Patch setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) { - this.autoConvertMissingPrices = autoConvertMissingPrices; - return this; - } - - /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. - */ - @com.google.api.client.util.Key - private java.lang.String latencyTolerance; - - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. - */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; - } - - /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. - */ - public Patch setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); } } /** - * Updates an in-app product (a managed product or a subscription). This method should no longer be - * used to update subscriptions. See [this article](https://android- + * Deletes an in-app product (a managed product or a subscription). This method should no longer be + * used to delete subscriptions. See [this article](https://android- * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more * information. * - * Create a request for the method "inappproducts.update". + * Create a request for the method "inappproducts.delete". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. * @param sku Unique identifier for the in-app product. - * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} * @return the request */ - public Update update(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) throws java.io.IOException { - Update result = new Update(packageName, sku, content); + public Delete delete(java.lang.String packageName, java.lang.String sku) throws java.io.IOException { + Delete result = new Delete(packageName, sku); initialize(result); return result; } - public class Update extends AndroidPublisherRequest{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Package name of the app. * @param sku Unique identifier for the in-app product. - * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} * @since 1.13 */ - protected Update(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) { - super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); + protected Delete(java.lang.String packageName, java.lang.String sku) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -10754,7 +10890,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -10770,60 +10906,11 @@ public java.lang.String getSku() { } /** Unique identifier for the in-app product. */ - public Update setSku(java.lang.String sku) { + public Delete setSku(java.lang.String sku) { this.sku = sku; return this; } - /** - * If set to true, and the in-app product with the given package_name and sku doesn't exist, - * the in-app product will be created. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** If set to true, and the in-app product with the given package_name and sku doesn't exist, the in- - app product will be created. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; - } - - /** - * If set to true, and the in-app product with the given package_name and sku doesn't exist, - * the in-app product will be created. - */ - public Update setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; - } - - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoConvertMissingPrices; - - /** If true the prices for all regions targeted by the parent app that don't have a price specified for - this in-app product will be auto converted to the target currency based on the default price. - Defaults to false. - */ - public java.lang.Boolean getAutoConvertMissingPrices() { - return autoConvertMissingPrices; - } - - /** - * If true the prices for all regions targeted by the parent app that don't have a price - * specified for this in-app product will be auto converted to the target currency based on - * the default price. Defaults to false. - */ - public Update setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) { - this.autoConvertMissingPrices = autoConvertMissingPrices; - return this; - } - /** * Optional. The latency tolerance for the propagation of this product update. Defaults to * latency-sensitive. @@ -10842,193 +10929,127 @@ public java.lang.String getLatencyTolerance() { * Optional. The latency tolerance for the propagation of this product update. Defaults to * latency-sensitive. */ - public Update setLatencyTolerance(java.lang.String latencyTolerance) { + public Delete setLatencyTolerance(java.lang.String latencyTolerance) { this.latencyTolerance = latencyTolerance; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Internalappsharingartifacts collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Internalappsharingartifacts.List request = androidpublisher.internalappsharingartifacts().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Internalappsharingartifacts internalappsharingartifacts() {
- return new Internalappsharingartifacts();
- }
-
- /**
- * The "internalappsharingartifacts" collection of methods.
- */
- public class Internalappsharingartifacts {
-
/**
- * Uploads an APK to internal app sharing. If you are using the Google API client libraries, please
- * increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
- * recommended). See [Timeouts and Errors](https://developers.google.com/api-client-
- * library/java/google-api-java-client/errors) for an example in java.
+ * Gets an in-app product, which can be a managed product or a subscription. This method should no
+ * longer be used to retrieve subscriptions. See [this article](https://android-
+ * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more
+ * information.
*
- * Create a request for the method "internalappsharingartifacts.uploadapk".
+ * Create a request for the method "inappproducts.get".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @param packageName Package name of the app.
+ * @param sku Unique identifier for the in-app product.
* @return the request
*/
- public Uploadapk uploadapk(java.lang.String packageName) throws java.io.IOException {
- Uploadapk result = new Uploadapk(packageName);
+ public Get get(java.lang.String packageName, java.lang.String sku) throws java.io.IOException {
+ Get result = new Get(packageName, sku);
initialize(result);
return result;
}
- /**
- * Uploads an APK to internal app sharing. If you are using the Google API client libraries, please
- * increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
- * recommended). See [Timeouts and Errors](https://developers.google.com/api-client-
- * library/java/google-api-java-client/errors) for an example in java.
- *
- * Create a request for the method "internalappsharingartifacts.uploadapk".
- *
- * This request holds the parameters needed by the the androidpublisher server. After setting any
- * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote operation.
- *
- * - * This method should be used for uploading media content. - *
- * - * @param packageName Package name of the app. - * @param mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails - */ - public Uploadapk uploadapk(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Uploadapk result = new Uploadapk(packageName, mediaContent); - initialize(result); - return result; - } - - public class Uploadapk extends AndroidPublisherRequest{@link - * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 packageName Package name of the app. + * @param sku Unique identifier for the in-app product. * @since 1.13 */ - protected Uploadapk(java.lang.String packageName) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + protected Get(java.lang.String packageName, java.lang.String sku) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InAppProduct.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); } - /** - * Uploads an APK to internal app sharing. If you are using the Google API client libraries, - * please increase the timeout of the http request before calling this endpoint (a timeout of 2 - * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- - * library/java/google-api-java-client/errors) for an example in java. - * - * Create a request for the method "internalappsharingartifacts.uploadapk". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote - * operation.{@link - * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
- * - * @param packageName Package name of the app. - * @param mediaContent The media HTTP content. - * @since 1.13 - */ - protected Uploadapk(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Uploadapk set$Xgafv(java.lang.String $Xgafv) { - return (Uploadapk) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Uploadapk setAccessToken(java.lang.String accessToken) { - return (Uploadapk) super.setAccessToken(accessToken); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Uploadapk setAlt(java.lang.String alt) { - return (Uploadapk) super.setAlt(alt); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Uploadapk setCallback(java.lang.String callback) { - return (Uploadapk) super.setCallback(callback); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Uploadapk setFields(java.lang.String fields) { - return (Uploadapk) super.setFields(fields); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Uploadapk setKey(java.lang.String key) { - return (Uploadapk) super.setKey(key); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Uploadapk setOauthToken(java.lang.String oauthToken) { - return (Uploadapk) super.setOauthToken(oauthToken); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Uploadapk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Uploadapk) super.setPrettyPrint(prettyPrint); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Uploadapk setQuotaUser(java.lang.String quotaUser) { - return (Uploadapk) super.setQuotaUser(quotaUser); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Uploadapk setUploadType(java.lang.String uploadType) { - return (Uploadapk) super.setUploadType(uploadType); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Uploadapk setUploadProtocol(java.lang.String uploadProtocol) { - return (Uploadapk) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -11042,174 +11063,133 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Uploadapk setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } + /** Unique identifier for the in-app product. */ + @com.google.api.client.util.Key + private java.lang.String sku; + + /** Unique identifier for the in-app product. + */ + public java.lang.String getSku() { + return sku; + } + + /** Unique identifier for the in-app product. */ + public Get setSku(java.lang.String sku) { + this.sku = sku; + return this; + } + @Override - public Uploadapk set(String parameterName, Object value) { - return (Uploadapk) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, - * please increase the timeout of the http request before calling this endpoint (a timeout of 2 - * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- - * library/java/google-api-java-client/errors) for an example in java. + * Creates an in-app product (a managed product or a subscription). This method should no longer be + * used to create subscriptions. See [this article](https://android- + * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more + * information. * - * Create a request for the method "internalappsharingartifacts.uploadbundle". + * Create a request for the method "inappproducts.insert". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Uploadbundle#execute()} method to invoke the remote - * operation. - * - * @param packageName Package name of the app. - * @return the request - */ - public Uploadbundle uploadbundle(java.lang.String packageName) throws java.io.IOException { - Uploadbundle result = new Uploadbundle(packageName); - initialize(result); - return result; - } - - /** - * Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, - * please increase the timeout of the http request before calling this endpoint (a timeout of 2 - * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- - * library/java/google-api-java-client/errors) for an example in java. - * - * Create a request for the method "internalappsharingartifacts.uploadbundle". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Uploadbundle#execute()} method to invoke the remote - * operation. - * - *- * This method should be used for uploading media content. - *
+ * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param packageName Package name of the app. - * @param mediaContent The media HTTP content. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} * @return the request - * @throws java.io.IOException if the initialization of the request fails */ - public Uploadbundle uploadbundle(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Uploadbundle result = new Uploadbundle(packageName, mediaContent); + public Insert insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.InAppProduct content) throws java.io.IOException { + Insert result = new Insert(packageName, content); initialize(result); return result; } - public class Uploadbundle extends AndroidPublisherRequest{@link - * Uploadbundle#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Package name of the app. - * @since 1.13 - */ - protected Uploadbundle(java.lang.String packageName) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts"; /** - * Uploads an app bundle to internal app sharing. If you are using the Google API client - * libraries, please increase the timeout of the http request before calling this endpoint (a - * timeout of 2 minutes is recommended). See [Timeouts and - * Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) - * for an example in java. + * Creates an in-app product (a managed product or a subscription). This method should no longer + * be used to create subscriptions. See [this article](https://android- + * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more + * information. * - * Create a request for the method "internalappsharingartifacts.uploadbundle". + * Create a request for the method "inappproducts.insert". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Uploadbundle#execute()} method to invoke the remote - * operation.{@link - * Uploadbundle#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - *- * This constructor should be used for uploading media content. - *
+ * 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 packageName Package name of the app. - * @param mediaContent The media HTTP content. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} * @since 1.13 */ - protected Uploadbundle(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) { - super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + protected Insert(java.lang.String packageName, com.google.api.services.androidpublisher.model.InAppProduct content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); - initializeMediaUpload(mediaContent); } @Override - public Uploadbundle set$Xgafv(java.lang.String $Xgafv) { - return (Uploadbundle) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Uploadbundle setAccessToken(java.lang.String accessToken) { - return (Uploadbundle) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Uploadbundle setAlt(java.lang.String alt) { - return (Uploadbundle) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Uploadbundle setCallback(java.lang.String callback) { - return (Uploadbundle) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Uploadbundle setFields(java.lang.String fields) { - return (Uploadbundle) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Uploadbundle setKey(java.lang.String key) { - return (Uploadbundle) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Uploadbundle setOauthToken(java.lang.String oauthToken) { - return (Uploadbundle) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Uploadbundle setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Uploadbundle) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Uploadbundle setQuotaUser(java.lang.String quotaUser) { - return (Uploadbundle) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Uploadbundle setUploadType(java.lang.String uploadType) { - return (Uploadbundle) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Uploadbundle setUploadProtocol(java.lang.String uploadProtocol) { - return (Uploadbundle) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -11223,4137 +11203,4380 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Uploadbundle setPackageName(java.lang.String packageName) { + public Insert setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - @Override - public Uploadbundle set(String parameterName, Object value) { - return (Uploadbundle) super.set(parameterName, value); - } - } - - } + /** + * If true the prices for all regions targeted by the parent app that don't have a price + * specified for this in-app product will be auto converted to the target currency based on + * the default price. Defaults to false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoConvertMissingPrices; - /** - * An accessor for creating requests from the Monetization collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Monetization.List request = androidpublisher.monetization().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Monetization monetization() {
- return new Monetization();
- }
+ /** If true the prices for all regions targeted by the parent app that don't have a price specified for
+ this in-app product will be auto converted to the target currency based on the default price.
+ Defaults to false.
+ */
+ public java.lang.Boolean getAutoConvertMissingPrices() {
+ return autoConvertMissingPrices;
+ }
- /**
- * The "monetization" collection of methods.
- */
- public class Monetization {
+ /**
+ * If true the prices for all regions targeted by the parent app that don't have a price
+ * specified for this in-app product will be auto converted to the target currency based on
+ * the default price. Defaults to false.
+ */
+ public Insert setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) {
+ this.autoConvertMissingPrices = autoConvertMissingPrices;
+ return this;
+ }
+ @Override
+ public Insert set(String parameterName, Object value) {
+ return (Insert) super.set(parameterName, value);
+ }
+ }
/**
- * Calculates the region prices, using today's exchange rate and country-specific pricing patterns,
- * based on the price in the request for a set of regions.
+ * Lists all in-app products - both managed products and subscriptions. If an app has a large number
+ * of in-app products, the response may be paginated. In this case the response field
+ * `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token`
+ * request parameter to retrieve the next page. This method should no longer be used to retrieve
+ * subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-
+ * google-play-developer-api-june-2023.html) for more information.
*
- * Create a request for the method "monetization.convertRegionPrices".
+ * Create a request for the method "inappproducts.list".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link ConvertRegionPrices#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param packageName Required. The app package name.
- * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest}
+ * @param packageName Package name of the app.
* @return the request
*/
- public ConvertRegionPrices convertRegionPrices(java.lang.String packageName, com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest content) throws java.io.IOException {
- ConvertRegionPrices result = new ConvertRegionPrices(packageName, content);
+ public List list(java.lang.String packageName) throws java.io.IOException {
+ List result = new List(packageName);
initialize(result);
return result;
}
- public class ConvertRegionPrices extends AndroidPublisherRequest{@link ConvertRegionPrices#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * 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 packageName Required. The app package name. - * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest} + * @param packageName Package name of the app. * @since 1.13 */ - protected ConvertRegionPrices(java.lang.String packageName, com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ConvertRegionPricesResponse.class); + protected List(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.InappproductsListResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } @Override - public ConvertRegionPrices set$Xgafv(java.lang.String $Xgafv) { - return (ConvertRegionPrices) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ConvertRegionPrices setAccessToken(java.lang.String accessToken) { - return (ConvertRegionPrices) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ConvertRegionPrices setAlt(java.lang.String alt) { - return (ConvertRegionPrices) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ConvertRegionPrices setCallback(java.lang.String callback) { - return (ConvertRegionPrices) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ConvertRegionPrices setFields(java.lang.String fields) { - return (ConvertRegionPrices) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ConvertRegionPrices setKey(java.lang.String key) { - return (ConvertRegionPrices) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ConvertRegionPrices setOauthToken(java.lang.String oauthToken) { - return (ConvertRegionPrices) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ConvertRegionPrices setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ConvertRegionPrices) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ConvertRegionPrices setQuotaUser(java.lang.String quotaUser) { - return (ConvertRegionPrices) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ConvertRegionPrices setUploadType(java.lang.String uploadType) { - return (ConvertRegionPrices) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ConvertRegionPrices setUploadProtocol(java.lang.String uploadProtocol) { - return (ConvertRegionPrices) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Required. The app package name. */ + @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); + } + + /** Package name of the app. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The app package name. + /** Package name of the app. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The app package name. */ - public ConvertRegionPrices setPackageName(java.lang.String packageName) { + /** Package name of the app. */ + public List setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - @Override - public ConvertRegionPrices set(String parameterName, Object value) { - return (ConvertRegionPrices) super.set(parameterName, value); + /** Deprecated and ignored. The page size is determined by the server. */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** Deprecated and ignored. The page size is determined by the server. + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - /** - * An accessor for creating requests from the Onetimeproducts collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Onetimeproducts.List request = androidpublisher.onetimeproducts().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Onetimeproducts onetimeproducts() {
- return new Onetimeproducts();
- }
+ /** Deprecated and ignored. The page size is determined by the server. */
+ public List setMaxResults(java.lang.Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
- /**
- * The "onetimeproducts" collection of methods.
- */
- public class Onetimeproducts {
+ /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. */
+ @com.google.api.client.util.Key
+ private java.lang.Long startIndex;
- /**
- * Deletes one or more one-time products.
- *
- * Create a request for the method "onetimeproducts.batchDelete".
- *
- * This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
- * operation.
- *
- * @param packageName Required. The parent app (package name) for which the one-time products should be deleted. Must be
- * equal to the package_name field on all the OneTimeProduct resources.
- * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest}
- * @return the request
+ /** Deprecated and ignored. Set the `token` parameter to retrieve the next page.
*/
- public BatchDelete batchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest content) throws java.io.IOException {
- BatchDelete result = new BatchDelete(packageName, content);
- initialize(result);
- return result;
+ public java.lang.Long getStartIndex() {
+ return startIndex;
}
- public class BatchDelete extends AndroidPublisherRequest{@link - * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the one-time products should be deleted. Must be - * equal to the package_name field on all the OneTimeProduct resources. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest} - * @since 1.13 - */ - protected BatchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } - - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } - - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } - - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } - - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } - - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } - - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } - - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } - - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); - } + /** Pagination token. If empty, list starts at the first product. */ + @com.google.api.client.util.Key + private java.lang.String token; - @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + /** Pagination token. If empty, list starts at the first product. + */ + public java.lang.String getToken() { + return token; + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); - } + /** Pagination token. If empty, list starts at the first product. */ + public List setToken(java.lang.String token) { + this.token = token; + return this; + } - /** - * Required. The parent app (package name) for which the one-time products should be - * deleted. Must be equal to the package_name field on all the OneTimeProduct resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches an in-app product (a managed product or a subscription). This method should no longer be + * used to update subscriptions. See [this article](https://android- + * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more + * information. + * + * Create a request for the method "inappproducts.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @param sku Unique identifier for the in-app product. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) throws java.io.IOException { + Patch result = new Patch(packageName, sku, content); + initialize(result); + return result; + } - /** Required. The parent app (package name) for which the one-time products should be deleted. Must be - equal to the package_name field on all the OneTimeProduct resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the products should be retrieved. Must be equal to - * the package_name field on all requests. - * @return the request + * @param packageName Package name of the app. + * @param sku Unique identifier for the in-app product. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @since 1.13 */ - public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { - BatchGet result = new BatchGet(packageName); - initialize(result); - return result; + protected Patch(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); } - public class BatchGet extends AndroidPublisherRequest{@link - * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the products should be retrieved. Must be equal to - * the package_name field on all requests. - * @since 1.13 - */ - protected BatchGet(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductsResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + /** Package name of the app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + /** Unique identifier for the in-app product. */ + @com.google.api.client.util.Key + private java.lang.String sku; - /** - * Required. The parent app (package name) for which the products should be retrieved. Must - * be equal to the package_name field on all requests. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Unique identifier for the in-app product. + */ + public java.lang.String getSku() { + return sku; + } - /** Required. The parent app (package name) for which the products should be retrieved. Must be equal - to the package_name field on all requests. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Unique identifier for the in-app product. */ + public Patch setSku(java.lang.String sku) { + this.sku = sku; + return this; + } - /** - * Required. The parent app (package name) for which the products should be retrieved. Must - * be equal to the package_name field on all requests. - */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * If true the prices for all regions targeted by the parent app that don't have a price + * specified for this in-app product will be auto converted to the target currency based on + * the default price. Defaults to false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoConvertMissingPrices; - /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. */ - @com.google.api.client.util.Key - private java.util.List{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the one-time products should be updated. Must be - * equal to the package_name field on all the OneTimeProduct resources. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest} - * @return the request + * @param packageName Package name of the app. + * @param sku Unique identifier for the in-app product. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @since 1.13 */ - public BatchUpdate batchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest content) throws java.io.IOException { - BatchUpdate result = new BatchUpdate(packageName, content); - initialize(result); - return result; + protected Update(java.lang.String packageName, java.lang.String sku, com.google.api.services.androidpublisher.model.InAppProduct content) { + super(AndroidPublisher.this, "PUT", REST_PATH, content, com.google.api.services.androidpublisher.model.InAppProduct.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); } - public class BatchUpdate extends AndroidPublisherRequest{@link - * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the one-time products should be updated. Must be - * equal to the package_name field on all the OneTimeProduct resources. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest} - * @since 1.13 - */ - protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); - } + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); - } + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); - } + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Required. The parent app (package name) for which the one-time products should be - * updated. Must be equal to the package_name field on all the OneTimeProduct resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Package name of the app. */ + public Update setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) for which the one-time products should be updated. Must be - equal to the package_name field on all the OneTimeProduct resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Unique identifier for the in-app product. */ + @com.google.api.client.util.Key + private java.lang.String sku; - /** - * Required. The parent app (package name) for which the one-time products should be - * updated. Must be equal to the package_name field on all the OneTimeProduct resources. - */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Unique identifier for the in-app product. + */ + public java.lang.String getSku() { + return sku; + } - @Override - public BatchUpdate set(String parameterName, Object value) { - return (BatchUpdate) super.set(parameterName, value); - } + /** Unique identifier for the in-app product. */ + public Update setSku(java.lang.String sku) { + this.sku = sku; + return this; } + /** - * Deletes a one-time product. - * - * Create a request for the method "onetimeproducts.delete". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the one-time product to delete. - * @param productId Required. The one-time product ID of the one-time product to delete. - * @return the request + * If set to true, and the in-app product with the given package_name and sku doesn't exist, + * the in-app product will be created. */ - public Delete delete(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { - Delete result = new Delete(packageName, productId); - initialize(result); - return result; - } + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the one-time product to delete. - * @param productId Required. The one-time product ID of the one-time product to delete. - * @since 1.13 - */ - protected Delete(java.lang.String packageName, java.lang.String productId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + /** + * If true the prices for all regions targeted by the parent app that don't have a price + * specified for this in-app product will be auto converted to the target currency based on + * the default price. Defaults to false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoConvertMissingPrices; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** If true the prices for all regions targeted by the parent app that don't have a price specified for + this in-app product will be auto converted to the target currency based on the default price. + Defaults to false. + */ + public java.lang.Boolean getAutoConvertMissingPrices() { + return autoConvertMissingPrices; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** + * If true the prices for all regions targeted by the parent app that don't have a price + * specified for this in-app product will be auto converted to the target currency based on + * the default price. Defaults to false. + */ + public Update setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) { + this.autoConvertMissingPrices = autoConvertMissingPrices; + return this; + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + @com.google.api.client.util.Key + private java.lang.String latencyTolerance; - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + public Update setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } - @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); - } + /** + * An accessor for creating requests from the Internalappsharingartifacts collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Internalappsharingartifacts.List request = androidpublisher.internalappsharingartifacts().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Internalappsharingartifacts internalappsharingartifacts() {
+ return new Internalappsharingartifacts();
+ }
- @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);
- }
-
- /** Required. The parent app (package name) of the one-time product to delete. */
- @com.google.api.client.util.Key
- private java.lang.String packageName;
-
- /** Required. The parent app (package name) of the one-time product to delete.
- */
- public java.lang.String getPackageName() {
- return packageName;
- }
-
- /** Required. The parent app (package name) of the one-time product to delete. */
- public Delete setPackageName(java.lang.String packageName) {
- this.packageName = packageName;
- return this;
- }
-
- /** Required. The one-time product ID of the one-time product to delete. */
- @com.google.api.client.util.Key
- private java.lang.String productId;
-
- /** Required. The one-time product ID of the one-time product to delete.
- */
- public java.lang.String getProductId() {
- return productId;
- }
+ /**
+ * The "internalappsharingartifacts" collection of methods.
+ */
+ public class Internalappsharingartifacts {
- /** Required. The one-time product ID of the one-time product to delete. */
- public Delete setProductId(java.lang.String productId) {
- this.productId = productId;
- return this;
- }
+ /**
+ * Uploads an APK to internal app sharing. If you are using the Google API client libraries, please
+ * increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
+ * recommended). See [Timeouts and Errors](https://developers.google.com/api-client-
+ * library/java/google-api-java-client/errors) for an example in java.
+ *
+ * Create a request for the method "internalappsharingartifacts.uploadapk".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Package name of the app.
+ * @return the request
+ */
+ public Uploadapk uploadapk(java.lang.String packageName) throws java.io.IOException {
+ Uploadapk result = new Uploadapk(packageName);
+ initialize(result);
+ return result;
+ }
- /**
- * Optional. The latency tolerance for the propagation of this product update. Defaults to
- * latency-sensitive.
- */
- @com.google.api.client.util.Key
- private java.lang.String latencyTolerance;
+ /**
+ * Uploads an APK to internal app sharing. If you are using the Google API client libraries, please
+ * increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
+ * recommended). See [Timeouts and Errors](https://developers.google.com/api-client-
+ * library/java/google-api-java-client/errors) for an example in java.
+ *
+ * Create a request for the method "internalappsharingartifacts.uploadapk".
+ *
+ * This request holds the parameters needed by the the androidpublisher server. After setting any
+ * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote operation.
+ *
+ * + * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Uploadapk uploadapk(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Uploadapk result = new Uploadapk(packageName, mediaContent); + initialize(result); + return result; + } - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. - */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; - } + public class Uploadapk extends AndroidPublisherRequest{@link + * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Package name of the app. + * @since 1.13 + */ + protected Uploadapk(java.lang.String packageName) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } + /** - * Reads a single one-time product. + * Uploads an APK to internal app sharing. If you are using the Google API client libraries, + * please increase the timeout of the http request before calling this endpoint (a timeout of 2 + * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- + * library/java/google-api-java-client/errors) for an example in java. * - * Create a request for the method "onetimeproducts.get". + * Create a request for the method "internalappsharingartifacts.uploadapk". * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadapk#execute()} method to invoke the remote + * operation.{@link + * Uploadapk#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the product to retrieve. - * @param productId Required. The product ID of the product to retrieve. - * @return the request + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app. + * @param mediaContent The media HTTP content. + * @since 1.13 */ - public Get get(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { - Get result = new Get(packageName, productId); - initialize(result); - return result; + protected Uploadapk(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the product to retrieve. - * @param productId Required. The product ID of the product to retrieve. - * @since 1.13 - */ - protected Get(java.lang.String packageName, java.lang.String productId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.OneTimeProduct.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public Uploadapk setAlt(java.lang.String alt) { + return (Uploadapk) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Uploadapk setCallback(java.lang.String callback) { + return (Uploadapk) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Uploadapk setFields(java.lang.String fields) { + return (Uploadapk) super.setFields(fields); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Uploadapk setKey(java.lang.String key) { + return (Uploadapk) super.setKey(key); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Uploadapk setOauthToken(java.lang.String oauthToken) { + return (Uploadapk) super.setOauthToken(oauthToken); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Uploadapk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadapk) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Uploadapk setQuotaUser(java.lang.String quotaUser) { + return (Uploadapk) super.setQuotaUser(quotaUser); + } - @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 Uploadapk setUploadType(java.lang.String uploadType) { + return (Uploadapk) super.setUploadType(uploadType); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Uploadapk setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadapk) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) of the product to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the product to retrieve. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Package name of the app. */ + public Uploadapk setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the product to retrieve. */ - public Get setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Uploadapk set(String parameterName, Object value) { + return (Uploadapk) super.set(parameterName, value); + } + } + /** + * Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, + * please increase the timeout of the http request before calling this endpoint (a timeout of 2 + * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- + * library/java/google-api-java-client/errors) for an example in java. + * + * Create a request for the method "internalappsharingartifacts.uploadbundle". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadbundle#execute()} method to invoke the remote + * operation. + * + * @param packageName Package name of the app. + * @return the request + */ + public Uploadbundle uploadbundle(java.lang.String packageName) throws java.io.IOException { + Uploadbundle result = new Uploadbundle(packageName); + initialize(result); + return result; + } - /** Required. The product ID of the product to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** + * Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, + * please increase the timeout of the http request before calling this endpoint (a timeout of 2 + * minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client- + * library/java/google-api-java-client/errors) for an example in java. + * + * Create a request for the method "internalappsharingartifacts.uploadbundle". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Uploadbundle#execute()} method to invoke the remote + * operation. + * + *+ * This method should be used for uploading media content. + *
+ * + * @param packageName Package name of the app. + * @param mediaContent The media HTTP content. + * @return the request + * @throws java.io.IOException if the initialization of the request fails + */ + public Uploadbundle uploadbundle(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { + Uploadbundle result = new Uploadbundle(packageName, mediaContent); + initialize(result); + return result; + } - /** Required. The product ID of the product to retrieve. - */ - public java.lang.String getProductId() { - return productId; - } + public class Uploadbundle extends AndroidPublisherRequest{@link + * Uploadbundle#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the one-time product should be read. - * @return the request + * @param packageName Package name of the app. + * @since 1.13 */ - public List list(java.lang.String packageName) throws java.io.IOException { - List result = new List(packageName); - initialize(result); - return result; + protected Uploadbundle(java.lang.String packageName) { + super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class List extends AndroidPublisherRequest{@link + * Uploadbundle#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + *+ * This constructor should be used for uploading media content. + *
+ * + * @param packageName Package name of the app. + * @param mediaContent The media HTTP content. + * @since 1.13 + */ + protected Uploadbundle(java.lang.String packageName, com.google.api.client.http.AbstractInputStreamContent mediaContent) { + super(AndroidPublisher.this, "POST", "/upload/" + getServicePath() + REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); + initializeMediaUpload(mediaContent); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts"; + @Override + public Uploadbundle set$Xgafv(java.lang.String $Xgafv) { + return (Uploadbundle) super.set$Xgafv($Xgafv); + } - /** - * Lists all one-time products under a given app. - * - * Create a request for the method "onetimeproducts.list". - * - * This request holds the parameters needed by the the androidpublisher 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 packageName Required. The parent app (package name) for which the one-time product should be read. - * @since 1.13 - */ - protected List(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListOneTimeProductsResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + @Override + public Uploadbundle setAccessToken(java.lang.String accessToken) { + return (Uploadbundle) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Uploadbundle setAlt(java.lang.String alt) { + return (Uploadbundle) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Uploadbundle setCallback(java.lang.String callback) { + return (Uploadbundle) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Uploadbundle setFields(java.lang.String fields) { + return (Uploadbundle) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Uploadbundle setKey(java.lang.String key) { + return (Uploadbundle) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Uploadbundle setOauthToken(java.lang.String oauthToken) { + return (Uploadbundle) super.setOauthToken(oauthToken); + } - @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 Uploadbundle setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadbundle) super.setPrettyPrint(prettyPrint); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Uploadbundle setQuotaUser(java.lang.String quotaUser) { + return (Uploadbundle) super.setQuotaUser(quotaUser); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Uploadbundle setUploadType(java.lang.String uploadType) { + return (Uploadbundle) super.setUploadType(uploadType); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Uploadbundle setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadbundle) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** - * Required. The parent app (package name) for which the one-time product should be read. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) for which the one-time product should be read. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Package name of the app. */ + public Uploadbundle setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The parent app (package name) for which the one-time product should be read. - */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Uploadbundle set(String parameterName, Object value) { + return (Uploadbundle) super.set(parameterName, value); + } + } - /** - * Optional. The maximum number of one-time product to return. The service may return fewer - * than this value. If unspecified, at most 50 one-time products will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + } - /** Optional. The maximum number of one-time product to return. The service may return fewer than this - value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; - values above 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * An accessor for creating requests from the Monetization collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Monetization.List request = androidpublisher.monetization().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Monetization monetization() {
+ return new Monetization();
+ }
- /**
- * Optional. The maximum number of one-time product to return. The service may return fewer
- * than this value. If unspecified, at most 50 one-time products will be returned. The
- * maximum value is 1000; values above 1000 will be coerced to 1000.
- */
- public List setPageSize(java.lang.Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
+ /**
+ * The "monetization" collection of methods.
+ */
+ public class Monetization {
- /**
- * Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this
- * to retrieve the subsequent page. When paginating, all other parameters provided to
- * `ListOneTimeProducts` must match the call that provided the page token.
- */
- @com.google.api.client.util.Key
- private java.lang.String pageToken;
+ /**
+ * Calculates the region prices, using today's exchange rate and country-specific pricing patterns,
+ * based on the price in the request for a set of regions.
+ *
+ * Create a request for the method "monetization.convertRegionPrices".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link ConvertRegionPrices#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param packageName Required. The app package name.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest}
+ * @return the request
+ */
+ public ConvertRegionPrices convertRegionPrices(java.lang.String packageName, com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest content) throws java.io.IOException {
+ ConvertRegionPrices result = new ConvertRegionPrices(packageName, content);
+ initialize(result);
+ return result;
+ }
- /** Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to
- retrieve the subsequent page. When paginating, all other parameters provided to
- `ListOneTimeProducts` must match the call that provided the page token.
- */
- public java.lang.String getPageToken() {
- return pageToken;
- }
+ public class ConvertRegionPrices extends AndroidPublisherRequest{@link ConvertRegionPrices#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param packageName Required. Immutable. Package name of the parent app. - * @param productId Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs - * must start with a number or lowercase letter, and can contain numbers (0-9), lowercase - * letters (a-z), underscores (_), and periods (.). - * @param content the {@link com.google.api.services.androidpublisher.model.OneTimeProduct} - * @return the request + * @param packageName Required. The app package name. + * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest} + * @since 1.13 */ - public Patch patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.OneTimeProduct content) throws java.io.IOException { - Patch result = new Patch(packageName, productId, content); - initialize(result); - return result; + protected ConvertRegionPrices(java.lang.String packageName, com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.ConvertRegionPricesResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. Immutable. Package name of the parent app. - * @param productId Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs - * must start with a number or lowercase letter, and can contain numbers (0-9), lowercase - * letters (a-z), underscores (_), and periods (.). - * @param content the {@link com.google.api.services.androidpublisher.model.OneTimeProduct} - * @since 1.13 - */ - protected Patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.OneTimeProduct content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProduct.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public ConvertRegionPrices setAccessToken(java.lang.String accessToken) { + return (ConvertRegionPrices) super.setAccessToken(accessToken); + } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public ConvertRegionPrices setAlt(java.lang.String alt) { + return (ConvertRegionPrices) super.setAlt(alt); + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public ConvertRegionPrices setCallback(java.lang.String callback) { + return (ConvertRegionPrices) super.setCallback(callback); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + @Override + public ConvertRegionPrices setFields(java.lang.String fields) { + return (ConvertRegionPrices) super.setFields(fields); + } + + @Override + public ConvertRegionPrices setKey(java.lang.String key) { + return (ConvertRegionPrices) super.setKey(key); + } + + @Override + public ConvertRegionPrices setOauthToken(java.lang.String oauthToken) { + return (ConvertRegionPrices) super.setOauthToken(oauthToken); + } + + @Override + public ConvertRegionPrices setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ConvertRegionPrices) super.setPrettyPrint(prettyPrint); + } + + @Override + public ConvertRegionPrices setQuotaUser(java.lang.String quotaUser) { + return (ConvertRegionPrices) super.setQuotaUser(quotaUser); + } + + @Override + public ConvertRegionPrices setUploadType(java.lang.String uploadType) { + return (ConvertRegionPrices) super.setUploadType(uploadType); + } + + @Override + public ConvertRegionPrices setUploadProtocol(java.lang.String uploadProtocol) { + return (ConvertRegionPrices) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The app package name. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The app package name. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Required. The app package name. */ + public ConvertRegionPrices setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + @Override + public ConvertRegionPrices set(String parameterName, Object value) { + return (ConvertRegionPrices) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Onetimeproducts collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Onetimeproducts.List request = androidpublisher.onetimeproducts().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Onetimeproducts onetimeproducts() {
+ return new Onetimeproducts();
+ }
+
+ /**
+ * The "onetimeproducts" collection of methods.
+ */
+ public class Onetimeproducts {
+
+ /**
+ * Deletes one or more one-time products.
+ *
+ * Create a request for the method "onetimeproducts.batchDelete".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param packageName Required. The parent app (package name) for which the one-time products should be deleted. Must be
+ * equal to the package_name field on all the OneTimeProduct resources.
+ * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest}
+ * @return the request
+ */
+ public BatchDelete batchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest content) throws java.io.IOException {
+ BatchDelete result = new BatchDelete(packageName, content);
+ initialize(result);
+ return result;
+ }
+
+ public class BatchDelete extends AndroidPublisherRequest{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the one-time products should be deleted. Must be + * equal to the package_name field on all the OneTimeProduct resources. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductsRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); } - /** Required. Immutable. Package name of the parent app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } - /** Required. Immutable. Package name of the parent app. - */ - public java.lang.String getPackageName() { - return packageName; + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); } - /** Required. Immutable. Package name of the parent app. */ - public Patch setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); } /** - * Required. Immutable. Unique product ID of the product. Unique within the parent app. - * Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), - * lowercase letters (a-z), underscores (_), and periods (.). + * Required. The parent app (package name) for which the one-time products should be + * deleted. Must be equal to the package_name field on all the OneTimeProduct resources. */ @com.google.api.client.util.Key - private java.lang.String productId; + private java.lang.String packageName; - /** Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs - must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters - (a-z), underscores (_), and periods (.). + /** Required. The parent app (package name) for which the one-time products should be deleted. Must be + equal to the package_name field on all the OneTimeProduct resources. */ - public java.lang.String getProductId() { - return productId; + public java.lang.String getPackageName() { + return packageName; } /** - * Required. Immutable. Unique product ID of the product. Unique within the parent app. - * Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), - * lowercase letters (a-z), underscores (_), and periods (.). + * Required. The parent app (package name) for which the one-time products should be + * deleted. Must be equal to the package_name field on all the OneTimeProduct resources. */ - public Patch setProductId(java.lang.String productId) { - this.productId = productId; + public BatchDelete setPackageName(java.lang.String packageName) { + this.packageName = packageName; return this; } - /** - * Optional. If set to true, and the one-time product with the given package_name and - * product_id doesn't exist, the one-time product will be created. If a new one-time product - * is created, update_mask is ignored. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** Optional. If set to true, and the one-time product with the given package_name and product_id - doesn't exist, the one-time product will be created. If a new one-time product is created, - update_mask is ignored. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); } + } + /** + * Reads one or more one-time products. + * + * Create a request for the method "onetimeproducts.batchGet". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the products should be retrieved. Must be equal to + * the package_name field on all requests. + * @return the request + */ + public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { + BatchGet result = new BatchGet(packageName); + initialize(result); + return result; + } - /** - * Optional. If set to true, and the one-time product with the given package_name and - * product_id doesn't exist, the one-time product will be created. If a new one-time product - * is created, update_mask is ignored. - */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; - } + public class BatchGet extends AndroidPublisherRequest{@link + * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the products should be retrieved. Must be equal to + * the package_name field on all requests. + * @since 1.13 */ - public Patch setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; - return this; + protected BatchGet(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductsResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName 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 BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); + } + + @Override + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); + } + + @Override + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); + } + + @Override + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); + } + + @Override + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); + } + + @Override + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); + } + + @Override + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); + } + + @Override + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); + } + + @Override + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); + } + + @Override + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); } /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource have to - * be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each - * time the supported locations substantially change, the version will be incremented. Using - * this field will ensure that creating and updating the resource with an older region's - * version and set of regional prices and currencies will succeed even though a new version - * is available. + * Required. The parent app (package name) for which the products should be retrieved. Must + * be equal to the package_name field on all requests. */ - @com.google.api.client.util.Key("regionsVersion.version") - private java.lang.String regionsVersionVersion; + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. A string representing the version of available regions being used for the specified - resource. Regional prices and latest supported version for the resource have to be specified - according to the information published in [this - article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the - supported locations substantially change, the version will be incremented. Using this field will - ensure that creating and updating the resource with an older region's version and set of regional - prices and currencies will succeed even though a new version is available. + /** Required. The parent app (package name) for which the products should be retrieved. Must be equal + to the package_name field on all requests. */ - public java.lang.String getRegionsVersionVersion() { - return regionsVersionVersion; + public java.lang.String getPackageName() { + return packageName; } /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource have to - * be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each - * time the supported locations substantially change, the version will be incremented. Using - * this field will ensure that creating and updating the resource with an older region's - * version and set of regional prices and currencies will succeed even though a new version - * is available. + * Required. The parent app (package name) for which the products should be retrieved. Must + * be equal to the package_name field on all requests. */ - public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; + public BatchGet setPackageName(java.lang.String packageName) { + this.packageName = packageName; return this; } - /** Required. The list of fields to be updated. */ + /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. */ @com.google.api.client.util.Key - private String updateMask; + private java.util.ListThe typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.PurchaseOptions.List request = androidpublisher.purchaseOptions().list(parameters ...)}
- *
+ * Create a request for the method "onetimeproducts.batchUpdate".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param packageName Required. The parent app (package name) for which the one-time products should be updated. Must be
+ * equal to the package_name field on all the OneTimeProduct resources.
+ * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest}
+ * @return the request
*/
- public PurchaseOptions purchaseOptions() {
- return new PurchaseOptions();
+ public BatchUpdate batchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest content) throws java.io.IOException {
+ BatchUpdate result = new BatchUpdate(packageName, content);
+ initialize(result);
+ return result;
}
- /**
- * The "purchaseOptions" collection of methods.
- */
- public class PurchaseOptions {
+ public class BatchUpdate extends AndroidPublisherRequest{@link + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the purchase options to delete. - * @param productId Required. The product ID of the parent one-time product, if all purchase options to delete belong to - * the same one-time product. If this batch delete spans multiple one-time products, set this - * field to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest} - * @return the request + * @param packageName Required. The parent app (package name) for which the one-time products should be updated. Must be + * equal to the package_name field on all the OneTimeProduct resources. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest} + * @since 1.13 */ - public BatchDelete batchDelete(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest content) throws java.io.IOException { - BatchDelete result = new BatchDelete(packageName, productId, content); - initialize(result); - return result; + protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductsResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class BatchDelete extends AndroidPublisherRequest{@link - * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the purchase options to delete. - * @param productId Required. The product ID of the parent one-time product, if all purchase options to delete belong to - * the same one-time product. If this batch delete spans multiple one-time products, set this - * field to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest} - * @since 1.13 - */ - protected BatchDelete(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); + } - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } + @Override + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); + } - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } - - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } - - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } + @Override + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); + } - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } + @Override + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); + } - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } + @Override + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); + } - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } + @Override + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); + } - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); - } + @Override + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); + } - @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + @Override + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); - } + @Override + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); + } - /** Required. The parent app (package name) of the purchase options to delete. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Required. The parent app (package name) for which the one-time products should be + * updated. Must be equal to the package_name field on all the OneTimeProduct resources. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) of the purchase options to delete. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent app (package name) for which the one-time products should be updated. Must be + equal to the package_name field on all the OneTimeProduct resources. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the purchase options to delete. */ - public BatchDelete setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Required. The parent app (package name) for which the one-time products should be + * updated. Must be equal to the package_name field on all the OneTimeProduct resources. + */ + public BatchUpdate setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The product ID of the parent one-time product, if all purchase options to - * delete belong to the same one-time product. If this batch delete spans multiple one- - * time products, set this field to "-". - */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); + } + } + /** + * Deletes a one-time product. + * + * Create a request for the method "onetimeproducts.delete". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the one-time product to delete. + * @param productId Required. The one-time product ID of the one-time product to delete. + * @return the request + */ + public Delete delete(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { + Delete result = new Delete(packageName, productId); + initialize(result); + return result; + } - /** Required. The product ID of the parent one-time product, if all purchase options to delete belong - to the same one-time product. If this batch delete spans multiple one-time products, set this field - to "-". - */ - public java.lang.String getProductId() { - return productId; - } + public class Delete extends AndroidPublisherRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated purchase options. - * @param productId Required. The product ID of the parent one-time product, if all updated purchase options belong to - * the same one-time product. If this batch update spans multiple one-time products, set this - * field to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the one-time product to delete. + * @param productId Required. The one-time product ID of the one-time product to delete. + * @since 1.13 */ - public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest content) throws java.io.IOException { - BatchUpdateStates result = new BatchUpdateStates(packageName, productId, content); - initialize(result); - return result; + protected Delete(java.lang.String packageName, java.lang.String productId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab - * stractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated purchase options. - * @param productId Required. The product ID of the parent one-time product, if all updated purchase options belong to - * the same one-time product. If this batch update spans multiple one-time products, set this - * field to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest} - * @since 1.13 - */ - protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); - } + /** Required. The parent app (package name) of the one-time product to delete. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the one-time product to delete. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the one-time product to delete. */ + public Delete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the updated purchase options. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The one-time product ID of the one-time product to delete. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent app (package name) of the updated purchase options. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The one-time product ID of the one-time product to delete. + */ + public java.lang.String getProductId() { + return productId; + } - /** Required. The parent app (package name) of the updated purchase options. */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The one-time product ID of the one-time product to delete. */ + public Delete setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * Required. The product ID of the parent one-time product, if all updated purchase - * options belong to the same one-time product. If this batch update spans multiple one- - * time products, set this field to "-". - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + @com.google.api.client.util.Key + private java.lang.String latencyTolerance; - /** Required. The product ID of the parent one-time product, if all updated purchase options belong to - the same one-time product. If this batch update spans multiple one-time products, set this field to - "-". - */ - public java.lang.String getProductId() { - return productId; - } + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - /** - * Required. The product ID of the parent one-time product, if all updated purchase - * options belong to the same one-time product. If this batch update spans multiple one- - * time products, set this field to "-". - */ - public BatchUpdateStates setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + public Delete setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } - @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } + } + /** + * Reads a single one-time product. + * + * Create a request for the method "onetimeproducts.get". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the product to retrieve. + * @param productId Required. The product ID of the product to retrieve. + * @return the request + */ + public Get get(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { + Get result = new Get(packageName, productId); + initialize(result); + return result; + } + + public class Get extends AndroidPublisherRequestThe typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Offers.List request = androidpublisher.offers().list(parameters ...)}
- *
+ * Create a request for the method "onetimeproducts.get".
*
- * @return the resource collection
+ * This request holds the parameters needed by the the androidpublisher 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 packageName Required. The parent app (package name) of the product to retrieve. + * @param productId Required. The product ID of the product to retrieve. + * @since 1.13 */ - public Offers offers() { - return new Offers(); + protected Get(java.lang.String packageName, java.lang.String productId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.OneTimeProduct.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - /** - * The "offers" collection of methods. - */ - public class Offers { - - /** - * Activates a one-time product offer. - * - * Create a request for the method "offers.activate". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the offer to activate. - * @param productId Required. The parent one-time product (ID) of the offer to activate. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to activate. - * @param offerId Required. The offer ID of the offer to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest} - * @return the request - */ - public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest content) throws java.io.IOException { - Activate result = new Activate(packageName, productId, purchaseOptionId, offerId, content); - initialize(result); - return result; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - public class Activate extends AndroidPublisherRequest{@link - * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the offer to activate. - * @param productId Required. The parent one-time product (ID) of the offer to activate. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to activate. - * @param offerId Required. The offer ID of the offer to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest} - * @since 1.13 - */ - protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Activate set$Xgafv(java.lang.String $Xgafv) { - return (Activate) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Activate setAccessToken(java.lang.String accessToken) { - return (Activate) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Activate setAlt(java.lang.String alt) { - return (Activate) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Activate setCallback(java.lang.String callback) { - return (Activate) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Activate setFields(java.lang.String fields) { - return (Activate) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Activate setKey(java.lang.String key) { - return (Activate) super.setKey(key); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Activate setOauthToken(java.lang.String oauthToken) { - return (Activate) super.setOauthToken(oauthToken); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Activate) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Activate setQuotaUser(java.lang.String quotaUser) { - return (Activate) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Activate setUploadType(java.lang.String uploadType) { - return (Activate) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the product to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Activate setUploadProtocol(java.lang.String uploadProtocol) { - return (Activate) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the product to retrieve. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) of the product to retrieve. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the offer to activate. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The product ID of the product to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent app (package name) of the offer to activate. */ - public Activate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The product ID of the product to retrieve. + */ + public java.lang.String getProductId() { + return productId; + } - /** Required. The parent one-time product (ID) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** Required. The product ID of the product to retrieve. */ + public Get setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** Required. The parent one-time product (ID) of the offer to activate. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all one-time products under a given app. + * + * Create a request for the method "onetimeproducts.list". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the one-time product should be read. + * @return the request + */ + public List list(java.lang.String packageName) throws java.io.IOException { + List result = new List(packageName); + initialize(result); + return result; + } - /** Required. The parent one-time product (ID) of the offer to activate. */ - public Activate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + public class List extends AndroidPublisherRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the one-time product should be read. + * @since 1.13 + */ + protected List(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListOneTimeProductsResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + } - /** Required. The parent purchase option (ID) of the offer to activate. */ - public Activate setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Required. The offer ID of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String offerId; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Required. The offer ID of the offer to activate. - */ - public java.lang.String getOfferId() { - return offerId; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Required. The offer ID of the offer to activate. */ - public Activate setOfferId(java.lang.String offerId) { - this.offerId = offerId; - return this; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Activate set(String parameterName, Object value) { - return (Activate) super.set(parameterName, value); - } - } - /** - * Deletes one or more one-time product offers. - * - * Create a request for the method "offers.batchDelete". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote - * operation. - * - * @param packageName Required. The parent app (package name) of the offers to delete. Must be equal to the package_name - * field on all the OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all offers to delete belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be deleted. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest} - * @return the request - */ - public BatchDelete batchDelete(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest content) throws java.io.IOException { - BatchDelete result = new BatchDelete(packageName, productId, purchaseOptionId, content); - initialize(result); - return result; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - public class BatchDelete extends AndroidPublisherRequest{@link - * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the offers to delete. Must be equal to the package_name - * field on all the OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all offers to delete belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be deleted. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest} - * @since 1.13 - */ - protected BatchDelete(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } + /** + * Required. The parent app (package name) for which the one-time product should be read. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } + /** Required. The parent app (package name) for which the one-time product should be read. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The parent app (package name) for which the one-time product should be read. + */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); - } + /** + * Optional. The maximum number of one-time product to return. The service may return fewer + * than this value. If unspecified, at most 50 one-time products will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + /** Optional. The maximum number of one-time product to return. The service may return fewer than this + value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; + values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The maximum number of one-time product to return. The service may return fewer + * than this value. If unspecified, at most 50 one-time products will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Required. The parent app (package name) of the offers to delete. Must be equal to the - * package_name field on all the OneTimeProductOffer resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListOneTimeProducts` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Required. The parent app (package name) of the offers to delete. Must be equal to the package_name - field on all the OneTimeProductOffer resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListOneTimeProducts` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * Required. The parent app (package name) of the offers to delete. Must be equal to the - * package_name field on all the OneTimeProductOffer resources. - */ - public BatchDelete setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListOneTimeProducts` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * Required. The product ID of the parent one-time product, if all offers to delete - * belong to the same product. If this request spans multiple one-time products, set - * this field to "-". - */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Creates or updates a one-time product. + * + * Create a request for the method "onetimeproducts.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Required. Immutable. Package name of the parent app. + * @param productId Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs + * must start with a number or lowercase letter, and can contain numbers (0-9), lowercase + * letters (a-z), underscores (_), and periods (.). + * @param content the {@link com.google.api.services.androidpublisher.model.OneTimeProduct} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.OneTimeProduct content) throws java.io.IOException { + Patch result = new Patch(packageName, productId, content); + initialize(result); + return result; + } - /** Required. The product ID of the parent one-time product, if all offers to delete belong to the same - product. If this request spans multiple one-time products, set this field to "-". - */ - public java.lang.String getProductId() { - return productId; - } + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. Immutable. Package name of the parent app. + * @param productId Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs + * must start with a number or lowercase letter, and can contain numbers (0-9), lowercase + * letters (a-z), underscores (_), and periods (.). + * @param content the {@link com.google.api.services.androidpublisher.model.OneTimeProduct} + * @since 1.13 + */ + protected Patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.OneTimeProduct content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProduct.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + } - /** Required. The parent purchase option (ID) for which the offers should be deleted. May be specified - as '-' to update offers from multiple purchase options. - */ - public java.lang.String getPurchaseOptionId() { - return purchaseOptionId; - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** - * Required. The parent purchase option (ID) for which the offers should be deleted. May - * be specified as '-' to update offers from multiple purchase options. - */ - public BatchDelete setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public BatchDelete set(String parameterName, Object value) { - return (BatchDelete) super.set(parameterName, value); - } - } - /** - * Reads one or more one-time product offers. - * - * Create a request for the method "offers.batchGet". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name - * field on all the updated OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest} - * @return the request - */ - public BatchGet batchGet(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest content) throws java.io.IOException { - BatchGet result = new BatchGet(packageName, productId, purchaseOptionId, content); - initialize(result); - return result; - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - public class BatchGet extends AndroidPublisherRequest{@link - * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name - * field on all the updated OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest} - * @since 1.13 - */ - protected BatchGet(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + /** Required. Immutable. Package name of the parent app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + /** Required. Immutable. Package name of the parent app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + /** Required. Immutable. Package name of the parent app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + /** + * Required. Immutable. Unique product ID of the product. Unique within the parent app. + * Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), + * lowercase letters (a-z), underscores (_), and periods (.). + */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + /** Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs + must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters + (a-z), underscores (_), and periods (.). + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. Immutable. Unique product ID of the product. Unique within the parent app. + * Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), + * lowercase letters (a-z), underscores (_), and periods (.). + */ + public Patch setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * Required. The parent app (package name) of the updated offers. Must be equal to the - * package_name field on all the updated OneTimeProductOffer resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Optional. If set to true, and the one-time product with the given package_name and + * product_id doesn't exist, the one-time product will be created. If a new one-time product + * is created, update_mask is ignored. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; - /** Required. The parent app (package name) of the updated offers. Must be equal to the package_name - field on all the updated OneTimeProductOffer resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Optional. If set to true, and the one-time product with the given package_name and product_id + doesn't exist, the one-time product will be created. If a new one-time product is created, + update_mask is ignored. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } - /** - * Required. The parent app (package name) of the updated offers. Must be equal to the - * package_name field on all the updated OneTimeProductOffer resources. - */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Optional. If set to true, and the one-time product with the given package_name and + * product_id doesn't exist, the one-time product will be created. If a new one-time product + * is created, update_mask is ignored. + */ + public Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same product. If this request spans multiple one-time products, set this field - * to "-". - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** + * Optional. The latency tolerance for the propagation of this product upsert. Defaults to + * latency-sensitive. + */ + @com.google.api.client.util.Key + private java.lang.String latencyTolerance; - /** Required. The product ID of the parent one-time product, if all updated offers belong to the same - product. If this request spans multiple one-time products, set this field to "-". - */ - public java.lang.String getProductId() { - return productId; - } + /** Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same product. If this request spans multiple one-time products, set this field - * to "-". - */ - public BatchGet setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** + * Optional. The latency tolerance for the propagation of this product upsert. Defaults to + * latency-sensitive. + */ + public Patch setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } - /** - * Required. The parent purchase option (ID) for which the offers should be updated. May - * be specified as '-' to update offers from multiple purchase options. - */ - @com.google.api.client.util.Key - private java.lang.String purchaseOptionId; + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource have to + * be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each + * time the supported locations substantially change, the version will be incremented. Using + * this field will ensure that creating and updating the resource with an older region's + * version and set of regional prices and currencies will succeed even though a new version + * is available. + */ + @com.google.api.client.util.Key("regionsVersion.version") + private java.lang.String regionsVersionVersion; - /** Required. The parent purchase option (ID) for which the offers should be updated. May be specified - as '-' to update offers from multiple purchase options. - */ - public java.lang.String getPurchaseOptionId() { - return purchaseOptionId; - } + /** Required. A string representing the version of available regions being used for the specified + resource. Regional prices and latest supported version for the resource have to be specified + according to the information published in [this + article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the + supported locations substantially change, the version will be incremented. Using this field will + ensure that creating and updating the resource with an older region's version and set of regional + prices and currencies will succeed even though a new version is available. + */ + public java.lang.String getRegionsVersionVersion() { + return regionsVersionVersion; + } - /** - * Required. The parent purchase option (ID) for which the offers should be updated. May - * be specified as '-' to update offers from multiple purchase options. - */ - public BatchGet setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource have to + * be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each + * time the supported locations substantially change, the version will be incremented. Using + * this field will ensure that creating and updating the resource with an older region's + * version and set of regional prices and currencies will succeed even though a new version + * is available. + */ + public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { + this.regionsVersionVersion = regionsVersionVersion; + return this; + } + + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the PurchaseOptions collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.PurchaseOptions.List request = androidpublisher.purchaseOptions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public PurchaseOptions purchaseOptions() {
+ return new PurchaseOptions();
+ }
+
+ /**
+ * The "purchaseOptions" collection of methods.
+ */
+ public class PurchaseOptions {
+
+ /**
+ * Deletes purchase options across one or multiple one-time products. By default this operation will
+ * fail if there are any existing offers under the deleted purchase options. Use the force parameter
+ * to override the default behavior.
+ *
+ * Create a request for the method "purchaseOptions.batchDelete".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param packageName Required. The parent app (package name) of the purchase options to delete.
+ * @param productId Required. The product ID of the parent one-time product, if all purchase options to delete belong to
+ * the same one-time product. If this batch delete spans multiple one-time products, set this
+ * field to "-".
+ * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest}
+ * @return the request
+ */
+ public BatchDelete batchDelete(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest content) throws java.io.IOException {
+ BatchDelete result = new BatchDelete(packageName, productId, content);
+ initialize(result);
+ return result;
+ }
+
+ public class BatchDelete extends AndroidPublisherRequest{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name - * field on all the updated OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the purchase options to delete. + * @param productId Required. The product ID of the parent one-time product, if all purchase options to delete belong to + * the same one-time product. If this batch delete spans multiple one-time products, set this + * field to "-". + * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest} + * @since 1.13 */ - public BatchUpdate batchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest content) throws java.io.IOException { - BatchUpdate result = new BatchUpdate(packageName, productId, purchaseOptionId, content); - initialize(result); - return result; + protected BatchDelete(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchDeletePurchaseOptionsRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class BatchUpdate extends AndroidPublisherRequest{@link - * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name - * field on all the updated OneTimeProductOffer resources. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * product. If this request spans multiple one-time products, set this field to "-". - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified - * as '-' to update offers from multiple purchase options. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest} - * @since 1.13 - */ - protected BatchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - } + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } - @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); - } + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } - @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); - } + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } - @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); - } + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } - @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); - } + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } - @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); - } + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); - } - - @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); - } - - @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); - } + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); - } + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); - } + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The parent app (package name) of the updated offers. Must be equal to the - * package_name field on all the updated OneTimeProductOffer resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) of the purchase options to delete. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) of the updated offers. Must be equal to the package_name - field on all the updated OneTimeProductOffer resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent app (package name) of the purchase options to delete. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Required. The parent app (package name) of the updated offers. Must be equal to the - * package_name field on all the updated OneTimeProductOffer resources. - */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent app (package name) of the purchase options to delete. */ + public BatchDelete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same product. If this request spans multiple one-time products, set this field - * to "-". - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** + * Required. The product ID of the parent one-time product, if all purchase options to + * delete belong to the same one-time product. If this batch delete spans multiple one- + * time products, set this field to "-". + */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The product ID of the parent one-time product, if all updated offers belong to the same - product. If this request spans multiple one-time products, set this field to "-". - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. The product ID of the parent one-time product, if all purchase options to delete belong + to the same one-time product. If this batch delete spans multiple one-time products, set this field + to "-". + */ + public java.lang.String getProductId() { + return productId; + } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same product. If this request spans multiple one-time products, set this field - * to "-". - */ - public BatchUpdate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** + * Required. The product ID of the parent one-time product, if all purchase options to + * delete belong to the same one-time product. If this batch delete spans multiple one- + * time products, set this field to "-". + */ + public BatchDelete setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * Required. The parent purchase option (ID) for which the offers should be updated. May - * be specified as '-' to update offers from multiple purchase options. - */ - @com.google.api.client.util.Key - private java.lang.String purchaseOptionId; + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Activates or deactivates purchase options across one or multiple one-time products. + * + * Create a request for the method "purchaseOptions.batchUpdateStates". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote + * operation. + * + * @param packageName Required. The parent app (package name) of the updated purchase options. + * @param productId Required. The product ID of the parent one-time product, if all updated purchase options belong to + * the same one-time product. If this batch update spans multiple one-time products, set this + * field to "-". + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest} + * @return the request + */ + public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest content) throws java.io.IOException { + BatchUpdateStates result = new BatchUpdateStates(packageName, productId, content); + initialize(result); + return result; + } - /** Required. The parent purchase option (ID) for which the offers should be updated. May be specified - as '-' to update offers from multiple purchase options. - */ - public java.lang.String getPurchaseOptionId() { - return purchaseOptionId; - } + public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated one-time product offers. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * one-time product. If this batch update spans multiple one-time products, set this field to - * "-". - * @param purchaseOptionId Required. The purchase option ID of the parent purchase option, if all updated offers belong to the - * same purchase option. If this batch update spans multiple purchase options, set this field - * to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the updated purchase options. + * @param productId Required. The product ID of the parent one-time product, if all updated purchase options belong to + * the same one-time product. If this batch update spans multiple one-time products, set this + * field to "-". + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest} + * @since 1.13 */ - public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest content) throws java.io.IOException { - BatchUpdateStates result = new BatchUpdateStates(packageName, productId, purchaseOptionId, content); - initialize(result); - return result; + protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdatePurchaseOptionStatesResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab - * stractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated one-time product offers. - * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same - * one-time product. If this batch update spans multiple one-time products, set this field to - * "-". - * @param purchaseOptionId Required. The purchase option ID of the parent purchase option, if all updated offers belong to the - * same purchase option. If this batch update spans multiple purchase options, set this field - * to "-". - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest} - * @since 1.13 - */ - protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - } + @Override + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); + } - @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); - } + @Override + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); + } - @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); + @Override + public BatchUpdateStates setFields(java.lang.String fields) { + return (BatchUpdateStates) super.setFields(fields); + } + + @Override + public BatchUpdateStates setKey(java.lang.String key) { + return (BatchUpdateStates) super.setKey(key); + } + + @Override + public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { + return (BatchUpdateStates) super.setOauthToken(oauthToken); + } + + @Override + public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdateStates) super.setQuotaUser(quotaUser); + } + + @Override + public BatchUpdateStates setUploadType(java.lang.String uploadType) { + return (BatchUpdateStates) super.setUploadType(uploadType); + } + + @Override + public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent app (package name) of the updated purchase options. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The parent app (package name) of the updated purchase options. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Required. The parent app (package name) of the updated purchase options. */ + public BatchUpdateStates setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. The product ID of the parent one-time product, if all updated purchase + * options belong to the same one-time product. If this batch update spans multiple one- + * time products, set this field to "-". + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** Required. The product ID of the parent one-time product, if all updated purchase options belong to + the same one-time product. If this batch update spans multiple one-time products, set this field to + "-". + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The product ID of the parent one-time product, if all updated purchase + * options belong to the same one-time product. If this batch update spans multiple one- + * time products, set this field to "-". + */ + public BatchUpdateStates setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + @Override + public BatchUpdateStates set(String parameterName, Object value) { + return (BatchUpdateStates) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Offers collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Offers.List request = androidpublisher.offers().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Offers offers() {
+ return new Offers();
+ }
+
+ /**
+ * The "offers" collection of methods.
+ */
+ public class Offers {
+
+ /**
+ * Activates a one-time product offer.
+ *
+ * Create a request for the method "offers.activate".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Required. The parent app (package name) of the offer to activate.
+ * @param productId Required. The parent one-time product (ID) of the offer to activate.
+ * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to activate.
+ * @param offerId Required. The offer ID of the offer to activate.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest}
+ * @return the request
+ */
+ public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest content) throws java.io.IOException {
+ Activate result = new Activate(packageName, productId, purchaseOptionId, offerId, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Activate extends AndroidPublisherRequest{@link + * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the offer to activate. + * @param productId Required. The parent one-time product (ID) of the offer to activate. + * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to activate. + * @param offerId Required. The offer ID of the offer to activate. + * @param content the {@link com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest} + * @since 1.13 + */ + protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateOneTimeProductOfferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); } @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); } @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); } @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); } @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); } @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); } @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); } @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); } - /** Required. The parent app (package name) of the updated one-time product offers. */ + @Override + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); + } + + @Override + public Activate setUploadProtocol(java.lang.String uploadProtocol) { + return (Activate) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent app (package name) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the updated one-time product offers. + /** Required. The parent app (package name) of the offer to activate. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the updated one-time product offers. */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the offer to activate. */ + public Activate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same one-time product. If this batch update spans multiple one-time products, - * set this field to "-". - */ + /** Required. The parent one-time product (ID) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The product ID of the parent one-time product, if all updated offers belong to the same - one-time product. If this batch update spans multiple one-time products, set this field to "-". + /** Required. The parent one-time product (ID) of the offer to activate. */ public java.lang.String getProductId() { return productId; } - /** - * Required. The product ID of the parent one-time product, if all updated offers belong - * to the same one-time product. If this batch update spans multiple one-time products, - * set this field to "-". - */ - public BatchUpdateStates setProductId(java.lang.String productId) { + /** Required. The parent one-time product (ID) of the offer to activate. */ + public Activate setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** - * Required. The purchase option ID of the parent purchase option, if all updated offers - * belong to the same purchase option. If this batch update spans multiple purchase - * options, set this field to "-". - */ + /** Required. The parent purchase option (ID) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String purchaseOptionId; - /** Required. The purchase option ID of the parent purchase option, if all updated offers belong to the - same purchase option. If this batch update spans multiple purchase options, set this field to "-". + /** Required. The parent purchase option (ID) of the offer to activate. */ public java.lang.String getPurchaseOptionId() { return purchaseOptionId; } - /** - * Required. The purchase option ID of the parent purchase option, if all updated offers - * belong to the same purchase option. If this batch update spans multiple purchase - * options, set this field to "-". - */ - public BatchUpdateStates setPurchaseOptionId(java.lang.String purchaseOptionId) { + /** Required. The parent purchase option (ID) of the offer to activate. */ + public Activate setPurchaseOptionId(java.lang.String purchaseOptionId) { this.purchaseOptionId = purchaseOptionId; return this; } - @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); + /** Required. The offer ID of the offer to activate. */ + @com.google.api.client.util.Key + private java.lang.String offerId; + + /** Required. The offer ID of the offer to activate. + */ + public java.lang.String getOfferId() { + return offerId; } - } - /** - * Cancels a one-time product offer. + + /** Required. The offer ID of the offer to activate. */ + public Activate setOfferId(java.lang.String offerId) { + this.offerId = offerId; + return this; + } + + @Override + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); + } + } + /** + * Deletes one or more one-time product offers. * - * Create a request for the method "offers.cancel". + * Create a request for the method "offers.batchDelete". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote + * operation. * - * @param packageName Required. The parent app (package name) of the offer to cancel. - * @param productId Required. The parent one-time product (ID) of the offer to cancel. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to cancel. - * @param offerId Required. The offer ID of the offer to cancel. - * @param content the {@link com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest} + * @param packageName Required. The parent app (package name) of the offers to delete. Must be equal to the package_name + * field on all the OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all offers to delete belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be deleted. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest} * @return the request */ - public Cancel cancel(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest content) throws java.io.IOException { - Cancel result = new Cancel(packageName, productId, purchaseOptionId, offerId, content); + public BatchDelete batchDelete(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest content) throws java.io.IOException { + BatchDelete result = new BatchDelete(packageName, productId, purchaseOptionId, content); initialize(result); return result; } - public class Cancel extends AndroidPublisherRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link BatchDelete#execute()} method to invoke the remote + * operation.{@link + * BatchDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the offer to cancel. - * @param productId Required. The parent one-time product (ID) of the offer to cancel. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to cancel. - * @param offerId Required. The offer ID of the offer to cancel. - * @param content the {@link com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest} + * @param packageName Required. The parent app (package name) of the offers to delete. Must be equal to the package_name + * field on all the OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all offers to delete belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be deleted. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest} * @since 1.13 */ - protected Cancel(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); + protected BatchDelete(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchDeleteOneTimeProductOffersRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to cancel. */ + /** + * Required. The parent app (package name) of the offers to delete. Must be equal to the + * package_name field on all the OneTimeProductOffer resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the offer to cancel. + /** Required. The parent app (package name) of the offers to delete. Must be equal to the package_name + field on all the OneTimeProductOffer resources. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the offer to cancel. */ - public Cancel setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) of the offers to delete. Must be equal to the + * package_name field on all the OneTimeProductOffer resources. + */ + public BatchDelete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent one-time product (ID) of the offer to cancel. */ + /** + * Required. The product ID of the parent one-time product, if all offers to delete + * belong to the same product. If this request spans multiple one-time products, set + * this field to "-". + */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent one-time product (ID) of the offer to cancel. + /** Required. The product ID of the parent one-time product, if all offers to delete belong to the same + product. If this request spans multiple one-time products, set this field to "-". */ public java.lang.String getProductId() { return productId; } - /** Required. The parent one-time product (ID) of the offer to cancel. */ - public Cancel setProductId(java.lang.String productId) { + /** + * Required. The product ID of the parent one-time product, if all offers to delete + * belong to the same product. If this request spans multiple one-time products, set + * this field to "-". + */ + public BatchDelete setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The parent purchase option (ID) of the offer to cancel. */ + /** + * Required. The parent purchase option (ID) for which the offers should be deleted. May + * be specified as '-' to update offers from multiple purchase options. + */ @com.google.api.client.util.Key private java.lang.String purchaseOptionId; - /** Required. The parent purchase option (ID) of the offer to cancel. + /** Required. The parent purchase option (ID) for which the offers should be deleted. May be specified + as '-' to update offers from multiple purchase options. */ public java.lang.String getPurchaseOptionId() { return purchaseOptionId; } - /** Required. The parent purchase option (ID) of the offer to cancel. */ - public Cancel setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } - - /** Required. The offer ID of the offer to cancel. */ - @com.google.api.client.util.Key - private java.lang.String offerId; - - /** Required. The offer ID of the offer to cancel. + /** + * Required. The parent purchase option (ID) for which the offers should be deleted. May + * be specified as '-' to update offers from multiple purchase options. */ - public java.lang.String getOfferId() { - return offerId; - } - - /** Required. The offer ID of the offer to cancel. */ - public Cancel setOfferId(java.lang.String offerId) { - this.offerId = offerId; + public BatchDelete setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); } } /** - * Deactivates a one-time product offer. + * Reads one or more one-time product offers. * - * Create a request for the method "offers.deactivate". + * Create a request for the method "offers.batchGet". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. * - * @param packageName Required. The parent app (package name) of the offer to deactivate. - * @param productId Required. The parent one-time product (ID) of the offer to deactivate. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to deactivate. - * @param offerId Required. The offer ID of the offer to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest} + * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name + * field on all the updated OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest} * @return the request */ - public Deactivate deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest content) throws java.io.IOException { - Deactivate result = new Deactivate(packageName, productId, purchaseOptionId, offerId, content); + public BatchGet batchGet(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest content) throws java.io.IOException { + BatchGet result = new BatchGet(packageName, productId, purchaseOptionId, content); initialize(result); return result; } - public class Deactivate extends AndroidPublisherRequest{@link - * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. + *
{@link + * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the offer to deactivate. - * @param productId Required. The parent one-time product (ID) of the offer to deactivate. - * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to deactivate. - * @param offerId Required. The offer ID of the offer to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest} + * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name + * field on all the updated OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest} * @since 1.13 */ - protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); + protected BatchGet(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchGetOneTimeProductOffersResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public Deactivate set$Xgafv(java.lang.String $Xgafv) { - return (Deactivate) super.set$Xgafv($Xgafv); + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public Deactivate setAccessToken(java.lang.String accessToken) { - return (Deactivate) super.setAccessToken(accessToken); + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); } @Override - public Deactivate setAlt(java.lang.String alt) { - return (Deactivate) super.setAlt(alt); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public Deactivate setCallback(java.lang.String callback) { - return (Deactivate) super.setCallback(callback); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public Deactivate setFields(java.lang.String fields) { - return (Deactivate) super.setFields(fields); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public Deactivate setKey(java.lang.String key) { - return (Deactivate) super.setKey(key); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public Deactivate setOauthToken(java.lang.String oauthToken) { - return (Deactivate) super.setOauthToken(oauthToken); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deactivate) super.setPrettyPrint(prettyPrint); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public Deactivate setQuotaUser(java.lang.String quotaUser) { - return (Deactivate) super.setQuotaUser(quotaUser); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public Deactivate setUploadType(java.lang.String uploadType) { - return (Deactivate) super.setUploadType(uploadType); + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); } @Override - public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deactivate) super.setUploadProtocol(uploadProtocol); + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to deactivate. */ + /** + * Required. The parent app (package name) of the updated offers. Must be equal to the + * package_name field on all the updated OneTimeProductOffer resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the offer to deactivate. + /** Required. The parent app (package name) of the updated offers. Must be equal to the package_name + field on all the updated OneTimeProductOffer resources. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the offer to deactivate. */ - public Deactivate setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) of the updated offers. Must be equal to the + * package_name field on all the updated OneTimeProductOffer resources. + */ + public BatchGet setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent one-time product (ID) of the offer to deactivate. */ + /** + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same product. If this request spans multiple one-time products, set this field + * to "-". + */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent one-time product (ID) of the offer to deactivate. + /** Required. The product ID of the parent one-time product, if all updated offers belong to the same + product. If this request spans multiple one-time products, set this field to "-". */ public java.lang.String getProductId() { return productId; } - /** Required. The parent one-time product (ID) of the offer to deactivate. */ - public Deactivate setProductId(java.lang.String productId) { + /** + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same product. If this request spans multiple one-time products, set this field + * to "-". + */ + public BatchGet setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The parent purchase option (ID) of the offer to deactivate. */ + /** + * Required. The parent purchase option (ID) for which the offers should be updated. May + * be specified as '-' to update offers from multiple purchase options. + */ @com.google.api.client.util.Key private java.lang.String purchaseOptionId; - /** Required. The parent purchase option (ID) of the offer to deactivate. + /** Required. The parent purchase option (ID) for which the offers should be updated. May be specified + as '-' to update offers from multiple purchase options. */ public java.lang.String getPurchaseOptionId() { return purchaseOptionId; } - /** Required. The parent purchase option (ID) of the offer to deactivate. */ - public Deactivate setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } - - /** Required. The offer ID of the offer to deactivate. */ - @com.google.api.client.util.Key - private java.lang.String offerId; - - /** Required. The offer ID of the offer to deactivate. + /** + * Required. The parent purchase option (ID) for which the offers should be updated. May + * be specified as '-' to update offers from multiple purchase options. */ - public java.lang.String getOfferId() { - return offerId; - } - - /** Required. The offer ID of the offer to deactivate. */ - public Deactivate setOfferId(java.lang.String offerId) { - this.offerId = offerId; + public BatchGet setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; return this; } @Override - public Deactivate set(String parameterName, Object value) { - return (Deactivate) super.set(parameterName, value); + public BatchGet set(String parameterName, Object value) { + return (BatchGet) super.set(parameterName, value); } } /** - * Lists all offers under a given app, product, or purchase option. + * Creates or updates one or more one-time product offers. * - * Create a request for the method "offers.list". + * Create a request for the method "offers.batchUpdate". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation. * - * @param packageName Required. The parent app (package name) for which the offers should be read. - * @param productId Required. The parent one-time product (ID) for which the offers should be read. May be specified as - * '-' to read all offers under an app. - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be read. May be specified as - * '-' to read all offers under a one-time product or an app. Must be specified as '-' if - * product_id is specified as '-'. + * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name + * field on all the updated OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest} * @return the request */ - public List list(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId) throws java.io.IOException { - List result = new List(packageName, productId, purchaseOptionId); + public BatchUpdate batchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest content) throws java.io.IOException { + BatchUpdate result = new BatchUpdate(packageName, productId, purchaseOptionId, content); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation.
{@link + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the offers should be read. - * @param productId Required. The parent one-time product (ID) for which the offers should be read. May be specified as - * '-' to read all offers under an app. - * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be read. May be specified as - * '-' to read all offers under a one-time product or an app. Must be specified as '-' if - * product_id is specified as '-'. + * @param packageName Required. The parent app (package name) of the updated offers. Must be equal to the package_name + * field on all the updated OneTimeProductOffer resources. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * product. If this request spans multiple one-time products, set this field to "-". + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be updated. May be specified + * as '-' to update offers from multiple purchase options. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest} * @since 1.13 */ - protected List(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListOneTimeProductOffersResponse.class); + protected BatchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOffersResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId 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); + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) for which the offers should be read. */ + /** + * Required. The parent app (package name) of the updated offers. Must be equal to the + * package_name field on all the updated OneTimeProductOffer resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) for which the offers should be read. + /** Required. The parent app (package name) of the updated offers. Must be equal to the package_name + field on all the updated OneTimeProductOffer resources. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) for which the offers should be read. */ - public List setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) of the updated offers. Must be equal to the + * package_name field on all the updated OneTimeProductOffer resources. + */ + public BatchUpdate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } /** - * Required. The parent one-time product (ID) for which the offers should be read. May - * be specified as '-' to read all offers under an app. + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same product. If this request spans multiple one-time products, set this field + * to "-". */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent one-time product (ID) for which the offers should be read. May be specified as - '-' to read all offers under an app. + /** Required. The product ID of the parent one-time product, if all updated offers belong to the same + product. If this request spans multiple one-time products, set this field to "-". */ public java.lang.String getProductId() { return productId; } /** - * Required. The parent one-time product (ID) for which the offers should be read. May - * be specified as '-' to read all offers under an app. + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same product. If this request spans multiple one-time products, set this field + * to "-". */ - public List setProductId(java.lang.String productId) { + public BatchUpdate setProductId(java.lang.String productId) { this.productId = productId; return this; } /** - * Required. The parent purchase option (ID) for which the offers should be read. May be - * specified as '-' to read all offers under a one-time product or an app. Must be - * specified as '-' if product_id is specified as '-'. + * Required. The parent purchase option (ID) for which the offers should be updated. May + * be specified as '-' to update offers from multiple purchase options. */ @com.google.api.client.util.Key private java.lang.String purchaseOptionId; - /** Required. The parent purchase option (ID) for which the offers should be read. May be specified as - '-' to read all offers under a one-time product or an app. Must be specified as '-' if product_id - is specified as '-'. + /** Required. The parent purchase option (ID) for which the offers should be updated. May be specified + as '-' to update offers from multiple purchase options. */ public java.lang.String getPurchaseOptionId() { return purchaseOptionId; } /** - * Required. The parent purchase option (ID) for which the offers should be read. May be - * specified as '-' to read all offers under a one-time product or an app. Must be - * specified as '-' if product_id is specified as '-'. + * Required. The parent purchase option (ID) for which the offers should be updated. May + * be specified as '-' to update offers from multiple purchase options. */ - public List setPurchaseOptionId(java.lang.String purchaseOptionId) { + public BatchUpdate setPurchaseOptionId(java.lang.String purchaseOptionId) { this.purchaseOptionId = purchaseOptionId; return this; } - /** - * Optional. The maximum number of offers to return. The service may return fewer than - * this value. If unspecified, at most 50 offers will be returned. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of offers to return. The service may return fewer than this value. If - unspecified, at most 50 offers will be returned. The maximum value is 1000; values above 1000 will - be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); } + } + /** + * Updates a batch of one-time product offer states. + * + * Create a request for the method "offers.batchUpdateStates". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote + * operation. + * + * @param packageName Required. The parent app (package name) of the updated one-time product offers. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * one-time product. If this batch update spans multiple one-time products, set this field to + * "-". + * @param purchaseOptionId Required. The purchase option ID of the parent purchase option, if all updated offers belong to the + * same purchase option. If this batch update spans multiple purchase options, set this field + * to "-". + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest} + * @return the request + */ + public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest content) throws java.io.IOException { + BatchUpdateStates result = new BatchUpdateStates(packageName, productId, purchaseOptionId, content); + initialize(result); + return result; + } + + public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the updated one-time product offers. + * @param productId Required. The product ID of the parent one-time product, if all updated offers belong to the same + * one-time product. If this batch update spans multiple one-time products, set this field to + * "-". + * @param purchaseOptionId Required. The purchase option ID of the parent purchase option, if all updated offers belong to the + * same purchase option. If this batch update spans multiple purchase options, set this field + * to "-". + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest} + * @since 1.13 */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateOneTimeProductOfferStatesResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); } - /** - * Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. - * Provide this to retrieve the subsequent page. When paginating, product_id, - * package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` - * must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdateStates) super.set$Xgafv($Xgafv); + } - /** Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide this to - retrieve the subsequent page. When paginating, product_id, package_name and purchase_option_id - provided to `ListOneTimeProductsOffersRequest` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public BatchUpdateStates setAccessToken(java.lang.String accessToken) { + return (BatchUpdateStates) super.setAccessToken(accessToken); } - /** - * Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. - * Provide this to retrieve the subsequent page. When paginating, product_id, - * package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` - * must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); } - } - } - } - } - /** - * An accessor for creating requests from the Subscriptions collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Subscriptions.List request = androidpublisher.subscriptions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Subscriptions subscriptions() {
- return new Subscriptions();
- }
+ @Override
+ public BatchUpdateStates setFields(java.lang.String fields) {
+ return (BatchUpdateStates) super.setFields(fields);
+ }
- /**
- * The "subscriptions" collection of methods.
- */
- public class Subscriptions {
+ @Override
+ public BatchUpdateStates setKey(java.lang.String key) {
+ return (BatchUpdateStates) super.setKey(key);
+ }
- /**
- * Deprecated: subscription archiving is not supported.
- *
- * Create a request for the method "subscriptions.archive".
- *
- * This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Archive#execute()} method to invoke the remote operation.
- *
- * @param packageName Required. The parent app (package name) of the app of the subscription to delete.
- * @param productId Required. The unique product ID of the subscription to delete.
- * @param content the {@link com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest}
- * @return the request
- */
- public Archive archive(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest content) throws java.io.IOException {
- Archive result = new Archive(packageName, productId, content);
- initialize(result);
- return result;
- }
+ @Override
+ public BatchUpdateStates setOauthToken(java.lang.String oauthToken) {
+ return (BatchUpdateStates) super.setOauthToken(oauthToken);
+ }
- public class Archive extends AndroidPublisherRequest{@link - * Archive#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the app of the subscription to delete. - * @param productId Required. The unique product ID of the subscription to delete. - * @param content the {@link com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest} - * @since 1.13 - */ - protected Archive(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public BatchUpdateStates setUploadType(java.lang.String uploadType) { + return (BatchUpdateStates) super.setUploadType(uploadType); + } - @Override - public Archive set$Xgafv(java.lang.String $Xgafv) { - return (Archive) super.set$Xgafv($Xgafv); - } + @Override + public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + } - @Override - public Archive setAccessToken(java.lang.String accessToken) { - return (Archive) super.setAccessToken(accessToken); - } + /** Required. The parent app (package name) of the updated one-time product offers. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Archive setAlt(java.lang.String alt) { - return (Archive) super.setAlt(alt); - } + /** Required. The parent app (package name) of the updated one-time product offers. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Archive setCallback(java.lang.String callback) { - return (Archive) super.setCallback(callback); - } + /** Required. The parent app (package name) of the updated one-time product offers. */ + public BatchUpdateStates setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Archive setFields(java.lang.String fields) { - return (Archive) super.setFields(fields); - } + /** + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same one-time product. If this batch update spans multiple one-time products, + * set this field to "-". + */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public Archive setKey(java.lang.String key) { - return (Archive) super.setKey(key); - } + /** Required. The product ID of the parent one-time product, if all updated offers belong to the same + one-time product. If this batch update spans multiple one-time products, set this field to "-". + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public Archive setOauthToken(java.lang.String oauthToken) { - return (Archive) super.setOauthToken(oauthToken); - } + /** + * Required. The product ID of the parent one-time product, if all updated offers belong + * to the same one-time product. If this batch update spans multiple one-time products, + * set this field to "-". + */ + public BatchUpdateStates setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public Archive setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Archive) super.setPrettyPrint(prettyPrint); - } - - @Override - public Archive setQuotaUser(java.lang.String quotaUser) { - return (Archive) super.setQuotaUser(quotaUser); - } + /** + * Required. The purchase option ID of the parent purchase option, if all updated offers + * belong to the same purchase option. If this batch update spans multiple purchase + * options, set this field to "-". + */ + @com.google.api.client.util.Key + private java.lang.String purchaseOptionId; - @Override - public Archive setUploadType(java.lang.String uploadType) { - return (Archive) super.setUploadType(uploadType); - } + /** Required. The purchase option ID of the parent purchase option, if all updated offers belong to the + same purchase option. If this batch update spans multiple purchase options, set this field to "-". + */ + public java.lang.String getPurchaseOptionId() { + return purchaseOptionId; + } - @Override - public Archive setUploadProtocol(java.lang.String uploadProtocol) { - return (Archive) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The purchase option ID of the parent purchase option, if all updated offers + * belong to the same purchase option. If this batch update spans multiple purchase + * options, set this field to "-". + */ + public BatchUpdateStates setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } - /** Required. The parent app (package name) of the app of the subscription to delete. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public BatchUpdateStates set(String parameterName, Object value) { + return (BatchUpdateStates) super.set(parameterName, value); + } + } + /** + * Cancels a one-time product offer. + * + * Create a request for the method "offers.cancel". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the offer to cancel. + * @param productId Required. The parent one-time product (ID) of the offer to cancel. + * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to cancel. + * @param offerId Required. The offer ID of the offer to cancel. + * @param content the {@link com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest} + * @return the request + */ + public Cancel cancel(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest content) throws java.io.IOException { + Cancel result = new Cancel(packageName, productId, purchaseOptionId, offerId, content); + initialize(result); + return result; + } - /** Required. The parent app (package name) of the app of the subscription to delete. - */ - public java.lang.String getPackageName() { - return packageName; - } + public class Cancel extends AndroidPublisherRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the offer to cancel. + * @param productId Required. The parent one-time product (ID) of the offer to cancel. + * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to cancel. + * @param offerId Required. The offer ID of the offer to cancel. + * @param content the {@link com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.CancelOneTimeProductOfferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); + } - /** Required. The unique product ID of the subscription to delete. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - /** Required. The unique product ID of the subscription to delete. */ - public Archive setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Archive set(String parameterName, Object value) { - return (Archive) super.set(parameterName, value); - } - } - /** - * Reads one or more subscriptions. - * - * Create a request for the method "subscriptions.batchGet". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) for which the subscriptions should be retrieved. Must be - * equal to the package_name field on all the requests. - * @return the request - */ - public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { - BatchGet result = new BatchGet(packageName); - initialize(result); - return result; - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - public class BatchGet extends AndroidPublisherRequest{@link - * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the subscriptions should be retrieved. Must be - * equal to the package_name field on all the requests. - * @since 1.13 - */ - protected BatchGet(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetSubscriptionsResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + /** Required. The parent app (package name) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + /** Required. The parent app (package name) of the offer to cancel. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + /** Required. The parent app (package name) of the offer to cancel. */ + public Cancel setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + /** Required. The parent one-time product (ID) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + /** Required. The parent one-time product (ID) of the offer to cancel. + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + /** Required. The parent one-time product (ID) of the offer to cancel. */ + public Cancel setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + /** Required. The parent purchase option (ID) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String purchaseOptionId; - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent purchase option (ID) of the offer to cancel. + */ + public java.lang.String getPurchaseOptionId() { + return purchaseOptionId; + } - /** - * Required. The parent app (package name) for which the subscriptions should be retrieved. - * Must be equal to the package_name field on all the requests. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent purchase option (ID) of the offer to cancel. */ + public Cancel setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } - /** Required. The parent app (package name) for which the subscriptions should be retrieved. Must be - equal to the package_name field on all the requests. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The offer ID of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String offerId; - /** - * Required. The parent app (package name) for which the subscriptions should be retrieved. - * Must be equal to the package_name field on all the requests. - */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The offer ID of the offer to cancel. + */ + public java.lang.String getOfferId() { + return offerId; + } - /** - * Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be - * different. - */ - @com.google.api.client.util.Key - private java.util.List{@link + * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the offer to deactivate. + * @param productId Required. The parent one-time product (ID) of the offer to deactivate. + * @param purchaseOptionId Required. The parent purchase option (ID) of the offer to deactivate. + * @param offerId Required. The offer ID of the offer to deactivate. + * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest} + * @since 1.13 + */ + protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateOneTimeProductOfferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.OneTimeProductOffer.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate"; + @Override + public Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); + } - /** - * Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to - * PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. - * - * Create a request for the method "subscriptions.batchUpdate". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote - * operation.{@link - * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the subscriptions should be updated. Must be equal - * to the package_name field on all the Subscription resources. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsRequest} - * @since 1.13 - */ - protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + @Override + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); + } - @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); - } + @Override + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); + } - @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); - } + @Override + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); + } - @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); - } + @Override + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); + } - @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); - } + @Override + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); + } - @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); - } + @Override + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); - } + @Override + public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deactivate) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); - } + @Override + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); - } + @Override + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); + } - @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); - } + @Override + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the offer to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the offer to deactivate. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Required. The parent app (package name) for which the subscriptions should be updated. - * Must be equal to the package_name field on all the Subscription resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) of the offer to deactivate. */ + public Deactivate setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) for which the subscriptions should be updated. Must be - equal to the package_name field on all the Subscription resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent one-time product (ID) of the offer to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** - * Required. The parent app (package name) for which the subscriptions should be updated. - * Must be equal to the package_name field on all the Subscription resources. - */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent one-time product (ID) of the offer to deactivate. + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public BatchUpdate set(String parameterName, Object value) { - return (BatchUpdate) super.set(parameterName, value); - } - } - /** - * Creates a new subscription. Newly added base plans will remain in draft state until activated. - * - * Create a request for the method "subscriptions.create". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) for which the subscription should be created. Must be equal - * to the package_name field on the Subscription resource. - * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} - * @return the request - */ - public Create create(java.lang.String packageName, com.google.api.services.androidpublisher.model.Subscription content) throws java.io.IOException { - Create result = new Create(packageName, content); - initialize(result); - return result; - } + /** Required. The parent one-time product (ID) of the offer to deactivate. */ + public Deactivate setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - public class Create extends AndroidPublisherRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the subscription should be created. Must be equal - * to the package_name field on the Subscription resource. - * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} - * @since 1.13 - */ - protected Create(java.lang.String packageName, com.google.api.services.androidpublisher.model.Subscription content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + /** Required. The parent purchase option (ID) of the offer to deactivate. */ + public Deactivate setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + /** Required. The offer ID of the offer to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String offerId; - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** Required. The offer ID of the offer to deactivate. + */ + public java.lang.String getOfferId() { + return offerId; + } - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** Required. The offer ID of the offer to deactivate. */ + public Deactivate setOfferId(java.lang.String offerId) { + this.offerId = offerId; + return this; + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); + } + } + /** + * Lists all offers under a given app, product, or purchase option. + * + * Create a request for the method "offers.list". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the offers should be read. + * @param productId Required. The parent one-time product (ID) for which the offers should be read. May be specified as + * '-' to read all offers under an app. + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be read. May be specified as + * '-' to read all offers under a one-time product or an app. Must be specified as '-' if + * product_id is specified as '-'. + * @return the request + */ + public List list(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId) throws java.io.IOException { + List result = new List(packageName, productId, purchaseOptionId); + initialize(result); + return result; + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + public class List extends AndroidPublisherRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the offers should be read. + * @param productId Required. The parent one-time product (ID) for which the offers should be read. May be specified as + * '-' to read all offers under an app. + * @param purchaseOptionId Required. The parent purchase option (ID) for which the offers should be read. May be specified as + * '-' to read all offers under a one-time product or an app. Must be specified as '-' if + * product_id is specified as '-'. + * @since 1.13 + */ + protected List(java.lang.String packageName, java.lang.String productId, java.lang.String purchaseOptionId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListOneTimeProductOffersResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.purchaseOptionId = com.google.api.client.util.Preconditions.checkNotNull(purchaseOptionId, "Required parameter purchaseOptionId must be specified."); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Required. The parent app (package name) for which the subscription should be created. - * Must be equal to the package_name field on the Subscription resource. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Required. The parent app (package name) for which the subscription should be created. Must be equal - to the package_name field on the Subscription resource. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** - * Required. The parent app (package name) for which the subscription should be created. - * Must be equal to the package_name field on the Subscription resource. - */ - public Create setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The ID to use for the subscription. For the requirements on this format, see - * the documentation of the product_id field on the Subscription resource. - */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The ID to use for the subscription. For the requirements on this format, see the - documentation of the product_id field on the Subscription resource. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The ID to use for the subscription. For the requirements on this format, see - * the documentation of the product_id field on the Subscription resource. - */ - public Create setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource have to - * be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each - * time the supported locations substantially change, the version will be incremented. Using - * this field will ensure that creating and updating the resource with an older region's - * version and set of regional prices and currencies will succeed even though a new version - * is available. - */ - @com.google.api.client.util.Key("regionsVersion.version") - private java.lang.String regionsVersionVersion; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Required. A string representing the version of available regions being used for the specified - resource. Regional prices and latest supported version for the resource have to be specified - according to the information published in [this - article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the - supported locations substantially change, the version will be incremented. Using this field will - ensure that creating and updating the resource with an older region's version and set of regional - prices and currencies will succeed even though a new version is available. - */ - public java.lang.String getRegionsVersionVersion() { - return regionsVersionVersion; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource have to - * be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each - * time the supported locations substantially change, the version will be incremented. Using - * this field will ensure that creating and updating the resource with an older region's - * version and set of regional prices and currencies will succeed even though a new version - * is available. - */ - public Create setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a subscription. A subscription can only be deleted if it has never had a base plan - * published. - * - * Create a request for the method "subscriptions.delete". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the app of the subscription to delete. - * @param productId Required. The unique product ID of the subscription to delete. - * @return the request - */ - public Delete delete(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { - Delete result = new Delete(packageName, productId); - initialize(result); - return result; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the app of the subscription to delete. - * @param productId Required. The unique product ID of the subscription to delete. - * @since 1.13 - */ - protected Delete(java.lang.String packageName, java.lang.String productId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + /** Required. The parent app (package name) for which the offers should be read. */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * Required. The parent one-time product (ID) for which the offers should be read. May + * be specified as '-' to read all offers under an app. + */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** Required. The parent one-time product (ID) for which the offers should be read. May be specified as + '-' to read all offers under an app. + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * Required. The parent one-time product (ID) for which the offers should be read. May + * be specified as '-' to read all offers under an app. + */ + public List setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * Required. The parent purchase option (ID) for which the offers should be read. May be + * specified as '-' to read all offers under a one-time product or an app. Must be + * specified as '-' if product_id is specified as '-'. + */ + @com.google.api.client.util.Key + private java.lang.String purchaseOptionId; - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** Required. The parent purchase option (ID) for which the offers should be read. May be specified as + '-' to read all offers under a one-time product or an app. Must be specified as '-' if product_id + is specified as '-'. + */ + public java.lang.String getPurchaseOptionId() { + return purchaseOptionId; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** + * Required. The parent purchase option (ID) for which the offers should be read. May be + * specified as '-' to read all offers under a one-time product or an app. Must be + * specified as '-' if product_id is specified as '-'. + */ + public List setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** + * Optional. The maximum number of offers to return. The service may return fewer than + * this value. If unspecified, at most 50 offers will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** Optional. The maximum number of offers to return. The service may return fewer than this value. If + unspecified, at most 50 offers will be returned. The maximum value is 1000; values above 1000 will + be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @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); - } + /** + * Optional. The maximum number of offers to return. The service may return fewer than + * this value. If unspecified, at most 50 offers will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Required. The parent app (package name) of the app of the subscription to delete. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. + * Provide this to retrieve the subsequent page. When paginating, product_id, + * package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` + * must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Required. The parent app (package name) of the app of the subscription to delete. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide this to + retrieve the subsequent page. When paginating, product_id, package_name and purchase_option_id + provided to `ListOneTimeProductsOffersRequest` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** Required. The parent app (package name) of the app of the subscription to delete. */ - public Delete setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. + * Provide this to retrieve the subsequent page. When paginating, product_id, + * package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` + * must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** Required. The unique product ID of the subscription to delete. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } - /** Required. The unique product ID of the subscription to delete. - */ - public java.lang.String getProductId() { - return productId; } + } + } + /** + * An accessor for creating requests from the Subscriptions collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Subscriptions.List request = androidpublisher.subscriptions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Subscriptions subscriptions() {
+ return new Subscriptions();
+ }
- /** Required. The unique product ID of the subscription to delete. */
- public Delete setProductId(java.lang.String productId) {
- this.productId = productId;
- return this;
- }
+ /**
+ * The "subscriptions" collection of methods.
+ */
+ public class Subscriptions {
- @Override
- public Delete set(String parameterName, Object value) {
- return (Delete) super.set(parameterName, value);
- }
- }
/**
- * Reads a single subscription.
+ * Deprecated: subscription archiving is not supported.
*
- * Create a request for the method "subscriptions.get".
+ * Create a request for the method "subscriptions.archive".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Archive#execute()} method to invoke the remote operation.
*
- * @param packageName Required. The parent app (package name) of the subscription to get.
- * @param productId Required. The unique product ID of the subscription to get.
+ * @param packageName Required. The parent app (package name) of the app of the subscription to delete.
+ * @param productId Required. The unique product ID of the subscription to delete.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest}
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String productId) throws java.io.IOException {
- Get result = new Get(packageName, productId);
+ public Archive archive(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest content) throws java.io.IOException {
+ Archive result = new Archive(packageName, productId, content);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Archive#execute()} method to invoke the remote operation. + *{@link + * Archive#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the subscription to get. - * @param productId Required. The unique product ID of the subscription to get. + * @param packageName Required. The parent app (package name) of the app of the subscription to delete. + * @param productId Required. The unique product ID of the subscription to delete. + * @param content the {@link com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String productId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Subscription.class); + protected Archive(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.ArchiveSubscriptionRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName 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); + public Archive set$Xgafv(java.lang.String $Xgafv) { + return (Archive) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Archive setAccessToken(java.lang.String accessToken) { + return (Archive) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Archive setAlt(java.lang.String alt) { + return (Archive) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Archive setCallback(java.lang.String callback) { + return (Archive) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Archive setFields(java.lang.String fields) { + return (Archive) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Archive setKey(java.lang.String key) { + return (Archive) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Archive setOauthToken(java.lang.String oauthToken) { + return (Archive) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Archive setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Archive) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Archive setQuotaUser(java.lang.String quotaUser) { + return (Archive) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Archive setUploadType(java.lang.String uploadType) { + return (Archive) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Archive setUploadProtocol(java.lang.String uploadProtocol) { + return (Archive) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the subscription to get. */ + /** Required. The parent app (package name) of the app of the subscription to delete. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the subscription to get. + /** Required. The parent app (package name) of the app of the subscription to delete. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the subscription to get. */ - public Get setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the app of the subscription to delete. */ + public Archive setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The unique product ID of the subscription to get. */ + /** Required. The unique product ID of the subscription to delete. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The unique product ID of the subscription to get. + /** Required. The unique product ID of the subscription to delete. */ public java.lang.String getProductId() { return productId; } - /** Required. The unique product ID of the subscription to get. */ - public Get setProductId(java.lang.String productId) { + /** Required. The unique product ID of the subscription to delete. */ + public Archive setProductId(java.lang.String productId) { this.productId = productId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Archive set(String parameterName, Object value) { + return (Archive) super.set(parameterName, value); } } /** - * Lists all subscriptions under a given app. + * Reads one or more subscriptions. * - * Create a request for the method "subscriptions.list". + * Create a request for the method "subscriptions.batchGet". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. * - * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @param packageName Required. The parent app (package name) for which the subscriptions should be retrieved. Must be + * equal to the package_name field on all the requests. * @return the request */ - public List list(java.lang.String packageName) throws java.io.IOException { - List result = new List(packageName); + public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { + BatchGet result = new BatchGet(packageName); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. + *
{@link + * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @param packageName Required. The parent app (package name) for which the subscriptions should be retrieved. Must be + * equal to the package_name field on all the requests. * @since 1.13 */ - protected List(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListSubscriptionsResponse.class); + protected BatchGet(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetSubscriptionsResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } @@ -15368,344 +15591,382 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); + } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) for which the subscriptions should be read. */ + /** + * Required. The parent app (package name) for which the subscriptions should be retrieved. + * Must be equal to the package_name field on all the requests. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) for which the subscriptions should be read. + /** Required. The parent app (package name) for which the subscriptions should be retrieved. Must be + equal to the package_name field on all the requests. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) for which the subscriptions should be read. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } - - /** - * The maximum number of subscriptions to return. The service may return fewer than this - * value. If unspecified, at most 50 subscriptions will be returned. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of subscriptions to return. The service may return fewer than this value. If - unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above - 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - /** - * The maximum number of subscriptions to return. The service may return fewer than this - * value. If unspecified, at most 50 subscriptions will be returned. The maximum value is - * 1000; values above 1000 will be coerced to 1000. + * Required. The parent app (package name) for which the subscriptions should be retrieved. + * Must be equal to the package_name field on all the requests. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public BatchGet setPackageName(java.lang.String packageName) { + this.packageName = packageName; return this; } /** - * A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * `ListSubscriptions` must match the call that provided the page token. + * Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be + * different. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.util.List{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation.{@link + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Immutable. Package name of the parent app. - * @param productId Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be - * composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must - * start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters - * in length. - * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} + * @param packageName Required. The parent app (package name) for which the subscriptions should be updated. Must be equal + * to the package_name field on all the Subscription resources. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsRequest} * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.Subscription content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); + protected BatchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionsResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); } - /** Immutable. Package name of the parent app. */ + /** + * Required. The parent app (package name) for which the subscriptions should be updated. + * Must be equal to the package_name field on all the Subscription resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Immutable. Package name of the parent app. + /** Required. The parent app (package name) for which the subscriptions should be updated. Must be + equal to the package_name field on all the Subscription resources. */ public java.lang.String getPackageName() { return packageName; } - /** Immutable. Package name of the parent app. */ - public Patch setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) for which the subscriptions should be updated. + * Must be equal to the package_name field on all the Subscription resources. + */ + public BatchUpdate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Immutable. Unique product ID of the product. Unique within the parent app. Product IDs - * must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots - * (.). It must start with a lower-case letter or number, and be between 1 and 40 - * (inclusive) characters in length. - */ - @com.google.api.client.util.Key - private java.lang.String productId; - - /** Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be - composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start - with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length. - */ - public java.lang.String getProductId() { - return productId; + @Override + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); } - - /** - * Immutable. Unique product ID of the product. Unique within the parent app. Product IDs - * must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots - * (.). It must start with a lower-case letter or number, and be between 1 and 40 - * (inclusive) characters in length. + } + /** + * Creates a new subscription. Newly added base plans will remain in draft state until activated. + * + * Create a request for the method "subscriptions.create". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the subscription should be created. Must be equal + * to the package_name field on the Subscription resource. + * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} + * @return the request + */ + public Create create(java.lang.String packageName, com.google.api.services.androidpublisher.model.Subscription content) throws java.io.IOException { + Create result = new Create(packageName, content); + initialize(result); + return result; + } + + public class Create extends AndroidPublisherRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the subscription should be created. Must be equal + * to the package_name field on the Subscription resource. + * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} + * @since 1.13 */ - public Patch setProductId(java.lang.String productId) { - this.productId = productId; - return this; + protected Create(java.lang.String packageName, com.google.api.services.androidpublisher.model.Subscription content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Optional. If set to true, and the subscription with the given package_name and product_id - * doesn't exist, the subscription will be created. If a new subscription is created, - * update_mask is ignored. + * Required. The parent app (package name) for which the subscription should be created. + * Must be equal to the package_name field on the Subscription resource. */ @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; + private java.lang.String packageName; - /** Optional. If set to true, and the subscription with the given package_name and product_id doesn't - exist, the subscription will be created. If a new subscription is created, update_mask is ignored. + /** Required. The parent app (package name) for which the subscription should be created. Must be equal + to the package_name field on the Subscription resource. */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; + public java.lang.String getPackageName() { + return packageName; } /** - * Optional. If set to true, and the subscription with the given package_name and product_id - * doesn't exist, the subscription will be created. If a new subscription is created, - * update_mask is ignored. + * Required. The parent app (package name) for which the subscription should be created. + * Must be equal to the package_name field on the Subscription resource. */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; + public Create setPackageName(java.lang.String packageName) { + this.packageName = packageName; return this; } /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. + * Required. The ID to use for the subscription. For the requirements on this format, see + * the documentation of the product_id field on the Subscription resource. */ @com.google.api.client.util.Key - private java.lang.String latencyTolerance; + private java.lang.String productId; - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. + /** Required. The ID to use for the subscription. For the requirements on this format, see the + documentation of the product_id field on the Subscription resource. */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; + public java.lang.String getProductId() { + return productId; } /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. + * Required. The ID to use for the subscription. For the requirements on this format, see + * the documentation of the product_id field on the Subscription resource. */ - public Patch setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; + public Create setProductId(java.lang.String productId) { + this.productId = productId; return this; } @@ -15744,2853 +16005,2971 @@ public java.lang.String getRegionsVersionVersion() { * version and set of regional prices and currencies will succeed even though a new version * is available. */ - public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { + public Create setRegionsVersionVersion(java.lang.String regionsVersionVersion) { this.regionsVersionVersion = regionsVersionVersion; return this; } - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the BasePlans collection. + * Deletes a subscription. A subscription can only be deleted if it has never had a base plan + * published. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.BasePlans.List request = androidpublisher.basePlans().list(parameters ...)}
- *
+ * Create a request for the method "subscriptions.delete".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Required. The parent app (package name) of the app of the subscription to delete.
+ * @param productId Required. The unique product ID of the subscription to delete.
+ * @return the request
*/
- public BasePlans basePlans() {
- return new BasePlans();
+ public Delete delete(java.lang.String packageName, java.lang.String productId) throws java.io.IOException {
+ Delete result = new Delete(packageName, productId);
+ initialize(result);
+ return result;
}
- /**
- * The "basePlans" collection of methods.
- */
- public class BasePlans {
+ public class Delete extends AndroidPublisherRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the base plan to activate. - * @param productId Required. The parent subscription (ID) of the base plan to activate. - * @param basePlanId Required. The unique base plan ID of the base plan to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateBasePlanRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the app of the subscription to delete. + * @param productId Required. The unique product ID of the subscription to delete. + * @since 1.13 */ - public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.ActivateBasePlanRequest content) throws java.io.IOException { - Activate result = new Activate(packageName, productId, basePlanId, content); - initialize(result); - return result; + protected Delete(java.lang.String packageName, java.lang.String productId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class Activate extends AndroidPublisherRequest{@link - * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the base plan to activate. - * @param productId Required. The parent subscription (ID) of the base plan to activate. - * @param basePlanId Required. The unique base plan ID of the base plan to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateBasePlanRequest} - * @since 1.13 - */ - protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.ActivateBasePlanRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - } - - @Override - public Activate set$Xgafv(java.lang.String $Xgafv) { - return (Activate) super.set$Xgafv($Xgafv); - } - - @Override - public Activate setAccessToken(java.lang.String accessToken) { - return (Activate) super.setAccessToken(accessToken); - } - - @Override - public Activate setAlt(java.lang.String alt) { - return (Activate) super.setAlt(alt); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Activate setCallback(java.lang.String callback) { - return (Activate) super.setCallback(callback); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Activate setFields(java.lang.String fields) { - return (Activate) super.setFields(fields); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Activate setKey(java.lang.String key) { - return (Activate) super.setKey(key); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Activate setOauthToken(java.lang.String oauthToken) { - return (Activate) super.setOauthToken(oauthToken); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Activate) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Activate setQuotaUser(java.lang.String quotaUser) { - return (Activate) super.setQuotaUser(quotaUser); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Activate setUploadType(java.lang.String uploadType) { - return (Activate) super.setUploadType(uploadType); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Activate setUploadProtocol(java.lang.String uploadProtocol) { - return (Activate) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** Required. The parent app (package name) of the base plan to activate. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) of the app of the subscription to delete. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) of the base plan to activate. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent app (package name) of the app of the subscription to delete. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the base plan to activate. */ - public Activate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent app (package name) of the app of the subscription to delete. */ + public Delete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent subscription (ID) of the base plan to activate. */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** Required. The unique product ID of the subscription to delete. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent subscription (ID) of the base plan to activate. - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. The unique product ID of the subscription to delete. + */ + public java.lang.String getProductId() { + return productId; + } - /** Required. The parent subscription (ID) of the base plan to activate. */ - public Activate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. The unique product ID of the subscription to delete. */ + public Delete setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** Required. The unique base plan ID of the base plan to activate. */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Reads a single subscription. + * + * Create a request for the method "subscriptions.get". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the subscription to get. + * @param productId Required. The unique product ID of the subscription to get. + * @return the request + */ + public Get get(java.lang.String packageName, java.lang.String productId) throws java.io.IOException { + Get result = new Get(packageName, productId); + initialize(result); + return result; + } - /** Required. The unique base plan ID of the base plan to activate. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } + public class Get extends AndroidPublisherRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. - * Must be equal to the package_name field on all the Subscription resources. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this batch update spans multiple subscriptions, set this field to "-". - * Must be set. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the subscription to get. + * @param productId Required. The unique product ID of the subscription to get. + * @since 1.13 */ - public BatchMigratePrices batchMigratePrices(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest content) throws java.io.IOException { - BatchMigratePrices result = new BatchMigratePrices(packageName, productId, content); - initialize(result); - return result; + protected Get(java.lang.String packageName, java.lang.String productId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Subscription.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class BatchMigratePrices extends AndroidPublisherRequest{@link BatchMigratePrices#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. - * Must be equal to the package_name field on all the Subscription resources. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this batch update spans multiple subscriptions, set this field to "-". - * Must be set. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest} - * @since 1.13 - */ - protected BatchMigratePrices(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public BatchMigratePrices set$Xgafv(java.lang.String $Xgafv) { - return (BatchMigratePrices) super.set$Xgafv($Xgafv); - } - - @Override - public BatchMigratePrices setAccessToken(java.lang.String accessToken) { - return (BatchMigratePrices) super.setAccessToken(accessToken); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public BatchMigratePrices setAlt(java.lang.String alt) { - return (BatchMigratePrices) super.setAlt(alt); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public BatchMigratePrices setCallback(java.lang.String callback) { - return (BatchMigratePrices) super.setCallback(callback); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public BatchMigratePrices setFields(java.lang.String fields) { - return (BatchMigratePrices) super.setFields(fields); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public BatchMigratePrices setKey(java.lang.String key) { - return (BatchMigratePrices) super.setKey(key); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public BatchMigratePrices setOauthToken(java.lang.String oauthToken) { - return (BatchMigratePrices) super.setOauthToken(oauthToken); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public BatchMigratePrices setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchMigratePrices) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchMigratePrices setQuotaUser(java.lang.String quotaUser) { - return (BatchMigratePrices) super.setQuotaUser(quotaUser); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public BatchMigratePrices setUploadType(java.lang.String uploadType) { - return (BatchMigratePrices) super.setUploadType(uploadType); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public BatchMigratePrices setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchMigratePrices) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The parent app (package name) for which the subscriptions should be created - * or updated. Must be equal to the package_name field on all the Subscription resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) of the subscription to get. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) for which the subscriptions should be created or updated. - Must be equal to the package_name field on all the Subscription resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent app (package name) of the subscription to get. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Required. The parent app (package name) for which the subscriptions should be created - * or updated. Must be equal to the package_name field on all the Subscription resources. - */ - public BatchMigratePrices setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent app (package name) of the subscription to get. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this batch update spans multiple subscriptions, set this - * field to "-". Must be set. - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** Required. The unique product ID of the subscription to get. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The product ID of the parent subscription, if all updated offers belong to the same - subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be - set. - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. The unique product ID of the subscription to get. + */ + public java.lang.String getProductId() { + return productId; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this batch update spans multiple subscriptions, set this - * field to "-". Must be set. - */ - public BatchMigratePrices setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. The unique product ID of the subscription to get. */ + public Get setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public BatchMigratePrices set(String parameterName, Object value) { - return (BatchMigratePrices) super.set(parameterName, value); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Lists all subscriptions under a given app. + * + * Create a request for the method "subscriptions.list". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @return the request + */ + public List list(java.lang.String packageName) throws java.io.IOException { + List result = new List(packageName); + initialize(result); + return result; + } + + public class List extends AndroidPublisherRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated base plans. - * @param productId Required. The product ID of the parent subscription, if all updated base plans belong to the same - * subscription. If this batch update spans multiple subscriptions, set this field to "-". - * Must be set. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest} - * @return the request + * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @since 1.13 */ - public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest content) throws java.io.IOException { - BatchUpdateStates result = new BatchUpdateStates(packageName, productId, content); - initialize(result); - return result; + protected List(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListSubscriptionsResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); } - public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab - * stractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated base plans. - * @param productId Required. The product ID of the parent subscription, if all updated base plans belong to the same - * subscription. If this batch update spans multiple subscriptions, set this field to "-". - * Must be set. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest} - * @since 1.13 - */ - protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) for which the subscriptions should be read. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent app (package name) of the updated base plans. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent app (package name) for which the subscriptions should be read. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the updated base plans. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent app (package name) for which the subscriptions should be read. */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the updated base plans. */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * The maximum number of subscriptions to return. The service may return fewer than this + * value. If unspecified, at most 50 subscriptions will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Required. The product ID of the parent subscription, if all updated base plans belong - * to the same subscription. If this batch update spans multiple subscriptions, set this - * field to "-". Must be set. - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** The maximum number of subscriptions to return. The service may return fewer than this value. If + unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above + 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Required. The product ID of the parent subscription, if all updated base plans belong to the same - subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be - set. - */ - public java.lang.String getProductId() { - return productId; - } + /** + * The maximum number of subscriptions to return. The service may return fewer than this + * value. If unspecified, at most 50 subscriptions will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Required. The product ID of the parent subscription, if all updated base plans belong - * to the same subscription. If this batch update spans multiple subscriptions, set this - * field to "-". Must be set. - */ - public BatchUpdateStates setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** + * A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * `ListSubscriptions` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); - } + /** A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; } + /** - * Deactivates a base plan. Once deactivated, the base plan will become unavailable to new - * subscribers, but existing subscribers will maintain their subscription - * - * Create a request for the method "basePlans.deactivate". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the base plan to deactivate. - * @param productId Required. The parent subscription (ID) of the base plan to deactivate. - * @param basePlanId Required. The unique base plan ID of the base plan to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest} - * @return the request + * A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * `ListSubscriptions` must match the call that provided the page token. */ - public Deactivate deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest content) throws java.io.IOException { - Deactivate result = new Deactivate(packageName, productId, basePlanId, content); - initialize(result); - return result; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - public class Deactivate extends AndroidPublisherRequest{@link - * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the base plan to deactivate. - * @param productId Required. The parent subscription (ID) of the base plan to deactivate. - * @param basePlanId Required. The unique base plan ID of the base plan to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest} - * @since 1.13 - */ - protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - } + /** Deprecated: subscription archiving is not supported. */ + public List setShowArchived(java.lang.Boolean showArchived) { + this.showArchived = showArchived; + return this; + } - @Override - public Deactivate set$Xgafv(java.lang.String $Xgafv) { - return (Deactivate) super.set$Xgafv($Xgafv); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing subscription. + * + * Create a request for the method "subscriptions.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Immutable. Package name of the parent app. + * @param productId Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be + * composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must + * start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters + * in length. + * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.Subscription content) throws java.io.IOException { + Patch result = new Patch(packageName, productId, content); + initialize(result); + return result; + } - @Override - public Deactivate setAccessToken(java.lang.String accessToken) { - return (Deactivate) super.setAccessToken(accessToken); - } - - @Override - public Deactivate setAlt(java.lang.String alt) { - return (Deactivate) super.setAlt(alt); - } + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Immutable. Package name of the parent app. + * @param productId Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be + * composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must + * start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters + * in length. + * @param content the {@link com.google.api.services.androidpublisher.model.Subscription} + * @since 1.13 + */ + protected Patch(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.Subscription content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + } - @Override - public Deactivate setKey(java.lang.String key) { - return (Deactivate) super.setKey(key); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Deactivate setOauthToken(java.lang.String oauthToken) { - return (Deactivate) super.setOauthToken(oauthToken); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deactivate) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Deactivate setQuotaUser(java.lang.String quotaUser) { - return (Deactivate) super.setQuotaUser(quotaUser); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Deactivate setUploadType(java.lang.String uploadType) { - return (Deactivate) super.setUploadType(uploadType); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deactivate) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** Required. The parent app (package name) of the base plan to deactivate. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Required. The parent app (package name) of the base plan to deactivate. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent app (package name) of the base plan to deactivate. */ - public Deactivate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Required. The parent subscription (ID) of the base plan to deactivate. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** Required. The parent subscription (ID) of the base plan to deactivate. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** Required. The parent subscription (ID) of the base plan to deactivate. */ - public Deactivate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Immutable. Package name of the parent app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The unique base plan ID of the base plan to deactivate. */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; + /** Immutable. Package name of the parent app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The unique base plan ID of the base plan to deactivate. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } + /** Immutable. Package name of the parent app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The unique base plan ID of the base plan to deactivate. */ - public Deactivate setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } + /** + * Immutable. Unique product ID of the product. Unique within the parent app. Product IDs + * must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots + * (.). It must start with a lower-case letter or number, and be between 1 and 40 + * (inclusive) characters in length. + */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public Deactivate set(String parameterName, Object value) { - return (Deactivate) super.set(parameterName, value); - } + /** Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be + composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start + with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length. + */ + public java.lang.String getProductId() { + return productId; } + /** - * Deletes a base plan. Can only be done for draft base plans. This action is irreversible. - * - * Create a request for the method "basePlans.delete". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) of the base plan to delete. - * @param productId Required. The parent subscription (ID) of the base plan to delete. - * @param basePlanId Required. The unique offer ID of the base plan to delete. - * @return the request + * Immutable. Unique product ID of the product. Unique within the parent app. Product IDs + * must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots + * (.). It must start with a lower-case letter or number, and be between 1 and 40 + * (inclusive) characters in length. */ - public Delete delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) throws java.io.IOException { - Delete result = new Delete(packageName, productId, basePlanId); - initialize(result); - return result; + public Patch setProductId(java.lang.String productId) { + this.productId = productId; + return this; } - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the base plan to delete. - * @param productId Required. The parent subscription (ID) of the base plan to delete. - * @param basePlanId Required. The unique offer ID of the base plan to delete. - * @since 1.13 - */ - protected Delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - } + /** Optional. If set to true, and the subscription with the given package_name and product_id doesn't + exist, the subscription will be created. If a new subscription is created, update_mask is ignored. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * Optional. If set to true, and the subscription with the given package_name and product_id + * doesn't exist, the subscription will be created. If a new subscription is created, + * update_mask is ignored. + */ + public Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + @com.google.api.client.util.Key + private java.lang.String latencyTolerance; + + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } + + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. + */ + public Patch setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } + + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource have to + * be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each + * time the supported locations substantially change, the version will be incremented. Using + * this field will ensure that creating and updating the resource with an older region's + * version and set of regional prices and currencies will succeed even though a new version + * is available. + */ + @com.google.api.client.util.Key("regionsVersion.version") + private java.lang.String regionsVersionVersion; + + /** Required. A string representing the version of available regions being used for the specified + resource. Regional prices and latest supported version for the resource have to be specified + according to the information published in [this + article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the + supported locations substantially change, the version will be incremented. Using this field will + ensure that creating and updating the resource with an older region's version and set of regional + prices and currencies will succeed even though a new version is available. + */ + public java.lang.String getRegionsVersionVersion() { + return regionsVersionVersion; + } + + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource have to + * be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). Each + * time the supported locations substantially change, the version will be incremented. Using + * this field will ensure that creating and updating the resource with an older region's + * version and set of regional prices and currencies will succeed even though a new version + * is available. + */ + public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { + this.regionsVersionVersion = regionsVersionVersion; + return this; + } + + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the BasePlans collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.BasePlans.List request = androidpublisher.basePlans().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public BasePlans basePlans() {
+ return new BasePlans();
+ }
+
+ /**
+ * The "basePlans" collection of methods.
+ */
+ public class BasePlans {
+
+ /**
+ * Activates a base plan. Once activated, base plans will be available to new subscribers.
+ *
+ * Create a request for the method "basePlans.activate".
+ *
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Required. The parent app (package name) of the base plan to activate.
+ * @param productId Required. The parent subscription (ID) of the base plan to activate.
+ * @param basePlanId Required. The unique base plan ID of the base plan to activate.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ActivateBasePlanRequest}
+ * @return the request
+ */
+ public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.ActivateBasePlanRequest content) throws java.io.IOException {
+ Activate result = new Activate(packageName, productId, basePlanId, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Activate extends AndroidPublisherRequest{@link + * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the base plan to activate. + * @param productId Required. The parent subscription (ID) of the base plan to activate. + * @param basePlanId Required. The unique base plan ID of the base plan to activate. + * @param content the {@link com.google.api.services.androidpublisher.model.ActivateBasePlanRequest} + * @since 1.13 + */ + protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.ActivateBasePlanRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); } - /** Required. The parent app (package name) of the base plan to delete. */ + @Override + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); + } + + @Override + public Activate setUploadProtocol(java.lang.String uploadProtocol) { + return (Activate) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent app (package name) of the base plan to activate. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the base plan to delete. + /** Required. The parent app (package name) of the base plan to activate. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the base plan to delete. */ - public Delete setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the base plan to activate. */ + public Activate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent subscription (ID) of the base plan to delete. */ + /** Required. The parent subscription (ID) of the base plan to activate. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) of the base plan to delete. + /** Required. The parent subscription (ID) of the base plan to activate. */ public java.lang.String getProductId() { return productId; } - /** Required. The parent subscription (ID) of the base plan to delete. */ - public Delete setProductId(java.lang.String productId) { + /** Required. The parent subscription (ID) of the base plan to activate. */ + public Activate setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The unique offer ID of the base plan to delete. */ + /** Required. The unique base plan ID of the base plan to activate. */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The unique offer ID of the base plan to delete. + /** Required. The unique base plan ID of the base plan to activate. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** Required. The unique offer ID of the base plan to delete. */ - public Delete setBasePlanId(java.lang.String basePlanId) { + /** Required. The unique base plan ID of the base plan to activate. */ + public Activate setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); } } /** - * Migrates subscribers from one or more legacy price cohorts to the current price. Requests result - * in Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts - * are supported. + * Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested + * requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update + * throughput. * - * Create a request for the method "basePlans.migratePrices". + * Create a request for the method "basePlans.batchMigratePrices". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link MigratePrices#execute()} method to invoke the remote + * optional parameters, call the {@link BatchMigratePrices#execute()} method to invoke the remote * operation. * - * @param packageName Required. Package name of the parent app. Must be equal to the package_name field on the - * Subscription resource. - * @param productId Required. The ID of the subscription to update. Must be equal to the product_id field on the - * Subscription resource. - * @param basePlanId Required. The unique base plan ID of the base plan to update prices on. - * @param content the {@link com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest} + * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. + * Must be equal to the package_name field on all the Subscription resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this batch update spans multiple subscriptions, set this field to "-". + * Must be set. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest} * @return the request */ - public MigratePrices migratePrices(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest content) throws java.io.IOException { - MigratePrices result = new MigratePrices(packageName, productId, basePlanId, content); + public BatchMigratePrices batchMigratePrices(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest content) throws java.io.IOException { + BatchMigratePrices result = new BatchMigratePrices(packageName, productId, content); initialize(result); return result; } - public class MigratePrices extends AndroidPublisherRequest{@link MigratePrices#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking - * the constructor.
+ * optional parameters, call the {@link BatchMigratePrices#execute()} method to invoke the remote + * operation.{@link BatchMigratePrices#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param packageName Required. Package name of the parent app. Must be equal to the package_name field on the - * Subscription resource. - * @param productId Required. The ID of the subscription to update. Must be equal to the product_id field on the - * Subscription resource. - * @param basePlanId Required. The unique base plan ID of the base plan to update prices on. - * @param content the {@link com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest} + * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. + * Must be equal to the package_name field on all the Subscription resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this batch update spans multiple subscriptions, set this field to "-". + * Must be set. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest} * @since 1.13 */ - protected MigratePrices(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesResponse.class); + protected BatchMigratePrices(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchMigrateBasePlanPricesResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); } @Override - public MigratePrices set$Xgafv(java.lang.String $Xgafv) { - return (MigratePrices) super.set$Xgafv($Xgafv); + public BatchMigratePrices set$Xgafv(java.lang.String $Xgafv) { + return (BatchMigratePrices) super.set$Xgafv($Xgafv); } @Override - public MigratePrices setAccessToken(java.lang.String accessToken) { - return (MigratePrices) super.setAccessToken(accessToken); + public BatchMigratePrices setAccessToken(java.lang.String accessToken) { + return (BatchMigratePrices) super.setAccessToken(accessToken); } @Override - public MigratePrices setAlt(java.lang.String alt) { - return (MigratePrices) super.setAlt(alt); + public BatchMigratePrices setAlt(java.lang.String alt) { + return (BatchMigratePrices) super.setAlt(alt); } @Override - public MigratePrices setCallback(java.lang.String callback) { - return (MigratePrices) super.setCallback(callback); + public BatchMigratePrices setCallback(java.lang.String callback) { + return (BatchMigratePrices) super.setCallback(callback); } @Override - public MigratePrices setFields(java.lang.String fields) { - return (MigratePrices) super.setFields(fields); + public BatchMigratePrices setFields(java.lang.String fields) { + return (BatchMigratePrices) super.setFields(fields); } @Override - public MigratePrices setKey(java.lang.String key) { - return (MigratePrices) super.setKey(key); + public BatchMigratePrices setKey(java.lang.String key) { + return (BatchMigratePrices) super.setKey(key); } @Override - public MigratePrices setOauthToken(java.lang.String oauthToken) { - return (MigratePrices) super.setOauthToken(oauthToken); + public BatchMigratePrices setOauthToken(java.lang.String oauthToken) { + return (BatchMigratePrices) super.setOauthToken(oauthToken); } @Override - public MigratePrices setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MigratePrices) super.setPrettyPrint(prettyPrint); + public BatchMigratePrices setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchMigratePrices) super.setPrettyPrint(prettyPrint); } @Override - public MigratePrices setQuotaUser(java.lang.String quotaUser) { - return (MigratePrices) super.setQuotaUser(quotaUser); + public BatchMigratePrices setQuotaUser(java.lang.String quotaUser) { + return (BatchMigratePrices) super.setQuotaUser(quotaUser); } @Override - public MigratePrices setUploadType(java.lang.String uploadType) { - return (MigratePrices) super.setUploadType(uploadType); + public BatchMigratePrices setUploadType(java.lang.String uploadType) { + return (BatchMigratePrices) super.setUploadType(uploadType); } @Override - public MigratePrices setUploadProtocol(java.lang.String uploadProtocol) { - return (MigratePrices) super.setUploadProtocol(uploadProtocol); + public BatchMigratePrices setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchMigratePrices) super.setUploadProtocol(uploadProtocol); } /** - * Required. Package name of the parent app. Must be equal to the package_name field on - * the Subscription resource. + * Required. The parent app (package name) for which the subscriptions should be created + * or updated. Must be equal to the package_name field on all the Subscription resources. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. Package name of the parent app. Must be equal to the package_name field on the - Subscription resource. + /** Required. The parent app (package name) for which the subscriptions should be created or updated. + Must be equal to the package_name field on all the Subscription resources. */ public java.lang.String getPackageName() { return packageName; } /** - * Required. Package name of the parent app. Must be equal to the package_name field on - * the Subscription resource. + * Required. The parent app (package name) for which the subscriptions should be created + * or updated. Must be equal to the package_name field on all the Subscription resources. */ - public MigratePrices setPackageName(java.lang.String packageName) { + public BatchMigratePrices setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } /** - * Required. The ID of the subscription to update. Must be equal to the product_id field - * on the Subscription resource. + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this batch update spans multiple subscriptions, set this + * field to "-". Must be set. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The ID of the subscription to update. Must be equal to the product_id field on the - Subscription resource. + /** Required. The product ID of the parent subscription, if all updated offers belong to the same + subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be + set. */ public java.lang.String getProductId() { return productId; } /** - * Required. The ID of the subscription to update. Must be equal to the product_id field - * on the Subscription resource. + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this batch update spans multiple subscriptions, set this + * field to "-". Must be set. */ - public MigratePrices setProductId(java.lang.String productId) { + public BatchMigratePrices setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The unique base plan ID of the base plan to update prices on. */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; - - /** Required. The unique base plan ID of the base plan to update prices on. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } - - /** Required. The unique base plan ID of the base plan to update prices on. */ - public MigratePrices setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } - @Override - public MigratePrices set(String parameterName, Object value) { - return (MigratePrices) super.set(parameterName, value); + public BatchMigratePrices set(String parameterName, Object value) { + return (BatchMigratePrices) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Offers collection. + * Activates or deactivates base plans across one or multiple subscriptions. Set the + * latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to + * achieve maximum update throughput. * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Offers.List request = androidpublisher.offers().list(parameters ...)}
- *
+ * Create a request for the method "basePlans.batchUpdateStates".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param packageName Required. The parent app (package name) of the updated base plans.
+ * @param productId Required. The product ID of the parent subscription, if all updated base plans belong to the same
+ * subscription. If this batch update spans multiple subscriptions, set this field to "-".
+ * Must be set.
+ * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest}
+ * @return the request
*/
- public Offers offers() {
- return new Offers();
+ public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest content) throws java.io.IOException {
+ BatchUpdateStates result = new BatchUpdateStates(packageName, productId, content);
+ initialize(result);
+ return result;
}
- /**
- * The "offers" collection of methods.
- */
- public class Offers {
+ public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the offer to activate. - * @param productId Required. The parent subscription (ID) of the offer to activate. - * @param basePlanId Required. The parent base plan (ID) of the offer to activate. - * @param offerId Required. The unique offer ID of the offer to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the updated base plans. + * @param productId Required. The product ID of the parent subscription, if all updated base plans belong to the same + * subscription. If this batch update spans multiple subscriptions, set this field to "-". + * Must be set. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest} + * @since 1.13 */ - public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest content) throws java.io.IOException { - Activate result = new Activate(packageName, productId, basePlanId, offerId, content); - initialize(result); - return result; + protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateBasePlanStatesResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); } - public class Activate extends AndroidPublisherRequest{@link - * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the offer to activate. - * @param productId Required. The parent subscription (ID) of the offer to activate. - * @param basePlanId Required. The parent base plan (ID) of the offer to activate. - * @param offerId Required. The unique offer ID of the offer to activate. - * @param content the {@link com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest} - * @since 1.13 - */ - protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); - } + @Override + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); + } - @Override - public Activate set$Xgafv(java.lang.String $Xgafv) { - return (Activate) super.set$Xgafv($Xgafv); - } + @Override + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); + } - @Override - public Activate setAccessToken(java.lang.String accessToken) { - return (Activate) super.setAccessToken(accessToken); - } + @Override + public BatchUpdateStates setFields(java.lang.String fields) { + return (BatchUpdateStates) super.setFields(fields); + } - @Override - public Activate setAlt(java.lang.String alt) { - return (Activate) super.setAlt(alt); - } + @Override + public BatchUpdateStates setKey(java.lang.String key) { + return (BatchUpdateStates) super.setKey(key); + } - @Override - public Activate setCallback(java.lang.String callback) { - return (Activate) super.setCallback(callback); - } + @Override + public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { + return (BatchUpdateStates) super.setOauthToken(oauthToken); + } - @Override - public Activate setFields(java.lang.String fields) { - return (Activate) super.setFields(fields); - } + @Override + public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); + } - @Override - public Activate setKey(java.lang.String key) { - return (Activate) super.setKey(key); - } + @Override + public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdateStates) super.setQuotaUser(quotaUser); + } - @Override - public Activate setOauthToken(java.lang.String oauthToken) { - return (Activate) super.setOauthToken(oauthToken); - } + @Override + public BatchUpdateStates setUploadType(java.lang.String uploadType) { + return (BatchUpdateStates) super.setUploadType(uploadType); + } - @Override - public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Activate) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + } - @Override - public Activate setQuotaUser(java.lang.String quotaUser) { - return (Activate) super.setQuotaUser(quotaUser); - } + /** Required. The parent app (package name) of the updated base plans. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Activate setUploadType(java.lang.String uploadType) { - return (Activate) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the updated base plans. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Activate setUploadProtocol(java.lang.String uploadProtocol) { - return (Activate) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the updated base plans. */ + public BatchUpdateStates setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Required. The product ID of the parent subscription, if all updated base plans belong + * to the same subscription. If this batch update spans multiple subscriptions, set this + * field to "-". Must be set. + */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent app (package name) of the offer to activate. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The product ID of the parent subscription, if all updated base plans belong to the same + subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be + set. + */ + public java.lang.String getProductId() { + return productId; + } - /** Required. The parent app (package name) of the offer to activate. */ - public Activate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Required. The product ID of the parent subscription, if all updated base plans belong + * to the same subscription. If this batch update spans multiple subscriptions, set this + * field to "-". Must be set. + */ + public BatchUpdateStates setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** Required. The parent subscription (ID) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public BatchUpdateStates set(String parameterName, Object value) { + return (BatchUpdateStates) super.set(parameterName, value); + } + } + /** + * Deactivates a base plan. Once deactivated, the base plan will become unavailable to new + * subscribers, but existing subscribers will maintain their subscription + * + * Create a request for the method "basePlans.deactivate". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the base plan to deactivate. + * @param productId Required. The parent subscription (ID) of the base plan to deactivate. + * @param basePlanId Required. The unique base plan ID of the base plan to deactivate. + * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest} + * @return the request + */ + public Deactivate deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest content) throws java.io.IOException { + Deactivate result = new Deactivate(packageName, productId, basePlanId, content); + initialize(result); + return result; + } - /** Required. The parent subscription (ID) of the offer to activate. - */ - public java.lang.String getProductId() { - return productId; - } + public class Deactivate extends AndroidPublisherRequest{@link + * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the base plan to deactivate. + * @param productId Required. The parent subscription (ID) of the base plan to deactivate. + * @param basePlanId Required. The unique base plan ID of the base plan to deactivate. + * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest} + * @since 1.13 + */ + protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.DeactivateBasePlanRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.Subscription.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + } - /** Required. The parent base plan (ID) of the offer to activate. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } + @Override + public Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); + } - /** Required. The parent base plan (ID) of the offer to activate. */ - public Activate setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } + @Override + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); + } - /** Required. The unique offer ID of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String offerId; + @Override + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); + } - /** Required. The unique offer ID of the offer to activate. - */ - public java.lang.String getOfferId() { - return offerId; - } + @Override + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); + } - /** Required. The unique offer ID of the offer to activate. */ - public Activate setOfferId(java.lang.String offerId) { - this.offerId = offerId; - return this; - } + @Override + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); + } - @Override - public Activate set(String parameterName, Object value) { - return (Activate) super.set(parameterName, value); - } + @Override + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); } - /** - * Reads one or more subscription offers. - * - * Create a request for the method "offers.batchGet". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. - * - * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. - * Must be equal to the package_name field on all the requests. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this request spans multiple subscriptions, set this field to "-". Must be - * set. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - * read offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest} - * @return the request - */ - public BatchGet batchGet(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest content) throws java.io.IOException { - BatchGet result = new BatchGet(packageName, productId, basePlanId, content); - initialize(result); - return result; + + @Override + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); } - public class BatchGet extends AndroidPublisherRequest{@link - * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. - * Must be equal to the package_name field on all the requests. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this request spans multiple subscriptions, set this field to "-". Must be - * set. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - * read offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest} - * @since 1.13 - */ - protected BatchGet(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - } - - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } - - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } - - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } - - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } - - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } - - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + @Override + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + @Override + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); + } - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + @Override + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + /** Required. The parent app (package name) of the base plan to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the base plan to deactivate. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the base plan to deactivate. */ + public Deactivate setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The parent app (package name) for which the subscriptions should be created - * or updated. Must be equal to the package_name field on all the requests. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent subscription (ID) of the base plan to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent app (package name) for which the subscriptions should be created or updated. - Must be equal to the package_name field on all the requests. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent subscription (ID) of the base plan to deactivate. + */ + public java.lang.String getProductId() { + return productId; + } - /** - * Required. The parent app (package name) for which the subscriptions should be created - * or updated. Must be equal to the package_name field on all the requests. - */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent subscription (ID) of the base plan to deactivate. */ + public Deactivate setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** Required. The unique base plan ID of the base plan to deactivate. */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; - /** Required. The product ID of the parent subscription, if all updated offers belong to the same - subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. The unique base plan ID of the base plan to deactivate. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ - public BatchGet setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. The unique base plan ID of the base plan to deactivate. */ + public Deactivate setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } - /** - * Required. The parent base plan (ID) for which the offers should be read. May be - * specified as '-' to read offers from multiple base plans. - */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; + @Override + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); + } + } + /** + * Deletes a base plan. Can only be done for draft base plans. This action is irreversible. + * + * Create a request for the method "basePlans.delete". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the base plan to delete. + * @param productId Required. The parent subscription (ID) of the base plan to delete. + * @param basePlanId Required. The unique offer ID of the base plan to delete. + * @return the request + */ + public Delete delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) throws java.io.IOException { + Delete result = new Delete(packageName, productId, basePlanId); + initialize(result); + return result; + } - /** Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - read offers from multiple base plans. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } + public class Delete extends AndroidPublisherRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the - * package_name field on all the updated SubscriptionOffer resources. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this request spans multiple subscriptions, set this field to "-". Must be - * set. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' - * to update offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest} - * @return the request + * @param packageName Required. The parent app (package name) of the base plan to delete. + * @param productId Required. The parent subscription (ID) of the base plan to delete. + * @param basePlanId Required. The unique offer ID of the base plan to delete. + * @since 1.13 */ - public BatchUpdate batchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest content) throws java.io.IOException { - BatchUpdate result = new BatchUpdate(packageName, productId, basePlanId, content); - initialize(result); - return result; + protected Delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); } - public class BatchUpdate extends AndroidPublisherRequest{@link - * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the - * package_name field on all the updated SubscriptionOffer resources. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this request spans multiple subscriptions, set this field to "-". Must be - * set. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' - * to update offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest} - * @since 1.13 - */ - protected BatchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); - } + /** Required. The parent app (package name) of the base plan to delete. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) of the base plan to delete. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent app (package name) of the base plan to delete. */ + public Delete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * Required. The parent app (package name) of the updated subscription offers. Must be - * equal to the package_name field on all the updated SubscriptionOffer resources. - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The parent subscription (ID) of the base plan to delete. */ + @com.google.api.client.util.Key + private java.lang.String productId; - /** Required. The parent app (package name) of the updated subscription offers. Must be equal to the - package_name field on all the updated SubscriptionOffer resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. The parent subscription (ID) of the base plan to delete. + */ + public java.lang.String getProductId() { + return productId; + } - /** - * Required. The parent app (package name) of the updated subscription offers. Must be - * equal to the package_name field on all the updated SubscriptionOffer resources. - */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** Required. The parent subscription (ID) of the base plan to delete. */ + public Delete setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ - @com.google.api.client.util.Key - private java.lang.String productId; + /** Required. The unique offer ID of the base plan to delete. */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; - /** Required. The product ID of the parent subscription, if all updated offers belong to the same - subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. The unique offer ID of the base plan to delete. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ - public BatchUpdate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. The unique offer ID of the base plan to delete. */ + public Delete setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } - /** - * Required. The parent base plan (ID) for which the offers should be updated. May be - * specified as '-' to update offers from multiple base plans. - */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Migrates subscribers from one or more legacy price cohorts to the current price. Requests result + * in Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts + * are supported. + * + * Create a request for the method "basePlans.migratePrices". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link MigratePrices#execute()} method to invoke the remote + * operation. + * + * @param packageName Required. Package name of the parent app. Must be equal to the package_name field on the + * Subscription resource. + * @param productId Required. The ID of the subscription to update. Must be equal to the product_id field on the + * Subscription resource. + * @param basePlanId Required. The unique base plan ID of the base plan to update prices on. + * @param content the {@link com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest} + * @return the request + */ + public MigratePrices migratePrices(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest content) throws java.io.IOException { + MigratePrices result = new MigratePrices(packageName, productId, basePlanId, content); + initialize(result); + return result; + } - /** Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' - to update offers from multiple base plans. - */ - public java.lang.String getBasePlanId() { - return basePlanId; - } + public class MigratePrices extends AndroidPublisherRequest{@link MigratePrices#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param packageName Required. Package name of the parent app. Must be equal to the package_name field on the + * Subscription resource. + * @param productId Required. The ID of the subscription to update. Must be equal to the product_id field on the + * Subscription resource. + * @param basePlanId Required. The unique base plan ID of the base plan to update prices on. + * @param content the {@link com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest} + * @since 1.13 + */ + protected MigratePrices(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.MigrateBasePlanPricesResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + } + + @Override + public MigratePrices set$Xgafv(java.lang.String $Xgafv) { + return (MigratePrices) super.set$Xgafv($Xgafv); + } + + @Override + public MigratePrices setAccessToken(java.lang.String accessToken) { + return (MigratePrices) super.setAccessToken(accessToken); + } + + @Override + public MigratePrices setAlt(java.lang.String alt) { + return (MigratePrices) super.setAlt(alt); + } + + @Override + public MigratePrices setCallback(java.lang.String callback) { + return (MigratePrices) super.setCallback(callback); + } + + @Override + public MigratePrices setFields(java.lang.String fields) { + return (MigratePrices) super.setFields(fields); + } + + @Override + public MigratePrices setKey(java.lang.String key) { + return (MigratePrices) super.setKey(key); + } + + @Override + public MigratePrices setOauthToken(java.lang.String oauthToken) { + return (MigratePrices) super.setOauthToken(oauthToken); + } + + @Override + public MigratePrices setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MigratePrices) super.setPrettyPrint(prettyPrint); + } + + @Override + public MigratePrices setQuotaUser(java.lang.String quotaUser) { + return (MigratePrices) super.setQuotaUser(quotaUser); + } + + @Override + public MigratePrices setUploadType(java.lang.String uploadType) { + return (MigratePrices) super.setUploadType(uploadType); + } + + @Override + public MigratePrices setUploadProtocol(java.lang.String uploadProtocol) { + return (MigratePrices) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Package name of the parent app. Must be equal to the package_name field on + * the Subscription resource. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. Package name of the parent app. Must be equal to the package_name field on the + Subscription resource. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. Package name of the parent app. Must be equal to the package_name field on + * the Subscription resource. + */ + public MigratePrices setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. The ID of the subscription to update. Must be equal to the product_id field + * on the Subscription resource. + */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** Required. The ID of the subscription to update. Must be equal to the product_id field on the + Subscription resource. + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The ID of the subscription to update. Must be equal to the product_id field + * on the Subscription resource. + */ + public MigratePrices setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + /** Required. The unique base plan ID of the base plan to update prices on. */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; + + /** Required. The unique base plan ID of the base plan to update prices on. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } + + /** Required. The unique base plan ID of the base plan to update prices on. */ + public MigratePrices setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } + + @Override + public MigratePrices set(String parameterName, Object value) { + return (MigratePrices) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Offers collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Offers.List request = androidpublisher.offers().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Offers offers() {
+ return new Offers();
+ }
+
+ /**
+ * The "offers" collection of methods.
+ */
+ public class Offers {
+
+ /**
+ * Activates a subscription offer. Once activated, subscription offers will be available to new
+ * subscribers.
+ *
+ * Create a request for the method "offers.activate".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation.
*
- * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the
- * package_name field on all the updated SubscriptionOffer resources.
- * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same
- * subscription. If this request spans multiple subscriptions, set this field to "-". Must be
- * set.
- * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-'
- * to update offers from multiple base plans.
- * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest}
+ * @param packageName Required. The parent app (package name) of the offer to activate.
+ * @param productId Required. The parent subscription (ID) of the offer to activate.
+ * @param basePlanId Required. The parent base plan (ID) of the offer to activate.
+ * @param offerId Required. The unique offer ID of the offer to activate.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest}
* @return the request
*/
- public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest content) throws java.io.IOException {
- BatchUpdateStates result = new BatchUpdateStates(packageName, productId, basePlanId, content);
+ public Activate activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest content) throws java.io.IOException {
+ Activate result = new Activate(packageName, productId, basePlanId, offerId, content);
initialize(result);
return result;
}
- public class BatchUpdateStates extends AndroidPublisherRequest{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab - * stractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link Activate#execute()} method to invoke the remote operation. + *{@link + * Activate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the - * package_name field on all the updated SubscriptionOffer resources. - * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same - * subscription. If this request spans multiple subscriptions, set this field to "-". Must be - * set. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' - * to update offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest} + * @param packageName Required. The parent app (package name) of the offer to activate. + * @param productId Required. The parent subscription (ID) of the offer to activate. + * @param basePlanId Required. The parent base plan (ID) of the offer to activate. + * @param offerId Required. The unique offer ID of the offer to activate. + * @param content the {@link com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest} * @since 1.13 */ - protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesResponse.class); + protected Activate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.ActivateSubscriptionOfferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); } @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); } @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); } @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); } @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); } @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); } @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); } @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); } @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); } @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + public Activate setUploadProtocol(java.lang.String uploadProtocol) { + return (Activate) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent app (package name) of the updated subscription offers. Must be - * equal to the package_name field on all the updated SubscriptionOffer resources. - */ + /** Required. The parent app (package name) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the updated subscription offers. Must be equal to the - package_name field on all the updated SubscriptionOffer resources. + /** Required. The parent app (package name) of the offer to activate. */ public java.lang.String getPackageName() { return packageName; } - /** - * Required. The parent app (package name) of the updated subscription offers. Must be - * equal to the package_name field on all the updated SubscriptionOffer resources. - */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the offer to activate. */ + public Activate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ + /** Required. The parent subscription (ID) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The product ID of the parent subscription, if all updated offers belong to the same - subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. + /** Required. The parent subscription (ID) of the offer to activate. */ public java.lang.String getProductId() { return productId; } - /** - * Required. The product ID of the parent subscription, if all updated offers belong to - * the same subscription. If this request spans multiple subscriptions, set this field - * to "-". Must be set. - */ - public BatchUpdateStates setProductId(java.lang.String productId) { + /** Required. The parent subscription (ID) of the offer to activate. */ + public Activate setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** - * Required. The parent base plan (ID) for which the offers should be updated. May be - * specified as '-' to update offers from multiple base plans. - */ + /** Required. The parent base plan (ID) of the offer to activate. */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' - to update offers from multiple base plans. + /** Required. The parent base plan (ID) of the offer to activate. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** - * Required. The parent base plan (ID) for which the offers should be updated. May be - * specified as '-' to update offers from multiple base plans. - */ - public BatchUpdateStates setBasePlanId(java.lang.String basePlanId) { + /** Required. The parent base plan (ID) of the offer to activate. */ + public Activate setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } + /** Required. The unique offer ID of the offer to activate. */ + @com.google.api.client.util.Key + private java.lang.String offerId; + + /** Required. The unique offer ID of the offer to activate. + */ + public java.lang.String getOfferId() { + return offerId; + } + + /** Required. The unique offer ID of the offer to activate. */ + public Activate setOfferId(java.lang.String offerId) { + this.offerId = offerId; + return this; + } + @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); } } /** - * Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The - * offer state will be DRAFT until it is activated. + * Reads one or more subscription offers. * - * Create a request for the method "offers.create". + * Create a request for the method "offers.batchGet". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation. * - * @param packageName Required. The parent app (package name) for which the offer should be created. Must be equal to the - * package_name field on the Subscription resource. - * @param productId Required. The parent subscription (ID) for which the offer should be created. Must be equal to the - * product_id field on the SubscriptionOffer resource. - * @param basePlanId Required. The parent base plan (ID) for which the offer should be created. Must be equal to the - * base_plan_id field on the SubscriptionOffer resource. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. + * Must be equal to the package_name field on all the requests. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + * read offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest} * @return the request */ - public Create create(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) throws java.io.IOException { - Create result = new Create(packageName, productId, basePlanId, content); + public BatchGet batchGet(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest content) throws java.io.IOException { + BatchGet result = new BatchGet(packageName, productId, basePlanId, content); initialize(result); return result; } - public class Create extends AndroidPublisherRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor. * - * @param packageName Required. The parent app (package name) for which the offer should be created. Must be equal to the - * package_name field on the Subscription resource. - * @param productId Required. The parent subscription (ID) for which the offer should be created. Must be equal to the - * product_id field on the SubscriptionOffer resource. - * @param basePlanId Required. The parent base plan (ID) for which the offer should be created. Must be equal to the - * base_plan_id field on the SubscriptionOffer resource. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @param packageName Required. The parent app (package name) for which the subscriptions should be created or updated. + * Must be equal to the package_name field on all the requests. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + * read offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest} * @since 1.13 */ - protected Create(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + protected BatchGet(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchGetSubscriptionOffersResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent app (package name) for which the offer should be created. Must - * be equal to the package_name field on the Subscription resource. + * Required. The parent app (package name) for which the subscriptions should be created + * or updated. Must be equal to the package_name field on all the requests. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) for which the offer should be created. Must be equal to the - package_name field on the Subscription resource. + /** Required. The parent app (package name) for which the subscriptions should be created or updated. + Must be equal to the package_name field on all the requests. */ public java.lang.String getPackageName() { return packageName; } /** - * Required. The parent app (package name) for which the offer should be created. Must - * be equal to the package_name field on the Subscription resource. + * Required. The parent app (package name) for which the subscriptions should be created + * or updated. Must be equal to the package_name field on all the requests. */ - public Create setPackageName(java.lang.String packageName) { + public BatchGet setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } /** - * Required. The parent subscription (ID) for which the offer should be created. Must be - * equal to the product_id field on the SubscriptionOffer resource. + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) for which the offer should be created. Must be equal to the - product_id field on the SubscriptionOffer resource. + /** Required. The product ID of the parent subscription, if all updated offers belong to the same + subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. */ public java.lang.String getProductId() { return productId; } /** - * Required. The parent subscription (ID) for which the offer should be created. Must be - * equal to the product_id field on the SubscriptionOffer resource. + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. */ - public Create setProductId(java.lang.String productId) { + public BatchGet setProductId(java.lang.String productId) { this.productId = productId; return this; } /** - * Required. The parent base plan (ID) for which the offer should be created. Must be - * equal to the base_plan_id field on the SubscriptionOffer resource. + * Required. The parent base plan (ID) for which the offers should be read. May be + * specified as '-' to read offers from multiple base plans. */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) for which the offer should be created. Must be equal to the - base_plan_id field on the SubscriptionOffer resource. + /** Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + read offers from multiple base plans. */ public java.lang.String getBasePlanId() { return basePlanId; } /** - * Required. The parent base plan (ID) for which the offer should be created. Must be - * equal to the base_plan_id field on the SubscriptionOffer resource. + * Required. The parent base plan (ID) for which the offers should be read. May be + * specified as '-' to read offers from multiple base plans. */ - public Create setBasePlanId(java.lang.String basePlanId) { + public BatchGet setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } - /** - * Required. The ID to use for the offer. For the requirements on this format, see the - * documentation of the offer_id field on the SubscriptionOffer resource. - */ - @com.google.api.client.util.Key - private java.lang.String offerId; - - /** Required. The ID to use for the offer. For the requirements on this format, see the documentation - of the offer_id field on the SubscriptionOffer resource. - */ - public java.lang.String getOfferId() { - return offerId; - } - - /** - * Required. The ID to use for the offer. For the requirements on this format, see the - * documentation of the offer_id field on the SubscriptionOffer resource. - */ - public Create setOfferId(java.lang.String offerId) { - this.offerId = offerId; - return this; - } - - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource - * have to be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). - * Each time the supported locations substantially change, the version will be - * incremented. Using this field will ensure that creating and updating the resource - * with an older region's version and set of regional prices and currencies will succeed - * even though a new version is available. - */ - @com.google.api.client.util.Key("regionsVersion.version") - private java.lang.String regionsVersionVersion; - - /** Required. A string representing the version of available regions being used for the specified - resource. Regional prices and latest supported version for the resource have to be specified - according to the information published in [this - article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the - supported locations substantially change, the version will be incremented. Using this field will - ensure that creating and updating the resource with an older region's version and set of regional - prices and currencies will succeed even though a new version is available. - */ - public java.lang.String getRegionsVersionVersion() { - return regionsVersionVersion; - } - - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource - * have to be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). - * Each time the supported locations substantially change, the version will be - * incremented. Using this field will ensure that creating and updating the resource - * with an older region's version and set of regional prices and currencies will succeed - * even though a new version is available. - */ - public Create setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + @Override + public BatchGet set(String parameterName, Object value) { + return (BatchGet) super.set(parameterName, value); } } /** - * Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their - * subscription, but the offer will become unavailable to new subscribers. + * Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to + * PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. * - * Create a request for the method "offers.deactivate". + * Create a request for the method "offers.batchUpdate". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation. * - * @param packageName Required. The parent app (package name) of the offer to deactivate. - * @param productId Required. The parent subscription (ID) of the offer to deactivate. - * @param basePlanId Required. The parent base plan (ID) of the offer to deactivate. - * @param offerId Required. The unique offer ID of the offer to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest} + * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the + * package_name field on all the updated SubscriptionOffer resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + * to update offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest} * @return the request */ - public Deactivate deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest content) throws java.io.IOException { - Deactivate result = new Deactivate(packageName, productId, basePlanId, offerId, content); + public BatchUpdate batchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest content) throws java.io.IOException { + BatchUpdate result = new BatchUpdate(packageName, productId, basePlanId, content); initialize(result); return result; } - public class Deactivate extends AndroidPublisherRequest{@link - * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the offer to deactivate. - * @param productId Required. The parent subscription (ID) of the offer to deactivate. - * @param basePlanId Required. The parent base plan (ID) of the offer to deactivate. - * @param offerId Required. The unique offer ID of the offer to deactivate. - * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest} + * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the + * package_name field on all the updated SubscriptionOffer resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + * to update offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest} * @since 1.13 */ - protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + protected BatchUpdate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOffersResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public Deactivate set$Xgafv(java.lang.String $Xgafv) { - return (Deactivate) super.set$Xgafv($Xgafv); + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public Deactivate setAccessToken(java.lang.String accessToken) { - return (Deactivate) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public Deactivate setAlt(java.lang.String alt) { - return (Deactivate) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public Deactivate setCallback(java.lang.String callback) { - return (Deactivate) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public Deactivate setFields(java.lang.String fields) { - return (Deactivate) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public Deactivate setKey(java.lang.String key) { - return (Deactivate) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public Deactivate setOauthToken(java.lang.String oauthToken) { - return (Deactivate) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deactivate) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public Deactivate setQuotaUser(java.lang.String quotaUser) { - return (Deactivate) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public Deactivate setUploadType(java.lang.String uploadType) { - return (Deactivate) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deactivate) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to deactivate. */ + /** + * Required. The parent app (package name) of the updated subscription offers. Must be + * equal to the package_name field on all the updated SubscriptionOffer resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the offer to deactivate. + /** Required. The parent app (package name) of the updated subscription offers. Must be equal to the + package_name field on all the updated SubscriptionOffer resources. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the offer to deactivate. */ - public Deactivate setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) of the updated subscription offers. Must be + * equal to the package_name field on all the updated SubscriptionOffer resources. + */ + public BatchUpdate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent subscription (ID) of the offer to deactivate. */ + /** + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. + */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) of the offer to deactivate. + /** Required. The product ID of the parent subscription, if all updated offers belong to the same + subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. */ public java.lang.String getProductId() { return productId; } - /** Required. The parent subscription (ID) of the offer to deactivate. */ - public Deactivate setProductId(java.lang.String productId) { + /** + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. + */ + public BatchUpdate setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The parent base plan (ID) of the offer to deactivate. */ + /** + * Required. The parent base plan (ID) for which the offers should be updated. May be + * specified as '-' to update offers from multiple base plans. + */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) of the offer to deactivate. + /** Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + to update offers from multiple base plans. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** Required. The parent base plan (ID) of the offer to deactivate. */ - public Deactivate setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } - - /** Required. The unique offer ID of the offer to deactivate. */ - @com.google.api.client.util.Key - private java.lang.String offerId; - - /** Required. The unique offer ID of the offer to deactivate. + /** + * Required. The parent base plan (ID) for which the offers should be updated. May be + * specified as '-' to update offers from multiple base plans. */ - public java.lang.String getOfferId() { - return offerId; - } - - /** Required. The unique offer ID of the offer to deactivate. */ - public Deactivate setOfferId(java.lang.String offerId) { - this.offerId = offerId; + public BatchUpdate setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; return this; } @Override - public Deactivate set(String parameterName, Object value) { - return (Deactivate) super.set(parameterName, value); + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); } } /** - * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. + * Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests + * to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. * - * Create a request for the method "offers.delete". + * Create a request for the method "offers.batchUpdateStates". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote + * operation. * - * @param packageName Required. The parent app (package name) of the offer to delete. - * @param productId Required. The parent subscription (ID) of the offer to delete. - * @param basePlanId Required. The parent base plan (ID) of the offer to delete. - * @param offerId Required. The unique offer ID of the offer to delete. + * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the + * package_name field on all the updated SubscriptionOffer resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + * to update offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest} * @return the request */ - public Delete delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) throws java.io.IOException { - Delete result = new Delete(packageName, productId, basePlanId, offerId); + public BatchUpdateStates batchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest content) throws java.io.IOException { + BatchUpdateStates result = new BatchUpdateStates(packageName, productId, basePlanId, content); initialize(result); return result; } - public class Delete extends AndroidPublisherRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The parent app (package name) of the offer to delete. - * @param productId Required. The parent subscription (ID) of the offer to delete. - * @param basePlanId Required. The parent base plan (ID) of the offer to delete. - * @param offerId Required. The unique offer ID of the offer to delete. + * optional parameters, call the {@link BatchUpdateStates#execute()} method to invoke the remote + * operation.{@link BatchUpdateStates#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the updated subscription offers. Must be equal to the + * package_name field on all the updated SubscriptionOffer resources. + * @param productId Required. The product ID of the parent subscription, if all updated offers belong to the same + * subscription. If this request spans multiple subscriptions, set this field to "-". Must be + * set. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + * to update offers from multiple base plans. + * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest} * @since 1.13 */ - protected Delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); + protected BatchUpdateStates(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdateStates) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public BatchUpdateStates setAccessToken(java.lang.String accessToken) { + return (BatchUpdateStates) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public BatchUpdateStates setFields(java.lang.String fields) { + return (BatchUpdateStates) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public BatchUpdateStates setKey(java.lang.String key) { + return (BatchUpdateStates) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { + return (BatchUpdateStates) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdateStates) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public BatchUpdateStates setUploadType(java.lang.String uploadType) { + return (BatchUpdateStates) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to delete. */ + /** + * Required. The parent app (package name) of the updated subscription offers. Must be + * equal to the package_name field on all the updated SubscriptionOffer resources. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the offer to delete. + /** Required. The parent app (package name) of the updated subscription offers. Must be equal to the + package_name field on all the updated SubscriptionOffer resources. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the offer to delete. */ - public Delete setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) of the updated subscription offers. Must be + * equal to the package_name field on all the updated SubscriptionOffer resources. + */ + public BatchUpdateStates setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent subscription (ID) of the offer to delete. */ + /** + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. + */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) of the offer to delete. + /** Required. The product ID of the parent subscription, if all updated offers belong to the same + subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. */ public java.lang.String getProductId() { return productId; } - /** Required. The parent subscription (ID) of the offer to delete. */ - public Delete setProductId(java.lang.String productId) { + /** + * Required. The product ID of the parent subscription, if all updated offers belong to + * the same subscription. If this request spans multiple subscriptions, set this field + * to "-". Must be set. + */ + public BatchUpdateStates setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The parent base plan (ID) of the offer to delete. */ + /** + * Required. The parent base plan (ID) for which the offers should be updated. May be + * specified as '-' to update offers from multiple base plans. + */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) of the offer to delete. + /** Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' + to update offers from multiple base plans. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** Required. The parent base plan (ID) of the offer to delete. */ - public Delete setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } - - /** Required. The unique offer ID of the offer to delete. */ - @com.google.api.client.util.Key - private java.lang.String offerId; - - /** Required. The unique offer ID of the offer to delete. + /** + * Required. The parent base plan (ID) for which the offers should be updated. May be + * specified as '-' to update offers from multiple base plans. */ - public java.lang.String getOfferId() { - return offerId; - } - - /** Required. The unique offer ID of the offer to delete. */ - public Delete setOfferId(java.lang.String offerId) { - this.offerId = offerId; + public BatchUpdateStates setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public BatchUpdateStates set(String parameterName, Object value) { + return (BatchUpdateStates) super.set(parameterName, value); } } /** - * Reads a single offer + * Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The + * offer state will be DRAFT until it is activated. * - * Create a request for the method "offers.get". + * Create a request for the method "offers.create". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param packageName Required. The parent app (package name) of the offer to get. - * @param productId Required. The parent subscription (ID) of the offer to get. - * @param basePlanId Required. The parent base plan (ID) of the offer to get. - * @param offerId Required. The unique offer ID of the offer to get. + * @param packageName Required. The parent app (package name) for which the offer should be created. Must be equal to the + * package_name field on the Subscription resource. + * @param productId Required. The parent subscription (ID) for which the offer should be created. Must be equal to the + * product_id field on the SubscriptionOffer resource. + * @param basePlanId Required. The parent base plan (ID) for which the offer should be created. Must be equal to the + * base_plan_id field on the SubscriptionOffer resource. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} * @return the request */ - public Get get(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) throws java.io.IOException { - Get result = new Get(packageName, productId, basePlanId, offerId); + public Create create(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) throws java.io.IOException { + Create result = new Create(packageName, productId, basePlanId, content); initialize(result); return result; } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) of the offer to get. - * @param productId Required. The parent subscription (ID) of the offer to get. - * @param basePlanId Required. The parent base plan (ID) of the offer to get. - * @param offerId Required. The unique offer ID of the offer to get. + * @param packageName Required. The parent app (package name) for which the offer should be created. Must be equal to the + * package_name field on the Subscription resource. + * @param productId Required. The parent subscription (ID) for which the offer should be created. Must be equal to the + * product_id field on the SubscriptionOffer resource. + * @param basePlanId Required. The parent base plan (ID) for which the offer should be created. Must be equal to the + * base_plan_id field on the SubscriptionOffer resource. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + protected Create(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); - this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId 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); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to get. */ + /** + * Required. The parent app (package name) for which the offer should be created. Must + * be equal to the package_name field on the Subscription resource. + */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) of the offer to get. + /** Required. The parent app (package name) for which the offer should be created. Must be equal to the + package_name field on the Subscription resource. */ public java.lang.String getPackageName() { return packageName; } - /** Required. The parent app (package name) of the offer to get. */ - public Get setPackageName(java.lang.String packageName) { + /** + * Required. The parent app (package name) for which the offer should be created. Must + * be equal to the package_name field on the Subscription resource. + */ + public Create setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. The parent subscription (ID) of the offer to get. */ + /** + * Required. The parent subscription (ID) for which the offer should be created. Must be + * equal to the product_id field on the SubscriptionOffer resource. + */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) of the offer to get. + /** Required. The parent subscription (ID) for which the offer should be created. Must be equal to the + product_id field on the SubscriptionOffer resource. */ public java.lang.String getProductId() { return productId; } - /** Required. The parent subscription (ID) of the offer to get. */ - public Get setProductId(java.lang.String productId) { + /** + * Required. The parent subscription (ID) for which the offer should be created. Must be + * equal to the product_id field on the SubscriptionOffer resource. + */ + public Create setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** Required. The parent base plan (ID) of the offer to get. */ + /** + * Required. The parent base plan (ID) for which the offer should be created. Must be + * equal to the base_plan_id field on the SubscriptionOffer resource. + */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) of the offer to get. + /** Required. The parent base plan (ID) for which the offer should be created. Must be equal to the + base_plan_id field on the SubscriptionOffer resource. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** Required. The parent base plan (ID) of the offer to get. */ - public Get setBasePlanId(java.lang.String basePlanId) { + /** + * Required. The parent base plan (ID) for which the offer should be created. Must be + * equal to the base_plan_id field on the SubscriptionOffer resource. + */ + public Create setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } - /** Required. The unique offer ID of the offer to get. */ + /** + * Required. The ID to use for the offer. For the requirements on this format, see the + * documentation of the offer_id field on the SubscriptionOffer resource. + */ @com.google.api.client.util.Key private java.lang.String offerId; - /** Required. The unique offer ID of the offer to get. + /** Required. The ID to use for the offer. For the requirements on this format, see the documentation + of the offer_id field on the SubscriptionOffer resource. */ public java.lang.String getOfferId() { return offerId; } - /** Required. The unique offer ID of the offer to get. */ - public Get setOfferId(java.lang.String offerId) { + /** + * Required. The ID to use for the offer. For the requirements on this format, see the + * documentation of the offer_id field on the SubscriptionOffer resource. + */ + public Create setOfferId(java.lang.String offerId) { this.offerId = offerId; return this; } + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource + * have to be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). + * Each time the supported locations substantially change, the version will be + * incremented. Using this field will ensure that creating and updating the resource + * with an older region's version and set of regional prices and currencies will succeed + * even though a new version is available. + */ + @com.google.api.client.util.Key("regionsVersion.version") + private java.lang.String regionsVersionVersion; + + /** Required. A string representing the version of available regions being used for the specified + resource. Regional prices and latest supported version for the resource have to be specified + according to the information published in [this + article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the + supported locations substantially change, the version will be incremented. Using this field will + ensure that creating and updating the resource with an older region's version and set of regional + prices and currencies will succeed even though a new version is available. + */ + public java.lang.String getRegionsVersionVersion() { + return regionsVersionVersion; + } + + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource + * have to be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). + * Each time the supported locations substantially change, the version will be + * incremented. Using this field will ensure that creating and updating the resource + * with an older region's version and set of regional prices and currencies will succeed + * even though a new version is available. + */ + public Create setRegionsVersionVersion(java.lang.String regionsVersionVersion) { + this.regionsVersionVersion = regionsVersionVersion; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Lists all offers under a given subscription. + * Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their + * subscription, but the offer will become unavailable to new subscribers. * - * Create a request for the method "offers.list". + * Create a request for the method "offers.deactivate". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote operation. * - * @param packageName Required. The parent app (package name) for which the subscriptions should be read. - * @param productId Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' - * to read all offers under an app. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - * read all offers under a subscription or an app. Must be specified as '-' if product_id is - * specified as '-'. + * @param packageName Required. The parent app (package name) of the offer to deactivate. + * @param productId Required. The parent subscription (ID) of the offer to deactivate. + * @param basePlanId Required. The parent base plan (ID) of the offer to deactivate. + * @param offerId Required. The unique offer ID of the offer to deactivate. + * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest} * @return the request */ - public List list(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) throws java.io.IOException { - List result = new List(packageName, productId, basePlanId); + public Deactivate deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest content) throws java.io.IOException { + Deactivate result = new Deactivate(packageName, productId, basePlanId, offerId, content); initialize(result); return result; } - public class List extends AndroidPublisherRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Deactivate#execute()} method to invoke the remote + * operation.
{@link + * Deactivate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. The parent app (package name) for which the subscriptions should be read. - * @param productId Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' - * to read all offers under an app. - * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - * read all offers under a subscription or an app. Must be specified as '-' if product_id is - * specified as '-'. + * @param packageName Required. The parent app (package name) of the offer to deactivate. + * @param productId Required. The parent subscription (ID) of the offer to deactivate. + * @param basePlanId Required. The parent base plan (ID) of the offer to deactivate. + * @param offerId Required. The unique offer ID of the offer to deactivate. + * @param content the {@link com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest} * @since 1.13 */ - protected List(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListSubscriptionOffersResponse.class); + protected Deactivate(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.DeactivateSubscriptionOfferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId 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); + public Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deactivate) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent app (package name) for which the subscriptions should be read. - */ + /** Required. The parent app (package name) of the offer to deactivate. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. The parent app (package name) for which the subscriptions should be read. + /** Required. The parent app (package name) of the offer to deactivate. */ public java.lang.String getPackageName() { return packageName; } - /** - * Required. The parent app (package name) for which the subscriptions should be read. - */ - public List setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the offer to deactivate. */ + public Deactivate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Required. The parent subscription (ID) for which the offers should be read. May be - * specified as '-' to read all offers under an app. - */ + /** Required. The parent subscription (ID) of the offer to deactivate. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' - to read all offers under an app. + /** Required. The parent subscription (ID) of the offer to deactivate. */ public java.lang.String getProductId() { return productId; } - /** - * Required. The parent subscription (ID) for which the offers should be read. May be - * specified as '-' to read all offers under an app. - */ - public List setProductId(java.lang.String productId) { + /** Required. The parent subscription (ID) of the offer to deactivate. */ + public Deactivate setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** - * Required. The parent base plan (ID) for which the offers should be read. May be - * specified as '-' to read all offers under a subscription or an app. Must be specified - * as '-' if product_id is specified as '-'. - */ + /** Required. The parent base plan (ID) of the offer to deactivate. */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to - read all offers under a subscription or an app. Must be specified as '-' if product_id is specified - as '-'. + /** Required. The parent base plan (ID) of the offer to deactivate. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** - * Required. The parent base plan (ID) for which the offers should be read. May be - * specified as '-' to read all offers under a subscription or an app. Must be specified - * as '-' if product_id is specified as '-'. - */ - public List setBasePlanId(java.lang.String basePlanId) { + /** Required. The parent base plan (ID) of the offer to deactivate. */ + public Deactivate setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } - /** - * The maximum number of subscriptions to return. The service may return fewer than this - * value. If unspecified, at most 50 subscriptions will be returned. The maximum value - * is 1000; values above 1000 will be coerced to 1000. - */ + /** Required. The unique offer ID of the offer to deactivate. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String offerId; - /** The maximum number of subscriptions to return. The service may return fewer than this value. If - unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above - 1000 will be coerced to 1000. + /** Required. The unique offer ID of the offer to deactivate. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getOfferId() { + return offerId; } - /** - * The maximum number of subscriptions to return. The service may return fewer than this - * value. If unspecified, at most 50 subscriptions will be returned. The maximum value - * is 1000; values above 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * A page token, received from a previous `ListSubscriptionsOffers` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListSubscriptionOffers` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to retrieve the - subsequent page. When paginating, all other parameters provided to `ListSubscriptionOffers` must - match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * A page token, received from a previous `ListSubscriptionsOffers` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListSubscriptionOffers` must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Required. The unique offer ID of the offer to deactivate. */ + public Deactivate setOfferId(java.lang.String offerId) { + this.offerId = offerId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); } } /** - * Updates an existing subscription offer. + * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. * - * Create a request for the method "offers.patch". + * Create a request for the method "offers.delete". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param packageName Required. Immutable. The package name of the app the parent subscription belongs to. - * @param productId Required. Immutable. The ID of the parent subscription this offer belongs to. - * @param basePlanId Required. Immutable. The ID of the base plan to which this offer is an extension. - * @param offerId Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @param packageName Required. The parent app (package name) of the offer to delete. + * @param productId Required. The parent subscription (ID) of the offer to delete. + * @param basePlanId Required. The parent base plan (ID) of the offer to delete. + * @param offerId Required. The unique offer ID of the offer to delete. * @return the request */ - public Patch patch(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) throws java.io.IOException { - Patch result = new Patch(packageName, productId, basePlanId, offerId, content); + public Delete delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) throws java.io.IOException { + Delete result = new Delete(packageName, productId, basePlanId, offerId); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName Required. Immutable. The package name of the app the parent subscription belongs to. - * @param productId Required. Immutable. The ID of the parent subscription this offer belongs to. - * @param basePlanId Required. Immutable. The ID of the base plan to which this offer is an extension. - * @param offerId Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @param packageName Required. The parent app (package name) of the offer to delete. + * @param productId Required. The parent subscription (ID) of the offer to delete. + * @param basePlanId Required. The parent base plan (ID) of the offer to delete. + * @param offerId Required. The unique offer ID of the offer to delete. * @since 1.13 */ - protected Patch(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) { - super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + protected Delete(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); @@ -18598,871 +18977,978 @@ protected Patch(java.lang.String packageName, java.lang.String productId, java.l } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. Immutable. The package name of the app the parent subscription belongs to. - */ + /** Required. The parent app (package name) of the offer to delete. */ @com.google.api.client.util.Key private java.lang.String packageName; - /** Required. Immutable. The package name of the app the parent subscription belongs to. + /** Required. The parent app (package name) of the offer to delete. */ public java.lang.String getPackageName() { return packageName; } - /** - * Required. Immutable. The package name of the app the parent subscription belongs to. - */ - public Patch setPackageName(java.lang.String packageName) { + /** Required. The parent app (package name) of the offer to delete. */ + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Required. Immutable. The ID of the parent subscription this offer belongs to. */ + /** Required. The parent subscription (ID) of the offer to delete. */ @com.google.api.client.util.Key private java.lang.String productId; - /** Required. Immutable. The ID of the parent subscription this offer belongs to. + /** Required. The parent subscription (ID) of the offer to delete. */ public java.lang.String getProductId() { return productId; } - /** Required. Immutable. The ID of the parent subscription this offer belongs to. */ - public Patch setProductId(java.lang.String productId) { + /** Required. The parent subscription (ID) of the offer to delete. */ + public Delete setProductId(java.lang.String productId) { this.productId = productId; return this; } - /** - * Required. Immutable. The ID of the base plan to which this offer is an extension. - */ + /** Required. The parent base plan (ID) of the offer to delete. */ @com.google.api.client.util.Key private java.lang.String basePlanId; - /** Required. Immutable. The ID of the base plan to which this offer is an extension. + /** Required. The parent base plan (ID) of the offer to delete. */ public java.lang.String getBasePlanId() { return basePlanId; } - /** - * Required. Immutable. The ID of the base plan to which this offer is an extension. - */ - public Patch setBasePlanId(java.lang.String basePlanId) { + /** Required. The parent base plan (ID) of the offer to delete. */ + public Delete setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } - /** - * Required. Immutable. Unique ID of this subscription offer. Must be unique within the - * base plan. - */ + /** Required. The unique offer ID of the offer to delete. */ @com.google.api.client.util.Key private java.lang.String offerId; - /** Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. + /** Required. The unique offer ID of the offer to delete. */ public java.lang.String getOfferId() { return offerId; } - /** - * Required. Immutable. Unique ID of this subscription offer. Must be unique within the - * base plan. - */ - public Patch setOfferId(java.lang.String offerId) { + /** Required. The unique offer ID of the offer to delete. */ + public Delete setOfferId(java.lang.String offerId) { this.offerId = offerId; return this; } - /** - * Optional. If set to true, and the subscription offer with the given package_name, - * product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a - * new offer is created, update_mask is ignored. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; - - /** Optional. If set to true, and the subscription offer with the given package_name, product_id, - base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, - update_mask is ignored. - */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } + } + /** + * Reads a single offer + * + * Create a request for the method "offers.get". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) of the offer to get. + * @param productId Required. The parent subscription (ID) of the offer to get. + * @param basePlanId Required. The parent base plan (ID) of the offer to get. + * @param offerId Required. The unique offer ID of the offer to get. + * @return the request + */ + public Get get(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) throws java.io.IOException { + Get result = new Get(packageName, productId, basePlanId, offerId); + initialize(result); + return result; + } + + public class Get extends AndroidPublisherRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) of the offer to get. + * @param productId Required. The parent subscription (ID) of the offer to get. + * @param basePlanId Required. The parent base plan (ID) of the offer to get. + * @param offerId Required. The unique offer ID of the offer to get. + * @since 1.13 */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; + protected Get(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); } - /** - * Optional. The latency tolerance for the propagation of this product update. Defaults - * to latency-sensitive. - */ - @com.google.api.client.util.Key - private java.lang.String latencyTolerance; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. - */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * Optional. The latency tolerance for the propagation of this product update. Defaults - * to latency-sensitive. - */ - public Patch setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; - return this; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource - * have to be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). - * Each time the supported locations substantially change, the version will be - * incremented. Using this field will ensure that creating and updating the resource - * with an older region's version and set of regional prices and currencies will succeed - * even though a new version is available. - */ - @com.google.api.client.util.Key("regionsVersion.version") - private java.lang.String regionsVersionVersion; - - /** Required. A string representing the version of available regions being used for the specified - resource. Regional prices and latest supported version for the resource have to be specified - according to the information published in [this - article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the - supported locations substantially change, the version will be incremented. Using this field will - ensure that creating and updating the resource with an older region's version and set of regional - prices and currencies will succeed even though a new version is available. - */ - public java.lang.String getRegionsVersionVersion() { - return regionsVersionVersion; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } - /** - * Required. A string representing the version of available regions being used for the - * specified resource. Regional prices and latest supported version for the resource - * have to be specified according to the information published in [this - * article](https://support.google.com/googleplay/android-developer/answer/10532353). - * Each time the supported locations substantially change, the version will be - * incremented. Using this field will ensure that creating and updating the resource - * with an older region's version and set of regional prices and currencies will succeed - * even though a new version is available. - */ - public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; - return this; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - } - - } - } - } - } - /** - * An accessor for creating requests from the Orders collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Orders.List request = androidpublisher.orders().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Orders orders() {
- return new Orders();
- }
+ @Override
+ public Get setOauthToken(java.lang.String oauthToken) {
+ return (Get) super.setOauthToken(oauthToken);
+ }
- /**
- * The "orders" collection of methods.
- */
- public class Orders {
+ @Override
+ public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
+ return (Get) super.setPrettyPrint(prettyPrint);
+ }
- /**
- * Get order details for a list of orders.
- *
- * Create a request for the method "orders.batchget".
- *
- * This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Batchget#execute()} method to invoke the remote operation.
- *
- * @param packageName Required. The package name of the application for which this subscription or in-app item was
- * purchased (for example, 'com.some.thing').
- * @return the request
- */
- public Batchget batchget(java.lang.String packageName) throws java.io.IOException {
- Batchget result = new Batchget(packageName);
- initialize(result);
- return result;
- }
+ @Override
+ public Get setQuotaUser(java.lang.String quotaUser) {
+ return (Get) super.setQuotaUser(quotaUser);
+ }
- public class Batchget extends AndroidPublisherRequest{@link - * Batchget#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The package name of the application for which this subscription or in-app item was - * purchased (for example, 'com.some.thing'). - * @since 1.13 - */ - protected Batchget(java.lang.String packageName) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetOrdersResponse.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - } + /** Required. The parent app (package name) of the offer to get. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Required. The parent app (package name) of the offer to get. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Required. The parent app (package name) of the offer to get. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Batchget set$Xgafv(java.lang.String $Xgafv) { - return (Batchget) super.set$Xgafv($Xgafv); - } + /** Required. The parent subscription (ID) of the offer to get. */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public Batchget setAccessToken(java.lang.String accessToken) { - return (Batchget) super.setAccessToken(accessToken); - } + /** Required. The parent subscription (ID) of the offer to get. + */ + public java.lang.String getProductId() { + return productId; + } - @Override - public Batchget setAlt(java.lang.String alt) { - return (Batchget) super.setAlt(alt); - } + /** Required. The parent subscription (ID) of the offer to get. */ + public Get setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public Batchget setCallback(java.lang.String callback) { - return (Batchget) super.setCallback(callback); - } + /** Required. The parent base plan (ID) of the offer to get. */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; - @Override - public Batchget setFields(java.lang.String fields) { - return (Batchget) super.setFields(fields); - } + /** Required. The parent base plan (ID) of the offer to get. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } - @Override - public Batchget setKey(java.lang.String key) { - return (Batchget) super.setKey(key); - } + /** Required. The parent base plan (ID) of the offer to get. */ + public Get setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } - @Override - public Batchget setOauthToken(java.lang.String oauthToken) { - return (Batchget) super.setOauthToken(oauthToken); - } + /** Required. The unique offer ID of the offer to get. */ + @com.google.api.client.util.Key + private java.lang.String offerId; - @Override - public Batchget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Batchget) super.setPrettyPrint(prettyPrint); - } + /** Required. The unique offer ID of the offer to get. + */ + public java.lang.String getOfferId() { + return offerId; + } - @Override - public Batchget setQuotaUser(java.lang.String quotaUser) { - return (Batchget) super.setQuotaUser(quotaUser); - } + /** Required. The unique offer ID of the offer to get. */ + public Get setOfferId(java.lang.String offerId) { + this.offerId = offerId; + return this; + } - @Override - public Batchget setUploadType(java.lang.String uploadType) { - return (Batchget) super.setUploadType(uploadType); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all offers under a given subscription. + * + * Create a request for the method "offers.list". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @param productId Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' + * to read all offers under an app. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + * read all offers under a subscription or an app. Must be specified as '-' if product_id is + * specified as '-'. + * @return the request + */ + public List list(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) throws java.io.IOException { + List result = new List(packageName, productId, basePlanId); + initialize(result); + return result; + } - @Override - public Batchget setUploadProtocol(java.lang.String uploadProtocol) { - return (Batchget) super.setUploadProtocol(uploadProtocol); - } + public class List extends AndroidPublisherRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The parent app (package name) for which the subscriptions should be read. + * @param productId Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' + * to read all offers under an app. + * @param basePlanId Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + * read all offers under a subscription or an app. Must be specified as '-' if product_id is + * specified as '-'. + * @since 1.13 + */ + protected List(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListSubscriptionOffersResponse.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + } - /** - * Required. The package name of the application for which this subscription or in-app item - * was purchased (for example, 'com.some.thing'). - */ - public Batchget setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * Required. The list of order IDs to retrieve order details for. There must be between 1 and - * 1000 (inclusive) order IDs per request. If any order ID is not found or does not match the - * provided package, the entire request will fail with an error. The order IDs must be - * distinct. - */ - @com.google.api.client.util.Key - private java.util.List- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName Required. The package name of the application for which this subscription or in-app item was - * purchased (for example, 'com.some.thing'). - * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased. - * @since 1.13 - */ - protected Get(java.lang.String packageName, java.lang.String orderId) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Order.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** + * Required. The parent app (package name) for which the subscriptions should be read. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** Required. The parent app (package name) for which the subscriptions should be read. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * Required. The parent app (package name) for which the subscriptions should be read. + */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Required. The parent subscription (ID) for which the offers should be read. May be + * specified as '-' to read all offers under an app. + */ + @com.google.api.client.util.Key + private java.lang.String productId; - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' + to read all offers under an app. + */ + public java.lang.String getProductId() { + return productId; + } + + /** + * Required. The parent subscription (ID) for which the offers should be read. May be + * specified as '-' to read all offers under an app. + */ + public List setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } + + /** + * Required. The parent base plan (ID) for which the offers should be read. May be + * specified as '-' to read all offers under a subscription or an app. Must be specified + * as '-' if product_id is specified as '-'. + */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; + + /** Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to + read all offers under a subscription or an app. Must be specified as '-' if product_id is specified + as '-'. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } + + /** + * Required. The parent base plan (ID) for which the offers should be read. May be + * specified as '-' to read all offers under a subscription or an app. Must be specified + * as '-' if product_id is specified as '-'. + */ + public List setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } + + /** + * The maximum number of subscriptions to return. The service may return fewer than this + * value. If unspecified, at most 50 subscriptions will be returned. The maximum value + * is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of subscriptions to return. The service may return fewer than this value. If + unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above + 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of subscriptions to return. The service may return fewer than this + * value. If unspecified, at most 50 subscriptions will be returned. The maximum value + * is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous `ListSubscriptionsOffers` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListSubscriptionOffers` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListSubscriptionOffers` must + match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous `ListSubscriptionsOffers` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListSubscriptionOffers` must match the call that provided the page token. + */ + 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 an existing subscription offer. + * + * Create a request for the method "offers.patch". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param packageName Required. Immutable. The package name of the app the parent subscription belongs to. + * @param productId Required. Immutable. The ID of the parent subscription this offer belongs to. + * @param basePlanId Required. Immutable. The ID of the base plan to which this offer is an extension. + * @param offerId Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @return the request + */ + public Patch patch(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) throws java.io.IOException { + Patch result = new Patch(packageName, productId, basePlanId, offerId, content); + initialize(result); + return result; + } + + public class Patch extends AndroidPublisherRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. Immutable. The package name of the app the parent subscription belongs to. + * @param productId Required. Immutable. The ID of the parent subscription this offer belongs to. + * @param basePlanId Required. Immutable. The ID of the base plan to which this offer is an extension. + * @param offerId Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionOffer} + * @since 1.13 + */ + protected Patch(java.lang.String packageName, java.lang.String productId, java.lang.String basePlanId, java.lang.String offerId, com.google.api.services.androidpublisher.model.SubscriptionOffer content) { + super(AndroidPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionOffer.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); + this.basePlanId = com.google.api.client.util.Preconditions.checkNotNull(basePlanId, "Required parameter basePlanId must be specified."); + this.offerId = com.google.api.client.util.Preconditions.checkNotNull(offerId, "Required parameter offerId must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The package name of the application for which this subscription or in-app item - * was purchased (for example, 'com.some.thing'). - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Required. The package name of the application for which this subscription or in-app item was - purchased (for example, 'com.some.thing'). - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * Required. The package name of the application for which this subscription or in-app item - * was purchased (for example, 'com.some.thing'). - */ - public Get setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The order ID provided to the user when the subscription or in-app order was - * purchased. - */ - @com.google.api.client.util.Key - private java.lang.String orderId; + /** + * Required. Immutable. The package name of the app the parent subscription belongs to. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The order ID provided to the user when the subscription or in-app order was purchased. - */ - public java.lang.String getOrderId() { - return orderId; - } + /** Required. Immutable. The package name of the app the parent subscription belongs to. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * Required. The order ID provided to the user when the subscription or in-app order was - * purchased. - */ - public Get setOrderId(java.lang.String orderId) { - this.orderId = orderId; - return this; - } + /** + * Required. Immutable. The package name of the app the parent subscription belongs to. + */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be - * refunded. - * - * Create a request for the method "orders.refund". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Refund#execute()} method to invoke the remote operation. - * - * @param packageName The package name of the application for which this subscription or in-app item was purchased (for - * example, 'com.some.thing'). - * @param orderId The order ID provided to the user when the subscription or in-app order was purchased. - * @return the request - */ - public Refund refund(java.lang.String packageName, java.lang.String orderId) throws java.io.IOException { - Refund result = new Refund(packageName, orderId); - initialize(result); - return result; - } + /** Required. Immutable. The ID of the parent subscription this offer belongs to. */ + @com.google.api.client.util.Key + private java.lang.String productId; - public class Refund extends AndroidPublisherRequest{@link - * Refund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName The package name of the application for which this subscription or in-app item was purchased (for - * example, 'com.some.thing'). - * @param orderId The order ID provided to the user when the subscription or in-app order was purchased. - * @since 1.13 - */ - protected Refund(java.lang.String packageName, java.lang.String orderId) { - super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); - } + /** + * Required. Immutable. The ID of the base plan to which this offer is an extension. + */ + @com.google.api.client.util.Key + private java.lang.String basePlanId; - @Override - public Refund set$Xgafv(java.lang.String $Xgafv) { - return (Refund) super.set$Xgafv($Xgafv); - } + /** Required. Immutable. The ID of the base plan to which this offer is an extension. + */ + public java.lang.String getBasePlanId() { + return basePlanId; + } - @Override - public Refund setAccessToken(java.lang.String accessToken) { - return (Refund) super.setAccessToken(accessToken); - } + /** + * Required. Immutable. The ID of the base plan to which this offer is an extension. + */ + public Patch setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } - @Override - public Refund setAlt(java.lang.String alt) { - return (Refund) super.setAlt(alt); - } + /** + * Required. Immutable. Unique ID of this subscription offer. Must be unique within the + * base plan. + */ + @com.google.api.client.util.Key + private java.lang.String offerId; - @Override - public Refund setCallback(java.lang.String callback) { - return (Refund) super.setCallback(callback); - } + /** Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. + */ + public java.lang.String getOfferId() { + return offerId; + } - @Override - public Refund setFields(java.lang.String fields) { - return (Refund) super.setFields(fields); - } + /** + * Required. Immutable. Unique ID of this subscription offer. Must be unique within the + * base plan. + */ + public Patch setOfferId(java.lang.String offerId) { + this.offerId = offerId; + return this; + } - @Override - public Refund setKey(java.lang.String key) { - return (Refund) super.setKey(key); - } + /** + * Optional. If set to true, and the subscription offer with the given package_name, + * product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a + * new offer is created, update_mask is ignored. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; - @Override - public Refund setOauthToken(java.lang.String oauthToken) { - return (Refund) super.setOauthToken(oauthToken); - } + /** Optional. If set to true, and the subscription offer with the given package_name, product_id, + base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, + update_mask is ignored. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } - @Override - public Refund setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Refund) super.setPrettyPrint(prettyPrint); - } + /** + * Optional. If set to true, and the subscription offer with the given package_name, + * product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a + * new offer is created, update_mask is ignored. + */ + public Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } - @Override - public Refund setQuotaUser(java.lang.String quotaUser) { - return (Refund) super.setQuotaUser(quotaUser); - } + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults + * to latency-sensitive. + */ + @com.google.api.client.util.Key + private java.lang.String latencyTolerance; - @Override - public Refund setUploadType(java.lang.String uploadType) { - return (Refund) super.setUploadType(uploadType); - } + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - @Override - public Refund setUploadProtocol(java.lang.String uploadProtocol) { - return (Refund) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The latency tolerance for the propagation of this product update. Defaults + * to latency-sensitive. + */ + public Patch setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } - /** - * The package name of the application for which this subscription or in-app item was - * purchased (for example, 'com.some.thing'). - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource + * have to be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). + * Each time the supported locations substantially change, the version will be + * incremented. Using this field will ensure that creating and updating the resource + * with an older region's version and set of regional prices and currencies will succeed + * even though a new version is available. + */ + @com.google.api.client.util.Key("regionsVersion.version") + private java.lang.String regionsVersionVersion; - /** The package name of the application for which this subscription or in-app item was purchased (for - example, 'com.some.thing'). - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Required. A string representing the version of available regions being used for the specified + resource. Regional prices and latest supported version for the resource have to be specified + according to the information published in [this + article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the + supported locations substantially change, the version will be incremented. Using this field will + ensure that creating and updating the resource with an older region's version and set of regional + prices and currencies will succeed even though a new version is available. + */ + public java.lang.String getRegionsVersionVersion() { + return regionsVersionVersion; + } - /** - * The package name of the application for which this subscription or in-app item was - * purchased (for example, 'com.some.thing'). - */ - public Refund setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Required. A string representing the version of available regions being used for the + * specified resource. Regional prices and latest supported version for the resource + * have to be specified according to the information published in [this + * article](https://support.google.com/googleplay/android-developer/answer/10532353). + * Each time the supported locations substantially change, the version will be + * incremented. Using this field will ensure that creating and updating the resource + * with an older region's version and set of regional prices and currencies will succeed + * even though a new version is available. + */ + public Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { + this.regionsVersionVersion = regionsVersionVersion; + return this; + } - /** The order ID provided to the user when the subscription or in-app order was purchased. */ - @com.google.api.client.util.Key - private java.lang.String orderId; + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; - /** The order ID provided to the user when the subscription or in-app order was purchased. - */ - public java.lang.String getOrderId() { - return orderId; - } + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } - /** The order ID provided to the user when the subscription or in-app order was purchased. */ - public Refund setOrderId(java.lang.String orderId) { - this.orderId = orderId; - return this; - } + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - /** - * Whether to revoke the purchased item. If set to true, access to the subscription or in-app - * item will be terminated immediately. If the item is a recurring subscription, all future - * payments will also be terminated. Consumed in-app items need to be handled by developer's - * app. (optional). - */ - @com.google.api.client.util.Key - private java.lang.Boolean revoke; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } - /** Whether to revoke the purchased item. If set to true, access to the subscription or in-app item - will be terminated immediately. If the item is a recurring subscription, all future payments will - also be terminated. Consumed in-app items need to be handled by developer's app. (optional). - */ - public java.lang.Boolean getRevoke() { - return revoke; + } } + } + } - /** - * Whether to revoke the purchased item. If set to true, access to the subscription or in-app - * item will be terminated immediately. If the item is a recurring subscription, all future - * payments will also be terminated. Consumed in-app items need to be handled by developer's - * app. (optional). - */ - public Refund setRevoke(java.lang.Boolean revoke) { - this.revoke = revoke; - return this; - } + /** + * An accessor for creating requests from the Orders collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Orders.List request = androidpublisher.orders().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Orders orders() {
+ return new Orders();
+ }
+
+ /**
+ * The "orders" collection of methods.
+ */
+ public class Orders {
- @Override
- public Refund set(String parameterName, Object value) {
- return (Refund) super.set(parameterName, value);
- }
- }
/**
- * Provide refund preference and purchase usage for a chargeback request
+ * Get order details for a list of orders.
*
- * Create a request for the method "orders.reviewrefund".
+ * Create a request for the method "orders.batchget".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Reviewrefund#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link Batchget#execute()} method to invoke the remote operation.
*
* @param packageName Required. The package name of the application for which this subscription or in-app item was
* purchased (for example, 'com.some.thing').
- * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased.
- * @param content the {@link com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest}
* @return the request
*/
- public Reviewrefund reviewrefund(java.lang.String packageName, java.lang.String orderId, com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest content) throws java.io.IOException {
- Reviewrefund result = new Reviewrefund(packageName, orderId, content);
+ public Batchget batchget(java.lang.String packageName) throws java.io.IOException {
+ Batchget result = new Batchget(packageName);
initialize(result);
return result;
}
- public class Reviewrefund extends AndroidPublisherRequest{@link - * Reviewrefund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * optional parameters, call the {@link Batchget#execute()} method to invoke the remote operation. + *
{@link + * Batchget#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* * @param packageName Required. The package name of the application for which this subscription or in-app item was * purchased (for example, 'com.some.thing'). - * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased. - * @param content the {@link com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest} * @since 1.13 */ - protected Reviewrefund(java.lang.String packageName, java.lang.String orderId, com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + protected Batchget(java.lang.String packageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.BatchGetOrdersResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } @Override - public Reviewrefund set$Xgafv(java.lang.String $Xgafv) { - return (Reviewrefund) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Reviewrefund setAccessToken(java.lang.String accessToken) { - return (Reviewrefund) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Reviewrefund setAlt(java.lang.String alt) { - return (Reviewrefund) super.setAlt(alt); + public Batchget set$Xgafv(java.lang.String $Xgafv) { + return (Batchget) super.set$Xgafv($Xgafv); } @Override - public Reviewrefund setCallback(java.lang.String callback) { - return (Reviewrefund) super.setCallback(callback); + public Batchget setAccessToken(java.lang.String accessToken) { + return (Batchget) super.setAccessToken(accessToken); } @Override - public Reviewrefund setFields(java.lang.String fields) { - return (Reviewrefund) super.setFields(fields); + public Batchget setAlt(java.lang.String alt) { + return (Batchget) super.setAlt(alt); } @Override - public Reviewrefund setKey(java.lang.String key) { - return (Reviewrefund) super.setKey(key); + public Batchget setCallback(java.lang.String callback) { + return (Batchget) super.setCallback(callback); } @Override - public Reviewrefund setOauthToken(java.lang.String oauthToken) { - return (Reviewrefund) super.setOauthToken(oauthToken); + public Batchget setFields(java.lang.String fields) { + return (Batchget) super.setFields(fields); } @Override - public Reviewrefund setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Reviewrefund) super.setPrettyPrint(prettyPrint); + public Batchget setKey(java.lang.String key) { + return (Batchget) super.setKey(key); } @Override - public Reviewrefund setQuotaUser(java.lang.String quotaUser) { - return (Reviewrefund) super.setQuotaUser(quotaUser); + public Batchget setOauthToken(java.lang.String oauthToken) { + return (Batchget) super.setOauthToken(oauthToken); } @Override - public Reviewrefund setUploadType(java.lang.String uploadType) { - return (Reviewrefund) super.setUploadType(uploadType); + public Batchget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Batchget) super.setPrettyPrint(prettyPrint); } @Override - public Reviewrefund setUploadProtocol(java.lang.String uploadProtocol) { - return (Reviewrefund) super.setUploadProtocol(uploadProtocol); + public Batchget setQuotaUser(java.lang.String quotaUser) { + return (Batchget) super.setQuotaUser(quotaUser); + } + + @Override + public Batchget setUploadType(java.lang.String uploadType) { + return (Batchget) super.setUploadType(uploadType); + } + + @Override + public Batchget setUploadProtocol(java.lang.String uploadProtocol) { + return (Batchget) super.setUploadProtocol(uploadProtocol); } /** @@ -19483,702 +19969,675 @@ public java.lang.String getPackageName() { * Required. The package name of the application for which this subscription or in-app item * was purchased (for example, 'com.some.thing'). */ - public Reviewrefund setPackageName(java.lang.String packageName) { + public Batchget setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } /** - * Required. The order ID provided to the user when the subscription or in-app order was - * purchased. + * Required. The list of order IDs to retrieve order details for. There must be between 1 and + * 1000 (inclusive) order IDs per request. If any order ID is not found or does not match the + * provided package, the entire request will fail with an error. The order IDs must be + * distinct. */ @com.google.api.client.util.Key - private java.lang.String orderId; + private java.util.ListThe typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Purchases.List request = androidpublisher.purchases().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Purchases purchases() {
- return new Purchases();
- }
-
- /**
- * The "purchases" collection of methods.
- */
- public class Purchases {
-
/**
- * An accessor for creating requests from the Products collection.
+ * Get order details for a single order.
*
- * The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Products.List request = androidpublisher.products().list(parameters ...)}
- *
+ * Create a request for the method "orders.get".
*
- * @return the resource collection
+ * This request holds the parameters needed by the androidpublisher server. After setting any
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param packageName Required. The package name of the application for which this subscription or in-app item was
+ * purchased (for example, 'com.some.thing').
+ * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased.
+ * @return the request
*/
- public Products products() {
- return new Products();
+ public Get get(java.lang.String packageName, java.lang.String orderId) throws java.io.IOException {
+ Get result = new Get(packageName, orderId);
+ initialize(result);
+ return result;
}
- /**
- * The "products" collection of methods.
- */
- public class Products {
+ public class Get extends AndroidPublisherRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @param content the {@link com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest} - * @return the request + * @param packageName Required. The package name of the application for which this subscription or in-app item was + * purchased (for example, 'com.some.thing'). + * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased. + * @since 1.13 */ - public Acknowledge acknowledge(java.lang.String packageName, java.lang.String productId, java.lang.String token, com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest content) throws java.io.IOException { - Acknowledge result = new Acknowledge(packageName, productId, token, content); - initialize(result); - return result; + protected Get(java.lang.String packageName, java.lang.String orderId) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.Order.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); } - public class Acknowledge extends AndroidPublisherRequest{@link - * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @param content the {@link com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest} - * @since 1.13 - */ - protected Acknowledge(java.lang.String packageName, java.lang.String productId, java.lang.String token, com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token 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 package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - public Acknowledge setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - public Acknowledge setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The token provided to the user's device when the inapp product was purchased. */ - @com.google.api.client.util.Key - private java.lang.String token; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The token provided to the user's device when the inapp product was purchased. - */ - public java.lang.String getToken() { - return token; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The token provided to the user's device when the inapp product was purchased. */ - public Acknowledge setToken(java.lang.String token) { - this.token = token; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** - * Consumes a purchase for an inapp item. - * - * Create a request for the method "products.consume". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Consume#execute()} method to invoke the remote operation. - * - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @return the request - */ - public Consume consume(java.lang.String packageName, java.lang.String productId, java.lang.String token) throws java.io.IOException { - Consume result = new Consume(packageName, productId, token); - initialize(result); - return result; + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - public class Consume extends AndroidPublisherRequest{@link - * Consume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @since 1.13 - */ - protected Consume(java.lang.String packageName, java.lang.String productId, java.lang.String token) { - super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); - } + /** + * Required. The package name of the application for which this subscription or in-app item + * was purchased (for example, 'com.some.thing'). + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Consume set$Xgafv(java.lang.String $Xgafv) { - return (Consume) super.set$Xgafv($Xgafv); - } + /** Required. The package name of the application for which this subscription or in-app item was + purchased (for example, 'com.some.thing'). + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Consume setAccessToken(java.lang.String accessToken) { - return (Consume) super.setAccessToken(accessToken); - } + /** + * Required. The package name of the application for which this subscription or in-app item + * was purchased (for example, 'com.some.thing'). + */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Consume setAlt(java.lang.String alt) { - return (Consume) super.setAlt(alt); - } + /** + * Required. The order ID provided to the user when the subscription or in-app order was + * purchased. + */ + @com.google.api.client.util.Key + private java.lang.String orderId; - @Override - public Consume setCallback(java.lang.String callback) { - return (Consume) super.setCallback(callback); - } + /** Required. The order ID provided to the user when the subscription or in-app order was purchased. + */ + public java.lang.String getOrderId() { + return orderId; + } - @Override - public Consume setFields(java.lang.String fields) { - return (Consume) super.setFields(fields); - } + /** + * Required. The order ID provided to the user when the subscription or in-app order was + * purchased. + */ + public Get setOrderId(java.lang.String orderId) { + this.orderId = orderId; + return this; + } - @Override - public Consume setKey(java.lang.String key) { - return (Consume) super.setKey(key); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be + * refunded. + * + * Create a request for the method "orders.refund". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Refund#execute()} method to invoke the remote operation. + * + * @param packageName The package name of the application for which this subscription or in-app item was purchased (for + * example, 'com.some.thing'). + * @param orderId The order ID provided to the user when the subscription or in-app order was purchased. + * @return the request + */ + public Refund refund(java.lang.String packageName, java.lang.String orderId) throws java.io.IOException { + Refund result = new Refund(packageName, orderId); + initialize(result); + return result; + } - @Override - public Consume setOauthToken(java.lang.String oauthToken) { - return (Consume) super.setOauthToken(oauthToken); - } + public class Refund extends AndroidPublisherRequest{@link + * Refund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName The package name of the application for which this subscription or in-app item was purchased (for + * example, 'com.some.thing'). + * @param orderId The order ID provided to the user when the subscription or in-app order was purchased. + * @since 1.13 + */ + protected Refund(java.lang.String packageName, java.lang.String orderId) { + super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); + } - @Override - public Consume setUploadType(java.lang.String uploadType) { - return (Consume) super.setUploadType(uploadType); - } + @Override + public Refund set$Xgafv(java.lang.String $Xgafv) { + return (Refund) super.set$Xgafv($Xgafv); + } - @Override - public Consume setUploadProtocol(java.lang.String uploadProtocol) { - return (Consume) super.setUploadProtocol(uploadProtocol); - } + @Override + public Refund setAccessToken(java.lang.String accessToken) { + return (Refund) super.setAccessToken(accessToken); + } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Refund setAlt(java.lang.String alt) { + return (Refund) super.setAlt(alt); + } - /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Refund setCallback(java.lang.String callback) { + return (Refund) super.setCallback(callback); + } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - public Consume setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Refund setFields(java.lang.String fields) { + return (Refund) super.setFields(fields); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Refund setKey(java.lang.String key) { + return (Refund) super.setKey(key); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Refund setOauthToken(java.lang.String oauthToken) { + return (Refund) super.setOauthToken(oauthToken); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - public Consume setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + @Override + public Refund setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Refund) super.setPrettyPrint(prettyPrint); + } - /** The token provided to the user's device when the inapp product was purchased. */ - @com.google.api.client.util.Key - private java.lang.String token; + @Override + public Refund setQuotaUser(java.lang.String quotaUser) { + return (Refund) super.setQuotaUser(quotaUser); + } - /** The token provided to the user's device when the inapp product was purchased. - */ - public java.lang.String getToken() { - return token; - } + @Override + public Refund setUploadType(java.lang.String uploadType) { + return (Refund) super.setUploadType(uploadType); + } - /** The token provided to the user's device when the inapp product was purchased. */ - public Consume setToken(java.lang.String token) { - this.token = token; - return this; - } + @Override + public Refund setUploadProtocol(java.lang.String uploadProtocol) { + return (Refund) super.setUploadProtocol(uploadProtocol); + } - @Override - public Consume set(String parameterName, Object value) { - return (Consume) super.set(parameterName, value); - } + /** + * The package name of the application for which this subscription or in-app item was + * purchased (for example, 'com.some.thing'). + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** The package name of the application for which this subscription or in-app item was purchased (for + example, 'com.some.thing'). + */ + public java.lang.String getPackageName() { + return packageName; } + /** - * Checks the purchase and consumption status of an inapp item. - * - * Create a request for the method "products.get". - * - * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @return the request + * The package name of the application for which this subscription or in-app item was + * purchased (for example, 'com.some.thing'). */ - public Get get(java.lang.String packageName, java.lang.String productId, java.lang.String token) throws java.io.IOException { - Get result = new Get(packageName, productId, token); - initialize(result); - return result; + public Refund setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; } - public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param token The token provided to the user's device when the inapp product was purchased. - * @since 1.13 - */ - protected Get(java.lang.String packageName, java.lang.String productId, java.lang.String token) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchase.class); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); - this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); - } + /** The order ID provided to the user when the subscription or in-app order was purchased. */ + public Refund setOrderId(java.lang.String orderId) { + this.orderId = orderId; + return this; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Whether to revoke the purchased item. If set to true, access to the subscription or in-app + * item will be terminated immediately. If the item is a recurring subscription, all future + * payments will also be terminated. Consumed in-app items need to be handled by developer's + * app. (optional). + */ + @com.google.api.client.util.Key + private java.lang.Boolean revoke; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Whether to revoke the purchased item. If set to true, access to the subscription or in-app item + will be terminated immediately. If the item is a recurring subscription, all future payments will + also be terminated. Consumed in-app items need to be handled by developer's app. (optional). + */ + public java.lang.Boolean getRevoke() { + return revoke; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Whether to revoke the purchased item. If set to true, access to the subscription or in-app + * item will be terminated immediately. If the item is a recurring subscription, all future + * payments will also be terminated. Consumed in-app items need to be handled by developer's + * app. (optional). + */ + public Refund setRevoke(java.lang.Boolean revoke) { + this.revoke = revoke; + return this; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Refund set(String parameterName, Object value) { + return (Refund) super.set(parameterName, value); + } + } + /** + * Provide refund preference and purchase usage for a chargeback request + * + * Create a request for the method "orders.reviewrefund". + * + * This request holds the parameters needed by the androidpublisher server. After setting any + * optional parameters, call the {@link Reviewrefund#execute()} method to invoke the remote + * operation. + * + * @param packageName Required. The package name of the application for which this subscription or in-app item was + * purchased (for example, 'com.some.thing'). + * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest} + * @return the request + */ + public Reviewrefund reviewrefund(java.lang.String packageName, java.lang.String orderId, com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest content) throws java.io.IOException { + Reviewrefund result = new Reviewrefund(packageName, orderId, content); + initialize(result); + return result; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + public class Reviewrefund extends AndroidPublisherRequest{@link + * Reviewrefund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param packageName Required. The package name of the application for which this subscription or in-app item was + * purchased (for example, 'com.some.thing'). + * @param orderId Required. The order ID provided to the user when the subscription or in-app order was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest} + * @since 1.13 + */ + protected Reviewrefund(java.lang.String packageName, java.lang.String orderId, com.google.api.services.androidpublisher.model.OrdersReviewRefundRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.orderId = com.google.api.client.util.Preconditions.checkNotNull(orderId, "Required parameter orderId must be specified."); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Reviewrefund set$Xgafv(java.lang.String $Xgafv) { + return (Reviewrefund) super.set$Xgafv($Xgafv); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Reviewrefund setAccessToken(java.lang.String accessToken) { + return (Reviewrefund) super.setAccessToken(accessToken); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Reviewrefund setAlt(java.lang.String alt) { + return (Reviewrefund) super.setAlt(alt); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Reviewrefund setCallback(java.lang.String callback) { + return (Reviewrefund) super.setCallback(callback); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Reviewrefund setFields(java.lang.String fields) { + return (Reviewrefund) super.setFields(fields); + } + + @Override + public Reviewrefund setKey(java.lang.String key) { + return (Reviewrefund) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Reviewrefund setOauthToken(java.lang.String oauthToken) { + return (Reviewrefund) super.setOauthToken(oauthToken); + } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Reviewrefund setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Reviewrefund) super.setPrettyPrint(prettyPrint); + } - /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Reviewrefund setQuotaUser(java.lang.String quotaUser) { + return (Reviewrefund) super.setQuotaUser(quotaUser); + } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - public Get setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Reviewrefund setUploadType(java.lang.String uploadType) { + return (Reviewrefund) super.setUploadType(uploadType); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Reviewrefund setUploadProtocol(java.lang.String uploadProtocol) { + return (Reviewrefund) super.setUploadProtocol(uploadProtocol); + } - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). - */ - public java.lang.String getProductId() { - return productId; - } + /** + * Required. The package name of the application for which this subscription or in-app item + * was purchased (for example, 'com.some.thing'). + */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - public Get setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. The package name of the application for which this subscription or in-app item was + purchased (for example, 'com.some.thing'). + */ + public java.lang.String getPackageName() { + return packageName; + } - /** The token provided to the user's device when the inapp product was purchased. */ - @com.google.api.client.util.Key - private java.lang.String token; + /** + * Required. The package name of the application for which this subscription or in-app item + * was purchased (for example, 'com.some.thing'). + */ + public Reviewrefund setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** The token provided to the user's device when the inapp product was purchased. - */ - public java.lang.String getToken() { - return token; - } + /** + * Required. The order ID provided to the user when the subscription or in-app order was + * purchased. + */ + @com.google.api.client.util.Key + private java.lang.String orderId; - /** The token provided to the user's device when the inapp product was purchased. */ - public Get setToken(java.lang.String token) { - this.token = token; - return this; - } + /** Required. The order ID provided to the user when the subscription or in-app order was purchased. + */ + public java.lang.String getOrderId() { + return orderId; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** + * Required. The order ID provided to the user when the subscription or in-app order was + * purchased. + */ + public Reviewrefund setOrderId(java.lang.String orderId) { + this.orderId = orderId; + return this; } + @Override + public Reviewrefund set(String parameterName, Object value) { + return (Reviewrefund) super.set(parameterName, value); + } } + + } + + /** + * An accessor for creating requests from the Purchases collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Purchases.List request = androidpublisher.purchases().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Purchases purchases() {
+ return new Purchases();
+ }
+
+ /**
+ * The "purchases" collection of methods.
+ */
+ public class Purchases {
+
/**
- * An accessor for creating requests from the Productsv2 collection.
+ * An accessor for creating requests from the Products collection.
*
* The typical use is:
*
* {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Productsv2.List request = androidpublisher.productsv2().list(parameters ...)}
+ * {@code AndroidPublisher.Products.List request = androidpublisher.products().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Productsv2 productsv2() {
- return new Productsv2();
+ public Products products() {
+ return new Products();
}
/**
- * The "productsv2" collection of methods.
+ * The "products" collection of methods.
*/
- public class Productsv2 {
+ public class Products {
/**
- * Checks the purchase and consumption status of an inapp item.
+ * Acknowledges a purchase of an inapp item.
*
- * Create a request for the method "productsv2.getproductpurchasev2".
+ * Create a request for the method "products.acknowledge".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the remote
+ * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote
* operation.
*
* @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
+ * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1').
* @param token The token provided to the user's device when the inapp product was purchased.
+ * @param content the {@link com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest}
* @return the request
*/
- public Getproductpurchasev2 getproductpurchasev2(java.lang.String packageName, java.lang.String token) throws java.io.IOException {
- Getproductpurchasev2 result = new Getproductpurchasev2(packageName, token);
+ public Acknowledge acknowledge(java.lang.String packageName, java.lang.String productId, java.lang.String token, com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest content) throws java.io.IOException {
+ Acknowledge result = new Acknowledge(packageName, productId, token, content);
initialize(result);
return result;
}
- public class Getproductpurchasev2 extends AndroidPublisherRequest{@link Getproductpurchasev2#initialize(com.google.api.client.googleapis.s - * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
+ * 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 packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). * @param token The token provided to the user's device when the inapp product was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest} * @since 1.13 */ - protected Getproductpurchasev2(java.lang.String packageName, java.lang.String token) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchaseV2.class); + protected Acknowledge(java.lang.String packageName, java.lang.String productId, java.lang.String token, com.google.api.services.androidpublisher.model.ProductPurchasesAcknowledgeRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token 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 Getproductpurchasev2 set$Xgafv(java.lang.String $Xgafv) { - return (Getproductpurchasev2) super.set$Xgafv($Xgafv); + public Acknowledge set$Xgafv(java.lang.String $Xgafv) { + return (Acknowledge) super.set$Xgafv($Xgafv); } @Override - public Getproductpurchasev2 setAccessToken(java.lang.String accessToken) { - return (Getproductpurchasev2) super.setAccessToken(accessToken); + public Acknowledge setAccessToken(java.lang.String accessToken) { + return (Acknowledge) super.setAccessToken(accessToken); } @Override - public Getproductpurchasev2 setAlt(java.lang.String alt) { - return (Getproductpurchasev2) super.setAlt(alt); + public Acknowledge setAlt(java.lang.String alt) { + return (Acknowledge) super.setAlt(alt); } @Override - public Getproductpurchasev2 setCallback(java.lang.String callback) { - return (Getproductpurchasev2) super.setCallback(callback); + public Acknowledge setCallback(java.lang.String callback) { + return (Acknowledge) super.setCallback(callback); } @Override - public Getproductpurchasev2 setFields(java.lang.String fields) { - return (Getproductpurchasev2) super.setFields(fields); + public Acknowledge setFields(java.lang.String fields) { + return (Acknowledge) super.setFields(fields); } @Override - public Getproductpurchasev2 setKey(java.lang.String key) { - return (Getproductpurchasev2) super.setKey(key); + public Acknowledge setKey(java.lang.String key) { + return (Acknowledge) super.setKey(key); } @Override - public Getproductpurchasev2 setOauthToken(java.lang.String oauthToken) { - return (Getproductpurchasev2) super.setOauthToken(oauthToken); + public Acknowledge setOauthToken(java.lang.String oauthToken) { + return (Acknowledge) super.setOauthToken(oauthToken); } @Override - public Getproductpurchasev2 setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Getproductpurchasev2) super.setPrettyPrint(prettyPrint); + public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Acknowledge) super.setPrettyPrint(prettyPrint); } @Override - public Getproductpurchasev2 setQuotaUser(java.lang.String quotaUser) { - return (Getproductpurchasev2) super.setQuotaUser(quotaUser); + public Acknowledge setQuotaUser(java.lang.String quotaUser) { + return (Acknowledge) super.setQuotaUser(quotaUser); } @Override - public Getproductpurchasev2 setUploadType(java.lang.String uploadType) { - return (Getproductpurchasev2) super.setUploadType(uploadType); + public Acknowledge setUploadType(java.lang.String uploadType) { + return (Acknowledge) super.setUploadType(uploadType); } @Override - public Getproductpurchasev2 setUploadProtocol(java.lang.String uploadProtocol) { - return (Getproductpurchasev2) super.setUploadProtocol(uploadProtocol); + public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { + return (Acknowledge) super.setUploadProtocol(uploadProtocol); } /** @@ -20194,12 +20653,28 @@ public java.lang.String getPackageName() { return packageName; } - /** - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - */ - public Getproductpurchasev2 setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). + */ + public Acknowledge setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). + */ + public java.lang.String getProductId() { + return productId; + } + + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ + public Acknowledge setProductId(java.lang.String productId) { + this.productId = productId; return this; } @@ -20214,668 +20689,647 @@ public java.lang.String getToken() { } /** The token provided to the user's device when the inapp product was purchased. */ - public Getproductpurchasev2 setToken(java.lang.String token) { + public Acknowledge setToken(java.lang.String token) { this.token = token; return this; } @Override - public Getproductpurchasev2 set(String parameterName, Object value) { - return (Getproductpurchasev2) super.set(parameterName, value); + public Acknowledge set(String parameterName, Object value) { + return (Acknowledge) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Subscriptions collection. - * - *The typical use is:
- *
- * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
- * {@code AndroidPublisher.Subscriptions.List request = androidpublisher.subscriptions().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Subscriptions subscriptions() {
- return new Subscriptions();
- }
-
- /**
- * The "subscriptions" collection of methods.
- */
- public class Subscriptions {
-
/**
- * Acknowledges a subscription purchase.
+ * Consumes a purchase for an inapp item.
*
- * Create a request for the method "subscriptions.acknowledge".
+ * Create a request for the method "products.consume".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link Consume#execute()} method to invoke the remote operation.
*
- * @param packageName The package name of the application for which this subscription was purchased (for example,
- * 'com.some.thing').
- * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
- * add-ons. The purchased subscription ID (for example, 'monthly001').
- * @param token The token provided to the user's device when the subscription was purchased.
- * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest}
+ * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
+ * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1').
+ * @param token The token provided to the user's device when the inapp product was purchased.
* @return the request
*/
- public Acknowledge acknowledge(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest content) throws java.io.IOException {
- Acknowledge result = new Acknowledge(packageName, subscriptionId, token, content);
+ public Consume consume(java.lang.String packageName, java.lang.String productId, java.lang.String token) throws java.io.IOException {
+ Consume result = new Consume(packageName, productId, token);
initialize(result);
return result;
}
- public class Acknowledge extends AndroidPublisherRequest{@link - * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Consume#execute()} method to invoke the remote operation. + *{@link + * Consume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param packageName The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with - * add-ons. The purchased subscription ID (for example, 'monthly001'). - * @param token The token provided to the user's device when the subscription was purchased. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest} + * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). + * @param token The token provided to the user's device when the inapp product was purchased. * @since 1.13 */ - protected Acknowledge(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); + protected Consume(java.lang.String packageName, java.lang.String productId, java.lang.String token) { + super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); } @Override - public Acknowledge set$Xgafv(java.lang.String $Xgafv) { - return (Acknowledge) super.set$Xgafv($Xgafv); + public Consume set$Xgafv(java.lang.String $Xgafv) { + return (Consume) super.set$Xgafv($Xgafv); } @Override - public Acknowledge setAccessToken(java.lang.String accessToken) { - return (Acknowledge) super.setAccessToken(accessToken); + public Consume setAccessToken(java.lang.String accessToken) { + return (Consume) super.setAccessToken(accessToken); } @Override - public Acknowledge setAlt(java.lang.String alt) { - return (Acknowledge) super.setAlt(alt); + public Consume setAlt(java.lang.String alt) { + return (Consume) super.setAlt(alt); } @Override - public Acknowledge setCallback(java.lang.String callback) { - return (Acknowledge) super.setCallback(callback); + public Consume setCallback(java.lang.String callback) { + return (Consume) super.setCallback(callback); } @Override - public Acknowledge setFields(java.lang.String fields) { - return (Acknowledge) super.setFields(fields); + public Consume setFields(java.lang.String fields) { + return (Consume) super.setFields(fields); } @Override - public Acknowledge setKey(java.lang.String key) { - return (Acknowledge) super.setKey(key); + public Consume setKey(java.lang.String key) { + return (Consume) super.setKey(key); } @Override - public Acknowledge setOauthToken(java.lang.String oauthToken) { - return (Acknowledge) super.setOauthToken(oauthToken); + public Consume setOauthToken(java.lang.String oauthToken) { + return (Consume) super.setOauthToken(oauthToken); } @Override - public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Acknowledge) super.setPrettyPrint(prettyPrint); + public Consume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Consume) super.setPrettyPrint(prettyPrint); } @Override - public Acknowledge setQuotaUser(java.lang.String quotaUser) { - return (Acknowledge) super.setQuotaUser(quotaUser); + public Consume setQuotaUser(java.lang.String quotaUser) { + return (Consume) super.setQuotaUser(quotaUser); } @Override - public Acknowledge setUploadType(java.lang.String uploadType) { - return (Acknowledge) super.setUploadType(uploadType); + public Consume setUploadType(java.lang.String uploadType) { + return (Consume) super.setUploadType(uploadType); } @Override - public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { - return (Acknowledge) super.setUploadProtocol(uploadProtocol); + public Consume setUploadProtocol(java.lang.String uploadProtocol) { + return (Consume) super.setUploadProtocol(uploadProtocol); } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ @com.google.api.client.util.Key private java.lang.String packageName; - /** The package name of the application for which this subscription was purchased (for example, - 'com.some.thing'). + /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). */ public java.lang.String getPackageName() { return packageName; } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ - public Acknowledge setPackageName(java.lang.String packageName) { + public Consume setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Note: Since May 21, 2025, subscription_id is not required, and not recommended for - * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). - */ + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ @com.google.api.client.util.Key - private java.lang.String subscriptionId; + private java.lang.String productId; - /** Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription - with add-ons. The purchased subscription ID (for example, 'monthly001'). + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - public java.lang.String getSubscriptionId() { - return subscriptionId; + public java.lang.String getProductId() { + return productId; } - /** - * Note: Since May 21, 2025, subscription_id is not required, and not recommended for - * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). - */ - public Acknowledge setSubscriptionId(java.lang.String subscriptionId) { - this.subscriptionId = subscriptionId; + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ + public Consume setProductId(java.lang.String productId) { + this.productId = productId; return this; } - /** The token provided to the user's device when the subscription was purchased. */ + /** The token provided to the user's device when the inapp product was purchased. */ @com.google.api.client.util.Key private java.lang.String token; - /** The token provided to the user's device when the subscription was purchased. + /** The token provided to the user's device when the inapp product was purchased. */ public java.lang.String getToken() { return token; } - /** The token provided to the user's device when the subscription was purchased. */ - public Acknowledge setToken(java.lang.String token) { + /** The token provided to the user's device when the inapp product was purchased. */ + public Consume setToken(java.lang.String token) { this.token = token; return this; } @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); + public Consume set(String parameterName, Object value) { + return (Consume) super.set(parameterName, value); } } /** - * Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase. - * The subscription remains valid until its expiration time. Newer version is available at - * purchases.subscriptionsv2.cancel for better client library support. + * Checks the purchase and consumption status of an inapp item. * - * Create a request for the method "subscriptions.cancel". + * Create a request for the method "products.get". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param packageName The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with - * add-ons. The purchased subscription ID (for example, 'monthly001'). - * @param token The token provided to the user's device when the subscription was purchased. + * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). + * @param token The token provided to the user's device when the inapp product was purchased. * @return the request */ - public Cancel cancel(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) throws java.io.IOException { - Cancel result = new Cancel(packageName, subscriptionId, token); + public Get get(java.lang.String packageName, java.lang.String productId, java.lang.String token) throws java.io.IOException { + Get result = new Get(packageName, productId, token); initialize(result); return result; } - public class Cancel extends AndroidPublisherRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * 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 packageName The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with - * add-ons. The purchased subscription ID (for example, 'monthly001'). - * @param token The token provided to the user's device when the subscription was purchased. + * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * @param productId The inapp product SKU (for example, 'com.some.thing.inapp1'). + * @param token The token provided to the user's device when the inapp product was purchased. * @since 1.13 */ - protected Cancel(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) { - super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); + protected Get(java.lang.String packageName, java.lang.String productId, java.lang.String token) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchase.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); + this.productId = com.google.api.client.util.Preconditions.checkNotNull(productId, "Required parameter productId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + 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 Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ @com.google.api.client.util.Key private java.lang.String packageName; - /** The package name of the application for which this subscription was purchased (for example, - 'com.some.thing'). + /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). */ public java.lang.String getPackageName() { return packageName; } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ - public Cancel setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** - * Note: Since May 21, 2025, subscription_id is not required, and not recommended for - * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). - */ + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ @com.google.api.client.util.Key - private java.lang.String subscriptionId; + private java.lang.String productId; - /** Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription - with add-ons. The purchased subscription ID (for example, 'monthly001'). + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ - public java.lang.String getSubscriptionId() { - return subscriptionId; + public java.lang.String getProductId() { + return productId; } - /** - * Note: Since May 21, 2025, subscription_id is not required, and not recommended for - * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). - */ - public Cancel setSubscriptionId(java.lang.String subscriptionId) { - this.subscriptionId = subscriptionId; + /** The inapp product SKU (for example, 'com.some.thing.inapp1'). */ + public Get setProductId(java.lang.String productId) { + this.productId = productId; return this; } - /** The token provided to the user's device when the subscription was purchased. */ + /** The token provided to the user's device when the inapp product was purchased. */ @com.google.api.client.util.Key private java.lang.String token; - /** The token provided to the user's device when the subscription was purchased. + /** The token provided to the user's device when the inapp product was purchased. */ public java.lang.String getToken() { return token; } - /** The token provided to the user's device when the subscription was purchased. */ - public Cancel setToken(java.lang.String token) { + /** The token provided to the user's device when the inapp product was purchased. */ + public Get setToken(java.lang.String token) { this.token = token; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Productsv2 collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Productsv2.List request = androidpublisher.productsv2().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Productsv2 productsv2() {
+ return new Productsv2();
+ }
+
+ /**
+ * The "productsv2" collection of methods.
+ */
+ public class Productsv2 {
+
/**
- * Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase
- * until a specified future expiration time.
+ * Checks the purchase and consumption status of an inapp item.
*
- * Create a request for the method "subscriptions.defer".
+ * Create a request for the method "productsv2.getproductpurchasev2".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Defer#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the remote
+ * operation.
*
- * @param packageName The package name of the application for which this subscription was purchased (for example,
- * 'com.some.thing').
- * @param subscriptionId The purchased subscription ID (for example, 'monthly001').
- * @param token The token provided to the user's device when the subscription was purchased.
- * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest}
+ * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
+ * @param token The token provided to the user's device when the inapp product was purchased.
* @return the request
*/
- public Defer defer(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest content) throws java.io.IOException {
- Defer result = new Defer(packageName, subscriptionId, token, content);
+ public Getproductpurchasev2 getproductpurchasev2(java.lang.String packageName, java.lang.String token) throws java.io.IOException {
+ Getproductpurchasev2 result = new Getproductpurchasev2(packageName, token);
initialize(result);
return result;
}
- public class Defer extends AndroidPublisherRequest{@link - * Defer#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Getproductpurchasev2#execute()} method to invoke the + * remote operation.{@link Getproductpurchasev2#initialize(com.google.api.client.googleapis.s + * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param packageName The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param subscriptionId The purchased subscription ID (for example, 'monthly001'). - * @param token The token provided to the user's device when the subscription was purchased. - * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest} + * @param packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * @param token The token provided to the user's device when the inapp product was purchased. * @since 1.13 */ - protected Defer(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest content) { - super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferResponse.class); + protected Getproductpurchasev2(java.lang.String packageName, java.lang.String token) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ProductPurchaseV2.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); - this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); } @Override - public Defer set$Xgafv(java.lang.String $Xgafv) { - return (Defer) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Defer setAccessToken(java.lang.String accessToken) { - return (Defer) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Defer setAlt(java.lang.String alt) { - return (Defer) super.setAlt(alt); + public Getproductpurchasev2 set$Xgafv(java.lang.String $Xgafv) { + return (Getproductpurchasev2) super.set$Xgafv($Xgafv); } @Override - public Defer setCallback(java.lang.String callback) { - return (Defer) super.setCallback(callback); + public Getproductpurchasev2 setAccessToken(java.lang.String accessToken) { + return (Getproductpurchasev2) super.setAccessToken(accessToken); } @Override - public Defer setFields(java.lang.String fields) { - return (Defer) super.setFields(fields); + public Getproductpurchasev2 setAlt(java.lang.String alt) { + return (Getproductpurchasev2) super.setAlt(alt); } @Override - public Defer setKey(java.lang.String key) { - return (Defer) super.setKey(key); + public Getproductpurchasev2 setCallback(java.lang.String callback) { + return (Getproductpurchasev2) super.setCallback(callback); } @Override - public Defer setOauthToken(java.lang.String oauthToken) { - return (Defer) super.setOauthToken(oauthToken); + public Getproductpurchasev2 setFields(java.lang.String fields) { + return (Getproductpurchasev2) super.setFields(fields); } @Override - public Defer setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Defer) super.setPrettyPrint(prettyPrint); + public Getproductpurchasev2 setKey(java.lang.String key) { + return (Getproductpurchasev2) super.setKey(key); } @Override - public Defer setQuotaUser(java.lang.String quotaUser) { - return (Defer) super.setQuotaUser(quotaUser); + public Getproductpurchasev2 setOauthToken(java.lang.String oauthToken) { + return (Getproductpurchasev2) super.setOauthToken(oauthToken); } @Override - public Defer setUploadType(java.lang.String uploadType) { - return (Defer) super.setUploadType(uploadType); + public Getproductpurchasev2 setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Getproductpurchasev2) super.setPrettyPrint(prettyPrint); } @Override - public Defer setUploadProtocol(java.lang.String uploadProtocol) { - return (Defer) super.setUploadProtocol(uploadProtocol); + public Getproductpurchasev2 setQuotaUser(java.lang.String quotaUser) { + return (Getproductpurchasev2) super.setQuotaUser(quotaUser); + } + + @Override + public Getproductpurchasev2 setUploadType(java.lang.String uploadType) { + return (Getproductpurchasev2) super.setUploadType(uploadType); + } + + @Override + public Getproductpurchasev2 setUploadProtocol(java.lang.String uploadProtocol) { + return (Getproductpurchasev2) super.setUploadProtocol(uploadProtocol); } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ @com.google.api.client.util.Key private java.lang.String packageName; - /** The package name of the application for which this subscription was purchased (for example, - 'com.some.thing'). + /** The package name of the application the inapp product was sold in (for example, 'com.some.thing'). */ public java.lang.String getPackageName() { return packageName; } /** - * The package name of the application for which this subscription was purchased (for - * example, 'com.some.thing'). + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). */ - public Defer setPackageName(java.lang.String packageName) { + public Getproductpurchasev2 setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** The purchased subscription ID (for example, 'monthly001'). */ + /** The token provided to the user's device when the inapp product was purchased. */ @com.google.api.client.util.Key - private java.lang.String subscriptionId; + private java.lang.String token; - /** The purchased subscription ID (for example, 'monthly001'). + /** The token provided to the user's device when the inapp product was purchased. */ - public java.lang.String getSubscriptionId() { - return subscriptionId; + public java.lang.String getToken() { + return token; } - /** The purchased subscription ID (for example, 'monthly001'). */ - public Defer setSubscriptionId(java.lang.String subscriptionId) { - this.subscriptionId = subscriptionId; + /** The token provided to the user's device when the inapp product was purchased. */ + public Getproductpurchasev2 setToken(java.lang.String token) { + this.token = token; return this; } - /** The token provided to the user's device when the subscription was purchased. */ - @com.google.api.client.util.Key - private java.lang.String token; - - /** The token provided to the user's device when the subscription was purchased. - */ - public java.lang.String getToken() { - return token; + @Override + public Getproductpurchasev2 set(String parameterName, Object value) { + return (Getproductpurchasev2) super.set(parameterName, value); } + } + + } + /** + * An accessor for creating requests from the Subscriptions collection. + * + *The typical use is:
+ *
+ * {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+ * {@code AndroidPublisher.Subscriptions.List request = androidpublisher.subscriptions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Subscriptions subscriptions() {
+ return new Subscriptions();
+ }
- /** The token provided to the user's device when the subscription was purchased. */
- public Defer setToken(java.lang.String token) {
- this.token = token;
- return this;
- }
+ /**
+ * The "subscriptions" collection of methods.
+ */
+ public class Subscriptions {
- @Override
- public Defer set(String parameterName, Object value) {
- return (Defer) super.set(parameterName, value);
- }
- }
/**
- * Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription
- * purchase is valid and returns its expiry time.
+ * Acknowledges a subscription purchase.
*
- * Create a request for the method "subscriptions.get".
+ * Create a request for the method "subscriptions.acknowledge".
*
* This request holds the parameters needed by the androidpublisher server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote
+ * operation.
*
* @param packageName The package name of the application for which this subscription was purchased (for example,
* 'com.some.thing').
- * @param subscriptionId The purchased subscription ID (for example, 'monthly001').
+ * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
+ * add-ons. The purchased subscription ID (for example, 'monthly001').
* @param token The token provided to the user's device when the subscription was purchased.
+ * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest}
* @return the request
*/
- public Get get(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) throws java.io.IOException {
- Get result = new Get(packageName, subscriptionId, token);
+ public Acknowledge acknowledge(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest content) throws java.io.IOException {
+ Acknowledge result = new Acknowledge(packageName, subscriptionId, token, content);
initialize(result);
return result;
}
- public class Get extends AndroidPublisherRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 packageName The package name of the application for which this subscription was purchased (for example, * 'com.some.thing'). - * @param subscriptionId The purchased subscription ID (for example, 'monthly001'). + * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with + * add-ons. The purchased subscription ID (for example, 'monthly001'). * @param token The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest} * @since 1.13 */ - protected Get(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) { - super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.SubscriptionPurchase.class); + protected Acknowledge(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesAcknowledgeRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token 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); + public Acknowledge set$Xgafv(java.lang.String $Xgafv) { + return (Acknowledge) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Acknowledge setAccessToken(java.lang.String accessToken) { + return (Acknowledge) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Acknowledge setAlt(java.lang.String alt) { + return (Acknowledge) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Acknowledge setCallback(java.lang.String callback) { + return (Acknowledge) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Acknowledge setFields(java.lang.String fields) { + return (Acknowledge) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Acknowledge setKey(java.lang.String key) { + return (Acknowledge) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Acknowledge setOauthToken(java.lang.String oauthToken) { + return (Acknowledge) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Acknowledge) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Acknowledge setQuotaUser(java.lang.String quotaUser) { + return (Acknowledge) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Acknowledge setUploadType(java.lang.String uploadType) { + return (Acknowledge) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { + return (Acknowledge) super.setUploadProtocol(uploadProtocol); } /** @@ -20896,23 +21350,30 @@ public java.lang.String getPackageName() { * The package name of the application for which this subscription was purchased (for * example, 'com.some.thing'). */ - public Get setPackageName(java.lang.String packageName) { + public Acknowledge setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** The purchased subscription ID (for example, 'monthly001'). */ + /** + * Note: Since May 21, 2025, subscription_id is not required, and not recommended for + * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). + */ @com.google.api.client.util.Key private java.lang.String subscriptionId; - /** The purchased subscription ID (for example, 'monthly001'). + /** Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription + with add-ons. The purchased subscription ID (for example, 'monthly001'). */ public java.lang.String getSubscriptionId() { return subscriptionId; } - /** The purchased subscription ID (for example, 'monthly001'). */ - public Get setSubscriptionId(java.lang.String subscriptionId) { + /** + * Note: Since May 21, 2025, subscription_id is not required, and not recommended for + * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). + */ + public Acknowledge setSubscriptionId(java.lang.String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -20928,60 +21389,64 @@ public java.lang.String getToken() { } /** The token provided to the user's device when the subscription was purchased. */ - public Get setToken(java.lang.String token) { + public Acknowledge setToken(java.lang.String token) { this.token = token; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Acknowledge set(String parameterName, Object value) { + return (Acknowledge) super.set(parameterName, value); } } /** - * Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the - * subscription remains valid until its expiration time and it will continue to recur. + * Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase. + * The subscription remains valid until its expiration time. Newer version is available at + * purchases.subscriptionsv2.cancel for better client library support. * - * Create a request for the method "subscriptions.refund". + * Create a request for the method "subscriptions.cancel". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Refund#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * * @param packageName The package name of the application for which this subscription was purchased (for example, * 'com.some.thing'). - * @param subscriptionId "The purchased subscription ID (for example, 'monthly001'). + * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with + * add-ons. The purchased subscription ID (for example, 'monthly001'). * @param token The token provided to the user's device when the subscription was purchased. * @return the request */ - public Refund refund(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) throws java.io.IOException { - Refund result = new Refund(packageName, subscriptionId, token); + public Cancel cancel(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) throws java.io.IOException { + Cancel result = new Cancel(packageName, subscriptionId, token); initialize(result); return result; } - public class Refund extends AndroidPublisherRequest{@link - * Refund#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName The package name of the application for which this subscription was purchased (for example, * 'com.some.thing'). - * @param subscriptionId "The purchased subscription ID (for example, 'monthly001'). + * @param subscriptionId Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with + * add-ons. The purchased subscription ID (for example, 'monthly001'). * @param token The token provided to the user's device when the subscription was purchased. * @since 1.13 */ - protected Refund(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) { + protected Cancel(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) { super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); @@ -20989,58 +21454,58 @@ protected Refund(java.lang.String packageName, java.lang.String subscriptionId, } @Override - public Refund set$Xgafv(java.lang.String $Xgafv) { - return (Refund) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Refund setAccessToken(java.lang.String accessToken) { - return (Refund) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Refund setAlt(java.lang.String alt) { - return (Refund) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Refund setCallback(java.lang.String callback) { - return (Refund) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Refund setFields(java.lang.String fields) { - return (Refund) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Refund setKey(java.lang.String key) { - return (Refund) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Refund setOauthToken(java.lang.String oauthToken) { - return (Refund) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Refund setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Refund) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Refund setQuotaUser(java.lang.String quotaUser) { - return (Refund) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Refund setUploadType(java.lang.String uploadType) { - return (Refund) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Refund setUploadProtocol(java.lang.String uploadProtocol) { - return (Refund) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } /** @@ -21061,25 +21526,30 @@ public java.lang.String getPackageName() { * The package name of the application for which this subscription was purchased (for * example, 'com.some.thing'). */ - public Refund setPackageName(java.lang.String packageName) { + public Cancel setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** "The purchased subscription ID (for example, 'monthly001'). */ + /** + * Note: Since May 21, 2025, subscription_id is not required, and not recommended for + * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). + */ @com.google.api.client.util.Key private java.lang.String subscriptionId; - /**" The purchased subscription ID (for example, 'monthly001'). - " - + /** Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription + with add-ons. The purchased subscription ID (for example, 'monthly001'). */ public java.lang.String getSubscriptionId() { return subscriptionId; } - /** "The purchased subscription ID (for example, 'monthly001'). */ - public Refund setSubscriptionId(java.lang.String subscriptionId) { + /** + * Note: Since May 21, 2025, subscription_id is not required, and not recommended for + * subscription with add-ons. The purchased subscription ID (for example, 'monthly001'). + */ + public Cancel setSubscriptionId(java.lang.String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -21095,121 +21565,121 @@ public java.lang.String getToken() { } /** The token provided to the user's device when the subscription was purchased. */ - public Refund setToken(java.lang.String token) { + public Cancel setToken(java.lang.String token) { this.token = token; return this; } @Override - public Refund set(String parameterName, Object value) { - return (Refund) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a - * user's subscription purchase. Access to the subscription will be terminated immediately and it - * will stop recurring. + * Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase + * until a specified future expiration time. * - * Create a request for the method "subscriptions.revoke". + * Create a request for the method "subscriptions.defer". * * This request holds the parameters needed by the androidpublisher server. After setting any - * optional parameters, call the {@link Revoke#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Defer#execute()} method to invoke the remote operation. * * @param packageName The package name of the application for which this subscription was purchased (for example, * 'com.some.thing'). * @param subscriptionId The purchased subscription ID (for example, 'monthly001'). * @param token The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest} * @return the request */ - public Revoke revoke(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) throws java.io.IOException { - Revoke result = new Revoke(packageName, subscriptionId, token); + public Defer defer(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest content) throws java.io.IOException { + Defer result = new Defer(packageName, subscriptionId, token, content); initialize(result); return result; } - public class Revoke extends AndroidPublisherRequest{@link - * Revoke#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Defer#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* * @param packageName The package name of the application for which this subscription was purchased (for example, * 'com.some.thing'). * @param subscriptionId The purchased subscription ID (for example, 'monthly001'). * @param token The token provided to the user's device when the subscription was purchased. + * @param content the {@link com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest} * @since 1.13 */ - protected Revoke(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token) { - super(AndroidPublisher.this, "POST", REST_PATH, null, Void.class); + protected Defer(java.lang.String packageName, java.lang.String subscriptionId, java.lang.String token, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferRequest content) { + super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SubscriptionPurchasesDeferResponse.class); this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); this.subscriptionId = com.google.api.client.util.Preconditions.checkNotNull(subscriptionId, "Required parameter subscriptionId must be specified."); this.token = com.google.api.client.util.Preconditions.checkNotNull(token, "Required parameter token must be specified."); } @Override - public Revoke set$Xgafv(java.lang.String $Xgafv) { - return (Revoke) super.set$Xgafv($Xgafv); + public Defer set$Xgafv(java.lang.String $Xgafv) { + return (Defer) super.set$Xgafv($Xgafv); } @Override - public Revoke setAccessToken(java.lang.String accessToken) { - return (Revoke) super.setAccessToken(accessToken); + public Defer setAccessToken(java.lang.String accessToken) { + return (Defer) super.setAccessToken(accessToken); } @Override - public Revoke setAlt(java.lang.String alt) { - return (Revoke) super.setAlt(alt); + public Defer setAlt(java.lang.String alt) { + return (Defer) super.setAlt(alt); } @Override - public Revoke setCallback(java.lang.String callback) { - return (Revoke) super.setCallback(callback); + public Defer setCallback(java.lang.String callback) { + return (Defer) super.setCallback(callback); } @Override - public Revoke setFields(java.lang.String fields) { - return (Revoke) super.setFields(fields); + public Defer setFields(java.lang.String fields) { + return (Defer) super.setFields(fields); } @Override - public Revoke setKey(java.lang.String key) { - return (Revoke) super.setKey(key); + public Defer setKey(java.lang.String key) { + return (Defer) super.setKey(key); } @Override - public Revoke setOauthToken(java.lang.String oauthToken) { - return (Revoke) super.setOauthToken(oauthToken); + public Defer setOauthToken(java.lang.String oauthToken) { + return (Defer) super.setOauthToken(oauthToken); } @Override - public Revoke setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Revoke) super.setPrettyPrint(prettyPrint); + public Defer setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Defer) super.setPrettyPrint(prettyPrint); } @Override - public Revoke setQuotaUser(java.lang.String quotaUser) { - return (Revoke) super.setQuotaUser(quotaUser); + public Defer setQuotaUser(java.lang.String quotaUser) { + return (Defer) super.setQuotaUser(quotaUser); } @Override - public Revoke setUploadType(java.lang.String uploadType) { - return (Revoke) super.setUploadType(uploadType); + public Defer setUploadType(java.lang.String uploadType) { + return (Defer) super.setUploadType(uploadType); } @Override - public Revoke setUploadProtocol(java.lang.String uploadProtocol) { - return (Revoke) super.setUploadProtocol(uploadProtocol); + public Defer setUploadProtocol(java.lang.String uploadProtocol) { + return (Defer) super.setUploadProtocol(uploadProtocol); } /** @@ -21230,7 +21700,7 @@ public java.lang.String getPackageName() { * The package name of the application for which this subscription was purchased (for * example, 'com.some.thing'). */ - public Revoke setPackageName(java.lang.String packageName) { + public Defer setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -21246,7 +21716,7 @@ public java.lang.String getSubscriptionId() { } /** The purchased subscription ID (for example, 'monthly001'). */ - public Revoke setSubscriptionId(java.lang.String subscriptionId) { + public Defer setSubscriptionId(java.lang.String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -21262,14 +21732,14 @@ public java.lang.String getToken() { } /** The token provided to the user's device when the subscription was purchased. */ - public Revoke setToken(java.lang.String token) { + public Defer setToken(java.lang.String token) { this.token = token; return this; } @Override - public Revoke set(String parameterName, Object value) { - return (Revoke) super.set(parameterName, value); + public Defer set(String parameterName, Object value) { + return (Defer) super.set(parameterName, value); } } diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApkSet.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApkSet.java new file mode 100644 index 00000000000..41c17fa40d3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApkSet.java @@ -0,0 +1,98 @@ +/* + * 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.androidpublisher.model; + +/** + * An installable set of active APKs. A set of APKs might only contain 1 APK if the app in question + * publishes using APKs. If the app uses app bundles (or a similar technology), this set should + * contain all APKs (even optional ones) that might be installed for this app. A set of APKs should + * be installable together. If certain APKs are exclusive to one another and cannot be installed + * together, then a separate AppStoreAppActiveApkSet should be created. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Play Android Developer API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppStoreAppActiveApkSet extends com.google.api.client.json.GenericJson { + + /** + * Required. The ID for the main base application module. Example: base.apk or app.apk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String baseApkId; + + /** + * Optional. IDs for split modules that might be installed in combination with the base APK. Can + * be empty if app bundles (or a similar technology) are not used. Example: config.en.apk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List