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..028ecb13b22 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: com.google.apis google-api-services-androidpublisher - v3-rev20260706-2.0.0 + v3-rev20260723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260706-2.0.0' + implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260723-2.0.0' } ``` diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java index 7fdebc6ec0b..9fbe27bc2a2 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java @@ -1650,947 +1650,1226 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Edits collection. + * An accessor for creating requests from the Appstoreappsreview collection. * *

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 { + public class Createappstorehostedapp extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit"; + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps:create"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Commit#execute()} method to invoke the remote operation. - *

{@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 { + public class Updateappstorehostedapp extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}"; + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps:update"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * 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 { + public class Updateappstorehostedapppublishstatus extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}"; + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}:updateAppStoreHostedAppPublishStatus"; /** - * 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 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.

+ * 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 { + /** + * 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. + * + *

+ * 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 { + + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. - *

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

+ * 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 { + /** + * 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. + * + *

+ * 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 { + + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Validate#execute()} method to invoke the remote operation. - *

{@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. + * + * Create a request for the method "appstoreappsreview.uploadimage". + * + * 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 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; + } + + /** + * 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 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 { + + private static final String REST_PATH = "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload"; + + /** + * 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.

+ * + * @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 + */ + 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."); + } + + /** + * 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 Uploadimage set$Xgafv(java.lang.String $Xgafv) { + return (Uploadimage) super.set$Xgafv($Xgafv); + } + + @Override + public Uploadimage setAccessToken(java.lang.String accessToken) { + return (Uploadimage) super.setAccessToken(accessToken); + } + + @Override + public Uploadimage setAlt(java.lang.String alt) { + return (Uploadimage) super.setAlt(alt); + } + + @Override + public Uploadimage setCallback(java.lang.String callback) { + return (Uploadimage) super.setCallback(callback); + } + + @Override + public Uploadimage setFields(java.lang.String fields) { + return (Uploadimage) super.setFields(fields); + } + + @Override + public Uploadimage setKey(java.lang.String key) { + return (Uploadimage) super.setKey(key); + } + + @Override + public Uploadimage setOauthToken(java.lang.String oauthToken) { + return (Uploadimage) super.setOauthToken(oauthToken); + } + + @Override + public Uploadimage setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadimage) super.setPrettyPrint(prettyPrint); + } + + @Override + public Uploadimage setQuotaUser(java.lang.String quotaUser) { + return (Uploadimage) super.setQuotaUser(quotaUser); + } + + @Override + public Uploadimage setUploadType(java.lang.String uploadType) { + return (Uploadimage) super.setUploadType(uploadType); + } + + @Override + public Uploadimage setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadimage) super.setUploadProtocol(uploadProtocol); + } + + /** 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 Uploadimage 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; + + /** Required. Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Required. Package name of the app. */ + public Uploadimage setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + @Override + public Uploadimage set(String parameterName, Object value) { + return (Uploadimage) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Appstorecatalog collection. + * + *

The typical use is:

+ *
+   *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+   *   {@code AndroidPublisher.Appstorecatalog.List request = androidpublisher.appstorecatalog().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Appstorecatalog appstorecatalog() { + return new Appstorecatalog(); + } + + /** + * The "appstorecatalog" collection of methods. + */ + public class Appstorecatalog { + + /** + * An accessor for creating requests from the Recentappviews collection. * *

The typical use is:

*
      *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-     *   {@code AndroidPublisher.Apks.List request = androidpublisher.apks().list(parameters ...)}
+     *   {@code AndroidPublisher.Recentappviews.List request = androidpublisher.recentappviews().list(parameters ...)}
      * 
* * @return the resource collection */ - public Apks apks() { - return new Apks(); + public Recentappviews recentappviews() { + return new Recentappviews(); } /** - * The "apks" collection of methods. + * The "recentappviews" collection of methods. */ - public class Apks { + public class Recentappviews { /** - * 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. + * Returns metadata about a recently updated app. * - * Create a request for the method "apks.addexternallyhosted". + * Create a request for the method "recentappviews.get". * * 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. + * 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 content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} + * @param appStorePackageName Required. The package name of the app store on behalf of which the request is made. + * @param playAppPackageName Required. The package name of the requested Play app. * @return the request */ - 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); + public Get get(java.lang.String appStorePackageName, java.lang.String playAppPackageName) throws java.io.IOException { + Get result = new Get(appStorePackageName, playAppPackageName); initialize(result); return result; } - public class Addexternallyhosted extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted"; + private static final String REST_PATH = "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentAppViews/{playAppPackageName}"; /** - * 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. + * Returns metadata about a recently updated app. * - * Create a request for the method "apks.addexternallyhosted". + * Create a request for the method "recentappviews.get". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 content the {@link com.google.api.services.androidpublisher.model.ApksAddExternallyHostedRequest} + * @param appStorePackageName Required. The package name of the app store on behalf of which the request is made. + * @param playAppPackageName Required. The package name of the requested Play app. * @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."); + protected Get(java.lang.String appStorePackageName, java.lang.String playAppPackageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.RecentAppView.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); + this.playAppPackageName = com.google.api.client.util.Preconditions.checkNotNull(playAppPackageName, "Required parameter playAppPackageName must be specified."); } @Override - public Addexternallyhosted set$Xgafv(java.lang.String $Xgafv) { - return (Addexternallyhosted) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Addexternallyhosted setAccessToken(java.lang.String accessToken) { - return (Addexternallyhosted) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Addexternallyhosted setAlt(java.lang.String alt) { - return (Addexternallyhosted) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Addexternallyhosted setCallback(java.lang.String callback) { - return (Addexternallyhosted) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Addexternallyhosted setFields(java.lang.String fields) { - return (Addexternallyhosted) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Addexternallyhosted setKey(java.lang.String key) { - return (Addexternallyhosted) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Addexternallyhosted setOauthToken(java.lang.String oauthToken) { - return (Addexternallyhosted) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Addexternallyhosted setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Addexternallyhosted) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Addexternallyhosted setQuotaUser(java.lang.String quotaUser) { - return (Addexternallyhosted) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Addexternallyhosted setUploadType(java.lang.String uploadType) { - return (Addexternallyhosted) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Addexternallyhosted setUploadProtocol(java.lang.String uploadProtocol) { - return (Addexternallyhosted) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Package name of the app. */ + @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); + } + + /** Required. The package name of the app store on behalf of which the request is made. */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String appStorePackageName; - /** Package name of the app. + /** Required. The package name of the app store on behalf of which the request is made. */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - /** Package name of the app. */ - public Addexternallyhosted setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** Required. The package name of the app store on behalf of which the request is made. */ + public Get setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; return this; } - /** Identifier of the edit. */ + /** Required. The package name of the requested Play app. */ @com.google.api.client.util.Key - private java.lang.String editId; + private java.lang.String playAppPackageName; - /** Identifier of the edit. + /** Required. The package name of the requested Play app. */ - public java.lang.String getEditId() { - return editId; + public java.lang.String getPlayAppPackageName() { + return playAppPackageName; } - /** Identifier of the edit. */ - public Addexternallyhosted setEditId(java.lang.String editId) { - this.editId = editId; + /** Required. The package name of the requested Play app. */ + public Get setPlayAppPackageName(java.lang.String playAppPackageName) { + this.playAppPackageName = playAppPackageName; return this; } @Override - public Addexternallyhosted set(String parameterName, Object value) { - return (Addexternallyhosted) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - /** - * Lists all current APKs of the app and edit. - * - * Create a request for the method "apks.list". + + } + /** + * An accessor for creating requests from the Recentupdateevents collection. + * + *

The typical use is:

+ *
+     *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+     *   {@code AndroidPublisher.Recentupdateevents.List request = androidpublisher.recentupdateevents().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Recentupdateevents recentupdateevents() { + return new Recentupdateevents(); + } + + /** + * The "recentupdateevents" collection of methods. + */ + public class Recentupdateevents { + + /** + * Lists update events for eligible apps in the given time range. + * + * Create a request for the method "recentupdateevents.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. + * @param appStorePackageName Required. The package name of the app store on behalf of which the request is made. * @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 List list(java.lang.String appStorePackageName) throws java.io.IOException { + List result = new List(appStorePackageName); initialize(result); return result; } - public class List extends AndroidPublisherRequest { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; + private static final String REST_PATH = "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentUpdateEvents"; /** - * Lists all current APKs of the app and edit. + * Lists update events for eligible apps in the given time range. * - * Create a request for the method "apks.list". + * Create a request for the method "recentupdateevents.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 Package name of the app. - * @param editId Identifier of the edit. + * @param appStorePackageName Required. The package name of the app store on behalf of which the request is made. * @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."); + protected List(java.lang.String appStorePackageName) { + super(AndroidPublisher.this, "GET", REST_PATH, null, com.google.api.services.androidpublisher.model.ListRecentUpdateEventsResponse.class); + this.appStorePackageName = com.google.api.client.util.Preconditions.checkNotNull(appStorePackageName, "Required parameter appStorePackageName must be specified."); } @Override @@ -2658,1198 +2937,978 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** Required. The package name of the app store on behalf of which the request is made. */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String appStorePackageName; - /** Package name of the app. + /** Required. The package name of the app store on behalf of which the request is made. */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getAppStorePackageName() { + return appStorePackageName; } - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** Required. The package name of the app store on behalf of which the request is made. */ + public List setAppStorePackageName(java.lang.String appStorePackageName) { + this.appStorePackageName = appStorePackageName; return this; } - /** Identifier of the edit. */ + /** Required. The end time of the range (exclusive). */ @com.google.api.client.util.Key - private java.lang.String editId; + private String endTime; - /** Identifier of the edit. + /** Required. The end time of the range (exclusive). */ - public java.lang.String getEditId() { - return editId; + public String getEndTime() { + return endTime; } - /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { - this.editId = editId; + /** Required. The end time of the range (exclusive). */ + public List setEndTime(String endTime) { + this.endTime = endTime; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 - */ - 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; - } - - /** - * 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 - */ - 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; - } - - public class Upload extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; - /** - * 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.

- * - * @param packageName Package name of the app. - * @param editId Identifier of the edit. - * @since 1.13 + * Optional. The maximum number of update events to return. The service may return fewer + * than this value. If unspecified, at most 100 update events will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. */ - 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."); - } + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * 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 + /** Optional. The maximum number of update events to return. The service may return fewer than this + value. If unspecified, at most 100 update events will be returned. The maximum value is 1000; + values above 1000 will be coerced to 1000. */ - 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); + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + /** + * Optional. The maximum number of update events to return. The service may return fewer + * than this value. If unspecified, at most 100 update events 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; } - /** Package name of the app. */ + /** + * Optional. A page token, received from a previous `ListRecentUpdateEvents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRecentUpdateEvents` must match the call that provided the page token. + */ @com.google.api.client.util.Key - private java.lang.String packageName; + private java.lang.String pageToken; - /** Package name of the app. + /** Optional. A page token, received from a previous `ListRecentUpdateEvents` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListRecentUpdateEvents` must match the call that provided the page token. */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getPageToken() { + return pageToken; } - /** Package name of the app. */ - public Upload setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** + * Optional. A page token, received from a previous `ListRecentUpdateEvents` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListRecentUpdateEvents` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Identifier of the edit. */ + /** Required. The start time of the range (inclusive). */ @com.google.api.client.util.Key - private java.lang.String editId; + private String startTime; - /** Identifier of the edit. + /** Required. The start time of the range (inclusive). */ - public java.lang.String getEditId() { - return editId; + public String getStartTime() { + return startTime; } - /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { - this.editId = editId; + /** Required. The start time of the range (inclusive). */ + public List setStartTime(String startTime) { + this.startTime = startTime; return this; } @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 { + /** + * 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(); + } + + /** + * The "edits" collection of methods. + */ + public class Edits { + + /** + * 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; + } + + public class Commit extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit"; /** - * Lists all current Android App Bundles of the app and edit. + * Commits an app edit. * - * Create a request for the method "bundles.list". + * 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 List#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 Commit#execute()} method to invoke the remote operation. + *

{@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. - * @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 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."); } - public class List extends AndroidPublisherRequest { + @Override + public Commit set$Xgafv(java.lang.String $Xgafv) { + return (Commit) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; + @Override + public Commit setAccessToken(java.lang.String accessToken) { + return (Commit) super.setAccessToken(accessToken); + } - /** - * Lists all current Android App Bundles of the app and edit. - * - * Create a request for the method "bundles.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 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 Commit setAlt(java.lang.String alt) { + return (Commit) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Commit setCallback(java.lang.String callback) { + return (Commit) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Commit setFields(java.lang.String fields) { + return (Commit) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Commit setKey(java.lang.String key) { + return (Commit) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Commit setOauthToken(java.lang.String oauthToken) { + return (Commit) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Commit setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Commit) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Commit setQuotaUser(java.lang.String quotaUser) { + return (Commit) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Commit setUploadType(java.lang.String uploadType) { + return (Commit) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Commit setUploadProtocol(java.lang.String uploadProtocol) { + return (Commit) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Package name of the app. */ + public Commit setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) 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 Commit setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - /** Package name of the app. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** + * 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; - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - 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. + */ + public java.lang.String getChangesInReviewBehavior() { + return changesInReviewBehavior; + } - /** 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 List setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) 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 java.lang.Boolean getChangesNotSentForReview() { + return changesNotSentForReview; } + /** - * 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 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 + * 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 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 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); + } + } + /** + * Deletes an app edit. + * + * Create a request for the method "edits.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 editId Identifier of the edit. + * @return the request + */ + 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; + } + + public class Delete extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}"; + /** - * 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. + * Deletes an app edit. * - * Create a request for the method "bundles.upload". + * Create a request for the method "edits.delete". * * 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. - *

+ * 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 mediaContent The media HTTP content. - * @return the request - * @throws java.io.IOException if the initialization of the request fails + * @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, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, mediaContent); - 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 Upload extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * 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.

- * - * @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 Delete setAccessToken(java.lang.String accessToken) { + return (Delete) 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 Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) 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; - - /** 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; - - /** Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } - - /** Identifier of the edit. */ - public Upload setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } - - /** - * 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; - - /** Deprecated. The installation warning has been removed, it's not necessary to set this field - anymore. - */ - public java.lang.Boolean getAckBundleInstallationWarning() { - return ackBundleInstallationWarning; - } - - /** - * 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; - } - - /** - * 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; - - /** 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 Delete setEditId(java.lang.String editId) { + this.editId = editId; + return this; } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Countryavailability collection. + * Gets an app edit. * - *

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.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 Package name of the app. + * @param editId Identifier of the edit. + * @return the request */ - public Countryavailability countryavailability() { - return new Countryavailability(); + 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; } - /** - * The "countryavailability" collection of methods. - */ - public class Countryavailability { + public class Get extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}"; /** - * Gets country availability. + * Gets an app edit. * - * Create a request for the method "countryavailability.get". + * 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. + * 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 Package name of the app. * @param editId Identifier of the edit. - * @param track The track to read from. - * @return the request + * @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 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."); } - public class Get extends AndroidPublisherRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Gets country availability. - * - * Create a request for the method "countryavailability.get". - * - * 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 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @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; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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 Get setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** The track to read from. */ - @com.google.api.client.util.Key - private java.lang.String track; + /** Package name of the app. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** The track to read from. - */ - public java.lang.String getTrack() { - return track; - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** The track to read from. */ - public Get setTrack(java.lang.String track) { - this.track = track; - return this; - } + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) 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 Deobfuscationfiles collection. + * Creates a new edit for an app. * - *

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.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 Deobfuscationfiles deobfuscationfiles() { - return new Deobfuscationfiles(); + 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 "deobfuscationfiles" collection of methods. - */ - public class Deobfuscationfiles { + public class Insert extends AndroidPublisherRequest { - /** - * 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 androidpublisher server. After setting any - * optional parameters, call the {@link Upload#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. - * @return the request - */ - 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; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits"; /** - * Uploads a new deobfuscation file and attaches to the specified APK. + * Creates a new edit for an app. * - * Create a request for the method "deobfuscationfiles.upload". + * Create a request for the method "edits.insert". * * 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. - *

+ * 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 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 + * @param packageName Package name of the app. + * @param content the {@link com.google.api.services.androidpublisher.model.AppEdit} + * @since 1.13 */ - 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; + 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 Upload extends AndroidPublisherRequest { + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}"; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - /** - * 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.

- * - * @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."); - } + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - /** - * 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 Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); - } + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } + /** Package name of the app. */ + public Insert setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); - } + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Validates an app edit. + * + * Create a request for the method "edits.validate". + * + * 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 Validate validate(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + Validate result = new Validate(packageName, editId); + initialize(result); + return result; + } - /** Unique identifier for the Android app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + public class Validate extends AndroidPublisherRequest { - /** Unique identifier for the Android app. - */ - public java.lang.String getPackageName() { - return packageName; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate"; - /** Unique identifier for the Android app. */ - public Upload setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * Validates an app edit. + * + * Create a request for the method "edits.validate". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Validate#execute()} method to invoke the remote operation. + *

{@link + * Validate#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 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."); + } - /** Unique identifier for this edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } - /** Unique identifier for this edit. - */ - public java.lang.String getEditId() { - return editId; - } + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } - /** Unique identifier for this edit. */ - public Upload setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } - /** The version code of the APK whose Deobfuscation File is being uploaded. */ - @com.google.api.client.util.Key - private java.lang.Integer apkVersionCode; + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } - /** The version code of the APK whose Deobfuscation File is being uploaded. - */ - public java.lang.Integer getApkVersionCode() { - return apkVersionCode; - } + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } - /** The version code of the APK whose Deobfuscation File is being uploaded. */ - public Upload setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; - return this; - } + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } - /** The type of the deobfuscation file. */ - @com.google.api.client.util.Key - private java.lang.String deobfuscationFileType; + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } - /** The type of the deobfuscation file. - */ - public java.lang.String getDeobfuscationFileType() { - return deobfuscationFileType; - } + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } - /** The type of the deobfuscation file. */ - public Upload setDeobfuscationFileType(java.lang.String deobfuscationFileType) { - this.deobfuscationFileType = deobfuscationFileType; - return this; - } + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); - } + @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 Details collection. + * An accessor for creating requests from the Apks collection. * *

The typical use is:

*
      *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-     *   {@code AndroidPublisher.Details.List request = androidpublisher.details().list(parameters ...)}
+     *   {@code AndroidPublisher.Apks.List request = androidpublisher.apks().list(parameters ...)}
      * 
* * @return the resource collection */ - public Details details() { - return new Details(); + public Apks apks() { + return new Apks(); } /** - * The "details" collection of methods. + * The "apks" collection of methods. */ - public class Details { + public class Apks { /** - * Gets details of an app. + * 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 "details.get". + * Create a request for the method "apks.addexternallyhosted". * * 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 Addexternallyhosted#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.ApksAddExternallyHostedRequest} * @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 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 Get extends AndroidPublisherRequest { + public class Addexternallyhosted extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted"; /** - * Gets details of an app. + * 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 "details.get". + * 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 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.

+ * 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 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 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 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 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 Addexternallyhosted set$Xgafv(java.lang.String $Xgafv) { + return (Addexternallyhosted) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Addexternallyhosted setAccessToken(java.lang.String accessToken) { + return (Addexternallyhosted) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Addexternallyhosted setAlt(java.lang.String alt) { + return (Addexternallyhosted) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Addexternallyhosted setCallback(java.lang.String callback) { + return (Addexternallyhosted) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Addexternallyhosted setFields(java.lang.String fields) { + return (Addexternallyhosted) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Addexternallyhosted setKey(java.lang.String key) { + return (Addexternallyhosted) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Addexternallyhosted setOauthToken(java.lang.String oauthToken) { + return (Addexternallyhosted) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Addexternallyhosted setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Addexternallyhosted) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Addexternallyhosted setQuotaUser(java.lang.String quotaUser) { + return (Addexternallyhosted) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Addexternallyhosted setUploadType(java.lang.String uploadType) { + return (Addexternallyhosted) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Addexternallyhosted setUploadProtocol(java.lang.String uploadProtocol) { + return (Addexternallyhosted) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -3863,7 +3922,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Get setPackageName(java.lang.String packageName) { + public Addexternallyhosted setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -3879,114 +3938,121 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Get setEditId(java.lang.String editId) { + public Addexternallyhosted 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 Addexternallyhosted set(String parameterName, Object value) { + return (Addexternallyhosted) super.set(parameterName, value); } } /** - * Patches details of an app. + * Lists all current APKs of the app and edit. * - * Create a request for the method "details.patch". + * 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 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 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 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 Patch extends AndroidPublisherRequest { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; /** - * Patches details of an app. + * Lists all current APKs of the app and edit. * - * Create a request for the method "details.patch". + * Create a request for the method "apks.list". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 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 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); + } + + @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. */ @@ -4000,7 +4066,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; } @@ -4016,114 +4082,162 @@ 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; } @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); } } /** - * Updates details of an app. + * Uploads an APK and adds to the current edit. * - * Create a request for the method "details.update". + * 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 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 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 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 Update extends AndroidPublisherRequest { + /** + * 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 + */ + 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 { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"; /** - * Updates details of an app. + * Uploads an APK and adds to the current edit. * - * Create a request for the method "details.update". + * 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 Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. *

{@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 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 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 Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + 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. */ @@ -4137,7 +4251,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; } @@ -4153,84 +4267,78 @@ 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; } @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 Expansionfiles collection. + * An accessor for creating requests from the Bundles collection. * *

The typical use is:

*
      *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-     *   {@code AndroidPublisher.Expansionfiles.List request = androidpublisher.expansionfiles().list(parameters ...)}
+     *   {@code AndroidPublisher.Bundles.List request = androidpublisher.bundles().list(parameters ...)}
      * 
* * @return the resource collection */ - public Expansionfiles expansionfiles() { - return new Expansionfiles(); + public Bundles bundles() { + return new Bundles(); } /** - * The "expansionfiles" collection of methods. + * The "bundles" collection of methods. */ - public class Expansionfiles { + public class Bundles { /** - * Fetches the expansion file configuration for the specified APK. + * Lists all current Android App Bundles of the app and edit. * - * Create a request for the method "expansionfiles.get". + * 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 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. - * @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 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 { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; /** - * Fetches the expansion file configuration for the specified APK. + * Lists all current Android App Bundles of the app and edit. * - * Create a request for the method "expansionfiles.get". + * Create a request for the method "bundles.list". * * 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)} + * 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 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 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."); - 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 @@ -4244,58 +4352,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. */ @@ -4309,7 +4417,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; } @@ -4325,158 +4433,176 @@ 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; } - /** - * 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 Get 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 Get setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; - 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 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 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.patch". + * 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 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 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 */ - 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 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 { + /** + * 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; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + public class Upload extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"; /** - * Patches 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 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.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. *

{@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 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 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 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 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. */ @@ -4490,7 +4616,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; } @@ -4506,158 +4632,192 @@ 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; } /** - * 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 Patch 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 expansion file configuration which is being updated. */ + /** + * 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 expansion file configuration which is being updated. + /** 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 expansion file configuration which is being updated. */ - public Patch 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 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 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 { + /** - * Updates 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.update". + * 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 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 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 track The track to read from. * @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 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 Update extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}"; /** - * Updates 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.update". + * Create a request for the method "countryavailability.get". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

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

+ * 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 file configuration which is being read or modified. - * @param content the {@link com.google.api.services.androidpublisher.model.ExpansionFile} + * @param track The track to read from. * @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 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 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. */ @@ -4671,7 +4831,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; } @@ -4687,76 +4847,78 @@ 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 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 Update setApkVersionCode(java.lang.Integer apkVersionCode) { - this.apkVersionCode = apkVersionCode; - return this; - } - - /** The file type of the file configuration which is being read or modified. */ + /** The track to read from. */ @com.google.api.client.util.Key - private java.lang.String expansionFileType; + private java.lang.String track; - /** The file type of the file configuration which is being read or modified. + /** The track to read from. */ - public java.lang.String getExpansionFileType() { - return expansionFileType; + public java.lang.String getTrack() { + return track; } - /** The file type of the file configuration which is being read or modified. */ - public Update setExpansionFileType(java.lang.String expansionFileType) { - this.expansionFileType = expansionFileType; + /** The track to read from. */ + public Get setTrack(java.lang.String track) { + this.track = track; 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 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 { + /** - * Uploads a new expansion file and attaches to the specified APK. + * Uploads a new deobfuscation file and attaches to the specified APK. * - * Create a request for the method "expansionfiles.upload". + * 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 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. + * @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 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 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; } /** - * Uploads a new expansion file and attaches to the specified APK. + * Uploads a new deobfuscation file and attaches to the specified APK. * - * Create a request for the method "expansionfiles.upload". + * 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. @@ -4765,25 +4927,25 @@ public Upload upload(java.lang.String packageName, java.lang.String editId, java * 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 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 expansionFileType, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException { - Upload result = new Upload(packageName, editId, apkVersionCode, expansionFileType, mediaContent); + 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; } - public class Upload extends AndroidPublisherRequest { + public class Upload extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}"; /** - * Uploads a new expansion file and attaches to the specified APK. + * Uploads a new deobfuscation file and attaches to the specified APK. * - * Create a request for the method "expansionfiles.upload". + * 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. @@ -4791,24 +4953,24 @@ public class Upload extends AndroidPublisherRequest * - * @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 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 expansionFileType) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.ExpansionFilesUploadResponse.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 expansion file and attaches to the specified APK. + * Uploads a new deobfuscation file and attaches to the specified APK. * - * Create a request for the method "expansionfiles.upload". + * 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. @@ -4820,16 +4982,16 @@ protected Upload(java.lang.String packageName, java.lang.String editId, java.lan * 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 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 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); + 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.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."); com.google.api.client.util.Preconditions.checkNotNull(mediaContent, "Required parameter mediaContent must be specified."); initializeMediaUpload(mediaContent); } @@ -4889,71 +5051,67 @@ 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. */ + /** 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. */ + /** 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. - */ + /** 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 expansion file configuration which is being updated. */ + /** 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 expansion file configuration which is being updated. + /** 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 expansion file configuration which is being updated. */ - public Upload 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; } @@ -4965,130 +5123,130 @@ public Upload set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Images collection. + * An accessor for creating requests from the Details collection. * *

The typical use is:

*
      *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-     *   {@code AndroidPublisher.Images.List request = androidpublisher.images().list(parameters ...)}
+     *   {@code AndroidPublisher.Details.List request = androidpublisher.details().list(parameters ...)}
      * 
* * @return the resource collection */ - public Images images() { - return new Images(); + public Details details() { + return new Details(); } /** - * The "images" collection of methods. + * The "details" collection of methods. */ - public class Images { + public class Details { /** - * Deletes the image (specified by id) from the edit. + * Gets details of an app. * - * Create a request for the method "images.delete". + * 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 Delete#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). - * @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 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 Get get(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { + Get result = new Get(packageName, editId); initialize(result); return result; } - public class Delete extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /** - * Deletes the image (specified by id) from the edit. + * Gets details of an app. * - * Create a request for the method "images.delete". + * Create a request for the method "details.get". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * 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). - * @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 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 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.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 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) 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. */ @@ -5102,7 +5260,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Delete setPackageName(java.lang.String packageName) { + public Get setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5118,176 +5276,114 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Delete 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). - */ - @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 Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes all images for the specified language and image type. Returns an empty response if no - * images are found. + * Patches details of an app. * - * Create a request for the method "images.deleteall". + * 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 Deleteall#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. 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 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 Deleteall extends AndroidPublisherRequest { + public class Patch extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /** - * Deletes all images for the specified language and image type. Returns an empty response if no - * images are found. + * Patches details of an app. * - * Create a request for the method "images.deleteall". + * Create a request for the method "details.patch". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 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."); } @Override - public Deleteall set$Xgafv(java.lang.String $Xgafv) { - return (Deleteall) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Deleteall setAccessToken(java.lang.String accessToken) { - return (Deleteall) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Deleteall setAlt(java.lang.String alt) { - return (Deleteall) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Deleteall setCallback(java.lang.String callback) { - return (Deleteall) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Deleteall setFields(java.lang.String fields) { - return (Deleteall) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Deleteall setKey(java.lang.String key) { - return (Deleteall) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Deleteall setOauthToken(java.lang.String oauthToken) { - return (Deleteall) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deleteall) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Deleteall setQuotaUser(java.lang.String quotaUser) { - return (Deleteall) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Deleteall setUploadType(java.lang.String uploadType) { - return (Deleteall) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { - return (Deleteall) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -5301,7 +5397,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Deleteall setPackageName(java.lang.String packageName) { + public Patch setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -5317,168 +5413,114 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Deleteall 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. - */ - @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 Deleteall set(String parameterName, Object value) { - return (Deleteall) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Lists all images. The response may be empty. + * Updates details of an app. * - * Create a request for the method "images.list". + * 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 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). 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 content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @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 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 List extends AndroidPublisherRequest { + public class Update extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/details"; /** - * Lists all images. The response may be empty. + * Updates details of an app. * - * Create a request for the method "images.list". + * Create a request for the method "details.update". * * 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.

+ * 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). 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 content the {@link com.google.api.services.androidpublisher.model.AppDetails} * @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); - this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified."); + 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 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. */ @@ -5492,7 +5534,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; } @@ -5508,219 +5550,149 @@ 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). 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). There - must be a store listing for the specified language. - */ - public java.lang.String getLanguage() { - return 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. - */ - public List 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 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; - } + } + /** + * 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 will return an empty - * response. - */ - public List setImageType(java.lang.String imageType) { - this.imageType = imageType; - return this; - } + /** + * The "expansionfiles" collection of methods. + */ + public class Expansionfiles { - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** - * Uploads an image of the specified language and image type, and adds to the edit. + * Fetches the expansion file configuration for the specified APK. * - * Create a request for the method "images.upload". + * 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 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 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 file configuration which is being read or modified. * @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 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 Upload extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /** - * Uploads an image of the specified language and image type, and adds to the edit. + * Fetches the expansion file configuration for the specified APK. * - * Create a request for the method "images.upload". + * Create a request for the method "expansionfiles.get". * * 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.

+ * 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). - * Providing a language that is not supported by the App is a no-op. - * @param imageType Type of the Image. + * @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 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); + 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."); } - /** - * 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 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. */ @@ -5734,7 +5706,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; } @@ -5750,192 +5722,158 @@ 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; } /** - * 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 Get 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 file configuration which is being read or modified. */ @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 file configuration which is being read or modified. */ - 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 file configuration which is being read or modified. */ + public Get 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 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. + * 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 "listings.delete". + * 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 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 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 */ - 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 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 Delete extends AndroidPublisherRequest { + public class Patch extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /** - * Deletes a localized store listing. + * 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 "listings.delete". + * Create a request for the method "expansionfiles.patch". * * This request holds the parameters needed by the 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. *

{@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 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 Delete(java.lang.String packageName, java.lang.String editId, java.lang.String language) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.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.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 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. */ @@ -5949,7 +5887,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; } @@ -5965,134 +5903,158 @@ 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). + * 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 Patch 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 Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes all store listings. + * 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.deleteall". + * 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 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 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 Deleteall deleteall(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - Deleteall result = new Deleteall(packageName, editId); + 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 Deleteall extends AndroidPublisherRequest { + public class Update extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /** - * Deletes all store listings. + * 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.deleteall". + * Create a request for the method "expansionfiles.update". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 Deleteall(java.lang.String packageName, java.lang.String editId) { - 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.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); + 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. */ @@ -6106,7 +6068,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; } @@ -6122,124 +6084,206 @@ 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; } + /** + * 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 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 Deleteall set(String parameterName, Object value) { - return (Deleteall) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Gets a localized store listing. + * Uploads a new expansion file and attaches to the specified APK. * - * Create a request for the method "listings.get". + * 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 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 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 expansion file configuration which is being updated. * @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 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 Get extends AndroidPublisherRequest { + /** + * 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; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; + public class Upload extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"; /** - * Gets a localized store listing. + * Uploads a new expansion file and attaches to the specified APK. * - * Create a request for the method "listings.get". + * 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 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.

+ * 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 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 expansion file configuration which is being updated. * @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 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.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(); + 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** + * 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) 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. */ @@ -6253,7 +6297,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; } @@ -6269,143 +6313,179 @@ 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; } /** - * 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 Get setLanguage(java.lang.String language) { - this.language = language; + 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 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 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 { + /** - * Lists all localized store listings. + * Deletes the image (specified by id) from the edit. * - * Create a request for the method "listings.list". + * 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 List#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 List list(java.lang.String packageName, java.lang.String editId) throws java.io.IOException { - List result = new List(packageName, editId); + 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 List extends AndroidPublisherRequest { + public class Delete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}"; /** - * Lists all localized store listings. + * Deletes the image (specified by id) from the edit. * - * Create a request for the method "listings.list". + * Create a request for the method "images.delete". * * 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.

+ * 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 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 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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -6419,7 +6499,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -6435,117 +6515,176 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public List setEditId(java.lang.String editId) { + public Delete 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches a localized store listing. + * 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 "listings.patch". + * 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 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 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. Providing an image type that refers to no images is a no-op. * @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 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 Patch extends AndroidPublisherRequest { + public class Deleteall extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /** - * Patches a localized store listing. + * 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 "listings.patch". + * Create a request for the method "images.deleteall". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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). - * @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. Providing an image type that refers to no images is a no-op. * @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 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 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. */ @@ -6559,7 +6698,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; } @@ -6575,19 +6714,20 @@ 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; } /** * 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; @@ -6595,119 +6735,147 @@ 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 Patch setLanguage(java.lang.String language) { + 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 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); } } /** - * Creates or updates a localized store listing. + * Lists all images. The response may be empty. * - * Create a request for the method "listings.update". + * 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 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 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 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 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 Update extends AndroidPublisherRequest { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /** - * Creates or updates a localized store listing. + * Lists all images. The response may be empty. * - * Create a request for the method "listings.update". + * Create a request for the method "images.list". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

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

+ * 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 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 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 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. */ @@ -6721,7 +6889,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; } @@ -6737,19 +6905,20 @@ 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; } /** * 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; @@ -6757,148 +6926,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 Update setLanguage(java.lang.String language) { + public List 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 will return an empty + * response. + */ + @com.google.api.client.util.Key + private java.lang.String imageType; - } - /** - * 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(); - } + /** 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; + } - /** - * The "testers" collection of methods. - */ - public class Testers { + /** + * 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 List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Gets testers. Note: Testers resource does not support email lists. + * Uploads an image of the specified language and image type, and adds to the edit. * - * Create a request for the method "testers.get". + * 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 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 track The track to read from. + * @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 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 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 Get extends AndroidPublisherRequest { + /** + * 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. + * @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}/testers/{track}"; + public class Upload extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"; /** - * Gets testers. Note: Testers resource does not support email lists. + * Uploads an image of the specified language and image type, and adds to the edit. * - * Create a request for the method "testers.get". + * 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 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.

+ * 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 track The track to read from. + * @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 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 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.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(); + 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.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** + * 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) 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. */ @@ -6912,7 +7131,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; } @@ -6928,133 +7147,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 track to read from. */ + /** + * 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 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). + Providing a language that is not supported by the App is a no-op. */ - 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). 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. + */ + 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 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 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 { + /** - * Patches testers. Note: Testers resource does not support email lists. + * Deletes a localized store listing. * - * Create a request for the method "testers.patch". + * 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 Patch#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 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 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 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 Patch extends AndroidPublisherRequest { + public class Delete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /** - * Patches testers. Note: Testers resource does not support email lists. + * Deletes a localized store listing. * - * Create a request for the method "testers.patch". + * Create a request for the method "listings.delete". * * This request holds the parameters needed by the 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. *

{@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 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 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 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."); + this.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language must be specified."); } @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); } /** Package name of the app. */ @@ -7068,7 +7346,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Patch setPackageName(java.lang.String packageName) { + public Delete setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7084,133 +7362,134 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Patch setEditId(java.lang.String editId) { + public Delete 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 Patch 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates testers. Note: Testers resource does not support email lists. + * Deletes all store listings. * - * Create a request for the method "testers.update". + * 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 Update#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 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 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 Update extends AndroidPublisherRequest { + public class Deleteall extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; /** - * Updates testers. Note: Testers resource does not support email lists. + * Deletes all store listings. * - * Create a request for the method "testers.update". + * Create a request for the method "listings.deleteall". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

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

+ * 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 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 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 Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Deleteall set$Xgafv(java.lang.String $Xgafv) { + return (Deleteall) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Deleteall setAccessToken(java.lang.String accessToken) { + return (Deleteall) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Deleteall setAlt(java.lang.String alt) { + return (Deleteall) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Deleteall setCallback(java.lang.String callback) { + return (Deleteall) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Deleteall setFields(java.lang.String fields) { + return (Deleteall) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Deleteall setKey(java.lang.String key) { + return (Deleteall) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Deleteall setOauthToken(java.lang.String oauthToken) { + return (Deleteall) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Deleteall setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deleteall) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Deleteall setQuotaUser(java.lang.String quotaUser) { + return (Deleteall) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Deleteall setUploadType(java.lang.String uploadType) { + return (Deleteall) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Deleteall setUploadProtocol(java.lang.String uploadProtocol) { + return (Deleteall) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -7224,7 +7503,7 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public Deleteall setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -7240,291 +7519,114 @@ public java.lang.String getEditId() { } /** Identifier of the edit. */ - public Update 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 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); + public Deleteall set(String parameterName, Object value) { + return (Deleteall) 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. + * Gets a localized store listing. * - * Create a request for the method "tracks.create". + * 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 Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#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. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). * @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 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 Create extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /** - * Creates a new track. + * Gets a localized store listing. * - * Create a request for the method "tracks.create". + * Create a request for the method "listings.get". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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. 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. + * @param language Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). * @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 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.language = com.google.api.client.util.Preconditions.checkNotNull(language, "Required parameter language 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Required. 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) { - this.packageName = packageName; - return this; - } - - /** Required. Identifier of the edit. */ - @com.google.api.client.util.Key - private java.lang.String editId; - - /** Required. Identifier of the edit. - */ - public java.lang.String getEditId() { - return editId; - } - - /** Required. Identifier of the edit. */ - public Create setEditId(java.lang.String editId) { - this.editId = editId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Gets a track. - * - * Create a request for the method "tracks.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. - * @param track Identifier of the track. [More on track name](https://developers.google.com/android- - * publisher/tracks#ff-track-name) - * @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); - initialize(result); - return result; - } - - public class Get extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; - - /** - * Gets a track. - * - * Create a request for the method "tracks.get". - * - * 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 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 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); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override @@ -7570,25 +7672,24 @@ public Get setEditId(java.lang.String editId) { } /** - * 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 Get setLanguage(java.lang.String language) { + this.language = language; return this; } @@ -7598,9 +7699,9 @@ public Get set(String parameterName, Object value) { } } /** - * Lists all tracks. + * Lists all localized store listings. * - * Create a request for the method "tracks.list". + * 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. @@ -7615,14 +7716,14 @@ public List list(java.lang.String packageName, java.lang.String editId) throws j return result; } - public class List extends AndroidPublisherRequest { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings"; /** - * Lists all tracks. + * Lists all localized store listings. * - * Create a request for the method "tracks.list". + * Create a request for the method "listings.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.

@@ -7634,7 +7735,7 @@ public class List extends AndroidPublisherRequest { + public class Patch extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /** - * Patches a track. + * Patches a localized store listing. * - * Create a request for the method "tracks.patch". + * Create a request for the method "listings.patch". * * This request holds the parameters needed by the the androidpublisher server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -7779,16 +7879,15 @@ public class Patch extends AndroidPublisherRequest { + public class Update extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}"; /** - * Updates a track. + * Creates or updates a localized store listing. * - * Create a request for the method "tracks.update". + * Create a request for the method "listings.update". * * This request holds the parameters needed by the the androidpublisher server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. @@ -7944,16 +8041,15 @@ public class Update extends AndroidPublisherRequestThe typical use is:

- *
-   *   {@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. - * - * Create a request for the method "externaltransactions.createexternaltransaction". + * An accessor for creating requests from the Testers collection. * - * 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. + *

The typical use is:

+ *
+     *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+     *   {@code AndroidPublisher.Testers.List request = androidpublisher.testers().list(parameters ...)}
+     * 
* - * @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 Testers testers() { + return new Testers(); } - public class Createexternaltransaction extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/{+parent}/externalTransactions"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^applications/[^/]+$"); + /** + * The "testers" collection of methods. + */ + public class Testers { /** - * Creates a new external transaction. + * Gets testers. Note: Testers resource does not support email lists. * - * Create a request for the method "externaltransactions.createexternaltransaction". + * Create a request for the method "testers.get". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 Package name of the app. + * @param editId Identifier of the edit. + * @param track The track to read from. + * @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/[^/]+$"); - } + 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 Createexternaltransaction set$Xgafv(java.lang.String $Xgafv) { - return (Createexternaltransaction) super.set$Xgafv($Xgafv); - } + public class Get extends AndroidPublisherRequest { - @Override - public Createexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Createexternaltransaction) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; - @Override - public Createexternaltransaction setAlt(java.lang.String alt) { - return (Createexternaltransaction) super.setAlt(alt); - } + /** + * Gets testers. Note: Testers resource does not support email lists. + * + * Create a request for the method "testers.get". + * + * 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 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.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 Createexternaltransaction setCallback(java.lang.String callback) { - return (Createexternaltransaction) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Createexternaltransaction setFields(java.lang.String fields) { - return (Createexternaltransaction) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Createexternaltransaction setKey(java.lang.String key) { - return (Createexternaltransaction) super.setKey(key); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Createexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Createexternaltransaction) super.setOauthToken(oauthToken); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Createexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Createexternaltransaction) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Createexternaltransaction setQuotaUser(java.lang.String quotaUser) { - return (Createexternaltransaction) super.setQuotaUser(quotaUser); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Createexternaltransaction setUploadType(java.lang.String uploadType) { - return (Createexternaltransaction) super.setUploadType(uploadType); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Createexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Createexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) 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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) 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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) 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 Get setUploadType(java.lang.String uploadType) { + return (Get) 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 Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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; - } + /** 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; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - public class Getexternaltransaction extends AndroidPublisherRequest { + /** Package name of the app. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - private static final String REST_PATH = "androidpublisher/v3/{+name}"; + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^applications/[^/]+/externalTransactions/[^/]+$"); + /** 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); + } + } /** - * Gets an existing external transaction. + * Patches testers. Note: Testers resource does not support email lists. * - * Create a request for the method "externaltransactions.getexternaltransaction". + * Create a request for the method "testers.patch". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 The track to update. + * @param content the {@link com.google.api.services.androidpublisher.model.Testers} + * @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 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; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Patch extends AndroidPublisherRequest { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; - @Override - public Getexternaltransaction set$Xgafv(java.lang.String $Xgafv) { - return (Getexternaltransaction) super.set$Xgafv($Xgafv); - } + /** + * 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 the androidpublisher server. After setting any + * 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 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 Getexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Getexternaltransaction) super.setAccessToken(accessToken); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Getexternaltransaction setAlt(java.lang.String alt) { - return (Getexternaltransaction) super.setAlt(alt); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Getexternaltransaction setCallback(java.lang.String callback) { - return (Getexternaltransaction) super.setCallback(callback); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Getexternaltransaction setFields(java.lang.String fields) { - return (Getexternaltransaction) super.setFields(fields); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Getexternaltransaction setKey(java.lang.String key) { - return (Getexternaltransaction) super.setKey(key); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Getexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Getexternaltransaction) super.setOauthToken(oauthToken); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Getexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Getexternaltransaction) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Getexternaltransaction setQuotaUser(java.lang.String quotaUser) { - return (Getexternaltransaction) super.setQuotaUser(quotaUser); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Getexternaltransaction setUploadType(java.lang.String uploadType) { - return (Getexternaltransaction) super.setUploadType(uploadType); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Getexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Getexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * 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 Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the external transaction to retrieve. Format: - applications/{package_name}/externalTransactions/{external_transaction} - */ - public java.lang.String getName() { - return name; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** - * 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/[^/]+$"); + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; } - 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. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - public class Refundexternaltransaction extends AndroidPublisherRequest { + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - private static final String REST_PATH = "androidpublisher/v3/{+name}:refund"; + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^applications/[^/]+/externalTransactions/[^/]+$"); + /** Identifier of the edit. */ + public Patch 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); + } + } /** - * Refunds or partially refunds an existing external transaction. + * Updates testers. Note: Testers resource does not support email lists. * - * Create a request for the method "externaltransactions.refundexternaltransaction". + * Create a request for the method "testers.update". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 + * @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 */ - 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/[^/]+$"); - } + 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; } - @Override - public Refundexternaltransaction set$Xgafv(java.lang.String $Xgafv) { - return (Refundexternaltransaction) super.set$Xgafv($Xgafv); - } + public class Update extends AndroidPublisherRequest { - @Override - public Refundexternaltransaction setAccessToken(java.lang.String accessToken) { - return (Refundexternaltransaction) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}"; - @Override - public Refundexternaltransaction setAlt(java.lang.String alt) { - return (Refundexternaltransaction) super.setAlt(alt); - } + /** + * Updates testers. Note: Testers resource does not support email lists. + * + * Create a request for the method "testers.update". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

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

+ * + * @param 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 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); + 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 Refundexternaltransaction setCallback(java.lang.String callback) { - return (Refundexternaltransaction) super.setCallback(callback); - } + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - @Override - public Refundexternaltransaction setFields(java.lang.String fields) { - return (Refundexternaltransaction) super.setFields(fields); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public Refundexternaltransaction setKey(java.lang.String key) { - return (Refundexternaltransaction) super.setKey(key); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public Refundexternaltransaction setOauthToken(java.lang.String oauthToken) { - return (Refundexternaltransaction) super.setOauthToken(oauthToken); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public Refundexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Refundexternaltransaction) super.setPrettyPrint(prettyPrint); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public Refundexternaltransaction setQuotaUser(java.lang.String quotaUser) { - return (Refundexternaltransaction) super.setQuotaUser(quotaUser); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public Refundexternaltransaction setUploadType(java.lang.String uploadType) { - return (Refundexternaltransaction) super.setUploadType(uploadType); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public Refundexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { - return (Refundexternaltransaction) super.setUploadProtocol(uploadProtocol); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - /** - * 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 Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - /** 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 Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - /** - * 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 Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - @Override - public Refundexternaltransaction set(String parameterName, Object value) { - return (Refundexternaltransaction) super.set(parameterName, value); - } - } + /** 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; + } - /** - * 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(); - } + /** Package name of the app. */ + public Update setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * The "generatedapks" collection of methods. - */ - public class Generatedapks { + /** 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 Update 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 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); + } + } + } /** - * Downloads a single signed APK generated from an app bundle. - * - * Create a request for the method "generatedapks.download". + * An accessor for creating requests from the Tracks collection. * - * 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. + *

The typical use is:

+ *
+     *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
+     *   {@code AndroidPublisher.Tracks.List request = androidpublisher.tracks().list(parameters ...)}
+     * 
* - * @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 + * @return the resource collection */ - 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 Tracks tracks() { + return new Tracks(); } - public class Download extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download"; + /** + * The "tracks" collection of methods. + */ + public class Tracks { /** - * Downloads a single signed APK generated from an app bundle. + * Creates a new track. * - * Create a request for the method "generatedapks.download". + * Create a request for the method "tracks.create". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 + * @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 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(); + 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 void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); - } + public class Create extends AndroidPublisherRequest { - @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; - @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); - } + /** + * Creates a new track. + * + * Create a request for the method "tracks.create". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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. 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 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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - 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); + } - @Override - 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); + } - @Override - public Download set$Xgafv(java.lang.String $Xgafv) { - return (Download) super.set$Xgafv($Xgafv); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Download setAccessToken(java.lang.String accessToken) { - return (Download) super.setAccessToken(accessToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Download setAlt(java.lang.String alt) { - return (Download) super.setAlt(alt); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Download setCallback(java.lang.String callback) { - return (Download) super.setCallback(callback); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Download setFields(java.lang.String fields) { - return (Download) super.setFields(fields); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Download setKey(java.lang.String key) { - return (Download) super.setKey(key); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Download setOauthToken(java.lang.String oauthToken) { - return (Download) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @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. */ - @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 Download setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** Version code of the app bundle. */ - @com.google.api.client.util.Key - private java.lang.Integer versionCode; + /** Required. Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Version code of the app bundle. - */ - public java.lang.Integer getVersionCode() { - return versionCode; - } + /** Required. Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Version code of the app bundle. */ - public Download setVersionCode(java.lang.Integer versionCode) { - this.versionCode = versionCode; - return this; - } + /** Required. Package name of the app. */ + public Create 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. - */ - @com.google.api.client.util.Key - private java.lang.String downloadId; + /** Required. Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** 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; - } + /** Required. Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - /** - * 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; - } + /** Required. Identifier of the edit. */ + public Create setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - @Override - public Download set(String parameterName, Object value) { - return (Download) super.set(parameterName, value); + @Override + public Create set(String parameterName, Object value) { + return (Create) 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; - } - - public class List extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}"; - /** - * Returns download metadata for all APKs that were generated from a given app bundle. + * Gets a track. * - * Create a request for the method "generatedapks.list". + * Create a request for the method "tracks.get". * - * 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.

+ * 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 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) + * @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 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 { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * Gets a track. + * + * Create a request for the method "tracks.get". + * + * 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 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 List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @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. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Version code of the app bundle. */ - @com.google.api.client.util.Key - private java.lang.Integer versionCode; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** Version code of the app bundle. - */ - public java.lang.Integer getVersionCode() { - return versionCode; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Version code of the app bundle. */ - public List 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; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** 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; + } - /** - * An accessor for creating requests from the Grants collection. - * - *

The 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(); - } + /** Identifier of the edit. */ + @com.google.api.client.util.Key + private java.lang.String editId; - /** - * The "grants" collection of methods. - */ - public class Grants { + /** Identifier of the edit. + */ + public java.lang.String getEditId() { + return editId; + } - /** - * Grant access for a user to the given package. - * - * 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 Create#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} - * @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); - initialize(result); - return result; - } + /** Identifier of the edit. */ + public Get setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } - public class Create extends AndroidPublisherRequest { + /** + * 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; - private static final String REST_PATH = "androidpublisher/v3/{+parent}/grants"; + /** 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; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+$"); + /** + * 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 Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Grant access for a user to the given package. + * Lists all tracks. * - * Create a request for the method "grants.create". + * Create a request for the method "tracks.list". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 + * @param packageName Package name of the app. + * @param editId Identifier of the edit. + * @return the request */ - 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/[^/]+$"); - } + 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 Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class List extends AndroidPublisherRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** + * Lists all tracks. + * + * Create a request for the method "tracks.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 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 Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The user which needs permission. Format: developers/{developer}/users/{user} - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** 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/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Removes all access for the user to the given package or developer account. - * - * 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 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 name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - public class Delete extends AndroidPublisherRequest { + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "androidpublisher/v3/{+name}"; + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** Package name of the app. */ + public List 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 List setEditId(java.lang.String editId) { + this.editId = editId; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Removes all access for the user to the given package or developer account. + * Patches a track. * - * Create a request for the method "grants.delete". + * Create a request for the method "tracks.patch". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * 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 name Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} - * @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) + * @param content the {@link com.google.api.services.androidpublisher.model.Track} + * @return the request */ - protected Delete(java.lang.String name) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.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/[^/]+$"); - } + 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Patch extends AndroidPublisherRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * Patches a track. + * + * Create a request for the method "tracks.patch". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** Required. The name of the grant to delete. Format: - developers/{developer}/users/{email}/grants/{package_name} - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * Required. The name of the grant to delete. Format: - * developers/{developer}/users/{email}/grants/{package_name} - */ - public Delete 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/[^/]+$"); + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Updates access for the user to the given package. - * - * Create a request for the method "grants.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 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} - * @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); - initialize(result); - return result; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - public class Patch extends AndroidPublisherRequest { + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - private static final String REST_PATH = "androidpublisher/v3/{+name}"; + /** Package name of the app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+/grants/[^/]+$"); + /** 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 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) + */ + @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 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); + } + } /** - * Updates access for the user to the given package. + * Updates a track. * - * Create a request for the method "grants.patch". + * Create a request for the method "tracks.update". * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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 + * @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 */ - 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/[^/]+$"); - } + 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 Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Update extends AndroidPublisherRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + /** + * Updates a track. + * + * Create a request for the method "tracks.update". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

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

+ * + * @param 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 Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - /** - * 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 name; + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - /** 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 getName() { - return name; - } + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - /** - * 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/[^/]+$"); + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } - this.name = name; - return this; - } - /** Optional. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Optional. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Optional. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** Package name of the app. */ + public Update setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + /** 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 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 Inappproducts collection. + * An accessor for creating requests from the Externaltransactions collection. * *

The typical use is:

*
    *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-   *   {@code AndroidPublisher.Inappproducts.List request = androidpublisher.inappproducts().list(parameters ...)}
+   *   {@code AndroidPublisher.Externaltransactions.List request = androidpublisher.externaltransactions().list(parameters ...)}
    * 
* * @return the resource collection */ - public Inappproducts inappproducts() { - return new Inappproducts(); + public Externaltransactions externaltransactions() { + return new Externaltransactions(); } /** - * The "inappproducts" collection of methods. + * The "externaltransactions" collection of methods. */ - public class Inappproducts { + public class Externaltransactions { /** - * 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. + * Creates a new external transaction. * - * Create a request for the method "inappproducts.batchDelete". + * 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 BatchDelete#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link Createexternaltransaction#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 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 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 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 BatchDelete extends AndroidPublisherRequest { + public class Createexternaltransaction extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete"; + private static final String REST_PATH = "androidpublisher/v3/{+parent}/externalTransactions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^applications/[^/]+$"); /** - * 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. + * Creates a new external transaction. * - * Create a request for the method "inappproducts.batchDelete". + * Create a request for the method "externaltransactions.createexternaltransaction". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchDeleteRequest} + * @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 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."); + 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 BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); + public Createexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Createexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); + public Createexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Createexternaltransaction) super.setAccessToken(accessToken); } @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); + public Createexternaltransaction setAlt(java.lang.String alt) { + return (Createexternaltransaction) super.setAlt(alt); } @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); + public Createexternaltransaction setCallback(java.lang.String callback) { + return (Createexternaltransaction) super.setCallback(callback); } @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); + public Createexternaltransaction setFields(java.lang.String fields) { + return (Createexternaltransaction) super.setFields(fields); } @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); + public Createexternaltransaction setKey(java.lang.String key) { + return (Createexternaltransaction) super.setKey(key); } @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); + public Createexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Createexternaltransaction) super.setOauthToken(oauthToken); } @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); + public Createexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Createexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); + public Createexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Createexternaltransaction) super.setQuotaUser(quotaUser); } @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); + public Createexternaltransaction setUploadType(java.lang.String uploadType) { + return (Createexternaltransaction) super.setUploadType(uploadType); } @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); + public Createexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Createexternaltransaction) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** + * 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 packageName; + private java.lang.String parent; - /** Package name of the app. + /** Required. The parent resource where this external transaction will be created. Format: + applications/{package_name} */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getParent() { + return parent; } - /** Package name of the app. */ - public BatchDelete setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** + * 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/[^/]+$"); + } + this.parent = parent; return this; } - @Override - public BatchDelete set(String parameterName, Object value) { - return (BatchDelete) 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. - * - * Create a request for the method "inappproducts.batchGet". + /** + * 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 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 BatchGet#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Getexternaltransaction#execute()} method to invoke the + * remote operation. * - * @param packageName Package name of the app. + * @param name Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} * @return the request */ - public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { - BatchGet result = new BatchGet(packageName); + public Getexternaltransaction getexternaltransaction(java.lang.String name) throws java.io.IOException { + Getexternaltransaction result = new Getexternaltransaction(name); initialize(result); return result; } - public class BatchGet extends AndroidPublisherRequest { + public class Getexternaltransaction extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet"; + private static final String REST_PATH = "androidpublisher/v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^applications/[^/]+/externalTransactions/[^/]+$"); /** - * 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. + * Gets an existing external transaction. * - * Create a request for the method "inappproducts.batchGet". + * Create a request for the method "externaltransactions.getexternaltransaction". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 packageName Package name of the app. + * @param name Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} * @since 1.13 */ - 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."); + 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/[^/]+$"); + } } @Override @@ -9579,326 +9724,392 @@ 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 Getexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Getexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); + public Getexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Getexternaltransaction) super.setAccessToken(accessToken); } @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); + public Getexternaltransaction setAlt(java.lang.String alt) { + return (Getexternaltransaction) super.setAlt(alt); } @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); + public Getexternaltransaction setCallback(java.lang.String callback) { + return (Getexternaltransaction) super.setCallback(callback); } @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); + public Getexternaltransaction setFields(java.lang.String fields) { + return (Getexternaltransaction) super.setFields(fields); } @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); + public Getexternaltransaction setKey(java.lang.String key) { + return (Getexternaltransaction) super.setKey(key); } @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); + public Getexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Getexternaltransaction) super.setOauthToken(oauthToken); } @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); + public Getexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Getexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); + public Getexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Getexternaltransaction) super.setQuotaUser(quotaUser); } @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); + public Getexternaltransaction setUploadType(java.lang.String uploadType) { + return (Getexternaltransaction) super.setUploadType(uploadType); } @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); + public Getexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Getexternaltransaction) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; - - /** Package name of the app. + /** + * Required. The name of the external transaction to retrieve. Format: + * applications/{package_name}/externalTransactions/{external_transaction} */ - public java.lang.String getPackageName() { - return packageName; - } - - /** Package name of the app. */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } - - /** Unique identifier for the in-app products. */ @com.google.api.client.util.Key - private java.util.List sku; + private java.lang.String name; - /** Unique identifier for the in-app products. + /** Required. The name of the external transaction to retrieve. Format: + applications/{package_name}/externalTransactions/{external_transaction} */ - public java.util.List getSku() { - return sku; + public java.lang.String getName() { + return name; } - /** Unique identifier for the in-app products. */ - public BatchGet setSku(java.util.List sku) { - this.sku = sku; + /** + * 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/[^/]+$"); + } + this.name = name; return this; } @Override - public BatchGet set(String parameterName, Object value) { - return (BatchGet) super.set(parameterName, value); + public Getexternaltransaction set(String parameterName, Object value) { + return (Getexternaltransaction) super.set(parameterName, value); } } /** - * 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. + * Refunds or partially refunds an existing external transaction. * - * Create a request for the method "inappproducts.batchUpdate". + * 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 BatchUpdate#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link Refundexternaltransaction#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} + * @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 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 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 BatchUpdate extends AndroidPublisherRequest { + public class Refundexternaltransaction extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate"; + private static final String REST_PATH = "androidpublisher/v3/{+name}:refund"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^applications/[^/]+/externalTransactions/[^/]+$"); /** - * 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. + * Refunds or partially refunds an existing external transaction. * - * Create a request for the method "inappproducts.batchUpdate". + * Create a request for the method "externaltransactions.refundexternaltransaction". * * 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.

+ * 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 packageName Package name of the app. - * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest} + * @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 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 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/[^/]+$"); + } } @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); + public Refundexternaltransaction set$Xgafv(java.lang.String $Xgafv) { + return (Refundexternaltransaction) super.set$Xgafv($Xgafv); } @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); + public Refundexternaltransaction setAccessToken(java.lang.String accessToken) { + return (Refundexternaltransaction) super.setAccessToken(accessToken); } @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); + public Refundexternaltransaction setAlt(java.lang.String alt) { + return (Refundexternaltransaction) super.setAlt(alt); } @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); + public Refundexternaltransaction setCallback(java.lang.String callback) { + return (Refundexternaltransaction) super.setCallback(callback); } @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); + public Refundexternaltransaction setFields(java.lang.String fields) { + return (Refundexternaltransaction) super.setFields(fields); } @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); + public Refundexternaltransaction setKey(java.lang.String key) { + return (Refundexternaltransaction) super.setKey(key); } @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); + public Refundexternaltransaction setOauthToken(java.lang.String oauthToken) { + return (Refundexternaltransaction) super.setOauthToken(oauthToken); } @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); + public Refundexternaltransaction setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Refundexternaltransaction) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); + public Refundexternaltransaction setQuotaUser(java.lang.String quotaUser) { + return (Refundexternaltransaction) super.setQuotaUser(quotaUser); } @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); + public Refundexternaltransaction setUploadType(java.lang.String uploadType) { + return (Refundexternaltransaction) super.setUploadType(uploadType); } @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); + public Refundexternaltransaction setUploadProtocol(java.lang.String uploadProtocol) { + return (Refundexternaltransaction) super.setUploadProtocol(uploadProtocol); } - /** Package name of the app. */ + /** + * 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 packageName; + private java.lang.String name; - /** Package name of the app. + /** Required. The name of the external transaction that will be refunded. Format: + applications/{package_name}/externalTransactions/{external_transaction} */ - public java.lang.String getPackageName() { - return packageName; + public java.lang.String getName() { + return name; } - /** Package name of the app. */ - public BatchUpdate setPackageName(java.lang.String packageName) { - this.packageName = packageName; + /** + * 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/[^/]+$"); + } + this.name = name; return this; } @Override - public BatchUpdate set(String parameterName, Object value) { - return (BatchUpdate) super.set(parameterName, value); + public Refundexternaltransaction set(String parameterName, Object value) { + return (Refundexternaltransaction) super.set(parameterName, value); } } + + } + + /** + * 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(); + } + + /** + * The "generatedapks" collection of methods. + */ + public class Generatedapks { + /** - * 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. + * Downloads a single signed APK generated from an app bundle. * - * Create a request for the method "inappproducts.delete". + * 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 Delete#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 sku Unique identifier for the in-app product. + * @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 Delete delete(java.lang.String packageName, java.lang.String sku) throws java.io.IOException { - Delete result = new Delete(packageName, sku); + 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 Delete extends AndroidPublisherRequest { + public class Download extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download"; /** - * 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. + * Downloads a single signed APK generated from an app bundle. * - * Create a request for the method "inappproducts.delete". + * Create a request for the method "generatedapks.download". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Download#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.

+ * 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 sku Unique identifier for the in-app product. + * @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 Delete(java.lang.String packageName, java.lang.String sku) { - super(AndroidPublisher.this, "DELETE", REST_PATH, null, 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.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) 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 Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) 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. */ @@ -9912,101 +10123,95 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Delete setPackageName(java.lang.String packageName) { + public Download setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } - /** Unique identifier for the in-app product. */ + /** Version code of the app bundle. */ @com.google.api.client.util.Key - private java.lang.String sku; + private java.lang.Integer versionCode; - /** Unique identifier for the in-app product. + /** Version code of the app bundle. */ - public java.lang.String getSku() { - return sku; + public java.lang.Integer getVersionCode() { + return versionCode; } - /** Unique identifier for the in-app product. */ - public Delete setSku(java.lang.String sku) { - this.sku = sku; + /** Version code of the app bundle. */ + public Download setVersionCode(java.lang.Integer versionCode) { + this.versionCode = versionCode; return this; } /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. + * 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 latencyTolerance; + private java.lang.String downloadId; - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. + /** Download ID, which uniquely identifies the APK to download. Can be obtained from the response of + `generatedapks.list` method. */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; + public java.lang.String getDownloadId() { + return downloadId; } /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. + * Download ID, which uniquely identifies the APK to download. Can be obtained from the + * response of `generatedapks.list` method. */ - public Delete setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; + public Download setDownloadId(java.lang.String downloadId) { + this.downloadId = downloadId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); } } /** - * 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. + * Returns download metadata for all APKs that were generated from a given app bundle. * - * Create a request for the method "inappproducts.get". + * 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 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 sku Unique identifier for the in-app product. + * @param versionCode Version code of the app bundle. * @return the request */ - public Get get(java.lang.String packageName, java.lang.String sku) throws java.io.IOException { - Get result = new Get(packageName, sku); + 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 Get extends AndroidPublisherRequest { + public class List extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}"; /** - * 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. + * Returns download metadata for all APKs that were generated from a given app bundle. * - * Create a request for the method "inappproducts.get". + * Create a request for the method "generatedapks.list". * * 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)} + * 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 sku Unique identifier for the in-app product. + * @param versionCode Version code of the app bundle. * @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); + 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.sku = com.google.api.client.util.Preconditions.checkNotNull(sku, "Required parameter sku must be specified."); + this.versionCode = com.google.api.client.util.Preconditions.checkNotNull(versionCode, "Required parameter versionCode must be specified."); } @Override @@ -10020,58 +10225,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. */ @@ -10085,399 +10290,355 @@ 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; } - /** Unique identifier for the in-app product. */ + /** Version code of the app bundle. */ @com.google.api.client.util.Key - private java.lang.String sku; + private java.lang.Integer versionCode; - /** Unique identifier for the in-app product. + /** Version code of the app bundle. */ - public java.lang.String getSku() { - return sku; + public java.lang.Integer getVersionCode() { + return versionCode; } - /** Unique identifier for the in-app product. */ - public Get setSku(java.lang.String sku) { - this.sku = sku; + /** Version code of the app bundle. */ + public List setVersionCode(java.lang.Integer versionCode) { + this.versionCode = versionCode; 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); } } + + } + + /** + * An accessor for creating requests from the Grants collection. + * + *

The 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 { + /** - * 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. + * Grant access for a user to the given package. * - * Create a request for the method "inappproducts.insert". + * 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 Insert#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.InAppProduct} + * @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 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 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 Insert extends AndroidPublisherRequest { + public class Create extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts"; + private static final String REST_PATH = "androidpublisher/v3/{+parent}/grants"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+$"); /** - * 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. + * Grant access for a user to the given package. * - * Create a request for the method "inappproducts.insert". + * Create a request for the method "grants.create". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.InAppProduct} + * @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 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."); + 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 Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) 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 Insert setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** - * 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. - */ + /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ @com.google.api.client.util.Key - private java.lang.Boolean autoConvertMissingPrices; + private java.lang.String parent; - /** 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. + /** Required. The user which needs permission. Format: developers/{developer}/users/{user} */ - public java.lang.Boolean getAutoConvertMissingPrices() { - return autoConvertMissingPrices; + public java.lang.String getParent() { + return parent; } - /** - * 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) 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. + * Removes all access for the user to the given package or developer account. * - * Create a request for the method "inappproducts.list". + * 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 List#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 name Required. The name of the grant to delete. Format: + * developers/{developer}/users/{email}/grants/{package_name} * @return the request */ - public List list(java.lang.String packageName) throws java.io.IOException { - List result = new List(packageName); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends AndroidPublisherRequest { + public class Delete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts"; + private static final String REST_PATH = "androidpublisher/v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+/grants/[^/]+$"); /** - * 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. + * Removes all access for the user to the given package or developer account. * - * Create a request for the method "inappproducts.list". + * Create a request for the method "grants.delete". * * 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.

+ * 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 name Required. The name of the grant to delete. Format: + * developers/{developer}/users/{email}/grants/{package_name} * @since 1.13 */ - 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 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 Delete(java.lang.String name) { + super(AndroidPublisher.this, "DELETE", REST_PATH, null, Void.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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) 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. - */ - public java.lang.String getPackageName() { - return packageName; - } - - /** Package name of the app. */ - public List setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** 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. + /** + * Required. The name of the grant to delete. Format: + * developers/{developer}/users/{email}/grants/{package_name} */ - 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; + private java.lang.String name; - /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. + /** Required. The name of the grant to delete. Format: + developers/{developer}/users/{email}/grants/{package_name} */ - 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; + public java.lang.String getName() { + return name; } - /** Pagination token. If empty, list starts at the first product. */ - @com.google.api.client.util.Key - private java.lang.String token; - - /** Pagination token. If empty, list starts at the first product. + /** + * Required. The name of the grant to delete. Format: + * developers/{developer}/users/{email}/grants/{package_name} */ - public java.lang.String getToken() { - return token; - } - - /** Pagination token. If empty, list starts at the first product. */ - public List setToken(java.lang.String token) { - this.token = token; + public Delete 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; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Updates access for the user to the given package. * - * Create a request for the method "inappproducts.patch". + * Create a request for the method "grants.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} + * @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} * @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); + 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); initialize(result); return result; } - public class Patch extends AndroidPublisherRequest { + public class Patch extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; + private static final String REST_PATH = "androidpublisher/v3/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^developers/[^/]+/users/[^/]+/grants/[^/]+$"); /** - * 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. + * Updates access for the user to the given package. * - * Create a request for the method "inappproducts.patch". + * Create a request for the method "grants.patch". * * This request holds the parameters needed by the the androidpublisher server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. @@ -10485,15 +10646,20 @@ public class Patch extends AndroidPublisherRequest * - * @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 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 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."); + 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 @@ -10551,84 +10717,50 @@ 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; - } - - /** Package name of the app. */ - public Patch 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; + public java.lang.String getName() { + return name; } /** - * 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. + * 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 setAutoConvertMissingPrices(java.lang.Boolean autoConvertMissingPrices) { - this.autoConvertMissingPrices = autoConvertMissingPrices; + 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; } - /** - * Optional. The latency tolerance for the propagation of this product update. Defaults to - * latency-sensitive. - */ + /** Optional. The list of fields to be updated. */ @com.google.api.client.util.Key - private java.lang.String latencyTolerance; + private String updateMask; - /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- - sensitive. + /** Optional. The list of fields to be updated. */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; + public String getUpdateMask() { + return updateMask; } - /** - * 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; + /** Optional. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @@ -10637,110 +10769,133 @@ 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 { + /** - * 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- - * 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.update". + * 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 Update#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 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.InappproductsBatchDeleteRequest} * @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 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 Update extends AndroidPublisherRequest { + public class BatchDelete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete"; /** - * 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- - * 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.update". + * Create a request for the method "inappproducts.batchDelete". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. - *

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

+ * 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 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.InappproductsBatchDeleteRequest} * @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 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."); - 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 BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -10754,281 +10909,125 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Update setPackageName(java.lang.String packageName) { + public BatchDelete 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 Update setSku(java.lang.String sku) { - this.sku = sku; - return this; + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) 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. + * + * 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 BatchGet#execute()} method to invoke the remote operation. + * + * @param packageName Package name of the app. + * @return the request + */ + public BatchGet batchGet(java.lang.String packageName) throws java.io.IOException { + BatchGet result = new BatchGet(packageName); + initialize(result); + return result; + } - /** - * 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; + public class BatchGet extends AndroidPublisherRequest { - /** 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; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet"; /** - * 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. - */ - @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 Update setLatencyTolerance(java.lang.String latencyTolerance) { - this.latencyTolerance = latencyTolerance; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) 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. - * - * 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; - } - - /** - * 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 { - - private static final String REST_PATH = "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"; - - /** - * 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. + * 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 "internalappsharingartifacts.uploadapk". + * Create a request for the method "inappproducts.batchGet". * * 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)} + * 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 Uploadapk(java.lang.String packageName) { - super(AndroidPublisher.this, "POST", REST_PATH, null, com.google.api.services.androidpublisher.model.InternalAppSharingArtifact.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."); } - /** - * 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 BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public Uploadapk setAlt(java.lang.String alt) { - return (Uploadapk) super.setAlt(alt); + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); } @Override - public Uploadapk setCallback(java.lang.String callback) { - return (Uploadapk) super.setCallback(callback); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public Uploadapk setFields(java.lang.String fields) { - return (Uploadapk) super.setFields(fields); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public Uploadapk setKey(java.lang.String key) { - return (Uploadapk) super.setKey(key); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public Uploadapk setOauthToken(java.lang.String oauthToken) { - return (Uploadapk) super.setOauthToken(oauthToken); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public Uploadapk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Uploadapk) super.setPrettyPrint(prettyPrint); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public Uploadapk setQuotaUser(java.lang.String quotaUser) { - return (Uploadapk) super.setQuotaUser(quotaUser); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public Uploadapk setUploadType(java.lang.String uploadType) { - return (Uploadapk) super.setUploadType(uploadType); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public Uploadapk setUploadProtocol(java.lang.String uploadProtocol) { - return (Uploadapk) super.setUploadProtocol(uploadProtocol); + 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); } /** Package name of the app. */ @@ -11042,174 +11041,136 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Uploadapk setPackageName(java.lang.String packageName) { + public BatchGet setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } + /** Unique identifier for the in-app products. */ + @com.google.api.client.util.Key + private java.util.List sku; + + /** Unique identifier for the in-app products. + */ + public java.util.List getSku() { + return sku; + } + + /** Unique identifier for the in-app products. */ + public BatchGet setSku(java.util.List sku) { + this.sku = sku; + return this; + } + @Override - public Uploadapk set(String parameterName, Object value) { - return (Uploadapk) super.set(parameterName, value); + public BatchGet set(String parameterName, Object value) { + return (BatchGet) 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; - } - - /** - * 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. + * 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. * - * Create a request for the method "internalappsharingartifacts.uploadbundle". + * Create a request for the method "inappproducts.batchUpdate". * - * 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 + * 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. * - *

- * This method should be used for uploading media content. - *

- * * @param packageName Package name of the app. - * @param mediaContent The media HTTP content. + * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest} * @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 BatchUpdate batchUpdate(java.lang.String packageName, com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest content) throws java.io.IOException { + BatchUpdate result = new BatchUpdate(packageName, content); initialize(result); return result; } - public class Uploadbundle extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"; + public class BatchUpdate extends AndroidPublisherRequest { - /** - * 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.

{@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:batchUpdate"; /** - * 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. + * 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. * - * Create a request for the method "internalappsharingartifacts.uploadbundle". + * Create a request for the method "inappproducts.batchUpdate". * * 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 + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote * operation.

{@link - * Uploadbundle#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.

* - *

- * This constructor should be used for uploading media content. - *

- * * @param packageName Package name of the app. - * @param mediaContent The media HTTP content. + * @param content the {@link com.google.api.services.androidpublisher.model.InappproductsBatchUpdateRequest} * @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 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."); - 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 BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public Uploadbundle setAccessToken(java.lang.String accessToken) { - return (Uploadbundle) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public Uploadbundle setAlt(java.lang.String alt) { - return (Uploadbundle) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public Uploadbundle setCallback(java.lang.String callback) { - return (Uploadbundle) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public Uploadbundle setFields(java.lang.String fields) { - return (Uploadbundle) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public Uploadbundle setKey(java.lang.String key) { - return (Uploadbundle) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public Uploadbundle setOauthToken(java.lang.String oauthToken) { - return (Uploadbundle) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public Uploadbundle setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Uploadbundle) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public Uploadbundle setQuotaUser(java.lang.String quotaUser) { - return (Uploadbundle) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public Uploadbundle setUploadType(java.lang.String uploadType) { - return (Uploadbundle) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public Uploadbundle setUploadProtocol(java.lang.String uploadProtocol) { - return (Uploadbundle) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); } /** Package name of the app. */ @@ -11223,2761 +11184,4197 @@ public java.lang.String getPackageName() { } /** Package name of the app. */ - public Uploadbundle setPackageName(java.lang.String packageName) { + public BatchUpdate setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @Override - public Uploadbundle set(String parameterName, Object value) { - return (Uploadbundle) super.set(parameterName, value); + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); } } - - } - - /** - * 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(); - } - - /** - * The "monetization" collection of methods. - */ - public class Monetization { - /** - * 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. + * 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 "monetization.convertRegionPrices". + * 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 ConvertRegionPrices#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link Delete#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. + * @param sku Unique identifier for the in-app product. * @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 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 ConvertRegionPrices extends AndroidPublisherRequest { + public class Delete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /** - * 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. + * 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 "monetization.convertRegionPrices". + * Create a request for the method "inappproducts.delete". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link ConvertRegionPrices#execute()} method to invoke the remote - * operation.

{@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 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 Required. The app package name. - * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest} + * @param packageName Package name of the app. + * @param sku Unique identifier for the in-app product. * @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 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 ConvertRegionPrices set$Xgafv(java.lang.String $Xgafv) { - return (ConvertRegionPrices) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public ConvertRegionPrices setAccessToken(java.lang.String accessToken) { - return (ConvertRegionPrices) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public ConvertRegionPrices setAlt(java.lang.String alt) { - return (ConvertRegionPrices) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public ConvertRegionPrices setCallback(java.lang.String callback) { - return (ConvertRegionPrices) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public ConvertRegionPrices setFields(java.lang.String fields) { - return (ConvertRegionPrices) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public ConvertRegionPrices setKey(java.lang.String key) { - return (ConvertRegionPrices) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public ConvertRegionPrices setOauthToken(java.lang.String oauthToken) { - return (ConvertRegionPrices) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public ConvertRegionPrices setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ConvertRegionPrices) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public ConvertRegionPrices setQuotaUser(java.lang.String quotaUser) { - return (ConvertRegionPrices) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public ConvertRegionPrices setUploadType(java.lang.String uploadType) { - return (ConvertRegionPrices) super.setUploadType(uploadType); - } + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } @Override - public ConvertRegionPrices setUploadProtocol(java.lang.String uploadProtocol) { - return (ConvertRegionPrices) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The app package name. */ + /** 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 Delete 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 Delete setSku(java.lang.String sku) { + this.sku = sku; + 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 Delete setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } + @Override - public ConvertRegionPrices set(String parameterName, Object value) { - return (ConvertRegionPrices) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Onetimeproducts collection. + * 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. * - *

The typical use is:

- *
-     *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-     *   {@code AndroidPublisher.Onetimeproducts.List request = androidpublisher.onetimeproducts().list(parameters ...)}
-     * 
+ * Create a request for the method "inappproducts.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 Package name of the app. + * @param sku Unique identifier for the in-app product. + * @return the request */ - public Onetimeproducts onetimeproducts() { - return new Onetimeproducts(); + 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; } - /** - * The "onetimeproducts" collection of methods. - */ - public class Onetimeproducts { + public class Get extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; /** - * Deletes one or more one-time products. + * 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 "onetimeproducts.batchDelete". + * 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 BatchDelete#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 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) 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 + * @param packageName Package name of the app. + * @param sku Unique identifier for the in-app product. + * @since 1.13 */ - 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; + 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."); } - public class BatchDelete extends AndroidPublisherRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Deletes one or more one-time products. - * - * Create a request for the method "onetimeproducts.batchDelete". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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) 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) 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 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; + /** 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 deleted. Must be - equal to the package_name field on all the OneTimeProduct resources. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Package name of the app. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + 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. - */ - public BatchDelete 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; - @Override - public BatchDelete set(String parameterName, Object value) { - return (BatchDelete) super.set(parameterName, value); - } + /** 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 Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * 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 "inappproducts.insert". + * + * 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.InAppProduct} + * @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); + initialize(result); + return result; + } + + public class Insert extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts"; + /** - * Reads one or more one-time products. + * 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 "onetimeproducts.batchGet". + * 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 BatchGet#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 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 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 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 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."); } - public class BatchGet extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet"; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - /** - * Reads one or more one-time products. - * - * Create a request for the method "onetimeproducts.batchGet". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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 Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) 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 Insert setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + /** + * 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. 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; + /** 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; + } - /** 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; - } + /** + * 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; + } - /** - * 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; - } - - /** 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 productIds; + @Override + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * + * 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 List#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); + initialize(result); + return result; + } - /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. - */ - public java.util.List getProductIds() { - return productIds; - } + public class List extends AndroidPublisherRequest { - /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. */ - public BatchGet setProductIds(java.util.List productIds) { - this.productIds = productIds; - return this; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts"; - @Override - public BatchGet set(String parameterName, Object value) { - return (BatchGet) super.set(parameterName, value); - } - } /** - * Creates or updates one or more one-time products. + * 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 "onetimeproducts.batchUpdate". + * 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 BatchUpdate#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 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 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. + * @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 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."); } - public class BatchUpdate extends AndroidPublisherRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Creates or updates one or more one-time products. - * - * Create a request for the method "onetimeproducts.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 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) 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 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 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; - } + /** Package name of the app. */ + public List 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; - } + /** Deprecated and ignored. The page size is determined by the server. */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @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 + /** Deprecated and ignored. The page size is determined by the server. */ - 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; + public java.lang.Long getMaxResults() { + return maxResults; } - public class Delete extends AndroidPublisherRequest { + /** Deprecated and ignored. The page size is determined by the server. */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; + /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. */ + @com.google.api.client.util.Key + private java.lang.Long startIndex; - /** - * Deletes a one-time product. - * - * Create a request for the method "onetimeproducts.delete". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

- * - * @param 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."); - } + /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. + */ + public java.lang.Long getStartIndex() { + return startIndex; + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** Deprecated and ignored. Set the `token` parameter to retrieve the next page. */ + public List setStartIndex(java.lang.Long startIndex) { + this.startIndex = startIndex; + return this; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** Pagination token. If empty, list starts at the first product. */ + @com.google.api.client.util.Key + private java.lang.String token; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** Pagination token. If empty, list starts at the first product. + */ + public java.lang.String getToken() { + return token; + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** Pagination token. If empty, list starts at the first product. */ + public List setToken(java.lang.String token) { + this.token = token; + return this; + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @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; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + public class Patch extends AndroidPublisherRequest { - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * 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 the androidpublisher server. After setting any + * 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 content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @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); + 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 Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** 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 Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** Required. The parent app (package name) of the one-time product to delete. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** 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; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** Required. The one-time product ID of the one-time product to delete. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Required. The one-time product ID of the one-time product to delete. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** 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; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) 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 Patch setUploadType(java.lang.String uploadType) { + return (Patch) 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 Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** - * 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; - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; } - /** - * 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 AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; - - /** - * Reads a single one-time product. - * - * Create a request for the method "onetimeproducts.get". - * - * 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 - */ - 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 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); - } + /** Package name of the app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Unique identifier for the in-app product. */ + @com.google.api.client.util.Key + private java.lang.String sku; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Unique identifier for the in-app product. + */ + public java.lang.String getSku() { + return sku; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Unique identifier for the in-app product. */ + public Patch setSku(java.lang.String sku) { + this.sku = sku; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * 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 Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** 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 Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; + } - /** Required. The parent app (package name) of the product to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** + * 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 parent app (package name) of the product to retrieve. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - /** Required. The parent app (package name) of the product to retrieve. */ - public Get 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. + */ + public Patch setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; + } - /** Required. The product ID of the product to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) 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- + * 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". + * + * 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 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); + initialize(result); + return result; + } - /** Required. The product ID of the product to retrieve. - */ - public java.lang.String getProductId() { - return productId; - } + public class Update extends AndroidPublisherRequest { - /** Required. The product ID of the product to retrieve. */ - public Get setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}"; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists all one-time products under a given app. + * 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- + * developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more + * information. * - * Create a request for the method "onetimeproducts.list". + * Create a request for the method "inappproducts.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. + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

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

* - * @param 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. + * @param sku Unique identifier for the in-app product. + * @param content the {@link com.google.api.services.androidpublisher.model.InAppProduct} + * @since 1.13 */ - public List list(java.lang.String packageName) throws java.io.IOException { - List result = new List(packageName); - 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 List extends AndroidPublisherRequest { + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts"; + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - /** - * 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Package name of the app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Package name of the app. */ + public Update setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) 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 one-time product should be read. - */ - @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 one-time product should be read. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** Unique identifier for the in-app product. */ + public Update setSku(java.lang.String sku) { + this.sku = sku; + 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; - } + /** + * 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; - /** - * 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; + /** 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; + } - /** 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; - } + /** + * 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; + } - /** - * 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; - } + /** + * 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; - /** - * 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; + /** 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; + } - /** 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; - } + /** + * 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. 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; - } + /** + * 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; } + /** - * 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 + * Optional. The latency tolerance for the propagation of this product update. Defaults to + * latency-sensitive. */ - 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; + public Update setLatencyTolerance(java.lang.String latencyTolerance) { + this.latencyTolerance = latencyTolerance; + return this; } - public class Patch extends AndroidPublisherRequest { + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}"; + } - /** - * Creates or updates a one-time product. - * - * Create a request for the method "onetimeproducts.patch". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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."); - } + /** + * 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 Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + /** + * The "internalappsharingartifacts" collection of methods. + */ + public class Internalappsharingartifacts { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + /** + * 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; + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + /** + * 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; + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + public class Uploadapk extends AndroidPublisherRequest { - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + private static final String REST_PATH = "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"; - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + /** + * 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.

+ * + * @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."); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + /** + * 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 Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Uploadapk set$Xgafv(java.lang.String $Xgafv) { + return (Uploadapk) super.set$Xgafv($Xgafv); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Uploadapk setAccessToken(java.lang.String accessToken) { + return (Uploadapk) super.setAccessToken(accessToken); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Uploadapk setAlt(java.lang.String alt) { + return (Uploadapk) super.setAlt(alt); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Uploadapk setCallback(java.lang.String callback) { + return (Uploadapk) super.setCallback(callback); + } - /** Required. Immutable. Package name of the parent app. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Uploadapk setFields(java.lang.String fields) { + return (Uploadapk) super.setFields(fields); + } - /** Required. Immutable. Package name of the parent app. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Uploadapk setKey(java.lang.String key) { + return (Uploadapk) super.setKey(key); + } - /** Required. Immutable. Package name of the parent app. */ - public Patch setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + @Override + public Uploadapk setOauthToken(java.lang.String oauthToken) { + return (Uploadapk) super.setOauthToken(oauthToken); + } - /** - * 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; - - /** 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; - } - - /** - * 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; - } - - /** - * 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; - } - - /** - * 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; - } + @Override + public Uploadapk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadapk) super.setPrettyPrint(prettyPrint); + } - /** - * 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; + @Override + public Uploadapk setQuotaUser(java.lang.String quotaUser) { + return (Uploadapk) super.setQuotaUser(quotaUser); + } - /** Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency- - sensitive. - */ - public java.lang.String getLatencyTolerance() { - return latencyTolerance; - } + @Override + public Uploadapk setUploadType(java.lang.String uploadType) { + return (Uploadapk) super.setUploadType(uploadType); + } - /** - * 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; - } + @Override + public Uploadapk setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadapk) 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. - */ - @com.google.api.client.util.Key("regionsVersion.version") - private java.lang.String regionsVersionVersion; + /** Package name of the app. */ + @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. - */ - public java.lang.String getRegionsVersionVersion() { - return regionsVersionVersion; - } + /** Package name of the app. + */ + 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 Patch setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; - return this; - } + /** Package name of the app. */ + public Uploadapk setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; + @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 list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } + /** + * 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 list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + public class Uploadbundle extends AndroidPublisherRequest { - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } + private static final String REST_PATH = "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"; /** - * An accessor for creating requests from the PurchaseOptions collection. + * 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. * - *

The typical use is:

- *
-       *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-       *   {@code AndroidPublisher.PurchaseOptions.List request = androidpublisher.purchaseOptions().list(parameters ...)}
-       * 
+ * Create a request for the method "internalappsharingartifacts.uploadbundle". * - * @return the resource collection + * 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.

+ * + * @param packageName Package name of the app. + * @since 1.13 */ - public PurchaseOptions purchaseOptions() { - return new PurchaseOptions(); + 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."); } /** - * The "purchaseOptions" collection of methods. + * 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.

{@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 */ - public class PurchaseOptions { + 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); + } - /** - * 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; - } + @Override + public Uploadbundle set$Xgafv(java.lang.String $Xgafv) { + return (Uploadbundle) super.set$Xgafv($Xgafv); + } - public class BatchDelete extends AndroidPublisherRequest { + @Override + public Uploadbundle setAccessToken(java.lang.String accessToken) { + return (Uploadbundle) super.setAccessToken(accessToken); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete"; + @Override + public Uploadbundle setAlt(java.lang.String alt) { + return (Uploadbundle) super.setAlt(alt); + } - /** - * 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 the androidpublisher server. After setting any - * 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 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 Uploadbundle setCallback(java.lang.String callback) { + return (Uploadbundle) super.setCallback(callback); + } - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } + @Override + public Uploadbundle setFields(java.lang.String fields) { + return (Uploadbundle) super.setFields(fields); + } - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } + @Override + public Uploadbundle setKey(java.lang.String key) { + return (Uploadbundle) super.setKey(key); + } - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } + @Override + public Uploadbundle setOauthToken(java.lang.String oauthToken) { + return (Uploadbundle) super.setOauthToken(oauthToken); + } - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } + @Override + public Uploadbundle setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Uploadbundle) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } + @Override + public Uploadbundle setQuotaUser(java.lang.String quotaUser) { + return (Uploadbundle) super.setQuotaUser(quotaUser); + } - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } + @Override + public Uploadbundle setUploadType(java.lang.String uploadType) { + return (Uploadbundle) super.setUploadType(uploadType); + } - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } + @Override + public Uploadbundle setUploadProtocol(java.lang.String uploadProtocol) { + return (Uploadbundle) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } + /** Package name of the 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); - } + /** Package name of the app. + */ + public java.lang.String getPackageName() { + return packageName; + } - @Override - public BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + /** Package name of the app. */ + public Uploadbundle setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Uploadbundle set(String parameterName, Object value) { + return (Uploadbundle) super.set(parameterName, value); + } + } - /** 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 purchase options to delete. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** + * 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(); + } - /** Required. The parent app (package name) of the purchase options to delete. */ - public BatchDelete setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * The "monetization" collection of methods. + */ + public class Monetization { - /** - * 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; + /** + * 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; + } - /** 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 ConvertRegionPrices extends AndroidPublisherRequest { - /** - * 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; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices"; - @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; - } - - public class BatchUpdateStates extends AndroidPublisherRequest { + /** + * 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 the androidpublisher server. After setting any + * optional parameters, call the {@link ConvertRegionPrices#execute()} method to invoke the remote + * operation.

{@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. The app package name. + * @param content the {@link com.google.api.services.androidpublisher.model.ConvertRegionPricesRequest} + * @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); + 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}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates"; + @Override + public ConvertRegionPrices set$Xgafv(java.lang.String $Xgafv) { + return (ConvertRegionPrices) super.set$Xgafv($Xgafv); + } - /** - * 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 the androidpublisher server. After setting any - * 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 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 ConvertRegionPrices setAccessToken(java.lang.String accessToken) { + return (ConvertRegionPrices) super.setAccessToken(accessToken); + } - @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); - } + @Override + public ConvertRegionPrices setAlt(java.lang.String alt) { + return (ConvertRegionPrices) super.setAlt(alt); + } - @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); - } + @Override + public ConvertRegionPrices setCallback(java.lang.String callback) { + return (ConvertRegionPrices) super.setCallback(callback); + } - @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); - } + @Override + public ConvertRegionPrices setFields(java.lang.String fields) { + return (ConvertRegionPrices) super.setFields(fields); + } - @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); - } + @Override + public ConvertRegionPrices setKey(java.lang.String key) { + return (ConvertRegionPrices) super.setKey(key); + } - @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); - } + @Override + public ConvertRegionPrices setOauthToken(java.lang.String oauthToken) { + return (ConvertRegionPrices) super.setOauthToken(oauthToken); + } - @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); - } + @Override + public ConvertRegionPrices setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ConvertRegionPrices) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); - } + @Override + public ConvertRegionPrices setQuotaUser(java.lang.String quotaUser) { + return (ConvertRegionPrices) super.setQuotaUser(quotaUser); + } - @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); - } + @Override + public ConvertRegionPrices setUploadType(java.lang.String uploadType) { + return (ConvertRegionPrices) super.setUploadType(uploadType); + } - @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); - } + @Override + public ConvertRegionPrices setUploadProtocol(java.lang.String uploadProtocol) { + return (ConvertRegionPrices) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); - } + /** Required. The app package name. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); - } + /** Required. The app package name. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent app (package name) of the updated purchase options. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + /** Required. The app package name. */ + public ConvertRegionPrices setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent app (package name) of the updated purchase options. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public ConvertRegionPrices set(String parameterName, Object value) { + return (ConvertRegionPrices) super.set(parameterName, value); + } + } - /** Required. The parent app (package name) of the updated purchase options. */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * 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(); + } - /** - * 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; + /** + * The "onetimeproducts" collection of methods. + */ + public class Onetimeproducts { - /** 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; - } + /** + * 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; + } - /** - * 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; - } + public class BatchDelete extends AndroidPublisherRequest { - @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); - } - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete"; /** - * An accessor for creating requests from the Offers collection. + * Deletes one or more one-time products. * - *

The typical use is:

- *
-         *   {@code AndroidPublisher androidpublisher = new AndroidPublisher(...);}
-         *   {@code AndroidPublisher.Offers.List request = androidpublisher.offers().list(parameters ...)}
-         * 
+ * Create a request for the method "onetimeproducts.batchDelete". * - * @return the resource collection + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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) 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 */ - public Offers offers() { - return new Offers(); - } + 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."); + } - /** - * The "offers" collection of methods. - */ - public class Offers { + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } - /** - * 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 BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } - public class Activate extends AndroidPublisherRequest { + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate"; + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } - /** - * Activates a one-time product offer. - * - * Create a request for the method "offers.activate". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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 BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } - @Override - public Activate set$Xgafv(java.lang.String $Xgafv) { - return (Activate) super.set$Xgafv($Xgafv); - } + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } - @Override - public Activate setAccessToken(java.lang.String accessToken) { - return (Activate) super.setAccessToken(accessToken); - } + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } - @Override - public Activate setAlt(java.lang.String alt) { - return (Activate) super.setAlt(alt); - } + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } - @Override - public Activate setCallback(java.lang.String callback) { - return (Activate) super.setCallback(callback); - } + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } - @Override - public Activate setFields(java.lang.String fields) { - return (Activate) super.setFields(fields); - } + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } - @Override - public Activate setKey(java.lang.String key) { - return (Activate) super.setKey(key); - } + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Activate setOauthToken(java.lang.String oauthToken) { - return (Activate) super.setOauthToken(oauthToken); - } + /** + * 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 Activate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Activate) super.setPrettyPrint(prettyPrint); - } + /** 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; + } - @Override - public Activate setQuotaUser(java.lang.String quotaUser) { - return (Activate) super.setQuotaUser(quotaUser); - } + /** + * 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 BatchDelete setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - @Override - public Activate setUploadType(java.lang.String uploadType) { - return (Activate) super.setUploadType(uploadType); - } + @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; + } - @Override - public Activate setUploadProtocol(java.lang.String uploadProtocol) { - return (Activate) super.setUploadProtocol(uploadProtocol); - } + public class BatchGet extends AndroidPublisherRequest { - /** Required. The parent app (package name) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet"; - /** Required. The parent app (package name) of the offer to activate. - */ - public java.lang.String getPackageName() { - return packageName; - } + /** + * Reads one or more one-time products. + * + * Create a request for the method "onetimeproducts.batchGet". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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."); + } - /** Required. The parent app (package name) of the offer to activate. */ - public Activate 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 parent one-time product (ID) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String productId; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Required. The parent one-time product (ID) of the offer to activate. - */ - public java.lang.String getProductId() { - return productId; - } + @Override + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); + } - /** Required. The parent one-time product (ID) of the offer to activate. */ - public Activate setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + @Override + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); + } - /** Required. The parent purchase option (ID) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String purchaseOptionId; + @Override + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); + } - /** Required. The parent purchase option (ID) of the offer to activate. - */ - public java.lang.String getPurchaseOptionId() { - return purchaseOptionId; - } + @Override + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); + } - /** 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 BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); + } - /** Required. The offer ID of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String offerId; + @Override + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); + } - /** Required. The offer ID of the offer to activate. - */ - public java.lang.String getOfferId() { - return offerId; - } + @Override + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); + } - /** Required. The offer ID of the offer to activate. */ - public Activate setOfferId(java.lang.String offerId) { - this.offerId = offerId; - return this; - } + @Override + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); + } - @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 BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); + } - public class BatchDelete extends AndroidPublisherRequest { + @Override + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete"; + @Override + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) super.setUploadProtocol(uploadProtocol); + } - /** - * Deletes one or more one-time product offers. - * - * Create a request for the method "offers.batchDelete". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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."); - } + /** + * 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; - @Override - public BatchDelete set$Xgafv(java.lang.String $Xgafv) { - return (BatchDelete) super.set$Xgafv($Xgafv); - } + /** 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; + } - @Override - public BatchDelete setAccessToken(java.lang.String accessToken) { - return (BatchDelete) super.setAccessToken(accessToken); - } + /** + * 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; + } - @Override - public BatchDelete setAlt(java.lang.String alt) { - return (BatchDelete) super.setAlt(alt); - } + /** 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 productIds; - @Override - public BatchDelete setCallback(java.lang.String callback) { - return (BatchDelete) super.setCallback(callback); - } + /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. + */ + public java.util.List getProductIds() { + return productIds; + } - @Override - public BatchDelete setFields(java.lang.String fields) { - return (BatchDelete) super.setFields(fields); - } + /** Required. A list of up to 100 product IDs to retrieve. All IDs must be different. */ + public BatchGet setProductIds(java.util.List productIds) { + this.productIds = productIds; + return this; + } - @Override - public BatchDelete setKey(java.lang.String key) { - return (BatchDelete) super.setKey(key); - } + @Override + public BatchGet set(String parameterName, Object value) { + return (BatchGet) super.set(parameterName, value); + } + } + /** + * Creates or updates one or more one-time products. + * + * Create a request for the method "onetimeproducts.batchUpdate". + * + * 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 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; + } - @Override - public BatchDelete setOauthToken(java.lang.String oauthToken) { - return (BatchDelete) super.setOauthToken(oauthToken); - } + public class BatchUpdate extends AndroidPublisherRequest { - @Override - public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchDelete) super.setPrettyPrint(prettyPrint); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate"; - @Override - public BatchDelete setQuotaUser(java.lang.String quotaUser) { - return (BatchDelete) super.setQuotaUser(quotaUser); - } + /** + * Creates or updates one or more one-time products. + * + * Create a request for the method "onetimeproducts.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 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 BatchDelete setUploadType(java.lang.String uploadType) { - return (BatchDelete) super.setUploadType(uploadType); - } + @Override + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); + } - @Override - public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchDelete) super.setUploadProtocol(uploadProtocol); - } + @Override + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); + } - /** - * 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; + @Override + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); + } - /** 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; - } + @Override + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); + } - /** - * 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; - } + @Override + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); + } - /** - * 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 BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); + } - /** 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; - } + @Override + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); + } - /** - * 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; - } + @Override + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); + } - /** - * 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; + @Override + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); + } - /** 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 BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); + } - /** - * 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 BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); + } - @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; - } + /** + * 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; - public class BatchGet extends AndroidPublisherRequest { + /** 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; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet"; + /** + * 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; + } - /** - * Reads one or more one-time product offers. - * - * Create a request for the method "offers.batchGet". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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 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; + } - @Override - public BatchGet set$Xgafv(java.lang.String $Xgafv) { - return (BatchGet) super.set$Xgafv($Xgafv); - } + public class Delete extends AndroidPublisherRequest { - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + /** + * Deletes a one-time product. + * + * Create a request for the method "onetimeproducts.delete". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

+ * + * @param 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."); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** - * 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; + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** 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; - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** - * 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; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * 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 app (package name) of the one-time product to delete. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** 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 app (package name) of the one-time product to delete. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * 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 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 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 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 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 one-time product ID of the one-time product to delete. + */ + public java.lang.String getProductId() { + return productId; + } - /** - * 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. The one-time product ID of the one-time product to delete. */ + public Delete setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - @Override - public BatchGet set(String parameterName, Object value) { - return (BatchGet) super.set(parameterName, value); - } - } - /** - * Creates or updates one or more one-time product offers. - * - * 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 BatchUpdate#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.BatchUpdateOneTimeProductOffersRequest} - * @return the request - */ - 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; - } + /** + * 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; - public class BatchUpdate extends AndroidPublisherRequest { + /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate"; + /** + * 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; + } - /** - * Creates or updates one or more one-time product offers. - * - * Create a request for the method "offers.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) 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 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; + } - @Override - public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); - } + public class Get extends AndroidPublisherRequest { - @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}"; - @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); - } + /** + * Reads a single one-time product. + * + * Create a request for the method "onetimeproducts.get". + * + * 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 + */ + 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 BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** - * 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; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** 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; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * 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; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * 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; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** 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; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * 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 parent app (package name) of the product to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** - * 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 app (package name) of the product to retrieve. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** 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 app (package name) of the product to retrieve. */ + public Get setPackageName(java.lang.String packageName) { + this.packageName = packageName; + 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. - */ - public BatchUpdate setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } + /** Required. The product ID of the product to retrieve. */ + @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); - } - } - /** - * 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; - } + /** Required. The product ID of the product to retrieve. + */ + public java.lang.String getProductId() { + return productId; + } - public class BatchUpdateStates extends AndroidPublisherRequest { + /** Required. The product ID of the product to retrieve. */ + public Get setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates"; + @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; + } - /** - * 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 the androidpublisher server. After setting any - * 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 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."); - } + public class List extends AndroidPublisherRequest { - @Override - public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts"; - @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); - } + /** + * 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 BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** 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 List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent app (package name) of the updated one-time product offers. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** 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 List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * 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 List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** 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; - } + /** + * 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; - /** - * 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; - } + /** Required. The parent app (package name) for which the one-time product should be read. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** - * 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; + /** + * 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; + } - /** 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; - } + /** + * 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; - /** - * 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; - } + /** 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 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; - } + /** + * 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; + } - public class Cancel extends AndroidPublisherRequest { + /** + * 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; - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel"; + /** 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; + } - /** - * Cancels a one-time product offer. - * - * Create a request for the method "offers.cancel". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

- * - * @param 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."); - } + /** + * 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; + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @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; + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + public class Patch extends AndroidPublisherRequest { - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}"; - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + /** + * Creates or updates a one-time product. + * + * Create a request for the method "onetimeproducts.patch". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Required. The parent app (package name) of the offer to cancel. */ - @com.google.api.client.util.Key - private java.lang.String packageName; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent app (package name) of the offer to cancel. - */ - public java.lang.String getPackageName() { - return packageName; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** 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 Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** 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 Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** Required. The parent one-time product (ID) of the offer to cancel. - */ - public java.lang.String getProductId() { - return productId; - } + /** Required. Immutable. Package name of the parent app. */ + @com.google.api.client.util.Key + private java.lang.String packageName; - /** Required. The parent one-time product (ID) of the offer to cancel. */ - public Cancel setProductId(java.lang.String productId) { - this.productId = productId; - return this; - } + /** Required. Immutable. Package name of the parent app. + */ + public java.lang.String getPackageName() { + return packageName; + } - /** Required. The parent purchase option (ID) of the offer to cancel. */ - @com.google.api.client.util.Key - private java.lang.String purchaseOptionId; + /** Required. Immutable. Package name of the parent app. */ + public Patch setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** Required. The parent purchase option (ID) of the offer to cancel. - */ - public java.lang.String getPurchaseOptionId() { - return purchaseOptionId; - } + /** + * 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; - /** Required. The parent purchase option (ID) of the offer to cancel. */ - public Cancel setPurchaseOptionId(java.lang.String purchaseOptionId) { - this.purchaseOptionId = purchaseOptionId; - return this; - } + /** 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; + } - /** Required. The offer ID of the offer to cancel. */ - @com.google.api.client.util.Key - private java.lang.String offerId; + /** + * 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 offer ID of the offer to cancel. - */ - public java.lang.String getOfferId() { - return offerId; - } + /** + * 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 offer ID of the offer to cancel. */ - public Cancel setOfferId(java.lang.String offerId) { - this.offerId = offerId; - 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 java.lang.Boolean getAllowMissing() { + return 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 Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** + * 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; + + /** Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency- + sensitive. + */ + public java.lang.String getLatencyTolerance() { + return latencyTolerance; + } + + /** + * 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. 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 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 { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete"; + + /** + * 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 the androidpublisher server. After setting any + * 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 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 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); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) 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) of the purchase options to delete. + */ + 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 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 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 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; + } + + @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; + } + + public class BatchUpdateStates extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates"; + + /** + * 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 the androidpublisher server. After setting any + * 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 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 BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdateStates) super.set$Xgafv($Xgafv); + } + + @Override + public BatchUpdateStates setAccessToken(java.lang.String accessToken) { + return (BatchUpdateStates) super.setAccessToken(accessToken); + } + + @Override + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); + } + + @Override + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); + } + + @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 { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate"; + + /** + * Activates a one-time product offer. + * + * Create a request for the method "offers.activate". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 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 Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); + } + + @Override + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); + } + + @Override + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); + } + + @Override + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); + } + + @Override + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); + } + + @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 offer to activate. + */ + public java.lang.String getPackageName() { + return 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 parent one-time product (ID) of the offer to activate. */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** Required. The parent one-time product (ID) of the offer to activate. + */ + public java.lang.String getProductId() { + return 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 parent purchase option (ID) of the offer to activate. */ + @com.google.api.client.util.Key + private java.lang.String purchaseOptionId; + + /** Required. The parent purchase option (ID) of the offer to activate. + */ + public java.lang.String getPurchaseOptionId() { + return purchaseOptionId; + } + + /** Required. The parent purchase option (ID) of the offer to activate. */ + public Activate setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } + + /** 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; + } + + /** 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.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; + } + + public class BatchDelete extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete"; + + /** + * Deletes one or more one-time product offers. + * + * Create a request for the method "offers.batchDelete". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 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); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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 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 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 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 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 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) 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) 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) 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 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; + } + + public class BatchGet extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet"; + + /** + * Reads one or more one-time product offers. + * + * Create a request for the method "offers.batchGet". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 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. 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 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 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 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 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 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) 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 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 updated. May + * be specified as '-' to update offers from multiple purchase options. + */ + public BatchGet setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } + + @Override + public BatchGet set(String parameterName, Object value) { + return (BatchGet) super.set(parameterName, value); + } + } + /** + * Creates or updates one or more one-time product offers. + * + * 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 BatchUpdate#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.BatchUpdateOneTimeProductOffersRequest} + * @return the request + */ + 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 BatchUpdate extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate"; + + /** + * Creates or updates one or more one-time product offers. + * + * Create a request for the method "offers.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) 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 BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); + } + + @Override + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); + } + + @Override + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); + } + + @Override + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); + } + + @Override + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); + } + + @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 BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); + } + + @Override + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); + } + + @Override + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) 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 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 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 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 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 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 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 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 updated. May + * be specified as '-' to update offers from multiple purchase options. + */ + public BatchUpdate setPurchaseOptionId(java.lang.String purchaseOptionId) { + this.purchaseOptionId = purchaseOptionId; + return this; + } + + @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 { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates"; + + /** + * 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 the androidpublisher server. After setting any + * 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 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 set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdateStates) super.set$Xgafv($Xgafv); + } + + @Override + public BatchUpdateStates setAccessToken(java.lang.String accessToken) { + return (BatchUpdateStates) super.setAccessToken(accessToken); + } + + @Override + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); + } + + @Override + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); + } + + @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 one-time product offers. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The parent app (package name) of the updated one-time product offers. + */ + 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) { + 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 "-". + */ + @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 "-". + */ + 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) { + 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 "-". + */ + @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 "-". + */ + 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) { + this.purchaseOptionId = purchaseOptionId; + return this; + } + + @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; + } + + public class Cancel extends AndroidPublisherRequest { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel"; + + /** + * Cancels a one-time product offer. + * + * Create a request for the method "offers.cancel". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param 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."); + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent app (package name) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** Required. The parent app (package name) of the offer to cancel. + */ + 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) { + this.packageName = packageName; + return this; + } + + /** Required. The parent one-time product (ID) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String productId; + + /** Required. The parent one-time product (ID) of the offer to cancel. + */ + 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) { + this.productId = productId; + return this; + } + + /** Required. The parent purchase option (ID) of the offer to cancel. */ + @com.google.api.client.util.Key + private java.lang.String purchaseOptionId; + + /** Required. The parent purchase option (ID) of the offer to cancel. + */ + 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. + */ + 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; + return this; + } @Override public Cancel set(String parameterName, Object value) { @@ -16540,933 +17937,553 @@ public java.lang.String getPackageName() { /** 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 subscription (ID) of the base plan to delete. */ - @com.google.api.client.util.Key - private java.lang.String productId; - - /** Required. The parent subscription (ID) of the base plan to delete. - */ - 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) { - this.productId = productId; - return this; - } - - /** Required. The unique offer ID of the base plan to delete. */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; - - /** Required. The unique offer ID of the base plan to delete. - */ - 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) { - this.basePlanId = basePlanId; - return this; - } - - @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; - } - - public class MigratePrices extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices"; - - /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link MigratePrices#execute()} method to invoke the remote - * operation.

{@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. - */ + return this; + } + + /** Required. The parent subscription (ID) of the base plan to delete. */ @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 parent subscription (ID) of the base plan to delete. */ 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) { + /** 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 unique base plan ID of the base plan to update prices on. */ + /** Required. The unique offer ID of the base plan to delete. */ @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. + /** Required. The unique offer ID of the base plan to delete. */ 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) { + /** Required. The unique offer ID of the base plan to delete. */ + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Offers collection. + * 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. * - *

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.migratePrices". * - * @return the resource collection + * 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 Offers offers() { - return new Offers(); + 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; } - /** - * 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 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 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 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 Activate extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate"; - - /** - * 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 the androidpublisher server. After setting any - * 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 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 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 Activate setCallback(java.lang.String callback) { - return (Activate) super.setCallback(callback); - } - - @Override - public Activate setFields(java.lang.String fields) { - return (Activate) super.setFields(fields); - } - - @Override - public Activate setKey(java.lang.String key) { - return (Activate) super.setKey(key); - } - - @Override - public Activate setOauthToken(java.lang.String oauthToken) { - return (Activate) super.setOauthToken(oauthToken); - } - - @Override - public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Activate) super.setPrettyPrint(prettyPrint); - } - - @Override - public Activate setQuotaUser(java.lang.String quotaUser) { - return (Activate) super.setQuotaUser(quotaUser); - } - - @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 offer to activate. - */ - public java.lang.String getPackageName() { - return 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 parent subscription (ID) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String productId; - - /** Required. The parent subscription (ID) of the offer to activate. - */ - public java.lang.String getProductId() { - return 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) of the offer to activate. */ - @com.google.api.client.util.Key - private java.lang.String basePlanId; - - /** Required. The parent base plan (ID) of the offer to activate. - */ - public java.lang.String getBasePlanId() { - return 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; - } + public class MigratePrices extends AndroidPublisherRequest { - /** Required. The unique offer ID of the offer to activate. */ - public Activate setOfferId(java.lang.String offerId) { - this.offerId = offerId; - return this; - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices"; - @Override - public Activate set(String parameterName, Object value) { - return (Activate) super.set(parameterName, value); - } - } /** - * Reads one or more subscription offers. - * - * Create a request for the method "offers.batchGet". + * 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. * - * 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. + * Create a request for the method "basePlans.migratePrices". * - * @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 + * This request holds the parameters needed by the the androidpublisher server. After setting any + * optional parameters, call the {@link MigratePrices#execute()} method to invoke the remote + * operation.

{@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 */ - 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; + 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."); } - public class BatchGet extends AndroidPublisherRequest { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet"; - - /** - * Reads one or more subscription offers. - * - * Create a request for the method "offers.batchGet". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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 MigratePrices set$Xgafv(java.lang.String $Xgafv) { + return (MigratePrices) super.set$Xgafv($Xgafv); + } - @Override - public BatchGet setAccessToken(java.lang.String accessToken) { - return (BatchGet) super.setAccessToken(accessToken); - } + @Override + public MigratePrices setAccessToken(java.lang.String accessToken) { + return (MigratePrices) super.setAccessToken(accessToken); + } - @Override - public BatchGet setAlt(java.lang.String alt) { - return (BatchGet) super.setAlt(alt); - } + @Override + public MigratePrices setAlt(java.lang.String alt) { + return (MigratePrices) super.setAlt(alt); + } - @Override - public BatchGet setCallback(java.lang.String callback) { - return (BatchGet) super.setCallback(callback); - } + @Override + public MigratePrices setCallback(java.lang.String callback) { + return (MigratePrices) super.setCallback(callback); + } - @Override - public BatchGet setFields(java.lang.String fields) { - return (BatchGet) super.setFields(fields); - } + @Override + public MigratePrices setFields(java.lang.String fields) { + return (MigratePrices) super.setFields(fields); + } - @Override - public BatchGet setKey(java.lang.String key) { - return (BatchGet) super.setKey(key); - } + @Override + public MigratePrices setKey(java.lang.String key) { + return (MigratePrices) super.setKey(key); + } - @Override - public BatchGet setOauthToken(java.lang.String oauthToken) { - return (BatchGet) super.setOauthToken(oauthToken); - } + @Override + public MigratePrices setOauthToken(java.lang.String oauthToken) { + return (MigratePrices) super.setOauthToken(oauthToken); + } - @Override - public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchGet) super.setPrettyPrint(prettyPrint); - } + @Override + public MigratePrices setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MigratePrices) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchGet setQuotaUser(java.lang.String quotaUser) { - return (BatchGet) super.setQuotaUser(quotaUser); - } + @Override + public MigratePrices setQuotaUser(java.lang.String quotaUser) { + return (MigratePrices) super.setQuotaUser(quotaUser); + } - @Override - public BatchGet setUploadType(java.lang.String uploadType) { - return (BatchGet) super.setUploadType(uploadType); - } + @Override + public MigratePrices setUploadType(java.lang.String uploadType) { + return (MigratePrices) super.setUploadType(uploadType); + } - @Override - public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchGet) super.setUploadProtocol(uploadProtocol); - } + @Override + public MigratePrices setUploadProtocol(java.lang.String uploadProtocol) { + return (MigratePrices) 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 requests. - */ - @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. + */ + @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 requests. - */ - 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 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 requests. - */ - public BatchGet setPackageName(java.lang.String packageName) { - this.packageName = packageName; - return this; - } + /** + * 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 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 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 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 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 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 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 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 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 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 unique base plan ID of the base plan to update prices on. + */ + 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 offers from multiple base plans. - */ - public BatchGet setBasePlanId(java.lang.String basePlanId) { - this.basePlanId = basePlanId; - return this; - } + /** 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 BatchGet set(String parameterName, Object value) { - return (BatchGet) super.set(parameterName, value); - } + @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 { + /** - * 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. + * Activates a subscription offer. Once activated, subscription offers will be available to new + * subscribers. * - * Create a request for the method "offers.batchUpdate". + * 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 BatchUpdate#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.BatchUpdateSubscriptionOffersRequest} + * @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 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); + 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 BatchUpdate extends AndroidPublisherRequest { + public class Activate extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate"; /** - * 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. + * Activates a subscription offer. Once activated, subscription offers will be available to new + * subscribers. * - * Create a request for the method "offers.batchUpdate". + * Create a request for the method "offers.activate". * * 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)} + * 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.BatchUpdateSubscriptionOffersRequest} + * @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 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); + 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 BatchUpdate set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdate) super.set$Xgafv($Xgafv); + public Activate set$Xgafv(java.lang.String $Xgafv) { + return (Activate) super.set$Xgafv($Xgafv); } @Override - public BatchUpdate setAccessToken(java.lang.String accessToken) { - return (BatchUpdate) super.setAccessToken(accessToken); + public Activate setAccessToken(java.lang.String accessToken) { + return (Activate) super.setAccessToken(accessToken); } @Override - public BatchUpdate setAlt(java.lang.String alt) { - return (BatchUpdate) super.setAlt(alt); + public Activate setAlt(java.lang.String alt) { + return (Activate) super.setAlt(alt); } @Override - public BatchUpdate setCallback(java.lang.String callback) { - return (BatchUpdate) super.setCallback(callback); + public Activate setCallback(java.lang.String callback) { + return (Activate) super.setCallback(callback); } @Override - public BatchUpdate setFields(java.lang.String fields) { - return (BatchUpdate) super.setFields(fields); + public Activate setFields(java.lang.String fields) { + return (Activate) super.setFields(fields); } @Override - public BatchUpdate setKey(java.lang.String key) { - return (BatchUpdate) super.setKey(key); + public Activate setKey(java.lang.String key) { + return (Activate) super.setKey(key); } @Override - public BatchUpdate setOauthToken(java.lang.String oauthToken) { - return (BatchUpdate) super.setOauthToken(oauthToken); + public Activate setOauthToken(java.lang.String oauthToken) { + return (Activate) super.setOauthToken(oauthToken); } @Override - public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdate) super.setPrettyPrint(prettyPrint); + public Activate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Activate) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdate setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdate) super.setQuotaUser(quotaUser); + public Activate setQuotaUser(java.lang.String quotaUser) { + return (Activate) super.setQuotaUser(quotaUser); } @Override - public BatchUpdate setUploadType(java.lang.String uploadType) { - return (BatchUpdate) super.setUploadType(uploadType); + public Activate setUploadType(java.lang.String uploadType) { + return (Activate) super.setUploadType(uploadType); } @Override - public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdate) 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 BatchUpdate 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 BatchUpdate 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 BatchUpdate 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 BatchUpdate set(String parameterName, Object value) { - return (BatchUpdate) super.set(parameterName, value); + public Activate set(String parameterName, Object value) { + return (Activate) super.set(parameterName, value); } } /** - * 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. + * Reads one or more subscription offers. * - * Create a request for the method "offers.batchUpdateStates". + * 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 BatchUpdateStates#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 updated subscription offers. Must be equal to the - * package_name field on all the updated SubscriptionOffer resources. + * @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 updated. May be specified as '-' - * to update offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest} + * @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 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 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 BatchUpdateStates extends AndroidPublisherRequest { + public class BatchGet extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet"; /** - * 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. + * Reads one or more subscription offers. * - * Create a request for the method "offers.batchUpdateStates". + * Create a request for the method "offers.batchGet". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 updated subscription offers. Must be equal to the - * package_name field on all the updated SubscriptionOffer resources. + * @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 updated. May be specified as '-' - * to update offers from multiple base plans. - * @param content the {@link com.google.api.services.androidpublisher.model.BatchUpdateSubscriptionOfferStatesRequest} + * @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 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 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 BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { - return (BatchUpdateStates) super.set$Xgafv($Xgafv); + public BatchGet set$Xgafv(java.lang.String $Xgafv) { + return (BatchGet) super.set$Xgafv($Xgafv); } @Override - public BatchUpdateStates setAccessToken(java.lang.String accessToken) { - return (BatchUpdateStates) super.setAccessToken(accessToken); + public BatchGet setAccessToken(java.lang.String accessToken) { + return (BatchGet) super.setAccessToken(accessToken); } @Override - public BatchUpdateStates setAlt(java.lang.String alt) { - return (BatchUpdateStates) super.setAlt(alt); + public BatchGet setAlt(java.lang.String alt) { + return (BatchGet) super.setAlt(alt); } @Override - public BatchUpdateStates setCallback(java.lang.String callback) { - return (BatchUpdateStates) super.setCallback(callback); + public BatchGet setCallback(java.lang.String callback) { + return (BatchGet) super.setCallback(callback); } @Override - public BatchUpdateStates setFields(java.lang.String fields) { - return (BatchUpdateStates) super.setFields(fields); + public BatchGet setFields(java.lang.String fields) { + return (BatchGet) super.setFields(fields); } @Override - public BatchUpdateStates setKey(java.lang.String key) { - return (BatchUpdateStates) super.setKey(key); + public BatchGet setKey(java.lang.String key) { + return (BatchGet) super.setKey(key); } @Override - public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { - return (BatchUpdateStates) super.setOauthToken(oauthToken); + public BatchGet setOauthToken(java.lang.String oauthToken) { + return (BatchGet) super.setOauthToken(oauthToken); } @Override - public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); + public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchGet) super.setPrettyPrint(prettyPrint); } @Override - public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { - return (BatchUpdateStates) super.setQuotaUser(quotaUser); + public BatchGet setQuotaUser(java.lang.String quotaUser) { + return (BatchGet) super.setQuotaUser(quotaUser); } @Override - public BatchUpdateStates setUploadType(java.lang.String uploadType) { - return (BatchUpdateStates) super.setUploadType(uploadType); + public BatchGet setUploadType(java.lang.String uploadType) { + return (BatchGet) super.setUploadType(uploadType); } @Override - public BatchUpdateStates setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchUpdateStates) super.setUploadProtocol(uploadProtocol); + public BatchGet setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchGet) 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) 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) 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) 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) 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) for which the subscriptions should be created + * or updated. Must be equal to the package_name field on all the requests. */ - public BatchUpdateStates setPackageName(java.lang.String packageName) { + public BatchGet setPackageName(java.lang.String packageName) { this.packageName = packageName; return this; } @@ -17491,679 +18508,714 @@ public java.lang.String getProductId() { * the same subscription. If this request spans multiple subscriptions, set this field * to "-". Must be set. */ - public BatchUpdateStates 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 offers should be updated. May be - * specified as '-' to update offers from multiple base plans. + * 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 offers should be updated. May be specified as '-' - to update offers from multiple base plans. + /** 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 offers should be updated. May be - * specified as '-' to update offers from multiple base plans. + * 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 BatchUpdateStates setBasePlanId(java.lang.String basePlanId) { + public BatchGet setBasePlanId(java.lang.String basePlanId) { this.basePlanId = basePlanId; return this; } @Override - public BatchUpdateStates set(String parameterName, Object value) { - return (BatchUpdateStates) super.set(parameterName, value); + public BatchGet set(String parameterName, Object value) { + return (BatchGet) 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. + * 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.create". + * 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 Create#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 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) 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 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 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 Create extends AndroidPublisherRequest { + public class BatchUpdate extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate"; /** - * Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. - * The offer state will be DRAFT until it is activated. + * 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.create". + * Create a request for the method "offers.batchUpdate". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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) 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 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 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 Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) 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) 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) 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) 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) 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) of the updated subscription offers. Must be + * equal to the package_name field on all the updated SubscriptionOffer resources. */ - public Create setPackageName(java.lang.String packageName) { + public BatchUpdate 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. - */ - public Create 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. - */ - @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. - */ - 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. - */ - public Create 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. + /** + * 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 setOfferId(java.lang.String offerId) { - this.offerId = offerId; + public BatchUpdate setProductId(java.lang.String productId) { + this.productId = productId; 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. + * 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("regionsVersion.version") - private java.lang.String regionsVersionVersion; + @com.google.api.client.util.Key + private java.lang.String basePlanId; - /** 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 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 getRegionsVersionVersion() { - return regionsVersionVersion; + public java.lang.String getBasePlanId() { + return basePlanId; } /** - * 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 base plan (ID) for which the offers should be updated. May be + * specified as '-' to update offers from multiple base plans. */ - public Create setRegionsVersionVersion(java.lang.String regionsVersionVersion) { - this.regionsVersionVersion = regionsVersionVersion; + public BatchUpdate setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) 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 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.deactivate". + * 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 Deactivate#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 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.BatchUpdateSubscriptionOfferStatesRequest} * @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 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 Deactivate extends AndroidPublisherRequest { + public class BatchUpdateStates extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates"; /** - * 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 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.deactivate". + * Create a request for the method "offers.batchUpdateStates". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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 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.BatchUpdateSubscriptionOfferStatesRequest} * @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 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 Deactivate set$Xgafv(java.lang.String $Xgafv) { - return (Deactivate) super.set$Xgafv($Xgafv); + public BatchUpdateStates set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdateStates) super.set$Xgafv($Xgafv); } @Override - public Deactivate setAccessToken(java.lang.String accessToken) { - return (Deactivate) super.setAccessToken(accessToken); + public BatchUpdateStates setAccessToken(java.lang.String accessToken) { + return (BatchUpdateStates) super.setAccessToken(accessToken); } @Override - public Deactivate setAlt(java.lang.String alt) { - return (Deactivate) super.setAlt(alt); + public BatchUpdateStates setAlt(java.lang.String alt) { + return (BatchUpdateStates) super.setAlt(alt); } @Override - public Deactivate setCallback(java.lang.String callback) { - return (Deactivate) super.setCallback(callback); + public BatchUpdateStates setCallback(java.lang.String callback) { + return (BatchUpdateStates) super.setCallback(callback); } @Override - public Deactivate setFields(java.lang.String fields) { - return (Deactivate) super.setFields(fields); + public BatchUpdateStates setFields(java.lang.String fields) { + return (BatchUpdateStates) super.setFields(fields); } @Override - public Deactivate setKey(java.lang.String key) { - return (Deactivate) super.setKey(key); + public BatchUpdateStates setKey(java.lang.String key) { + return (BatchUpdateStates) super.setKey(key); } @Override - public Deactivate setOauthToken(java.lang.String oauthToken) { - return (Deactivate) super.setOauthToken(oauthToken); + public BatchUpdateStates setOauthToken(java.lang.String oauthToken) { + return (BatchUpdateStates) super.setOauthToken(oauthToken); } @Override - public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deactivate) super.setPrettyPrint(prettyPrint); + public BatchUpdateStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdateStates) super.setPrettyPrint(prettyPrint); } @Override - public Deactivate setQuotaUser(java.lang.String quotaUser) { - return (Deactivate) super.setQuotaUser(quotaUser); + public BatchUpdateStates setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdateStates) super.setQuotaUser(quotaUser); } @Override - public Deactivate setUploadType(java.lang.String uploadType) { - return (Deactivate) super.setUploadType(uploadType); + public BatchUpdateStates setUploadType(java.lang.String uploadType) { + return (BatchUpdateStates) super.setUploadType(uploadType); } @Override - public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deactivate) 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 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 BatchUpdateStates 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 BatchUpdateStates 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 BatchUpdateStates 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 BatchUpdateStates set(String parameterName, Object value) { + return (BatchUpdateStates) super.set(parameterName, value); } } /** - * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. + * 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.delete". + * 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 Delete#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 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) 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 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 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 Delete extends AndroidPublisherRequest { + public class Create extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; /** - * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. + * 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.delete". + * Create a request for the method "offers.create". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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) 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 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 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) 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 delete. */ + /** + * 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 delete. + /** 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 delete. */ - public Delete 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 delete. */ + /** + * 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 delete. + /** 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 delete. */ - public Delete 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 delete. */ + /** + * 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 delete. + /** 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 delete. */ - public Delete 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 delete. */ + /** + * 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 delete. + /** 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 delete. */ - public Delete 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Reads a single offer + * 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.get". + * 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 Get#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) 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) 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 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 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 Get extends AndroidPublisherRequest { + public class Deactivate extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate"; /** - * Reads a single offer + * 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.get". + * Create a request for the method "offers.deactivate". * * 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)} + * 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) 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) 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 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 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."); @@ -18171,426 +19223,344 @@ protected Get(java.lang.String packageName, java.lang.String productId, java.lan } @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 Deactivate set$Xgafv(java.lang.String $Xgafv) { + return (Deactivate) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Deactivate setAccessToken(java.lang.String accessToken) { + return (Deactivate) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Deactivate setAlt(java.lang.String alt) { + return (Deactivate) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Deactivate setCallback(java.lang.String callback) { + return (Deactivate) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Deactivate setFields(java.lang.String fields) { + return (Deactivate) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Deactivate setKey(java.lang.String key) { + return (Deactivate) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Deactivate setOauthToken(java.lang.String oauthToken) { + return (Deactivate) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Deactivate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deactivate) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Deactivate setQuotaUser(java.lang.String quotaUser) { + return (Deactivate) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Deactivate setUploadType(java.lang.String uploadType) { + return (Deactivate) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Deactivate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deactivate) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent app (package name) of the offer to get. */ + /** 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) of the offer to get. + /** Required. The parent app (package name) of the offer to deactivate. */ 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) of the offer to deactivate. */ + public Deactivate 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) of the offer to deactivate. */ @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) of the offer to deactivate. */ 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) of the offer to deactivate. */ + public Deactivate 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) of the offer to deactivate. */ @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) of the offer to deactivate. */ 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) 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 get. */ + /** 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 get. + /** Required. The unique offer ID of the offer to deactivate. */ 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 unique offer ID of the offer to deactivate. */ + public Deactivate setOfferId(java.lang.String offerId) { this.offerId = offerId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Deactivate set(String parameterName, Object value) { + return (Deactivate) super.set(parameterName, value); } } /** - * Lists all offers under a given subscription. + * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. * - * Create a request for the method "offers.list". + * 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 List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#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 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 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 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 List extends AndroidPublisherRequest { + public class Delete extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; /** - * Lists all offers under a given subscription. + * Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. * - * Create a request for the method "offers.list". + * Create a request for the method "offers.delete". * * 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.

+ * 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 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 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 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 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."); + 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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) 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 delete. */ @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 delete. */ 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 delete. */ + public Delete 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 delete. */ @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 delete. */ 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 delete. */ + public Delete 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 delete. */ @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 delete. */ 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 delete. */ + public Delete 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. - */ + /** Required. The unique offer ID of the offer to delete. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String offerId; - /** 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. + /** Required. The unique offer ID of the offer to delete. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getOfferId() { + return offerId; } - /** - * 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 delete. */ + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an existing subscription offer. + * Reads a single offer * - * Create a request for the method "offers.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#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 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 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 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 Patch extends AndroidPublisherRequest { + public class Get extends AndroidPublisherRequest { private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; /** - * Updates an existing subscription offer. + * Reads a single offer * - * Create a request for the method "offers.patch". + * Create a request for the method "offers.get". * * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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.

+ * 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. 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 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 */ - 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 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."); @@ -18598,871 +19568,806 @@ 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 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); } - /** - * Required. Immutable. The package name of the app the parent subscription belongs to. - */ + @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); + } + + /** Required. The parent app (package name) of the offer to get. */ @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 get. */ 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 get. */ + public Get 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 get. */ @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 get. */ 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 get. */ + public Get 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 get. */ @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 get. */ 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 get. */ + public Get 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 get. */ @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 get. */ 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 get. */ + public Get 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; - } - - /** - * 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; - } - - /** - * 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; + @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; + } - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; + public class List extends AndroidPublisherRequest { - /** Required. The list of fields to be updated. + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers"; + + /** + * Lists all offers under a given subscription. + * + * Create a request for the method "offers.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 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 */ - public String getUpdateMask() { - return updateMask; + 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 list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - } - - } - } - } - } - - /** - * 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 { - - /** - * 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; - } - - public class Batchget extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders:batchGet"; - - /** - * Get order details for a list of orders. - * - * Create a request for the method "orders.batchget". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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'). - * @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."); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Batchget set$Xgafv(java.lang.String $Xgafv) { - return (Batchget) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Batchget setAccessToken(java.lang.String accessToken) { - return (Batchget) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Batchget setAlt(java.lang.String alt) { - return (Batchget) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Batchget setCallback(java.lang.String callback) { - return (Batchget) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Batchget setFields(java.lang.String fields) { - return (Batchget) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Batchget setKey(java.lang.String key) { - return (Batchget) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Batchget setOauthToken(java.lang.String oauthToken) { - return (Batchget) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Batchget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Batchget) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Batchget setQuotaUser(java.lang.String quotaUser) { - return (Batchget) super.setQuotaUser(quotaUser); - } + /** + * 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 Batchget setUploadType(java.lang.String uploadType) { - return (Batchget) super.setUploadType(uploadType); - } + /** Required. The parent app (package name) for which the subscriptions should be read. + */ + 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) for which the subscriptions should be read. + */ + public List setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } - /** - * 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; + /** + * 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; - /** 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; - } + /** 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 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; - } + /** + * 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 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 orderIds; + /** + * 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 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. - */ - public java.util.List getOrderIds() { - return orderIds; - } + /** 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 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. - */ - public Batchget setOrderIds(java.util.List orderIds) { - this.orderIds = orderIds; - 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 '-'. + */ + public List setBasePlanId(java.lang.String basePlanId) { + this.basePlanId = basePlanId; + return this; + } - @Override - public Batchget set(String parameterName, Object value) { - return (Batchget) super.set(parameterName, value); - } - } - /** - * Get order details for a single order. - * - * Create a request for the method "orders.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 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 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 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; - public class Get extends AndroidPublisherRequest { + /** 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; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}"; + /** + * 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; + } - /** - * Get order details for a single order. - * - * Create a request for the method "orders.get". - * - * 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 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."); - } + /** + * 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; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** 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; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @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; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class Patch extends AndroidPublisherRequest { - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}"; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** + * Updates an existing subscription offer. + * + * Create a request for the method "offers.patch". + * + * This request holds the parameters needed by the the androidpublisher server. After setting any + * 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 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 Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @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 { + /** Required. Immutable. The ID of the parent subscription this offer belongs to. + */ + public java.lang.String getProductId() { + return productId; + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund"; + /** Required. Immutable. The ID of the parent subscription this offer belongs to. */ + public Patch setProductId(java.lang.String productId) { + this.productId = productId; + return this; + } - /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Refund#execute()} method to invoke the remote operation. - *

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

- * - * @param 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 { + public class Batchget extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders:batchGet"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Reviewrefund#execute()} method to invoke the remote - * operation.

{@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 +20388,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.List orderIds; - /** 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. */ - public java.lang.String getOrderId() { - return orderId; + public java.util.List getOrderIds() { + return orderIds; } /** - * 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. */ - public Reviewrefund setOrderId(java.lang.String orderId) { - this.orderId = orderId; + public Batchget setOrderIds(java.util.List orderIds) { + this.orderIds = orderIds; return this; } @Override - public Reviewrefund set(String parameterName, Object value) { - return (Reviewrefund) super.set(parameterName, value); + public Batchget set(String parameterName, Object value) { + return (Batchget) 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 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 { + + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}"; /** - * Acknowledges a purchase of an inapp item. + * Get order details for a single order. * - * Create a request for the method "products.acknowledge". + * Create a request for the method "orders.get". * - * 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. + * 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 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 { - - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge"; - - /** - * Acknowledges a purchase of an inapp item. - * - * Create a request for the method "products.acknowledge". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote - * operation.

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

- * - * @param 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 { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** - * Consumes a purchase for an inapp item. - * - * Create a request for the method "products.consume". - * - * This request holds the parameters needed by the the androidpublisher server. After setting any - * 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 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 { - @Override - public Consume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Consume) super.setPrettyPrint(prettyPrint); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund"; - @Override - public Consume setQuotaUser(java.lang.String quotaUser) { - return (Consume) super.setQuotaUser(quotaUser); - } + /** + * 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 the androidpublisher server. After setting any + * optional parameters, call the {@link Refund#execute()} method to invoke the remote operation. + *

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

+ * + * @param 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 { + /** 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; - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}"; + /** The order ID provided to the user when the subscription or in-app order was purchased. + */ + public java.lang.String getOrderId() { + return orderId; + } - /** - * 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 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 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 { - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund"; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * 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 the androidpublisher server. After setting any + * optional parameters, call the {@link Reviewrefund#execute()} method to invoke the remote + * operation.

{@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 { + public class Acknowledge extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge"; /** - * 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 the androidpublisher server. After setting any - * 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.

+ * 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 +21072,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 +21108,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 { + public class Consume extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote - * operation.

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

+ * 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 { + public class Get extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

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

+ * 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 { + public class Getproductpurchasev2 extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}"; /** - * 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 the androidpublisher server. After setting any - * optional parameters, call the {@link Defer#execute()} method to invoke the remote operation. - *

{@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 { + public class Acknowledge extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge"; /** - * 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 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)} + * 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 +21769,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 +21808,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 { + public class Cancel extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel"; /** - * 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 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. *

{@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 +21873,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 +21945,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 +21984,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 { + public class Defer extends AndroidPublisherRequest { - private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke"; + private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer"; /** - * 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 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. *

{@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 +22119,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 +22135,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 +22151,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/AppContactInformation.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppContactInformation.java new file mode 100644 index 00000000000..8fecf4ca3c1 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppContactInformation.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Contact information for the app. + * + *

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 AppContactInformation extends com.google.api.client.json.GenericJson { + + /** + * The contact email for this app. Always set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contactEmail; + + /** + * The contact phone for this app. Optionally provided by the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumber; + + /** + * The contact website url for this app. Optionally provided by the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String websiteUrl; + + /** + * The contact email for this app. Always set. + * @return value or {@code null} for none + */ + public java.lang.String getContactEmail() { + return contactEmail; + } + + /** + * The contact email for this app. Always set. + * @param contactEmail contactEmail or {@code null} for none + */ + public AppContactInformation setContactEmail(java.lang.String contactEmail) { + this.contactEmail = contactEmail; + return this; + } + + /** + * The contact phone for this app. Optionally provided by the developer. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumber() { + return phoneNumber; + } + + /** + * The contact phone for this app. Optionally provided by the developer. + * @param phoneNumber phoneNumber or {@code null} for none + */ + public AppContactInformation setPhoneNumber(java.lang.String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The contact website url for this app. Optionally provided by the developer. + * @return value or {@code null} for none + */ + public java.lang.String getWebsiteUrl() { + return websiteUrl; + } + + /** + * The contact website url for this app. Optionally provided by the developer. + * @param websiteUrl websiteUrl or {@code null} for none + */ + public AppContactInformation setWebsiteUrl(java.lang.String websiteUrl) { + this.websiteUrl = websiteUrl; + return this; + } + + @Override + public AppContactInformation set(String fieldName, Object value) { + return (AppContactInformation) super.set(fieldName, value); + } + + @Override + public AppContactInformation clone() { + return (AppContactInformation) super.clone(); + } + +} 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 splitApkId; + + /** + * Required. The ID for the main base application module. Example: base.apk or app.apk. + * @return value or {@code null} for none + */ + public java.lang.String getBaseApkId() { + return baseApkId; + } + + /** + * Required. The ID for the main base application module. Example: base.apk or app.apk. + * @param baseApkId baseApkId or {@code null} for none + */ + public AppStoreAppActiveApkSet setBaseApkId(java.lang.String baseApkId) { + this.baseApkId = baseApkId; + return this; + } + + /** + * 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. + * @return value or {@code null} for none + */ + public java.util.List getSplitApkId() { + return splitApkId; + } + + /** + * 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. + * @param splitApkId splitApkId or {@code null} for none + */ + public AppStoreAppActiveApkSet setSplitApkId(java.util.List splitApkId) { + this.splitApkId = splitApkId; + return this; + } + + @Override + public AppStoreAppActiveApkSet set(String fieldName, Object value) { + return (AppStoreAppActiveApkSet) super.set(fieldName, value); + } + + @Override + public AppStoreAppActiveApkSet clone() { + return (AppStoreAppActiveApkSet) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApks.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApks.java new file mode 100644 index 00000000000..0eff6800600 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppActiveApks.java @@ -0,0 +1,79 @@ +/* + * 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; + +/** + * Information about active APKs of an app store hosted app. + * + *

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 AppStoreAppActiveApks extends com.google.api.client.json.GenericJson { + + /** + * Required. List specifying which APK sets are distributed together. This list should contain all + * APKs that you're distributing for this app. Add an entry for each individual installable set of + * APKs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List activeApkSets; + + static { + // hack to force ProGuard to consider AppStoreAppActiveApkSet used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AppStoreAppActiveApkSet.class); + } + + /** + * Required. List specifying which APK sets are distributed together. This list should contain all + * APKs that you're distributing for this app. Add an entry for each individual installable set of + * APKs. + * @return value or {@code null} for none + */ + public java.util.List getActiveApkSets() { + return activeApkSets; + } + + /** + * Required. List specifying which APK sets are distributed together. This list should contain all + * APKs that you're distributing for this app. Add an entry for each individual installable set of + * APKs. + * @param activeApkSets activeApkSets or {@code null} for none + */ + public AppStoreAppActiveApks setActiveApkSets(java.util.List activeApkSets) { + this.activeApkSets = activeApkSets; + return this; + } + + @Override + public AppStoreAppActiveApks set(String fieldName, Object value) { + return (AppStoreAppActiveApks) super.set(fieldName, value); + } + + @Override + public AppStoreAppActiveApks clone() { + return (AppStoreAppActiveApks) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppDetails.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppDetails.java new file mode 100644 index 00000000000..4472ecd54b5 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppDetails.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Details about the app. + * + *

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 AppStoreAppDetails extends com.google.api.client.json.GenericJson { + + /** + * Required. The app developer's contact email address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contactEmail; + + /** + * Required. The app developer's name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String developerName; + + /** + * Optional. Website link for the developer or app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String developerWebsite; + + /** + * Required. The app developer's contact email address. + * @return value or {@code null} for none + */ + public java.lang.String getContactEmail() { + return contactEmail; + } + + /** + * Required. The app developer's contact email address. + * @param contactEmail contactEmail or {@code null} for none + */ + public AppStoreAppDetails setContactEmail(java.lang.String contactEmail) { + this.contactEmail = contactEmail; + return this; + } + + /** + * Required. The app developer's name. + * @return value or {@code null} for none + */ + public java.lang.String getDeveloperName() { + return developerName; + } + + /** + * Required. The app developer's name. + * @param developerName developerName or {@code null} for none + */ + public AppStoreAppDetails setDeveloperName(java.lang.String developerName) { + this.developerName = developerName; + return this; + } + + /** + * Optional. Website link for the developer or app. + * @return value or {@code null} for none + */ + public java.lang.String getDeveloperWebsite() { + return developerWebsite; + } + + /** + * Optional. Website link for the developer or app. + * @param developerWebsite developerWebsite or {@code null} for none + */ + public AppStoreAppDetails setDeveloperWebsite(java.lang.String developerWebsite) { + this.developerWebsite = developerWebsite; + return this; + } + + @Override + public AppStoreAppDetails set(String fieldName, Object value) { + return (AppStoreAppDetails) super.set(fieldName, value); + } + + @Override + public AppStoreAppDetails clone() { + return (AppStoreAppDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppPolicyDeclaration.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppPolicyDeclaration.java new file mode 100644 index 00000000000..0d3ae4be058 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppPolicyDeclaration.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * A policy declaration with its responses. + * + *

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 AppStoreAppPolicyDeclaration extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the policy declaration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String declarationId; + + /** + * Required. Responses provided for this declaration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responses; + + /** + * Required. ID of the policy declaration. + * @return value or {@code null} for none + */ + public java.lang.String getDeclarationId() { + return declarationId; + } + + /** + * Required. ID of the policy declaration. + * @param declarationId declarationId or {@code null} for none + */ + public AppStoreAppPolicyDeclaration setDeclarationId(java.lang.String declarationId) { + this.declarationId = declarationId; + return this; + } + + /** + * Required. Responses provided for this declaration. + * @return value or {@code null} for none + */ + public java.util.List getResponses() { + return responses; + } + + /** + * Required. Responses provided for this declaration. + * @param responses responses or {@code null} for none + */ + public AppStoreAppPolicyDeclaration setResponses(java.util.List responses) { + this.responses = responses; + return this; + } + + @Override + public AppStoreAppPolicyDeclaration set(String fieldName, Object value) { + return (AppStoreAppPolicyDeclaration) super.set(fieldName, value); + } + + @Override + public AppStoreAppPolicyDeclaration clone() { + return (AppStoreAppPolicyDeclaration) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppStoreListing.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppStoreListing.java new file mode 100644 index 00000000000..cd4c3485133 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/AppStoreAppStoreListing.java @@ -0,0 +1,211 @@ +/* + * 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; + +/** + * A localized store listing. These are the details about the app as shown in your app store. + * + *

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 AppStoreAppStoreListing extends com.google.api.client.json.GenericJson { + + /** + * Required. Image ID generated from UploadImage for the main app icon. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appIconId; + + /** + * Required. The title of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appName; + + /** + * Required. Comprehensive description text about the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fullDescription; + + /** + * Required. Language code (e.g., "en-US") of the listing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Required. Multiple image IDs for screenshot galleries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List screenshotId; + + /** + * Optional. Quick summary about the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shortDescription; + + /** + * Optional. Link to a video about the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String videoLink; + + /** + * Required. Image ID generated from UploadImage for the main app icon. + * @return value or {@code null} for none + */ + public java.lang.String getAppIconId() { + return appIconId; + } + + /** + * Required. Image ID generated from UploadImage for the main app icon. + * @param appIconId appIconId or {@code null} for none + */ + public AppStoreAppStoreListing setAppIconId(java.lang.String appIconId) { + this.appIconId = appIconId; + return this; + } + + /** + * Required. The title of the app. + * @return value or {@code null} for none + */ + public java.lang.String getAppName() { + return appName; + } + + /** + * Required. The title of the app. + * @param appName appName or {@code null} for none + */ + public AppStoreAppStoreListing setAppName(java.lang.String appName) { + this.appName = appName; + return this; + } + + /** + * Required. Comprehensive description text about the app. + * @return value or {@code null} for none + */ + public java.lang.String getFullDescription() { + return fullDescription; + } + + /** + * Required. Comprehensive description text about the app. + * @param fullDescription fullDescription or {@code null} for none + */ + public AppStoreAppStoreListing setFullDescription(java.lang.String fullDescription) { + this.fullDescription = fullDescription; + return this; + } + + /** + * Required. Language code (e.g., "en-US") of the listing. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Required. Language code (e.g., "en-US") of the listing. + * @param languageCode languageCode or {@code null} for none + */ + public AppStoreAppStoreListing setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Required. Multiple image IDs for screenshot galleries. + * @return value or {@code null} for none + */ + public java.util.List getScreenshotId() { + return screenshotId; + } + + /** + * Required. Multiple image IDs for screenshot galleries. + * @param screenshotId screenshotId or {@code null} for none + */ + public AppStoreAppStoreListing setScreenshotId(java.util.List screenshotId) { + this.screenshotId = screenshotId; + return this; + } + + /** + * Optional. Quick summary about the app. + * @return value or {@code null} for none + */ + public java.lang.String getShortDescription() { + return shortDescription; + } + + /** + * Optional. Quick summary about the app. + * @param shortDescription shortDescription or {@code null} for none + */ + public AppStoreAppStoreListing setShortDescription(java.lang.String shortDescription) { + this.shortDescription = shortDescription; + return this; + } + + /** + * Optional. Link to a video about the app. + * @return value or {@code null} for none + */ + public java.lang.String getVideoLink() { + return videoLink; + } + + /** + * Optional. Link to a video about the app. + * @param videoLink videoLink or {@code null} for none + */ + public AppStoreAppStoreListing setVideoLink(java.lang.String videoLink) { + this.videoLink = videoLink; + return this; + } + + @Override + public AppStoreAppStoreListing set(String fieldName, Object value) { + return (AppStoreAppStoreListing) super.set(fieldName, value); + } + + @Override + public AppStoreAppStoreListing clone() { + return (AppStoreAppStoreListing) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogAppView.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogAppView.java new file mode 100644 index 00000000000..b6fef9c8b12 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogAppView.java @@ -0,0 +1,592 @@ +/* + * 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; + +/** + * LINT.IfChange A view of a Google Play app within the Catalog Export for app stores. + * + *

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 CatalogAppView extends com.google.api.client.json.GenericJson { + + /** + * Active versions of the app mapped from `android:versionName` manifest attributes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List activeVersionNames; + + /** + * The category of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appCategory; + + /** + * Developer-provided contact information for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppContactInformation appContactInformation; + + /** + * The subcategory of the app e.g. "GAME_ACTION". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appSubcategory; + + /** + * The token used for delivery of the app with the Google Play Inline Install API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deliveryToken; + + /** + * The developer details of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeveloperDetails developerDetails; + + /** + * The app may specify multiple sets of device compatibility requirements, and a device is + * considered compatible with the app if it satisfies at least one of + * `DeviceCompatibilityRequirements`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deviceCompatibilityRequirements; + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. These are OR-ed, i.e. a device is + * excluded if it matches any of the identifiers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedDevicesByIdentifier; + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. A device is excluded if it matches any + * of given the selectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedDevicesBySelector; + + /** + * The date when the app was first released. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date firstReleaseDate; + + /** + * Whether the app has ads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasInAppAds; + + /** + * Whether the app has in-app purchases through Google Play. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasInAppPurchases; + + /** + * The IARC certificate ID for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String iarcCertificateId; + + /** + * Whether the app is targeted to an adult-only (18+) audience. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isAdultOnlyAudience; + + /** + * The timestamp when the app was last published. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPublishTime; + + /** + * The localized store listings of the app which are shown on Google Play. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedStoreListings localizedStoreListings; + + /** + * The package name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** + * Required permissions declared by the app which apply for all Android SDK versions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * Required permissions declared by the app which apply for Android SDK versions SDK 23 and above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissionsSdk23; + + /** + * The price of the app in the United States. Empty if the app is free. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money priceInTheUnitedStates; + + /** + * The URL of the app's privacy policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privacyPolicyUrl; + + /** + * The sale price of the app in the United States. Only populated for paid apps with an active US + * sale. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money salePriceInTheUnitedStates; + + /** + * Active versions of the app mapped from `android:versionName` manifest attributes. + * @return value or {@code null} for none + */ + public java.util.List getActiveVersionNames() { + return activeVersionNames; + } + + /** + * Active versions of the app mapped from `android:versionName` manifest attributes. + * @param activeVersionNames activeVersionNames or {@code null} for none + */ + public CatalogAppView setActiveVersionNames(java.util.List activeVersionNames) { + this.activeVersionNames = activeVersionNames; + return this; + } + + /** + * The category of the app. + * @return value or {@code null} for none + */ + public java.lang.String getAppCategory() { + return appCategory; + } + + /** + * The category of the app. + * @param appCategory appCategory or {@code null} for none + */ + public CatalogAppView setAppCategory(java.lang.String appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * Developer-provided contact information for the app. + * @return value or {@code null} for none + */ + public AppContactInformation getAppContactInformation() { + return appContactInformation; + } + + /** + * Developer-provided contact information for the app. + * @param appContactInformation appContactInformation or {@code null} for none + */ + public CatalogAppView setAppContactInformation(AppContactInformation appContactInformation) { + this.appContactInformation = appContactInformation; + return this; + } + + /** + * The subcategory of the app e.g. "GAME_ACTION". + * @return value or {@code null} for none + */ + public java.lang.String getAppSubcategory() { + return appSubcategory; + } + + /** + * The subcategory of the app e.g. "GAME_ACTION". + * @param appSubcategory appSubcategory or {@code null} for none + */ + public CatalogAppView setAppSubcategory(java.lang.String appSubcategory) { + this.appSubcategory = appSubcategory; + return this; + } + + /** + * The token used for delivery of the app with the Google Play Inline Install API. + * @return value or {@code null} for none + */ + public java.lang.String getDeliveryToken() { + return deliveryToken; + } + + /** + * The token used for delivery of the app with the Google Play Inline Install API. + * @param deliveryToken deliveryToken or {@code null} for none + */ + public CatalogAppView setDeliveryToken(java.lang.String deliveryToken) { + this.deliveryToken = deliveryToken; + return this; + } + + /** + * The developer details of the app. + * @return value or {@code null} for none + */ + public DeveloperDetails getDeveloperDetails() { + return developerDetails; + } + + /** + * The developer details of the app. + * @param developerDetails developerDetails or {@code null} for none + */ + public CatalogAppView setDeveloperDetails(DeveloperDetails developerDetails) { + this.developerDetails = developerDetails; + return this; + } + + /** + * The app may specify multiple sets of device compatibility requirements, and a device is + * considered compatible with the app if it satisfies at least one of + * `DeviceCompatibilityRequirements`. + * @return value or {@code null} for none + */ + public java.util.List getDeviceCompatibilityRequirements() { + return deviceCompatibilityRequirements; + } + + /** + * The app may specify multiple sets of device compatibility requirements, and a device is + * considered compatible with the app if it satisfies at least one of + * `DeviceCompatibilityRequirements`. + * @param deviceCompatibilityRequirements deviceCompatibilityRequirements or {@code null} for none + */ + public CatalogAppView setDeviceCompatibilityRequirements(java.util.List deviceCompatibilityRequirements) { + this.deviceCompatibilityRequirements = deviceCompatibilityRequirements; + return this; + } + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. These are OR-ed, i.e. a device is + * excluded if it matches any of the identifiers. + * @return value or {@code null} for none + */ + public java.util.List getExcludedDevicesByIdentifier() { + return excludedDevicesByIdentifier; + } + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. These are OR-ed, i.e. a device is + * excluded if it matches any of the identifiers. + * @param excludedDevicesByIdentifier excludedDevicesByIdentifier or {@code null} for none + */ + public CatalogAppView setExcludedDevicesByIdentifier(java.util.List excludedDevicesByIdentifier) { + this.excludedDevicesByIdentifier = excludedDevicesByIdentifier; + return this; + } + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. A device is excluded if it matches any + * of given the selectors. + * @return value or {@code null} for none + */ + public java.util.List getExcludedDevicesBySelector() { + return excludedDevicesBySelector; + } + + /** + * List of devices excluded from the app's distribution even if they are otherwise compatible with + * the requirements from device_compatibility_requirements. A device is excluded if it matches any + * of given the selectors. + * @param excludedDevicesBySelector excludedDevicesBySelector or {@code null} for none + */ + public CatalogAppView setExcludedDevicesBySelector(java.util.List excludedDevicesBySelector) { + this.excludedDevicesBySelector = excludedDevicesBySelector; + return this; + } + + /** + * The date when the app was first released. + * @return value or {@code null} for none + */ + public Date getFirstReleaseDate() { + return firstReleaseDate; + } + + /** + * The date when the app was first released. + * @param firstReleaseDate firstReleaseDate or {@code null} for none + */ + public CatalogAppView setFirstReleaseDate(Date firstReleaseDate) { + this.firstReleaseDate = firstReleaseDate; + return this; + } + + /** + * Whether the app has ads. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasInAppAds() { + return hasInAppAds; + } + + /** + * Whether the app has ads. + * @param hasInAppAds hasInAppAds or {@code null} for none + */ + public CatalogAppView setHasInAppAds(java.lang.Boolean hasInAppAds) { + this.hasInAppAds = hasInAppAds; + return this; + } + + /** + * Whether the app has in-app purchases through Google Play. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasInAppPurchases() { + return hasInAppPurchases; + } + + /** + * Whether the app has in-app purchases through Google Play. + * @param hasInAppPurchases hasInAppPurchases or {@code null} for none + */ + public CatalogAppView setHasInAppPurchases(java.lang.Boolean hasInAppPurchases) { + this.hasInAppPurchases = hasInAppPurchases; + return this; + } + + /** + * The IARC certificate ID for the app. + * @return value or {@code null} for none + */ + public java.lang.String getIarcCertificateId() { + return iarcCertificateId; + } + + /** + * The IARC certificate ID for the app. + * @param iarcCertificateId iarcCertificateId or {@code null} for none + */ + public CatalogAppView setIarcCertificateId(java.lang.String iarcCertificateId) { + this.iarcCertificateId = iarcCertificateId; + return this; + } + + /** + * Whether the app is targeted to an adult-only (18+) audience. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsAdultOnlyAudience() { + return isAdultOnlyAudience; + } + + /** + * Whether the app is targeted to an adult-only (18+) audience. + * @param isAdultOnlyAudience isAdultOnlyAudience or {@code null} for none + */ + public CatalogAppView setIsAdultOnlyAudience(java.lang.Boolean isAdultOnlyAudience) { + this.isAdultOnlyAudience = isAdultOnlyAudience; + return this; + } + + /** + * The timestamp when the app was last published. + * @return value or {@code null} for none + */ + public String getLastPublishTime() { + return lastPublishTime; + } + + /** + * The timestamp when the app was last published. + * @param lastPublishTime lastPublishTime or {@code null} for none + */ + public CatalogAppView setLastPublishTime(String lastPublishTime) { + this.lastPublishTime = lastPublishTime; + return this; + } + + /** + * The localized store listings of the app which are shown on Google Play. + * @return value or {@code null} for none + */ + public LocalizedStoreListings getLocalizedStoreListings() { + return localizedStoreListings; + } + + /** + * The localized store listings of the app which are shown on Google Play. + * @param localizedStoreListings localizedStoreListings or {@code null} for none + */ + public CatalogAppView setLocalizedStoreListings(LocalizedStoreListings localizedStoreListings) { + this.localizedStoreListings = localizedStoreListings; + return this; + } + + /** + * The package name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * The package name of the app. + * @param packageName packageName or {@code null} for none + */ + public CatalogAppView setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required permissions declared by the app which apply for all Android SDK versions. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * Required permissions declared by the app which apply for all Android SDK versions. + * @param permissions permissions or {@code null} for none + */ + public CatalogAppView setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + /** + * Required permissions declared by the app which apply for Android SDK versions SDK 23 and above. + * @return value or {@code null} for none + */ + public java.util.List getPermissionsSdk23() { + return permissionsSdk23; + } + + /** + * Required permissions declared by the app which apply for Android SDK versions SDK 23 and above. + * @param permissionsSdk23 permissionsSdk23 or {@code null} for none + */ + public CatalogAppView setPermissionsSdk23(java.util.List permissionsSdk23) { + this.permissionsSdk23 = permissionsSdk23; + return this; + } + + /** + * The price of the app in the United States. Empty if the app is free. + * @return value or {@code null} for none + */ + public Money getPriceInTheUnitedStates() { + return priceInTheUnitedStates; + } + + /** + * The price of the app in the United States. Empty if the app is free. + * @param priceInTheUnitedStates priceInTheUnitedStates or {@code null} for none + */ + public CatalogAppView setPriceInTheUnitedStates(Money priceInTheUnitedStates) { + this.priceInTheUnitedStates = priceInTheUnitedStates; + return this; + } + + /** + * The URL of the app's privacy policy. + * @return value or {@code null} for none + */ + public java.lang.String getPrivacyPolicyUrl() { + return privacyPolicyUrl; + } + + /** + * The URL of the app's privacy policy. + * @param privacyPolicyUrl privacyPolicyUrl or {@code null} for none + */ + public CatalogAppView setPrivacyPolicyUrl(java.lang.String privacyPolicyUrl) { + this.privacyPolicyUrl = privacyPolicyUrl; + return this; + } + + /** + * The sale price of the app in the United States. Only populated for paid apps with an active US + * sale. + * @return value or {@code null} for none + */ + public Money getSalePriceInTheUnitedStates() { + return salePriceInTheUnitedStates; + } + + /** + * The sale price of the app in the United States. Only populated for paid apps with an active US + * sale. + * @param salePriceInTheUnitedStates salePriceInTheUnitedStates or {@code null} for none + */ + public CatalogAppView setSalePriceInTheUnitedStates(Money salePriceInTheUnitedStates) { + this.salePriceInTheUnitedStates = salePriceInTheUnitedStates; + return this; + } + + @Override + public CatalogAppView set(String fieldName, Object value) { + return (CatalogAppView) super.set(fieldName, value); + } + + @Override + public CatalogAppView clone() { + return (CatalogAppView) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogDeviceSelector.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogDeviceSelector.java new file mode 100644 index 00000000000..70562ea8002 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogDeviceSelector.java @@ -0,0 +1,116 @@ +/* + * 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; + +/** + * Defines a device selector for a device. A device is considered matched if it matches any of given + * the selectors. + * + *

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 CatalogDeviceSelector extends com.google.api.client.json.GenericJson { + + /** + * The device type selector. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceTypeSelector; + + /** + * Defines a RAM selector for a device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RamSelector ramSelector; + + /** + * The SOC selectors. A device matches the device selector if it matches any of the SOC selectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List socSelectors; + + /** + * The device type selector. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceTypeSelector() { + return deviceTypeSelector; + } + + /** + * The device type selector. + * @param deviceTypeSelector deviceTypeSelector or {@code null} for none + */ + public CatalogDeviceSelector setDeviceTypeSelector(java.lang.String deviceTypeSelector) { + this.deviceTypeSelector = deviceTypeSelector; + return this; + } + + /** + * Defines a RAM selector for a device. + * @return value or {@code null} for none + */ + public RamSelector getRamSelector() { + return ramSelector; + } + + /** + * Defines a RAM selector for a device. + * @param ramSelector ramSelector or {@code null} for none + */ + public CatalogDeviceSelector setRamSelector(RamSelector ramSelector) { + this.ramSelector = ramSelector; + return this; + } + + /** + * The SOC selectors. A device matches the device selector if it matches any of the SOC selectors. + * @return value or {@code null} for none + */ + public java.util.List getSocSelectors() { + return socSelectors; + } + + /** + * The SOC selectors. A device matches the device selector if it matches any of the SOC selectors. + * @param socSelectors socSelectors or {@code null} for none + */ + public CatalogDeviceSelector setSocSelectors(java.util.List socSelectors) { + this.socSelectors = socSelectors; + return this; + } + + @Override + public CatalogDeviceSelector set(String fieldName, Object value) { + return (CatalogDeviceSelector) super.set(fieldName, value); + } + + @Override + public CatalogDeviceSelector clone() { + return (CatalogDeviceSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogPermission.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogPermission.java new file mode 100644 index 00000000000..2dbae5b7194 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogPermission.java @@ -0,0 +1,94 @@ +/* + * 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; + +/** + * A permission declared by an app. + * + *

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 CatalogPermission extends com.google.api.client.json.GenericJson { + + /** + * The `maxSdkVersion` attribute indicating up to which Android SDK version the permission is + * requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxSdkVersion; + + /** + * The `name` attribute indicating the permission name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The `maxSdkVersion` attribute indicating up to which Android SDK version the permission is + * requested. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxSdkVersion() { + return maxSdkVersion; + } + + /** + * The `maxSdkVersion` attribute indicating up to which Android SDK version the permission is + * requested. + * @param maxSdkVersion maxSdkVersion or {@code null} for none + */ + public CatalogPermission setMaxSdkVersion(java.lang.Integer maxSdkVersion) { + this.maxSdkVersion = maxSdkVersion; + return this; + } + + /** + * The `name` attribute indicating the permission name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The `name` attribute indicating the permission name. + * @param name name or {@code null} for none + */ + public CatalogPermission setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public CatalogPermission set(String fieldName, Object value) { + return (CatalogPermission) super.set(fieldName, value); + } + + @Override + public CatalogPermission clone() { + return (CatalogPermission) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogSdkVersion.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogSdkVersion.java new file mode 100644 index 00000000000..c8894ed90f9 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CatalogSdkVersion.java @@ -0,0 +1,116 @@ +/* + * 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; + +/** + * Defines a range of SDK versions. A device is considered compatible uf its\ SDK version falls + * within the min_sdk_version and max_sdk_version range. + * + *

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 CatalogSdkVersion extends com.google.api.client.json.GenericJson { + + /** + * The maximum SDK version required for the app (inclusive). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxSdkVersion; + + /** + * The minimum SDK version required for the app (inclusive). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minSdkVersion; + + /** + * The target SDK version for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long targetSdkVersion; + + /** + * The maximum SDK version required for the app (inclusive). + * @return value or {@code null} for none + */ + public java.lang.Long getMaxSdkVersion() { + return maxSdkVersion; + } + + /** + * The maximum SDK version required for the app (inclusive). + * @param maxSdkVersion maxSdkVersion or {@code null} for none + */ + public CatalogSdkVersion setMaxSdkVersion(java.lang.Long maxSdkVersion) { + this.maxSdkVersion = maxSdkVersion; + return this; + } + + /** + * The minimum SDK version required for the app (inclusive). + * @return value or {@code null} for none + */ + public java.lang.Long getMinSdkVersion() { + return minSdkVersion; + } + + /** + * The minimum SDK version required for the app (inclusive). + * @param minSdkVersion minSdkVersion or {@code null} for none + */ + public CatalogSdkVersion setMinSdkVersion(java.lang.Long minSdkVersion) { + this.minSdkVersion = minSdkVersion; + return this; + } + + /** + * The target SDK version for the app. + * @return value or {@code null} for none + */ + public java.lang.Long getTargetSdkVersion() { + return targetSdkVersion; + } + + /** + * The target SDK version for the app. + * @param targetSdkVersion targetSdkVersion or {@code null} for none + */ + public CatalogSdkVersion setTargetSdkVersion(java.lang.Long targetSdkVersion) { + this.targetSdkVersion = targetSdkVersion; + return this; + } + + @Override + public CatalogSdkVersion set(String fieldName, Object value) { + return (CatalogSdkVersion) super.set(fieldName, value); + } + + @Override + public CatalogSdkVersion clone() { + return (CatalogSdkVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CompatibleScreen.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CompatibleScreen.java new file mode 100644 index 00000000000..a523b1960f3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CompatibleScreen.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Compatible screens as listed in the `compatible-screens` Manifest tag. + * + *

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 CompatibleScreen extends com.google.api.client.json.GenericJson { + + /** + * Screen density. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String density; + + /** + * The screen size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String screenSize; + + /** + * Screen density. + * @return value or {@code null} for none + */ + public java.lang.String getDensity() { + return density; + } + + /** + * Screen density. + * @param density density or {@code null} for none + */ + public CompatibleScreen setDensity(java.lang.String density) { + this.density = density; + return this; + } + + /** + * The screen size. + * @return value or {@code null} for none + */ + public java.lang.String getScreenSize() { + return screenSize; + } + + /** + * The screen size. + * @param screenSize screenSize or {@code null} for none + */ + public CompatibleScreen setScreenSize(java.lang.String screenSize) { + this.screenSize = screenSize; + return this; + } + + @Override + public CompatibleScreen set(String fieldName, Object value) { + return (CompatibleScreen) super.set(fieldName, value); + } + + @Override + public CompatibleScreen clone() { + return (CompatibleScreen) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppRequest.java new file mode 100644 index 00000000000..e6f9c706f75 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppRequest.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Request to create a new app record for an app store hosted app. + * + *

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 CreateAppStoreHostedAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Package name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** + * Required. Package name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. Package name of the app. + * @param packageName packageName or {@code null} for none + */ + public CreateAppStoreHostedAppRequest setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + @Override + public CreateAppStoreHostedAppRequest set(String fieldName, Object value) { + return (CreateAppStoreHostedAppRequest) super.set(fieldName, value); + } + + @Override + public CreateAppStoreHostedAppRequest clone() { + return (CreateAppStoreHostedAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppResponse.java new file mode 100644 index 00000000000..8190e1d081c --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/CreateAppStoreHostedAppResponse.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Response for creating a new app record for an app store hosted app. + * + *

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 CreateAppStoreHostedAppResponse extends com.google.api.client.json.GenericJson { + + @Override + public CreateAppStoreHostedAppResponse set(String fieldName, Object value) { + return (CreateAppStoreHostedAppResponse) super.set(fieldName, value); + } + + @Override + public CreateAppStoreHostedAppResponse clone() { + return (CreateAppStoreHostedAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Date.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Date.java new file mode 100644 index 00000000000..a75dab5900b --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Date.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *

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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeveloperDetails.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeveloperDetails.java new file mode 100644 index 00000000000..eb88655ab44 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeveloperDetails.java @@ -0,0 +1,163 @@ +/* + * 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; + +/** + * The developer details of a Google Play app. + * + *

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 DeveloperDetails extends com.google.api.client.json.GenericJson { + + /** + * The physical address of the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** + * The contact email of the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contactEmail; + + /** + * The developer name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String developerName; + + /** + * The phone number of the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumber; + + /** + * The website of the developer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String website; + + /** + * The physical address of the developer. + * @return value or {@code null} for none + */ + public java.lang.String getAddress() { + return address; + } + + /** + * The physical address of the developer. + * @param address address or {@code null} for none + */ + public DeveloperDetails setAddress(java.lang.String address) { + this.address = address; + return this; + } + + /** + * The contact email of the developer. + * @return value or {@code null} for none + */ + public java.lang.String getContactEmail() { + return contactEmail; + } + + /** + * The contact email of the developer. + * @param contactEmail contactEmail or {@code null} for none + */ + public DeveloperDetails setContactEmail(java.lang.String contactEmail) { + this.contactEmail = contactEmail; + return this; + } + + /** + * The developer name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDeveloperName() { + return developerName; + } + + /** + * The developer name of the app. + * @param developerName developerName or {@code null} for none + */ + public DeveloperDetails setDeveloperName(java.lang.String developerName) { + this.developerName = developerName; + return this; + } + + /** + * The phone number of the developer. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumber() { + return phoneNumber; + } + + /** + * The phone number of the developer. + * @param phoneNumber phoneNumber or {@code null} for none + */ + public DeveloperDetails setPhoneNumber(java.lang.String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The website of the developer. + * @return value or {@code null} for none + */ + public java.lang.String getWebsite() { + return website; + } + + /** + * The website of the developer. + * @param website website or {@code null} for none + */ + public DeveloperDetails setWebsite(java.lang.String website) { + this.website = website; + return this; + } + + @Override + public DeveloperDetails set(String fieldName, Object value) { + return (DeveloperDetails) super.set(fieldName, value); + } + + @Override + public DeveloperDetails clone() { + return (DeveloperDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceCompatibilityRequirements.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceCompatibilityRequirements.java new file mode 100644 index 00000000000..b6e2b227cfa --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceCompatibilityRequirements.java @@ -0,0 +1,347 @@ +/* + * 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; + +/** + * Defines a set of device compatibility requirements for the app. A device must satisfy all of the + * requirements in a set to be considered compatible with the app. + * + *

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 DeviceCompatibilityRequirements extends com.google.api.client.json.GenericJson { + + /** + * Compatible screens as listed in the `compatible-screens` Manifest tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List compatibleScreens; + + static { + // hack to force ProGuard to consider CompatibleScreen used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(CompatibleScreen.class); + } + + /** + * Required version of OpenGL ES. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer glEsVersion; + + /** + * Specifies if the app requires a screen. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isScreenRequired; + + /** + * List of required ABIs (Application Binary Interface), e.g. `armeabi` or `x86`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nativePlatforms; + + /** + * List of required libraries as declared in the `uses-library` manifest tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredSoftwareLibraries; + + /** + * The system features that the app requires. A device must have all of the system features to be + * considered compatible with the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredSystemFeatures; + + /** + * Specifies the minimum smallest width required of the screen. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long requiresSmallestWidthDp; + + /** + * Defines a range of SDK versions that the app is compatible with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogSdkVersion sdkVersion; + + /** + * Supported gl textures as specified by the `supported-gl-texture` Manifest tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedGlTextures; + + /** + * Compatible screens as listed in the `supports-screens` Manifest tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedScreens; + + /** + * Value of `android:use32BitAbi` flag retrieved from the Manifest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String use32BitAbi; + + /** + * Lists all configurations marked as required by use of the `uses-configuration` manifest tag. + * Each instance of this proto represents a single `uses-configuration` entry. See + * http://developer.android.com/guide/topics/manifest/uses-configuration-element.html + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List usesConfigurations; + + /** + * Compatible screens as listed in the `compatible-screens` Manifest tag. + * @return value or {@code null} for none + */ + public java.util.List getCompatibleScreens() { + return compatibleScreens; + } + + /** + * Compatible screens as listed in the `compatible-screens` Manifest tag. + * @param compatibleScreens compatibleScreens or {@code null} for none + */ + public DeviceCompatibilityRequirements setCompatibleScreens(java.util.List compatibleScreens) { + this.compatibleScreens = compatibleScreens; + return this; + } + + /** + * Required version of OpenGL ES. + * @return value or {@code null} for none + */ + public java.lang.Integer getGlEsVersion() { + return glEsVersion; + } + + /** + * Required version of OpenGL ES. + * @param glEsVersion glEsVersion or {@code null} for none + */ + public DeviceCompatibilityRequirements setGlEsVersion(java.lang.Integer glEsVersion) { + this.glEsVersion = glEsVersion; + return this; + } + + /** + * Specifies if the app requires a screen. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsScreenRequired() { + return isScreenRequired; + } + + /** + * Specifies if the app requires a screen. + * @param isScreenRequired isScreenRequired or {@code null} for none + */ + public DeviceCompatibilityRequirements setIsScreenRequired(java.lang.Boolean isScreenRequired) { + this.isScreenRequired = isScreenRequired; + return this; + } + + /** + * List of required ABIs (Application Binary Interface), e.g. `armeabi` or `x86`. + * @return value or {@code null} for none + */ + public java.util.List getNativePlatforms() { + return nativePlatforms; + } + + /** + * List of required ABIs (Application Binary Interface), e.g. `armeabi` or `x86`. + * @param nativePlatforms nativePlatforms or {@code null} for none + */ + public DeviceCompatibilityRequirements setNativePlatforms(java.util.List nativePlatforms) { + this.nativePlatforms = nativePlatforms; + return this; + } + + /** + * List of required libraries as declared in the `uses-library` manifest tag. + * @return value or {@code null} for none + */ + public java.util.List getRequiredSoftwareLibraries() { + return requiredSoftwareLibraries; + } + + /** + * List of required libraries as declared in the `uses-library` manifest tag. + * @param requiredSoftwareLibraries requiredSoftwareLibraries or {@code null} for none + */ + public DeviceCompatibilityRequirements setRequiredSoftwareLibraries(java.util.List requiredSoftwareLibraries) { + this.requiredSoftwareLibraries = requiredSoftwareLibraries; + return this; + } + + /** + * The system features that the app requires. A device must have all of the system features to be + * considered compatible with the app. + * @return value or {@code null} for none + */ + public java.util.List getRequiredSystemFeatures() { + return requiredSystemFeatures; + } + + /** + * The system features that the app requires. A device must have all of the system features to be + * considered compatible with the app. + * @param requiredSystemFeatures requiredSystemFeatures or {@code null} for none + */ + public DeviceCompatibilityRequirements setRequiredSystemFeatures(java.util.List requiredSystemFeatures) { + this.requiredSystemFeatures = requiredSystemFeatures; + return this; + } + + /** + * Specifies the minimum smallest width required of the screen. + * @return value or {@code null} for none + */ + public java.lang.Long getRequiresSmallestWidthDp() { + return requiresSmallestWidthDp; + } + + /** + * Specifies the minimum smallest width required of the screen. + * @param requiresSmallestWidthDp requiresSmallestWidthDp or {@code null} for none + */ + public DeviceCompatibilityRequirements setRequiresSmallestWidthDp(java.lang.Long requiresSmallestWidthDp) { + this.requiresSmallestWidthDp = requiresSmallestWidthDp; + return this; + } + + /** + * Defines a range of SDK versions that the app is compatible with. + * @return value or {@code null} for none + */ + public CatalogSdkVersion getSdkVersion() { + return sdkVersion; + } + + /** + * Defines a range of SDK versions that the app is compatible with. + * @param sdkVersion sdkVersion or {@code null} for none + */ + public DeviceCompatibilityRequirements setSdkVersion(CatalogSdkVersion sdkVersion) { + this.sdkVersion = sdkVersion; + return this; + } + + /** + * Supported gl textures as specified by the `supported-gl-texture` Manifest tag. + * @return value or {@code null} for none + */ + public java.util.List getSupportedGlTextures() { + return supportedGlTextures; + } + + /** + * Supported gl textures as specified by the `supported-gl-texture` Manifest tag. + * @param supportedGlTextures supportedGlTextures or {@code null} for none + */ + public DeviceCompatibilityRequirements setSupportedGlTextures(java.util.List supportedGlTextures) { + this.supportedGlTextures = supportedGlTextures; + return this; + } + + /** + * Compatible screens as listed in the `supports-screens` Manifest tag. + * @return value or {@code null} for none + */ + public java.util.List getSupportedScreens() { + return supportedScreens; + } + + /** + * Compatible screens as listed in the `supports-screens` Manifest tag. + * @param supportedScreens supportedScreens or {@code null} for none + */ + public DeviceCompatibilityRequirements setSupportedScreens(java.util.List supportedScreens) { + this.supportedScreens = supportedScreens; + return this; + } + + /** + * Value of `android:use32BitAbi` flag retrieved from the Manifest. + * @return value or {@code null} for none + */ + public java.lang.String getUse32BitAbi() { + return use32BitAbi; + } + + /** + * Value of `android:use32BitAbi` flag retrieved from the Manifest. + * @param use32BitAbi use32BitAbi or {@code null} for none + */ + public DeviceCompatibilityRequirements setUse32BitAbi(java.lang.String use32BitAbi) { + this.use32BitAbi = use32BitAbi; + return this; + } + + /** + * Lists all configurations marked as required by use of the `uses-configuration` manifest tag. + * Each instance of this proto represents a single `uses-configuration` entry. See + * http://developer.android.com/guide/topics/manifest/uses-configuration-element.html + * @return value or {@code null} for none + */ + public java.util.List getUsesConfigurations() { + return usesConfigurations; + } + + /** + * Lists all configurations marked as required by use of the `uses-configuration` manifest tag. + * Each instance of this proto represents a single `uses-configuration` entry. See + * http://developer.android.com/guide/topics/manifest/uses-configuration-element.html + * @param usesConfigurations usesConfigurations or {@code null} for none + */ + public DeviceCompatibilityRequirements setUsesConfigurations(java.util.List usesConfigurations) { + this.usesConfigurations = usesConfigurations; + return this; + } + + @Override + public DeviceCompatibilityRequirements set(String fieldName, Object value) { + return (DeviceCompatibilityRequirements) super.set(fieldName, value); + } + + @Override + public DeviceCompatibilityRequirements clone() { + return (DeviceCompatibilityRequirements) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceIdentifier.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceIdentifier.java new file mode 100644 index 00000000000..82b446f50e3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/DeviceIdentifier.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Defines a device identifier for a device. + * + *

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 DeviceIdentifier extends com.google.api.client.json.GenericJson { + + /** + * The brand of the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceBrand; + + /** + * The model of the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceModel; + + /** + * The brand of the device. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceBrand() { + return deviceBrand; + } + + /** + * The brand of the device. + * @param deviceBrand deviceBrand or {@code null} for none + */ + public DeviceIdentifier setDeviceBrand(java.lang.String deviceBrand) { + this.deviceBrand = deviceBrand; + return this; + } + + /** + * The model of the device. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceModel() { + return deviceModel; + } + + /** + * The model of the device. + * @param deviceModel deviceModel or {@code null} for none + */ + public DeviceIdentifier setDeviceModel(java.lang.String deviceModel) { + this.deviceModel = deviceModel; + return this; + } + + @Override + public DeviceIdentifier set(String fieldName, Object value) { + return (DeviceIdentifier) super.set(fieldName, value); + } + + @Override + public DeviceIdentifier clone() { + return (DeviceIdentifier) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Group.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Group.java new file mode 100644 index 00000000000..32df4717295 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/Group.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * A group of responses. + * + *

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 Group extends com.google.api.client.json.GenericJson { + + /** + * Required. Responses within a group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responses; + + /** + * Required. Responses within a group. + * @return value or {@code null} for none + */ + public java.util.List getResponses() { + return responses; + } + + /** + * Required. Responses within a group. + * @param responses responses or {@code null} for none + */ + public Group setResponses(java.util.List responses) { + this.responses = responses; + return this; + } + + @Override + public Group set(String fieldName, Object value) { + return (Group) super.set(fieldName, value); + } + + @Override + public Group clone() { + return (Group) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ImageAsset.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ImageAsset.java new file mode 100644 index 00000000000..c284ad66a6e --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ImageAsset.java @@ -0,0 +1,67 @@ +/* + * 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 image asset. + * + *

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 ImageAsset extends com.google.api.client.json.GenericJson { + + /** + * The URL of the image asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String imageUrl; + + /** + * The URL of the image asset. + * @return value or {@code null} for none + */ + public java.lang.String getImageUrl() { + return imageUrl; + } + + /** + * The URL of the image asset. + * @param imageUrl imageUrl or {@code null} for none + */ + public ImageAsset setImageUrl(java.lang.String imageUrl) { + this.imageUrl = imageUrl; + return this; + } + + @Override + public ImageAsset set(String fieldName, Object value) { + return (ImageAsset) super.set(fieldName, value); + } + + @Override + public ImageAsset clone() { + return (ImageAsset) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/IntroductoryPriceInfo.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/IntroductoryPriceInfo.java deleted file mode 100644 index 4ab1b5153eb..00000000000 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/IntroductoryPriceInfo.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * 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; - -/** - * Contains the introductory price information for a subscription. - * - *

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 IntroductoryPriceInfo extends com.google.api.client.json.GenericJson { - - /** - * Introductory price of the subscription, not including tax. The currency is the same as - * price_currency_code. Price is expressed in micro-units, where 1,000,000 micro-units represents - * one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros - * is 1990000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long introductoryPriceAmountMicros; - - /** - * ISO 4217 currency code for the introductory subscription price. For example, if the price is - * specified in British pounds sterling, price_currency_code is "GBP". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String introductoryPriceCurrencyCode; - - /** - * The number of billing period to offer introductory pricing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer introductoryPriceCycles; - - /** - * Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) - * "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one - * year). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String introductoryPricePeriod; - - /** - * Introductory price of the subscription, not including tax. The currency is the same as - * price_currency_code. Price is expressed in micro-units, where 1,000,000 micro-units represents - * one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros - * is 1990000. - * @return value or {@code null} for none - */ - public java.lang.Long getIntroductoryPriceAmountMicros() { - return introductoryPriceAmountMicros; - } - - /** - * Introductory price of the subscription, not including tax. The currency is the same as - * price_currency_code. Price is expressed in micro-units, where 1,000,000 micro-units represents - * one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros - * is 1990000. - * @param introductoryPriceAmountMicros introductoryPriceAmountMicros or {@code null} for none - */ - public IntroductoryPriceInfo setIntroductoryPriceAmountMicros(java.lang.Long introductoryPriceAmountMicros) { - this.introductoryPriceAmountMicros = introductoryPriceAmountMicros; - return this; - } - - /** - * ISO 4217 currency code for the introductory subscription price. For example, if the price is - * specified in British pounds sterling, price_currency_code is "GBP". - * @return value or {@code null} for none - */ - public java.lang.String getIntroductoryPriceCurrencyCode() { - return introductoryPriceCurrencyCode; - } - - /** - * ISO 4217 currency code for the introductory subscription price. For example, if the price is - * specified in British pounds sterling, price_currency_code is "GBP". - * @param introductoryPriceCurrencyCode introductoryPriceCurrencyCode or {@code null} for none - */ - public IntroductoryPriceInfo setIntroductoryPriceCurrencyCode(java.lang.String introductoryPriceCurrencyCode) { - this.introductoryPriceCurrencyCode = introductoryPriceCurrencyCode; - return this; - } - - /** - * The number of billing period to offer introductory pricing. - * @return value or {@code null} for none - */ - public java.lang.Integer getIntroductoryPriceCycles() { - return introductoryPriceCycles; - } - - /** - * The number of billing period to offer introductory pricing. - * @param introductoryPriceCycles introductoryPriceCycles or {@code null} for none - */ - public IntroductoryPriceInfo setIntroductoryPriceCycles(java.lang.Integer introductoryPriceCycles) { - this.introductoryPriceCycles = introductoryPriceCycles; - return this; - } - - /** - * Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) - * "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one - * year). - * @return value or {@code null} for none - */ - public java.lang.String getIntroductoryPricePeriod() { - return introductoryPricePeriod; - } - - /** - * Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) - * "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one - * year). - * @param introductoryPricePeriod introductoryPricePeriod or {@code null} for none - */ - public IntroductoryPriceInfo setIntroductoryPricePeriod(java.lang.String introductoryPricePeriod) { - this.introductoryPricePeriod = introductoryPricePeriod; - return this; - } - - @Override - public IntroductoryPriceInfo set(String fieldName, Object value) { - return (IntroductoryPriceInfo) super.set(fieldName, value); - } - - @Override - public IntroductoryPriceInfo clone() { - return (IntroductoryPriceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/KeyedGroup.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/KeyedGroup.java new file mode 100644 index 00000000000..60c76a8dedd --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/KeyedGroup.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * A group of responses, with a key. + * + *

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 KeyedGroup extends com.google.api.client.json.GenericJson { + + /** + * Required. Key for this group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Required. Responses in this group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responses; + + /** + * Required. Key for this group. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Required. Key for this group. + * @param key key or {@code null} for none + */ + public KeyedGroup setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Required. Responses in this group. + * @return value or {@code null} for none + */ + public java.util.List getResponses() { + return responses; + } + + /** + * Required. Responses in this group. + * @param responses responses or {@code null} for none + */ + public KeyedGroup setResponses(java.util.List responses) { + this.responses = responses; + return this; + } + + @Override + public KeyedGroup set(String fieldName, Object value) { + return (KeyedGroup) super.set(fieldName, value); + } + + @Override + public KeyedGroup clone() { + return (KeyedGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ListRecentUpdateEventsResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ListRecentUpdateEventsResponse.java new file mode 100644 index 00000000000..fb504bee15f --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ListRecentUpdateEventsResponse.java @@ -0,0 +1,94 @@ +/* + * 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; + +/** + * Response message for ListRecentUpdateEvents. + * + *

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 ListRecentUpdateEventsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of recent update events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recentUpdateEvents; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListRecentUpdateEventsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of recent update events. + * @return value or {@code null} for none + */ + public java.util.List getRecentUpdateEvents() { + return recentUpdateEvents; + } + + /** + * The list of recent update events. + * @param recentUpdateEvents recentUpdateEvents or {@code null} for none + */ + public ListRecentUpdateEventsResponse setRecentUpdateEvents(java.util.List recentUpdateEvents) { + this.recentUpdateEvents = recentUpdateEvents; + return this; + } + + @Override + public ListRecentUpdateEventsResponse set(String fieldName, Object value) { + return (ListRecentUpdateEventsResponse) super.set(fieldName, value); + } + + @Override + public ListRecentUpdateEventsResponse clone() { + return (ListRecentUpdateEventsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListing.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListing.java new file mode 100644 index 00000000000..09f16479aae --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListing.java @@ -0,0 +1,283 @@ +/* + * 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; + +/** + * A localized store listings of the app. + * + *

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 LocalizedStoreListing extends com.google.api.client.json.GenericJson { + + /** + * The name of the app in this localization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appName; + + /** + * The feature graphic of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageAsset featureGraphic; + + /** + * A longer description of the app in this localization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fullDescription; + + /** + * The icon of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageAsset icon; + + /** + * The BCP-47 language code for this localization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * The phone screenshots of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScreenshotSet phoneScreenshots; + + /** + * A short description of the app in this localization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shortDescription; + + /** + * The regular tablet screenshots of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScreenshotSet tabletRegularScreenshots; + + /** + * The small tablet screenshots of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScreenshotSet tabletSmallScreenshots; + + /** + * The video of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VideoAsset video; + + /** + * The name of the app in this localization. + * @return value or {@code null} for none + */ + public java.lang.String getAppName() { + return appName; + } + + /** + * The name of the app in this localization. + * @param appName appName or {@code null} for none + */ + public LocalizedStoreListing setAppName(java.lang.String appName) { + this.appName = appName; + return this; + } + + /** + * The feature graphic of the app. + * @return value or {@code null} for none + */ + public ImageAsset getFeatureGraphic() { + return featureGraphic; + } + + /** + * The feature graphic of the app. + * @param featureGraphic featureGraphic or {@code null} for none + */ + public LocalizedStoreListing setFeatureGraphic(ImageAsset featureGraphic) { + this.featureGraphic = featureGraphic; + return this; + } + + /** + * A longer description of the app in this localization. + * @return value or {@code null} for none + */ + public java.lang.String getFullDescription() { + return fullDescription; + } + + /** + * A longer description of the app in this localization. + * @param fullDescription fullDescription or {@code null} for none + */ + public LocalizedStoreListing setFullDescription(java.lang.String fullDescription) { + this.fullDescription = fullDescription; + return this; + } + + /** + * The icon of the app. + * @return value or {@code null} for none + */ + public ImageAsset getIcon() { + return icon; + } + + /** + * The icon of the app. + * @param icon icon or {@code null} for none + */ + public LocalizedStoreListing setIcon(ImageAsset icon) { + this.icon = icon; + return this; + } + + /** + * The BCP-47 language code for this localization. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * The BCP-47 language code for this localization. + * @param languageCode languageCode or {@code null} for none + */ + public LocalizedStoreListing setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * The phone screenshots of the app. + * @return value or {@code null} for none + */ + public ScreenshotSet getPhoneScreenshots() { + return phoneScreenshots; + } + + /** + * The phone screenshots of the app. + * @param phoneScreenshots phoneScreenshots or {@code null} for none + */ + public LocalizedStoreListing setPhoneScreenshots(ScreenshotSet phoneScreenshots) { + this.phoneScreenshots = phoneScreenshots; + return this; + } + + /** + * A short description of the app in this localization. + * @return value or {@code null} for none + */ + public java.lang.String getShortDescription() { + return shortDescription; + } + + /** + * A short description of the app in this localization. + * @param shortDescription shortDescription or {@code null} for none + */ + public LocalizedStoreListing setShortDescription(java.lang.String shortDescription) { + this.shortDescription = shortDescription; + return this; + } + + /** + * The regular tablet screenshots of the app. + * @return value or {@code null} for none + */ + public ScreenshotSet getTabletRegularScreenshots() { + return tabletRegularScreenshots; + } + + /** + * The regular tablet screenshots of the app. + * @param tabletRegularScreenshots tabletRegularScreenshots or {@code null} for none + */ + public LocalizedStoreListing setTabletRegularScreenshots(ScreenshotSet tabletRegularScreenshots) { + this.tabletRegularScreenshots = tabletRegularScreenshots; + return this; + } + + /** + * The small tablet screenshots of the app. + * @return value or {@code null} for none + */ + public ScreenshotSet getTabletSmallScreenshots() { + return tabletSmallScreenshots; + } + + /** + * The small tablet screenshots of the app. + * @param tabletSmallScreenshots tabletSmallScreenshots or {@code null} for none + */ + public LocalizedStoreListing setTabletSmallScreenshots(ScreenshotSet tabletSmallScreenshots) { + this.tabletSmallScreenshots = tabletSmallScreenshots; + return this; + } + + /** + * The video of the app. + * @return value or {@code null} for none + */ + public VideoAsset getVideo() { + return video; + } + + /** + * The video of the app. + * @param video video or {@code null} for none + */ + public LocalizedStoreListing setVideo(VideoAsset video) { + this.video = video; + return this; + } + + @Override + public LocalizedStoreListing set(String fieldName, Object value) { + return (LocalizedStoreListing) super.set(fieldName, value); + } + + @Override + public LocalizedStoreListing clone() { + return (LocalizedStoreListing) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListings.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListings.java new file mode 100644 index 00000000000..abb93218b59 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/LocalizedStoreListings.java @@ -0,0 +1,97 @@ +/* + * 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; + +/** + * The localized store listings of an app. + * + *

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 LocalizedStoreListings extends com.google.api.client.json.GenericJson { + + /** + * The default language code of the app. If a localized store listing is not available for a given + * language, assets from the default language are used instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultLanguageCode; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localizedStoreListings; + + static { + // hack to force ProGuard to consider LocalizedStoreListing used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(LocalizedStoreListing.class); + } + + /** + * The default language code of the app. If a localized store listing is not available for a given + * language, assets from the default language are used instead. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultLanguageCode() { + return defaultLanguageCode; + } + + /** + * The default language code of the app. If a localized store listing is not available for a given + * language, assets from the default language are used instead. + * @param defaultLanguageCode defaultLanguageCode or {@code null} for none + */ + public LocalizedStoreListings setDefaultLanguageCode(java.lang.String defaultLanguageCode) { + this.defaultLanguageCode = defaultLanguageCode; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getLocalizedStoreListings() { + return localizedStoreListings; + } + + /** + * @param localizedStoreListings localizedStoreListings or {@code null} for none + */ + public LocalizedStoreListings setLocalizedStoreListings(java.util.List localizedStoreListings) { + this.localizedStoreListings = localizedStoreListings; + return this; + } + + @Override + public LocalizedStoreListings set(String fieldName, Object value) { + return (LocalizedStoreListings) super.set(fieldName, value); + } + + @Override + public LocalizedStoreListings clone() { + return (LocalizedStoreListings) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/NestedPolicyResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/NestedPolicyResponse.java new file mode 100644 index 00000000000..3e641bb6d3e --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/NestedPolicyResponse.java @@ -0,0 +1,188 @@ +/* + * 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 individual nested response to a policy question about an app. Nested responses are like + * regular responses but without groups. + * + *

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 NestedPolicyResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. A boolean response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyBooleanResponse booleanResponse; + + /** + * Optional. A document response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyDocumentResponse documentResponse; + + /** + * Optional. A multiple choice response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyMultipleChoiceResponse multipleChoiceResponse; + + /** + * Required. ID of the question being answered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionId; + + /** + * Optional. A single choice response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicySingleChoiceResponse singleChoiceResponse; + + /** + * Optional. A string response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyStringResponse stringResponse; + + /** + * Optional. A boolean response. + * @return value or {@code null} for none + */ + public PolicyBooleanResponse getBooleanResponse() { + return booleanResponse; + } + + /** + * Optional. A boolean response. + * @param booleanResponse booleanResponse or {@code null} for none + */ + public NestedPolicyResponse setBooleanResponse(PolicyBooleanResponse booleanResponse) { + this.booleanResponse = booleanResponse; + return this; + } + + /** + * Optional. A document response. + * @return value or {@code null} for none + */ + public PolicyDocumentResponse getDocumentResponse() { + return documentResponse; + } + + /** + * Optional. A document response. + * @param documentResponse documentResponse or {@code null} for none + */ + public NestedPolicyResponse setDocumentResponse(PolicyDocumentResponse documentResponse) { + this.documentResponse = documentResponse; + return this; + } + + /** + * Optional. A multiple choice response. + * @return value or {@code null} for none + */ + public PolicyMultipleChoiceResponse getMultipleChoiceResponse() { + return multipleChoiceResponse; + } + + /** + * Optional. A multiple choice response. + * @param multipleChoiceResponse multipleChoiceResponse or {@code null} for none + */ + public NestedPolicyResponse setMultipleChoiceResponse(PolicyMultipleChoiceResponse multipleChoiceResponse) { + this.multipleChoiceResponse = multipleChoiceResponse; + return this; + } + + /** + * Required. ID of the question being answered. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionId() { + return questionId; + } + + /** + * Required. ID of the question being answered. + * @param questionId questionId or {@code null} for none + */ + public NestedPolicyResponse setQuestionId(java.lang.String questionId) { + this.questionId = questionId; + return this; + } + + /** + * Optional. A single choice response. + * @return value or {@code null} for none + */ + public PolicySingleChoiceResponse getSingleChoiceResponse() { + return singleChoiceResponse; + } + + /** + * Optional. A single choice response. + * @param singleChoiceResponse singleChoiceResponse or {@code null} for none + */ + public NestedPolicyResponse setSingleChoiceResponse(PolicySingleChoiceResponse singleChoiceResponse) { + this.singleChoiceResponse = singleChoiceResponse; + return this; + } + + /** + * Optional. A string response. + * @return value or {@code null} for none + */ + public PolicyStringResponse getStringResponse() { + return stringResponse; + } + + /** + * Optional. A string response. + * @param stringResponse stringResponse or {@code null} for none + */ + public NestedPolicyResponse setStringResponse(PolicyStringResponse stringResponse) { + this.stringResponse = stringResponse; + return this; + } + + @Override + public NestedPolicyResponse set(String fieldName, Object value) { + return (NestedPolicyResponse) super.set(fieldName, value); + } + + @Override + public NestedPolicyResponse clone() { + return (NestedPolicyResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyBooleanResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyBooleanResponse.java new file mode 100644 index 00000000000..36354387b20 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyBooleanResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Responses that will only ever be a boolean. + * + *

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 PolicyBooleanResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. Provided boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean value; + + /** + * Required. Provided boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValue() { + return value; + } + + /** + * Required. Provided boolean value. + * @param value value or {@code null} for none + */ + public PolicyBooleanResponse setValue(java.lang.Boolean value) { + this.value = value; + return this; + } + + @Override + public PolicyBooleanResponse set(String fieldName, Object value) { + return (PolicyBooleanResponse) super.set(fieldName, value); + } + + @Override + public PolicyBooleanResponse clone() { + return (PolicyBooleanResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyDocumentResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyDocumentResponse.java new file mode 100644 index 00000000000..bf9f4dc5473 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyDocumentResponse.java @@ -0,0 +1,115 @@ +/* + * 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 uploaded document. Must be a single logical document (e.g. a financial license). + * + *

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 PolicyDocumentResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the uploaded document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentId; + + /** + * Optional. Expiry date for the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date expiryDate; + + /** + * Optional. True if confirmed that the document does not have an expiry date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean nonExpiring; + + /** + * Required. ID of the uploaded document. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentId() { + return documentId; + } + + /** + * Required. ID of the uploaded document. + * @param documentId documentId or {@code null} for none + */ + public PolicyDocumentResponse setDocumentId(java.lang.String documentId) { + this.documentId = documentId; + return this; + } + + /** + * Optional. Expiry date for the document. + * @return value or {@code null} for none + */ + public Date getExpiryDate() { + return expiryDate; + } + + /** + * Optional. Expiry date for the document. + * @param expiryDate expiryDate or {@code null} for none + */ + public PolicyDocumentResponse setExpiryDate(Date expiryDate) { + this.expiryDate = expiryDate; + return this; + } + + /** + * Optional. True if confirmed that the document does not have an expiry date. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNonExpiring() { + return nonExpiring; + } + + /** + * Optional. True if confirmed that the document does not have an expiry date. + * @param nonExpiring nonExpiring or {@code null} for none + */ + public PolicyDocumentResponse setNonExpiring(java.lang.Boolean nonExpiring) { + this.nonExpiring = nonExpiring; + return this; + } + + @Override + public PolicyDocumentResponse set(String fieldName, Object value) { + return (PolicyDocumentResponse) super.set(fieldName, value); + } + + @Override + public PolicyDocumentResponse clone() { + return (PolicyDocumentResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyGroupResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyGroupResponse.java new file mode 100644 index 00000000000..ccd9d884696 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyGroupResponse.java @@ -0,0 +1,73 @@ +/* + * 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; + +/** + * A repeated group of responses. + * + *

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 PolicyGroupResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Groups of responses to questions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List groups; + + static { + // hack to force ProGuard to consider Group used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Group.class); + } + + /** + * Optional. Groups of responses to questions. + * @return value or {@code null} for none + */ + public java.util.List getGroups() { + return groups; + } + + /** + * Optional. Groups of responses to questions. + * @param groups groups or {@code null} for none + */ + public PolicyGroupResponse setGroups(java.util.List groups) { + this.groups = groups; + return this; + } + + @Override + public PolicyGroupResponse set(String fieldName, Object value) { + return (PolicyGroupResponse) super.set(fieldName, value); + } + + @Override + public PolicyGroupResponse clone() { + return (PolicyGroupResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyKeyedGroupResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyKeyedGroupResponse.java new file mode 100644 index 00000000000..ca0f9c482c7 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyKeyedGroupResponse.java @@ -0,0 +1,76 @@ +/* + * 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; + +/** + * A group of responses each identified by a distinct key within an allowed set. + * + *

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 PolicyKeyedGroupResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Groups of responses to questions. Each KeyedGroup.key must be unique within this + * list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List groups; + + static { + // hack to force ProGuard to consider KeyedGroup used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(KeyedGroup.class); + } + + /** + * Optional. Groups of responses to questions. Each KeyedGroup.key must be unique within this + * list. + * @return value or {@code null} for none + */ + public java.util.List getGroups() { + return groups; + } + + /** + * Optional. Groups of responses to questions. Each KeyedGroup.key must be unique within this + * list. + * @param groups groups or {@code null} for none + */ + public PolicyKeyedGroupResponse setGroups(java.util.List groups) { + this.groups = groups; + return this; + } + + @Override + public PolicyKeyedGroupResponse set(String fieldName, Object value) { + return (PolicyKeyedGroupResponse) super.set(fieldName, value); + } + + @Override + public PolicyKeyedGroupResponse clone() { + return (PolicyKeyedGroupResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyMultipleChoiceResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyMultipleChoiceResponse.java new file mode 100644 index 00000000000..9be01682de3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyMultipleChoiceResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Any response where multiple options can be chosen from several possibilities. + * + *

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 PolicyMultipleChoiceResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Provided values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Optional. Provided values. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Optional. Provided values. + * @param values values or {@code null} for none + */ + public PolicyMultipleChoiceResponse setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public PolicyMultipleChoiceResponse set(String fieldName, Object value) { + return (PolicyMultipleChoiceResponse) super.set(fieldName, value); + } + + @Override + public PolicyMultipleChoiceResponse clone() { + return (PolicyMultipleChoiceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyResponse.java new file mode 100644 index 00000000000..d2793b5a526 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyResponse.java @@ -0,0 +1,235 @@ +/* + * 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 individual response to a policy question about an app. + * + *

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 PolicyResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. A boolean response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyBooleanResponse booleanResponse; + + /** + * Optional. A document response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyDocumentResponse documentResponse; + + /** + * Optional. A group response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyGroupResponse groupResponse; + + /** + * Optional. A keyed group response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyKeyedGroupResponse keyedGroupResponse; + + /** + * Optional. A multiple choice response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyMultipleChoiceResponse multipleChoiceResponse; + + /** + * Required. ID of the question being answered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionId; + + /** + * Optional. A single choice response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicySingleChoiceResponse singleChoiceResponse; + + /** + * Optional. A string response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PolicyStringResponse stringResponse; + + /** + * Optional. A boolean response. + * @return value or {@code null} for none + */ + public PolicyBooleanResponse getBooleanResponse() { + return booleanResponse; + } + + /** + * Optional. A boolean response. + * @param booleanResponse booleanResponse or {@code null} for none + */ + public PolicyResponse setBooleanResponse(PolicyBooleanResponse booleanResponse) { + this.booleanResponse = booleanResponse; + return this; + } + + /** + * Optional. A document response. + * @return value or {@code null} for none + */ + public PolicyDocumentResponse getDocumentResponse() { + return documentResponse; + } + + /** + * Optional. A document response. + * @param documentResponse documentResponse or {@code null} for none + */ + public PolicyResponse setDocumentResponse(PolicyDocumentResponse documentResponse) { + this.documentResponse = documentResponse; + return this; + } + + /** + * Optional. A group response. + * @return value or {@code null} for none + */ + public PolicyGroupResponse getGroupResponse() { + return groupResponse; + } + + /** + * Optional. A group response. + * @param groupResponse groupResponse or {@code null} for none + */ + public PolicyResponse setGroupResponse(PolicyGroupResponse groupResponse) { + this.groupResponse = groupResponse; + return this; + } + + /** + * Optional. A keyed group response. + * @return value or {@code null} for none + */ + public PolicyKeyedGroupResponse getKeyedGroupResponse() { + return keyedGroupResponse; + } + + /** + * Optional. A keyed group response. + * @param keyedGroupResponse keyedGroupResponse or {@code null} for none + */ + public PolicyResponse setKeyedGroupResponse(PolicyKeyedGroupResponse keyedGroupResponse) { + this.keyedGroupResponse = keyedGroupResponse; + return this; + } + + /** + * Optional. A multiple choice response. + * @return value or {@code null} for none + */ + public PolicyMultipleChoiceResponse getMultipleChoiceResponse() { + return multipleChoiceResponse; + } + + /** + * Optional. A multiple choice response. + * @param multipleChoiceResponse multipleChoiceResponse or {@code null} for none + */ + public PolicyResponse setMultipleChoiceResponse(PolicyMultipleChoiceResponse multipleChoiceResponse) { + this.multipleChoiceResponse = multipleChoiceResponse; + return this; + } + + /** + * Required. ID of the question being answered. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionId() { + return questionId; + } + + /** + * Required. ID of the question being answered. + * @param questionId questionId or {@code null} for none + */ + public PolicyResponse setQuestionId(java.lang.String questionId) { + this.questionId = questionId; + return this; + } + + /** + * Optional. A single choice response. + * @return value or {@code null} for none + */ + public PolicySingleChoiceResponse getSingleChoiceResponse() { + return singleChoiceResponse; + } + + /** + * Optional. A single choice response. + * @param singleChoiceResponse singleChoiceResponse or {@code null} for none + */ + public PolicyResponse setSingleChoiceResponse(PolicySingleChoiceResponse singleChoiceResponse) { + this.singleChoiceResponse = singleChoiceResponse; + return this; + } + + /** + * Optional. A string response. + * @return value or {@code null} for none + */ + public PolicyStringResponse getStringResponse() { + return stringResponse; + } + + /** + * Optional. A string response. + * @param stringResponse stringResponse or {@code null} for none + */ + public PolicyResponse setStringResponse(PolicyStringResponse stringResponse) { + this.stringResponse = stringResponse; + return this; + } + + @Override + public PolicyResponse set(String fieldName, Object value) { + return (PolicyResponse) super.set(fieldName, value); + } + + @Override + public PolicyResponse clone() { + return (PolicyResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicySingleChoiceResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicySingleChoiceResponse.java new file mode 100644 index 00000000000..26f91a210e3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicySingleChoiceResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Any response where a single option is chosen from several possibilities. + * + *

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 PolicySingleChoiceResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. Provided value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Required. Provided value. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Required. Provided value. + * @param value value or {@code null} for none + */ + public PolicySingleChoiceResponse setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public PolicySingleChoiceResponse set(String fieldName, Object value) { + return (PolicySingleChoiceResponse) super.set(fieldName, value); + } + + @Override + public PolicySingleChoiceResponse clone() { + return (PolicySingleChoiceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyStringResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyStringResponse.java new file mode 100644 index 00000000000..49c4f65adac --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/PolicyStringResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Any response best encoded as a string. Includes URLs and multiline text fields. + * + *

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 PolicyStringResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. Provided string value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Required. Provided string value. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Required. Provided string value. + * @param value value or {@code null} for none + */ + public PolicyStringResponse setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public PolicyStringResponse set(String fieldName, Object value) { + return (PolicyStringResponse) super.set(fieldName, value); + } + + @Override + public PolicyStringResponse clone() { + return (PolicyStringResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RamSelector.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RamSelector.java new file mode 100644 index 00000000000..8fa68d7ef62 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RamSelector.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Defines a RAM selector for a device. + * + *

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 RamSelector extends com.google.api.client.json.GenericJson { + + /** + * This will match any device that has less than or equal ram_mb_less_than_or_equal mb of RAM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long ramMbLessThanOrEqual; + + /** + * This will match any device that has less than or equal ram_mb_less_than_or_equal mb of RAM. + * @return value or {@code null} for none + */ + public java.lang.Long getRamMbLessThanOrEqual() { + return ramMbLessThanOrEqual; + } + + /** + * This will match any device that has less than or equal ram_mb_less_than_or_equal mb of RAM. + * @param ramMbLessThanOrEqual ramMbLessThanOrEqual or {@code null} for none + */ + public RamSelector setRamMbLessThanOrEqual(java.lang.Long ramMbLessThanOrEqual) { + this.ramMbLessThanOrEqual = ramMbLessThanOrEqual; + return this; + } + + @Override + public RamSelector set(String fieldName, Object value) { + return (RamSelector) super.set(fieldName, value); + } + + @Override + public RamSelector clone() { + return (RamSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentAppView.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentAppView.java new file mode 100644 index 00000000000..6a0a83f0233 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentAppView.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Metadata about a recently updated app. + * + *

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 RecentAppView extends com.google.api.client.json.GenericJson { + + /** + * Recently updated app view. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CatalogAppView appView; + + /** + * Recently updated app view. + * @return value or {@code null} for none + */ + public CatalogAppView getAppView() { + return appView; + } + + /** + * Recently updated app view. + * @param appView appView or {@code null} for none + */ + public RecentAppView setAppView(CatalogAppView appView) { + this.appView = appView; + return this; + } + + @Override + public RecentAppView set(String fieldName, Object value) { + return (RecentAppView) super.set(fieldName, value); + } + + @Override + public RecentAppView clone() { + return (RecentAppView) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentUpdateEvent.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentUpdateEvent.java new file mode 100644 index 00000000000..bb9a7a1164b --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/RecentUpdateEvent.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * A recent update event. + * + *

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 RecentUpdateEvent extends com.google.api.client.json.GenericJson { + + /** + * The timestamp of the update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * The package name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String playAppPackageName; + + /** + * The type of the update event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateType; + + /** + * The timestamp of the update. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * The timestamp of the update. + * @param eventTime eventTime or {@code null} for none + */ + public RecentUpdateEvent setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * The package name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getPlayAppPackageName() { + return playAppPackageName; + } + + /** + * The package name of the app. + * @param playAppPackageName playAppPackageName or {@code null} for none + */ + public RecentUpdateEvent setPlayAppPackageName(java.lang.String playAppPackageName) { + this.playAppPackageName = playAppPackageName; + return this; + } + + /** + * The type of the update event. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateType() { + return updateType; + } + + /** + * The type of the update event. + * @param updateType updateType or {@code null} for none + */ + public RecentUpdateEvent setUpdateType(java.lang.String updateType) { + this.updateType = updateType; + return this; + } + + @Override + public RecentUpdateEvent set(String fieldName, Object value) { + return (RecentUpdateEvent) super.set(fieldName, value); + } + + @Override + public RecentUpdateEvent clone() { + return (RecentUpdateEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ScreenshotSet.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ScreenshotSet.java new file mode 100644 index 00000000000..d00a82e6c91 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/ScreenshotSet.java @@ -0,0 +1,73 @@ +/* + * 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; + +/** + * A set of screenshots. + * + *

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 ScreenshotSet extends com.google.api.client.json.GenericJson { + + /** + * The image assets of the screenshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List screenshots; + + static { + // hack to force ProGuard to consider ImageAsset used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ImageAsset.class); + } + + /** + * The image assets of the screenshots. + * @return value or {@code null} for none + */ + public java.util.List getScreenshots() { + return screenshots; + } + + /** + * The image assets of the screenshots. + * @param screenshots screenshots or {@code null} for none + */ + public ScreenshotSet setScreenshots(java.util.List screenshots) { + this.screenshots = screenshots; + return this; + } + + @Override + public ScreenshotSet set(String fieldName, Object value) { + return (ScreenshotSet) super.set(fieldName, value); + } + + @Override + public ScreenshotSet clone() { + return (ScreenshotSet) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SocSelector.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SocSelector.java new file mode 100644 index 00000000000..6f0285ec41d --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SocSelector.java @@ -0,0 +1,92 @@ +/* + * 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; + +/** + * Defines a SOC selector for a device. This will match any device whose SoC (System on Chip) + * matches all fields in the selector. + * + *

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 SocSelector extends com.google.api.client.json.GenericJson { + + /** + * The manufacturer of the SoC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String socMake; + + /** + * The model of the SoC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String socModel; + + /** + * The manufacturer of the SoC. + * @return value or {@code null} for none + */ + public java.lang.String getSocMake() { + return socMake; + } + + /** + * The manufacturer of the SoC. + * @param socMake socMake or {@code null} for none + */ + public SocSelector setSocMake(java.lang.String socMake) { + this.socMake = socMake; + return this; + } + + /** + * The model of the SoC. + * @return value or {@code null} for none + */ + public java.lang.String getSocModel() { + return socModel; + } + + /** + * The model of the SoC. + * @param socModel socModel or {@code null} for none + */ + public SocSelector setSocModel(java.lang.String socModel) { + this.socModel = socModel; + return this; + } + + @Override + public SocSelector set(String fieldName, Object value) { + return (SocSelector) super.set(fieldName, value); + } + + @Override + public SocSelector clone() { + return (SocSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionCancelSurveyResult.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionCancelSurveyResult.java deleted file mode 100644 index 8ac139a98c3..00000000000 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionCancelSurveyResult.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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; - -/** - * Information provided by the user when they complete the subscription cancellation flow - * (cancellation reason survey). - * - *

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 SubscriptionCancelSurveyResult extends com.google.api.client.json.GenericJson { - - /** - * The cancellation reason the user chose in the survey. Possible values are: 0. Other 1. I don't - * use this service enough 2. Technical issues 3. Cost-related reasons 4. I found a better app - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer cancelSurveyReason; - - /** - * The customized input cancel reason from the user. Only present when cancelReason is 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String userInputCancelReason; - - /** - * The cancellation reason the user chose in the survey. Possible values are: 0. Other 1. I don't - * use this service enough 2. Technical issues 3. Cost-related reasons 4. I found a better app - * @return value or {@code null} for none - */ - public java.lang.Integer getCancelSurveyReason() { - return cancelSurveyReason; - } - - /** - * The cancellation reason the user chose in the survey. Possible values are: 0. Other 1. I don't - * use this service enough 2. Technical issues 3. Cost-related reasons 4. I found a better app - * @param cancelSurveyReason cancelSurveyReason or {@code null} for none - */ - public SubscriptionCancelSurveyResult setCancelSurveyReason(java.lang.Integer cancelSurveyReason) { - this.cancelSurveyReason = cancelSurveyReason; - return this; - } - - /** - * The customized input cancel reason from the user. Only present when cancelReason is 0. - * @return value or {@code null} for none - */ - public java.lang.String getUserInputCancelReason() { - return userInputCancelReason; - } - - /** - * The customized input cancel reason from the user. Only present when cancelReason is 0. - * @param userInputCancelReason userInputCancelReason or {@code null} for none - */ - public SubscriptionCancelSurveyResult setUserInputCancelReason(java.lang.String userInputCancelReason) { - this.userInputCancelReason = userInputCancelReason; - return this; - } - - @Override - public SubscriptionCancelSurveyResult set(String fieldName, Object value) { - return (SubscriptionCancelSurveyResult) super.set(fieldName, value); - } - - @Override - public SubscriptionCancelSurveyResult clone() { - return (SubscriptionCancelSurveyResult) super.clone(); - } - -} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPriceChange.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPriceChange.java deleted file mode 100644 index d65b3251da9..00000000000 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPriceChange.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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; - -/** - * Contains the price change information for a subscription that can be used to control the user - * journey for the price change in the app. This can be in the form of seeking confirmation from the - * user or tailoring the experience for a successful conversion. - * - *

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 SubscriptionPriceChange extends com.google.api.client.json.GenericJson { - - /** - * The new price the subscription will renew with if the price change is accepted by the user. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Price newPrice; - - /** - * The current state of the price change. Possible values are: 0. Outstanding: State for a pending - * price change waiting for the user to agree. In this state, you can optionally seek confirmation - * from the user using the In-App API. 1. Accepted: State for an accepted price change that the - * subscription will renew with unless it's canceled. The price change takes effect on a future - * date when the subscription renews. Note that the change might not occur when the subscription - * is renewed next. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer state; - - /** - * The new price the subscription will renew with if the price change is accepted by the user. - * @return value or {@code null} for none - */ - public Price getNewPrice() { - return newPrice; - } - - /** - * The new price the subscription will renew with if the price change is accepted by the user. - * @param newPrice newPrice or {@code null} for none - */ - public SubscriptionPriceChange setNewPrice(Price newPrice) { - this.newPrice = newPrice; - return this; - } - - /** - * The current state of the price change. Possible values are: 0. Outstanding: State for a pending - * price change waiting for the user to agree. In this state, you can optionally seek confirmation - * from the user using the In-App API. 1. Accepted: State for an accepted price change that the - * subscription will renew with unless it's canceled. The price change takes effect on a future - * date when the subscription renews. Note that the change might not occur when the subscription - * is renewed next. - * @return value or {@code null} for none - */ - public java.lang.Integer getState() { - return state; - } - - /** - * The current state of the price change. Possible values are: 0. Outstanding: State for a pending - * price change waiting for the user to agree. In this state, you can optionally seek confirmation - * from the user using the In-App API. 1. Accepted: State for an accepted price change that the - * subscription will renew with unless it's canceled. The price change takes effect on a future - * date when the subscription renews. Note that the change might not occur when the subscription - * is renewed next. - * @param state state or {@code null} for none - */ - public SubscriptionPriceChange setState(java.lang.Integer state) { - this.state = state; - return this; - } - - @Override - public SubscriptionPriceChange set(String fieldName, Object value) { - return (SubscriptionPriceChange) super.set(fieldName, value); - } - - @Override - public SubscriptionPriceChange clone() { - return (SubscriptionPriceChange) super.clone(); - } - -} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchase.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchase.java deleted file mode 100644 index ec49d31a06a..00000000000 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchase.java +++ /dev/null @@ -1,872 +0,0 @@ -/* - * 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; - -/** - * Deprecated: Use SubscriptionPurchaseV2 instead. A SubscriptionPurchase resource indicates the - * status of a user's subscription purchase. - * - *

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 SubscriptionPurchase extends com.google.api.client.json.GenericJson { - - /** - * The acknowledgement state of the subscription product. Possible values are: 0. Yet to be - * acknowledged 1. Acknowledged - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer acknowledgementState; - - /** - * Whether the subscription will automatically be renewed when it reaches its current expiry time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoRenewing; - - /** - * Time at which the subscription will be automatically resumed, in milliseconds since the Epoch. - * Only present if the user has requested to pause the subscription. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long autoResumeTimeMillis; - - /** - * The reason why a subscription was canceled or is not auto-renewing. Possible values are: 0. - * User canceled the subscription 1. Subscription was canceled by the system, for example because - * of a billing problem 2. Subscription was replaced with a new subscription 3. Subscription was - * canceled by the developer - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer cancelReason; - - /** - * Information provided by the user when they complete the subscription cancellation flow - * (cancellation reason survey). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubscriptionCancelSurveyResult cancelSurveyResult; - - /** - * ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was - * granted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String countryCode; - - /** - * A developer-specified string that contains supplemental information about an order. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String developerPayload; - - /** - * The email address of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String emailAddress; - - /** - * Time at which the subscription will expire, in milliseconds since the Epoch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long expiryTimeMillis; - - /** - * User account identifier in the third-party service. Only present if account linking happened as - * part of the subscription purchase flow. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalAccountId; - - /** - * The family name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String familyName; - - /** - * The given name of the user when the subscription was purchased. Only present for purchases made - * with 'Subscribe with Google'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String givenName; - - /** - * Introductory price information of the subscription. This is only present when the subscription - * was purchased with an introductory price. This field does not indicate the subscription is - * currently in introductory price period. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private IntroductoryPriceInfo introductoryPriceInfo; - - /** - * This kind represents a subscriptionPurchase object in the androidpublisher service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The purchase token of the originating purchase if this subscription is one of the following: 0. - * Re-signup of a canceled but non-lapsed subscription 1. Upgrade/downgrade from a previous - * subscription For example, suppose a user originally signs up and you receive purchase token X, - * then the user cancels and goes through the resignup flow (before their subscription lapses) and - * you receive purchase token Y, and finally the user upgrades their subscription and you receive - * purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If - * you call this API with purchase token Y, this field will be set to X. If you call this API with - * purchase token X, this field will not be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkedPurchaseToken; - - /** - * An obfuscated version of the id that is uniquely associated with the user's account in your - * app. Present for the following purchases: * If account linking happened as part of the - * subscription purchase flow. * It was specified using https://developer.android.com/reference/co - * m/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase - * was made. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String obfuscatedExternalAccountId; - - /** - * An obfuscated version of the id that is uniquely associated with the user's profile in your - * app. Only present if specified using https://developer.android.com/reference/com/android/billin - * gclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String obfuscatedExternalProfileId; - - /** - * The order id of the latest recurring order associated with the purchase of the subscription. If - * the subscription was canceled because payment was declined, this will be the order id from the - * payment declined order. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String orderId; - - /** - * The payment state of the subscription. Possible values are: 0. Payment pending 1. Payment - * received 2. Free trial 3. Pending deferred upgrade/downgrade Not present for canceled, expired - * subscriptions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer paymentState; - - /** - * Price of the subscription, For tax exclusive countries, the price doesn't include tax. For tax - * inclusive countries, the price includes tax. Price is expressed in micro-units, where 1,000,000 - * micro-units represents one unit of the currency. For example, if the subscription price is - * €1.99, price_amount_micros is 1990000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long priceAmountMicros; - - /** - * The latest price change information available. This is present only when there is an upcoming - * price change for the subscription yet to be applied. Once the subscription renews with the new - * price or the subscription is canceled, no price change information will be returned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubscriptionPriceChange priceChange; - - /** - * ISO 4217 currency code for the subscription price. For example, if the price is specified in - * British pounds sterling, price_currency_code is "GBP". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String priceCurrencyCode; - - /** - * The Google profile id of the user when the subscription was purchased. Only present for - * purchases made with 'Subscribe with Google'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String profileId; - - /** - * The profile name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String profileName; - - /** - * The promotion code applied on this purchase. This field is only set if a vanity code promotion - * is applied when the subscription was purchased. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String promotionCode; - - /** - * The type of promotion applied on this purchase. This field is only set if a promotion is - * applied when the subscription was purchased. Possible values are: 0. One time code 1. Vanity - * code - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer promotionType; - - /** - * The type of purchase of the subscription. This field is only set if this purchase was not made - * using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a - * license testing account) 1. Promo (i.e. purchased using a promo code) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer purchaseType; - - /** - * Time at which the subscription was granted, in milliseconds since the Epoch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long startTimeMillis; - - /** - * The time at which the subscription was canceled by the user, in milliseconds since the epoch. - * Only present if cancelReason is 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long userCancellationTimeMillis; - - /** - * The acknowledgement state of the subscription product. Possible values are: 0. Yet to be - * acknowledged 1. Acknowledged - * @return value or {@code null} for none - */ - public java.lang.Integer getAcknowledgementState() { - return acknowledgementState; - } - - /** - * The acknowledgement state of the subscription product. Possible values are: 0. Yet to be - * acknowledged 1. Acknowledged - * @param acknowledgementState acknowledgementState or {@code null} for none - */ - public SubscriptionPurchase setAcknowledgementState(java.lang.Integer acknowledgementState) { - this.acknowledgementState = acknowledgementState; - return this; - } - - /** - * Whether the subscription will automatically be renewed when it reaches its current expiry time. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoRenewing() { - return autoRenewing; - } - - /** - * Whether the subscription will automatically be renewed when it reaches its current expiry time. - * @param autoRenewing autoRenewing or {@code null} for none - */ - public SubscriptionPurchase setAutoRenewing(java.lang.Boolean autoRenewing) { - this.autoRenewing = autoRenewing; - return this; - } - - /** - * Time at which the subscription will be automatically resumed, in milliseconds since the Epoch. - * Only present if the user has requested to pause the subscription. - * @return value or {@code null} for none - */ - public java.lang.Long getAutoResumeTimeMillis() { - return autoResumeTimeMillis; - } - - /** - * Time at which the subscription will be automatically resumed, in milliseconds since the Epoch. - * Only present if the user has requested to pause the subscription. - * @param autoResumeTimeMillis autoResumeTimeMillis or {@code null} for none - */ - public SubscriptionPurchase setAutoResumeTimeMillis(java.lang.Long autoResumeTimeMillis) { - this.autoResumeTimeMillis = autoResumeTimeMillis; - return this; - } - - /** - * The reason why a subscription was canceled or is not auto-renewing. Possible values are: 0. - * User canceled the subscription 1. Subscription was canceled by the system, for example because - * of a billing problem 2. Subscription was replaced with a new subscription 3. Subscription was - * canceled by the developer - * @return value or {@code null} for none - */ - public java.lang.Integer getCancelReason() { - return cancelReason; - } - - /** - * The reason why a subscription was canceled or is not auto-renewing. Possible values are: 0. - * User canceled the subscription 1. Subscription was canceled by the system, for example because - * of a billing problem 2. Subscription was replaced with a new subscription 3. Subscription was - * canceled by the developer - * @param cancelReason cancelReason or {@code null} for none - */ - public SubscriptionPurchase setCancelReason(java.lang.Integer cancelReason) { - this.cancelReason = cancelReason; - return this; - } - - /** - * Information provided by the user when they complete the subscription cancellation flow - * (cancellation reason survey). - * @return value or {@code null} for none - */ - public SubscriptionCancelSurveyResult getCancelSurveyResult() { - return cancelSurveyResult; - } - - /** - * Information provided by the user when they complete the subscription cancellation flow - * (cancellation reason survey). - * @param cancelSurveyResult cancelSurveyResult or {@code null} for none - */ - public SubscriptionPurchase setCancelSurveyResult(SubscriptionCancelSurveyResult cancelSurveyResult) { - this.cancelSurveyResult = cancelSurveyResult; - return this; - } - - /** - * ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was - * granted. - * @return value or {@code null} for none - */ - public java.lang.String getCountryCode() { - return countryCode; - } - - /** - * ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was - * granted. - * @param countryCode countryCode or {@code null} for none - */ - public SubscriptionPurchase setCountryCode(java.lang.String countryCode) { - this.countryCode = countryCode; - return this; - } - - /** - * A developer-specified string that contains supplemental information about an order. - * @return value or {@code null} for none - */ - public java.lang.String getDeveloperPayload() { - return developerPayload; - } - - /** - * A developer-specified string that contains supplemental information about an order. - * @param developerPayload developerPayload or {@code null} for none - */ - public SubscriptionPurchase setDeveloperPayload(java.lang.String developerPayload) { - this.developerPayload = developerPayload; - return this; - } - - /** - * The email address of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @return value or {@code null} for none - */ - public java.lang.String getEmailAddress() { - return emailAddress; - } - - /** - * The email address of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @param emailAddress emailAddress or {@code null} for none - */ - public SubscriptionPurchase setEmailAddress(java.lang.String emailAddress) { - this.emailAddress = emailAddress; - return this; - } - - /** - * Time at which the subscription will expire, in milliseconds since the Epoch. - * @return value or {@code null} for none - */ - public java.lang.Long getExpiryTimeMillis() { - return expiryTimeMillis; - } - - /** - * Time at which the subscription will expire, in milliseconds since the Epoch. - * @param expiryTimeMillis expiryTimeMillis or {@code null} for none - */ - public SubscriptionPurchase setExpiryTimeMillis(java.lang.Long expiryTimeMillis) { - this.expiryTimeMillis = expiryTimeMillis; - return this; - } - - /** - * User account identifier in the third-party service. Only present if account linking happened as - * part of the subscription purchase flow. - * @return value or {@code null} for none - */ - public java.lang.String getExternalAccountId() { - return externalAccountId; - } - - /** - * User account identifier in the third-party service. Only present if account linking happened as - * part of the subscription purchase flow. - * @param externalAccountId externalAccountId or {@code null} for none - */ - public SubscriptionPurchase setExternalAccountId(java.lang.String externalAccountId) { - this.externalAccountId = externalAccountId; - return this; - } - - /** - * The family name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @return value or {@code null} for none - */ - public java.lang.String getFamilyName() { - return familyName; - } - - /** - * The family name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @param familyName familyName or {@code null} for none - */ - public SubscriptionPurchase setFamilyName(java.lang.String familyName) { - this.familyName = familyName; - return this; - } - - /** - * The given name of the user when the subscription was purchased. Only present for purchases made - * with 'Subscribe with Google'. - * @return value or {@code null} for none - */ - public java.lang.String getGivenName() { - return givenName; - } - - /** - * The given name of the user when the subscription was purchased. Only present for purchases made - * with 'Subscribe with Google'. - * @param givenName givenName or {@code null} for none - */ - public SubscriptionPurchase setGivenName(java.lang.String givenName) { - this.givenName = givenName; - return this; - } - - /** - * Introductory price information of the subscription. This is only present when the subscription - * was purchased with an introductory price. This field does not indicate the subscription is - * currently in introductory price period. - * @return value or {@code null} for none - */ - public IntroductoryPriceInfo getIntroductoryPriceInfo() { - return introductoryPriceInfo; - } - - /** - * Introductory price information of the subscription. This is only present when the subscription - * was purchased with an introductory price. This field does not indicate the subscription is - * currently in introductory price period. - * @param introductoryPriceInfo introductoryPriceInfo or {@code null} for none - */ - public SubscriptionPurchase setIntroductoryPriceInfo(IntroductoryPriceInfo introductoryPriceInfo) { - this.introductoryPriceInfo = introductoryPriceInfo; - return this; - } - - /** - * This kind represents a subscriptionPurchase object in the androidpublisher service. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * This kind represents a subscriptionPurchase object in the androidpublisher service. - * @param kind kind or {@code null} for none - */ - public SubscriptionPurchase setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The purchase token of the originating purchase if this subscription is one of the following: 0. - * Re-signup of a canceled but non-lapsed subscription 1. Upgrade/downgrade from a previous - * subscription For example, suppose a user originally signs up and you receive purchase token X, - * then the user cancels and goes through the resignup flow (before their subscription lapses) and - * you receive purchase token Y, and finally the user upgrades their subscription and you receive - * purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If - * you call this API with purchase token Y, this field will be set to X. If you call this API with - * purchase token X, this field will not be set. - * @return value or {@code null} for none - */ - public java.lang.String getLinkedPurchaseToken() { - return linkedPurchaseToken; - } - - /** - * The purchase token of the originating purchase if this subscription is one of the following: 0. - * Re-signup of a canceled but non-lapsed subscription 1. Upgrade/downgrade from a previous - * subscription For example, suppose a user originally signs up and you receive purchase token X, - * then the user cancels and goes through the resignup flow (before their subscription lapses) and - * you receive purchase token Y, and finally the user upgrades their subscription and you receive - * purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If - * you call this API with purchase token Y, this field will be set to X. If you call this API with - * purchase token X, this field will not be set. - * @param linkedPurchaseToken linkedPurchaseToken or {@code null} for none - */ - public SubscriptionPurchase setLinkedPurchaseToken(java.lang.String linkedPurchaseToken) { - this.linkedPurchaseToken = linkedPurchaseToken; - return this; - } - - /** - * An obfuscated version of the id that is uniquely associated with the user's account in your - * app. Present for the following purchases: * If account linking happened as part of the - * subscription purchase flow. * It was specified using https://developer.android.com/reference/co - * m/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase - * was made. - * @return value or {@code null} for none - */ - public java.lang.String getObfuscatedExternalAccountId() { - return obfuscatedExternalAccountId; - } - - /** - * An obfuscated version of the id that is uniquely associated with the user's account in your - * app. Present for the following purchases: * If account linking happened as part of the - * subscription purchase flow. * It was specified using https://developer.android.com/reference/co - * m/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase - * was made. - * @param obfuscatedExternalAccountId obfuscatedExternalAccountId or {@code null} for none - */ - public SubscriptionPurchase setObfuscatedExternalAccountId(java.lang.String obfuscatedExternalAccountId) { - this.obfuscatedExternalAccountId = obfuscatedExternalAccountId; - return this; - } - - /** - * An obfuscated version of the id that is uniquely associated with the user's profile in your - * app. Only present if specified using https://developer.android.com/reference/com/android/billin - * gclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. - * @return value or {@code null} for none - */ - public java.lang.String getObfuscatedExternalProfileId() { - return obfuscatedExternalProfileId; - } - - /** - * An obfuscated version of the id that is uniquely associated with the user's profile in your - * app. Only present if specified using https://developer.android.com/reference/com/android/billin - * gclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. - * @param obfuscatedExternalProfileId obfuscatedExternalProfileId or {@code null} for none - */ - public SubscriptionPurchase setObfuscatedExternalProfileId(java.lang.String obfuscatedExternalProfileId) { - this.obfuscatedExternalProfileId = obfuscatedExternalProfileId; - return this; - } - - /** - * The order id of the latest recurring order associated with the purchase of the subscription. If - * the subscription was canceled because payment was declined, this will be the order id from the - * payment declined order. - * @return value or {@code null} for none - */ - public java.lang.String getOrderId() { - return orderId; - } - - /** - * The order id of the latest recurring order associated with the purchase of the subscription. If - * the subscription was canceled because payment was declined, this will be the order id from the - * payment declined order. - * @param orderId orderId or {@code null} for none - */ - public SubscriptionPurchase setOrderId(java.lang.String orderId) { - this.orderId = orderId; - return this; - } - - /** - * The payment state of the subscription. Possible values are: 0. Payment pending 1. Payment - * received 2. Free trial 3. Pending deferred upgrade/downgrade Not present for canceled, expired - * subscriptions. - * @return value or {@code null} for none - */ - public java.lang.Integer getPaymentState() { - return paymentState; - } - - /** - * The payment state of the subscription. Possible values are: 0. Payment pending 1. Payment - * received 2. Free trial 3. Pending deferred upgrade/downgrade Not present for canceled, expired - * subscriptions. - * @param paymentState paymentState or {@code null} for none - */ - public SubscriptionPurchase setPaymentState(java.lang.Integer paymentState) { - this.paymentState = paymentState; - return this; - } - - /** - * Price of the subscription, For tax exclusive countries, the price doesn't include tax. For tax - * inclusive countries, the price includes tax. Price is expressed in micro-units, where 1,000,000 - * micro-units represents one unit of the currency. For example, if the subscription price is - * €1.99, price_amount_micros is 1990000. - * @return value or {@code null} for none - */ - public java.lang.Long getPriceAmountMicros() { - return priceAmountMicros; - } - - /** - * Price of the subscription, For tax exclusive countries, the price doesn't include tax. For tax - * inclusive countries, the price includes tax. Price is expressed in micro-units, where 1,000,000 - * micro-units represents one unit of the currency. For example, if the subscription price is - * €1.99, price_amount_micros is 1990000. - * @param priceAmountMicros priceAmountMicros or {@code null} for none - */ - public SubscriptionPurchase setPriceAmountMicros(java.lang.Long priceAmountMicros) { - this.priceAmountMicros = priceAmountMicros; - return this; - } - - /** - * The latest price change information available. This is present only when there is an upcoming - * price change for the subscription yet to be applied. Once the subscription renews with the new - * price or the subscription is canceled, no price change information will be returned. - * @return value or {@code null} for none - */ - public SubscriptionPriceChange getPriceChange() { - return priceChange; - } - - /** - * The latest price change information available. This is present only when there is an upcoming - * price change for the subscription yet to be applied. Once the subscription renews with the new - * price or the subscription is canceled, no price change information will be returned. - * @param priceChange priceChange or {@code null} for none - */ - public SubscriptionPurchase setPriceChange(SubscriptionPriceChange priceChange) { - this.priceChange = priceChange; - return this; - } - - /** - * ISO 4217 currency code for the subscription price. For example, if the price is specified in - * British pounds sterling, price_currency_code is "GBP". - * @return value or {@code null} for none - */ - public java.lang.String getPriceCurrencyCode() { - return priceCurrencyCode; - } - - /** - * ISO 4217 currency code for the subscription price. For example, if the price is specified in - * British pounds sterling, price_currency_code is "GBP". - * @param priceCurrencyCode priceCurrencyCode or {@code null} for none - */ - public SubscriptionPurchase setPriceCurrencyCode(java.lang.String priceCurrencyCode) { - this.priceCurrencyCode = priceCurrencyCode; - return this; - } - - /** - * The Google profile id of the user when the subscription was purchased. Only present for - * purchases made with 'Subscribe with Google'. - * @return value or {@code null} for none - */ - public java.lang.String getProfileId() { - return profileId; - } - - /** - * The Google profile id of the user when the subscription was purchased. Only present for - * purchases made with 'Subscribe with Google'. - * @param profileId profileId or {@code null} for none - */ - public SubscriptionPurchase setProfileId(java.lang.String profileId) { - this.profileId = profileId; - return this; - } - - /** - * The profile name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @return value or {@code null} for none - */ - public java.lang.String getProfileName() { - return profileName; - } - - /** - * The profile name of the user when the subscription was purchased. Only present for purchases - * made with 'Subscribe with Google'. - * @param profileName profileName or {@code null} for none - */ - public SubscriptionPurchase setProfileName(java.lang.String profileName) { - this.profileName = profileName; - return this; - } - - /** - * The promotion code applied on this purchase. This field is only set if a vanity code promotion - * is applied when the subscription was purchased. - * @return value or {@code null} for none - */ - public java.lang.String getPromotionCode() { - return promotionCode; - } - - /** - * The promotion code applied on this purchase. This field is only set if a vanity code promotion - * is applied when the subscription was purchased. - * @param promotionCode promotionCode or {@code null} for none - */ - public SubscriptionPurchase setPromotionCode(java.lang.String promotionCode) { - this.promotionCode = promotionCode; - return this; - } - - /** - * The type of promotion applied on this purchase. This field is only set if a promotion is - * applied when the subscription was purchased. Possible values are: 0. One time code 1. Vanity - * code - * @return value or {@code null} for none - */ - public java.lang.Integer getPromotionType() { - return promotionType; - } - - /** - * The type of promotion applied on this purchase. This field is only set if a promotion is - * applied when the subscription was purchased. Possible values are: 0. One time code 1. Vanity - * code - * @param promotionType promotionType or {@code null} for none - */ - public SubscriptionPurchase setPromotionType(java.lang.Integer promotionType) { - this.promotionType = promotionType; - return this; - } - - /** - * The type of purchase of the subscription. This field is only set if this purchase was not made - * using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a - * license testing account) 1. Promo (i.e. purchased using a promo code) - * @return value or {@code null} for none - */ - public java.lang.Integer getPurchaseType() { - return purchaseType; - } - - /** - * The type of purchase of the subscription. This field is only set if this purchase was not made - * using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a - * license testing account) 1. Promo (i.e. purchased using a promo code) - * @param purchaseType purchaseType or {@code null} for none - */ - public SubscriptionPurchase setPurchaseType(java.lang.Integer purchaseType) { - this.purchaseType = purchaseType; - return this; - } - - /** - * Time at which the subscription was granted, in milliseconds since the Epoch. - * @return value or {@code null} for none - */ - public java.lang.Long getStartTimeMillis() { - return startTimeMillis; - } - - /** - * Time at which the subscription was granted, in milliseconds since the Epoch. - * @param startTimeMillis startTimeMillis or {@code null} for none - */ - public SubscriptionPurchase setStartTimeMillis(java.lang.Long startTimeMillis) { - this.startTimeMillis = startTimeMillis; - return this; - } - - /** - * The time at which the subscription was canceled by the user, in milliseconds since the epoch. - * Only present if cancelReason is 0. - * @return value or {@code null} for none - */ - public java.lang.Long getUserCancellationTimeMillis() { - return userCancellationTimeMillis; - } - - /** - * The time at which the subscription was canceled by the user, in milliseconds since the epoch. - * Only present if cancelReason is 0. - * @param userCancellationTimeMillis userCancellationTimeMillis or {@code null} for none - */ - public SubscriptionPurchase setUserCancellationTimeMillis(java.lang.Long userCancellationTimeMillis) { - this.userCancellationTimeMillis = userCancellationTimeMillis; - return this; - } - - @Override - public SubscriptionPurchase set(String fieldName, Object value) { - return (SubscriptionPurchase) super.set(fieldName, value); - } - - @Override - public SubscriptionPurchase clone() { - return (SubscriptionPurchase) super.clone(); - } - -} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchaseV2.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchaseV2.java index e32a6b0819e..46bdba38a4a 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchaseV2.java +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/SubscriptionPurchaseV2.java @@ -76,17 +76,6 @@ public final class SubscriptionPurchaseV2 extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.String kind; - /** - * Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order - * associated with the purchase of the subscription. For autoRenewing subscription, this is the - * order id of signup order if it is not renewed yet, or the last recurring order id (success, - * pending, or declined order). For prepaid subscription, this is the order id associated with the - * queried purchase token. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String latestOrderId; - /** * Item-level info for a subscription purchase. The items in the same purchase should be either * all with AutoRenewingPlan or all with PrepaidPlan. @@ -284,31 +273,6 @@ public SubscriptionPurchaseV2 setKind(java.lang.String kind) { return this; } - /** - * Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order - * associated with the purchase of the subscription. For autoRenewing subscription, this is the - * order id of signup order if it is not renewed yet, or the last recurring order id (success, - * pending, or declined order). For prepaid subscription, this is the order id associated with the - * queried purchase token. - * @return value or {@code null} for none - */ - public java.lang.String getLatestOrderId() { - return latestOrderId; - } - - /** - * Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order - * associated with the purchase of the subscription. For autoRenewing subscription, this is the - * order id of signup order if it is not renewed yet, or the last recurring order id (success, - * pending, or declined order). For prepaid subscription, this is the order id associated with the - * queried purchase token. - * @param latestOrderId latestOrderId or {@code null} for none - */ - public SubscriptionPurchaseV2 setLatestOrderId(java.lang.String latestOrderId) { - this.latestOrderId = latestOrderId; - return this; - } - /** * Item-level info for a subscription purchase. The items in the same purchase should be either * all with AutoRenewingPlan or all with PrepaidPlan. diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusRequest.java new file mode 100644 index 00000000000..9767a10ee86 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusRequest.java @@ -0,0 +1,69 @@ +/* + * 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; + +/** + * Request to update the publish status of an app store hosted app. The default state for any app + * with an update is PUBLISHED. It is not necessary to call this RPC explicitly to set an app to + * PUBLISHED. + * + *

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 UpdateAppStoreHostedAppPublishStatusRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The new publish state for the hosted app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publishState; + + /** + * Required. The new publish state for the hosted app. + * @return value or {@code null} for none + */ + public java.lang.String getPublishState() { + return publishState; + } + + /** + * Required. The new publish state for the hosted app. + * @param publishState publishState or {@code null} for none + */ + public UpdateAppStoreHostedAppPublishStatusRequest setPublishState(java.lang.String publishState) { + this.publishState = publishState; + return this; + } + + @Override + public UpdateAppStoreHostedAppPublishStatusRequest set(String fieldName, Object value) { + return (UpdateAppStoreHostedAppPublishStatusRequest) super.set(fieldName, value); + } + + @Override + public UpdateAppStoreHostedAppPublishStatusRequest clone() { + return (UpdateAppStoreHostedAppPublishStatusRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusResponse.java new file mode 100644 index 00000000000..8603375c4b1 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppPublishStatusResponse.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Response for updating the publish status of an app store hosted app. + * + *

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 UpdateAppStoreHostedAppPublishStatusResponse extends com.google.api.client.json.GenericJson { + + @Override + public UpdateAppStoreHostedAppPublishStatusResponse set(String fieldName, Object value) { + return (UpdateAppStoreHostedAppPublishStatusResponse) super.set(fieldName, value); + } + + @Override + public UpdateAppStoreHostedAppPublishStatusResponse clone() { + return (UpdateAppStoreHostedAppPublishStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppRequest.java new file mode 100644 index 00000000000..1e91cdf24dd --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppRequest.java @@ -0,0 +1,175 @@ +/* + * 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; + +/** + * Request to update an app record for an app store hosted app. + * + *

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 UpdateAppStoreHostedAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Actively distributed APKs of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppStoreAppActiveApks activeApks; + + /** + * Required. Localized store listings details of the update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List activeLocalizedStoreListings; + + static { + // hack to force ProGuard to consider AppStoreAppStoreListing used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AppStoreAppStoreListing.class); + } + + /** + * Required. General developer details for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppStoreAppDetails appDetails; + + /** + * Required. Package name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** + * Required. Policy declarations provided for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List policyDeclarations; + + static { + // hack to force ProGuard to consider AppStoreAppPolicyDeclaration used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AppStoreAppPolicyDeclaration.class); + } + + /** + * Required. Actively distributed APKs of the app. + * @return value or {@code null} for none + */ + public AppStoreAppActiveApks getActiveApks() { + return activeApks; + } + + /** + * Required. Actively distributed APKs of the app. + * @param activeApks activeApks or {@code null} for none + */ + public UpdateAppStoreHostedAppRequest setActiveApks(AppStoreAppActiveApks activeApks) { + this.activeApks = activeApks; + return this; + } + + /** + * Required. Localized store listings details of the update. + * @return value or {@code null} for none + */ + public java.util.List getActiveLocalizedStoreListings() { + return activeLocalizedStoreListings; + } + + /** + * Required. Localized store listings details of the update. + * @param activeLocalizedStoreListings activeLocalizedStoreListings or {@code null} for none + */ + public UpdateAppStoreHostedAppRequest setActiveLocalizedStoreListings(java.util.List activeLocalizedStoreListings) { + this.activeLocalizedStoreListings = activeLocalizedStoreListings; + return this; + } + + /** + * Required. General developer details for the app. + * @return value or {@code null} for none + */ + public AppStoreAppDetails getAppDetails() { + return appDetails; + } + + /** + * Required. General developer details for the app. + * @param appDetails appDetails or {@code null} for none + */ + public UpdateAppStoreHostedAppRequest setAppDetails(AppStoreAppDetails appDetails) { + this.appDetails = appDetails; + return this; + } + + /** + * Required. Package name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. Package name of the app. + * @param packageName packageName or {@code null} for none + */ + public UpdateAppStoreHostedAppRequest setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. Policy declarations provided for the app. + * @return value or {@code null} for none + */ + public java.util.List getPolicyDeclarations() { + return policyDeclarations; + } + + /** + * Required. Policy declarations provided for the app. + * @param policyDeclarations policyDeclarations or {@code null} for none + */ + public UpdateAppStoreHostedAppRequest setPolicyDeclarations(java.util.List policyDeclarations) { + this.policyDeclarations = policyDeclarations; + return this; + } + + @Override + public UpdateAppStoreHostedAppRequest set(String fieldName, Object value) { + return (UpdateAppStoreHostedAppRequest) super.set(fieldName, value); + } + + @Override + public UpdateAppStoreHostedAppRequest clone() { + return (UpdateAppStoreHostedAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppResponse.java new file mode 100644 index 00000000000..a9de3e62924 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UpdateAppStoreHostedAppResponse.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Response for updating an app record for an app store hosted app. + * + *

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 UpdateAppStoreHostedAppResponse extends com.google.api.client.json.GenericJson { + + @Override + public UpdateAppStoreHostedAppResponse set(String fieldName, Object value) { + return (UpdateAppStoreHostedAppResponse) super.set(fieldName, value); + } + + @Override + public UpdateAppStoreHostedAppResponse clone() { + return (UpdateAppStoreHostedAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkRequest.java new file mode 100644 index 00000000000..541cffccb89 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkRequest.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Request to upload an APK. + * + *

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 UploadApkRequest extends com.google.api.client.json.GenericJson { + + @Override + public UploadApkRequest set(String fieldName, Object value) { + return (UploadApkRequest) super.set(fieldName, value); + } + + @Override + public UploadApkRequest clone() { + return (UploadApkRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkResponse.java new file mode 100644 index 00000000000..b8f1b8f862c --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadApkResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Response for uploading an APK. + * + *

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 UploadApkResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique ID of the uploaded APK. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apkId; + + /** + * The unique ID of the uploaded APK. + * @return value or {@code null} for none + */ + public java.lang.String getApkId() { + return apkId; + } + + /** + * The unique ID of the uploaded APK. + * @param apkId apkId or {@code null} for none + */ + public UploadApkResponse setApkId(java.lang.String apkId) { + this.apkId = apkId; + return this; + } + + @Override + public UploadApkResponse set(String fieldName, Object value) { + return (UploadApkResponse) super.set(fieldName, value); + } + + @Override + public UploadApkResponse clone() { + return (UploadApkResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileRequest.java new file mode 100644 index 00000000000..293cf36c431 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileRequest.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Request to upload a policy declaration file. + * + *

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 UploadAppStoreAppPolicyDeclarationFileRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Type of the policy declaration file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileType; + + /** + * Required. Type of the policy declaration file. + * @return value or {@code null} for none + */ + public java.lang.String getFileType() { + return fileType; + } + + /** + * Required. Type of the policy declaration file. + * @param fileType fileType or {@code null} for none + */ + public UploadAppStoreAppPolicyDeclarationFileRequest setFileType(java.lang.String fileType) { + this.fileType = fileType; + return this; + } + + @Override + public UploadAppStoreAppPolicyDeclarationFileRequest set(String fieldName, Object value) { + return (UploadAppStoreAppPolicyDeclarationFileRequest) super.set(fieldName, value); + } + + @Override + public UploadAppStoreAppPolicyDeclarationFileRequest clone() { + return (UploadAppStoreAppPolicyDeclarationFileRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileResponse.java new file mode 100644 index 00000000000..419f71b1d10 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadAppStoreAppPolicyDeclarationFileResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Response for uploading a policy declaration file. + * + *

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 UploadAppStoreAppPolicyDeclarationFileResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique ID of the uploaded file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The unique ID of the uploaded file. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * The unique ID of the uploaded file. + * @param fileId fileId or {@code null} for none + */ + public UploadAppStoreAppPolicyDeclarationFileResponse setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + @Override + public UploadAppStoreAppPolicyDeclarationFileResponse set(String fieldName, Object value) { + return (UploadAppStoreAppPolicyDeclarationFileResponse) super.set(fieldName, value); + } + + @Override + public UploadAppStoreAppPolicyDeclarationFileResponse clone() { + return (UploadAppStoreAppPolicyDeclarationFileResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageRequest.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageRequest.java new file mode 100644 index 00000000000..339ca12cd98 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageRequest.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Request to upload an image. + * + *

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 UploadImageRequest extends com.google.api.client.json.GenericJson { + + @Override + public UploadImageRequest set(String fieldName, Object value) { + return (UploadImageRequest) super.set(fieldName, value); + } + + @Override + public UploadImageRequest clone() { + return (UploadImageRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageResponse.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageResponse.java new file mode 100644 index 00000000000..df4d6334837 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UploadImageResponse.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Response for uploading an image. + * + *

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 UploadImageResponse extends com.google.api.client.json.GenericJson { + + /** + * The unique ID of the uploaded image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String imageId; + + /** + * The unique ID of the uploaded image. + * @return value or {@code null} for none + */ + public java.lang.String getImageId() { + return imageId; + } + + /** + * The unique ID of the uploaded image. + * @param imageId imageId or {@code null} for none + */ + public UploadImageResponse setImageId(java.lang.String imageId) { + this.imageId = imageId; + return this; + } + + @Override + public UploadImageResponse set(String fieldName, Object value) { + return (UploadImageResponse) super.set(fieldName, value); + } + + @Override + public UploadImageResponse clone() { + return (UploadImageResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UsesConfiguration.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UsesConfiguration.java new file mode 100644 index 00000000000..b039d1b45f3 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/UsesConfiguration.java @@ -0,0 +1,163 @@ +/* + * 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; + +/** + * Represents all configurations marked as required by use of the uses-configuration manifest tag. + * + *

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 UsesConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The type of keyboard required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requiredKeyboardType; + + /** + * The navigation device required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requiredNavigationType; + + /** + * The type of touchscreen required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requiredTouchscreenType; + + /** + * Whether or not the application requires a five-way navigation control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requiresFiveWayNavigation; + + /** + * Whether or not the application requires a hardware keyboard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requiresHardwareKeyboard; + + /** + * The type of keyboard required. + * @return value or {@code null} for none + */ + public java.lang.String getRequiredKeyboardType() { + return requiredKeyboardType; + } + + /** + * The type of keyboard required. + * @param requiredKeyboardType requiredKeyboardType or {@code null} for none + */ + public UsesConfiguration setRequiredKeyboardType(java.lang.String requiredKeyboardType) { + this.requiredKeyboardType = requiredKeyboardType; + return this; + } + + /** + * The navigation device required. + * @return value or {@code null} for none + */ + public java.lang.String getRequiredNavigationType() { + return requiredNavigationType; + } + + /** + * The navigation device required. + * @param requiredNavigationType requiredNavigationType or {@code null} for none + */ + public UsesConfiguration setRequiredNavigationType(java.lang.String requiredNavigationType) { + this.requiredNavigationType = requiredNavigationType; + return this; + } + + /** + * The type of touchscreen required. + * @return value or {@code null} for none + */ + public java.lang.String getRequiredTouchscreenType() { + return requiredTouchscreenType; + } + + /** + * The type of touchscreen required. + * @param requiredTouchscreenType requiredTouchscreenType or {@code null} for none + */ + public UsesConfiguration setRequiredTouchscreenType(java.lang.String requiredTouchscreenType) { + this.requiredTouchscreenType = requiredTouchscreenType; + return this; + } + + /** + * Whether or not the application requires a five-way navigation control. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequiresFiveWayNavigation() { + return requiresFiveWayNavigation; + } + + /** + * Whether or not the application requires a five-way navigation control. + * @param requiresFiveWayNavigation requiresFiveWayNavigation or {@code null} for none + */ + public UsesConfiguration setRequiresFiveWayNavigation(java.lang.Boolean requiresFiveWayNavigation) { + this.requiresFiveWayNavigation = requiresFiveWayNavigation; + return this; + } + + /** + * Whether or not the application requires a hardware keyboard. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequiresHardwareKeyboard() { + return requiresHardwareKeyboard; + } + + /** + * Whether or not the application requires a hardware keyboard. + * @param requiresHardwareKeyboard requiresHardwareKeyboard or {@code null} for none + */ + public UsesConfiguration setRequiresHardwareKeyboard(java.lang.Boolean requiresHardwareKeyboard) { + this.requiresHardwareKeyboard = requiresHardwareKeyboard; + return this; + } + + @Override + public UsesConfiguration set(String fieldName, Object value) { + return (UsesConfiguration) super.set(fieldName, value); + } + + @Override + public UsesConfiguration clone() { + return (UsesConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/VideoAsset.java b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/VideoAsset.java new file mode 100644 index 00000000000..b9958492b51 --- /dev/null +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/model/VideoAsset.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * A video asset. + * + *

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 VideoAsset extends com.google.api.client.json.GenericJson { + + /** + * The URL of the video asset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String videoUrl; + + /** + * The URL of the video asset. + * @return value or {@code null} for none + */ + public java.lang.String getVideoUrl() { + return videoUrl; + } + + /** + * The URL of the video asset. + * @param videoUrl videoUrl or {@code null} for none + */ + public VideoAsset setVideoUrl(java.lang.String videoUrl) { + this.videoUrl = videoUrl; + return this; + } + + @Override + public VideoAsset set(String fieldName, Object value) { + return (VideoAsset) super.set(fieldName, value); + } + + @Override + public VideoAsset clone() { + return (VideoAsset) super.clone(); + } + +} diff --git a/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml b/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml index 760c3066fb8..2674410e618 100644 --- a/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml +++ b/clients/google-api-services-androidpublisher/v3/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-androidpublisher - v3-rev20260706-2.0.0 - Google Play Android Developer API v3-rev20260706-2.0.0 + v3-rev20260723-2.0.0 + Google Play Android Developer API v3-rev20260723-2.0.0 jar 2011 diff --git a/clients/google-api-services-androidpublisher/v3/README.md b/clients/google-api-services-androidpublisher/v3/README.md index 8fb3ac3559e..028ecb13b22 100644 --- a/clients/google-api-services-androidpublisher/v3/README.md +++ b/clients/google-api-services-androidpublisher/v3/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-androidpublisher - v3-rev20260706-2.0.0 + v3-rev20260723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260706-2.0.0' + implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20260723-2.0.0' } ```