Skip to content

Commit a21e18a

Browse files
1 parent 66cd6b1 commit a21e18a

File tree

83 files changed

+3118
-552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3118
-552
lines changed

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-merchantapi</artifactId>
25-
<version>accounts_v1beta-rev20250301-2.0.0</version>
25+
<version>accounts_v1beta-rev20250421-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20250301-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20250421-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/Merchant.java

Lines changed: 387 additions & 42 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.merchantapi.accounts_v1beta.model;
18+
19+
/**
20+
* Response message for the `AcceptTermsOfService` method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AcceptTermsOfServiceResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The agreement state after accepting the ToS.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private TermsOfServiceAgreementState termsOfServiceAgreementState;
38+
39+
/**
40+
* The agreement state after accepting the ToS.
41+
* @return value or {@code null} for none
42+
*/
43+
public TermsOfServiceAgreementState getTermsOfServiceAgreementState() {
44+
return termsOfServiceAgreementState;
45+
}
46+
47+
/**
48+
* The agreement state after accepting the ToS.
49+
* @param termsOfServiceAgreementState termsOfServiceAgreementState or {@code null} for none
50+
*/
51+
public AcceptTermsOfServiceResponse setTermsOfServiceAgreementState(TermsOfServiceAgreementState termsOfServiceAgreementState) {
52+
this.termsOfServiceAgreementState = termsOfServiceAgreementState;
53+
return this;
54+
}
55+
56+
@Override
57+
public AcceptTermsOfServiceResponse set(String fieldName, Object value) {
58+
return (AcceptTermsOfServiceResponse) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public AcceptTermsOfServiceResponse clone() {
63+
return (AcceptTermsOfServiceResponse) super.clone();
64+
}
65+
66+
}

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Accepted.java

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ public final class Accepted extends com.google.api.client.json.GenericJson {
4545
private java.lang.String termsOfService;
4646

4747
/**
48-
* When set, it states that the accepted
49-
* [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is only valid until
50-
* the end of this date (in UTC). A new one must be accepted before then. The information of the
51-
* required [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is found in
52-
* the [Required](Required) message.
48+
* When set, it states that the accepted `TermsOfService` is only valid until the end of this date
49+
* (in UTC). A new one must be accepted before then. The information of the required
50+
* `TermsOfService` is found in the `Required` message.
5351
* The value may be {@code null}.
5452
*/
5553
@com.google.api.client.util.Key
@@ -92,23 +90,19 @@ public Accepted setTermsOfService(java.lang.String termsOfService) {
9290
}
9391

9492
/**
95-
* When set, it states that the accepted
96-
* [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is only valid until
97-
* the end of this date (in UTC). A new one must be accepted before then. The information of the
98-
* required [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is found in
99-
* the [Required](Required) message.
93+
* When set, it states that the accepted `TermsOfService` is only valid until the end of this date
94+
* (in UTC). A new one must be accepted before then. The information of the required
95+
* `TermsOfService` is found in the `Required` message.
10096
* @return value or {@code null} for none
10197
*/
10298
public Date getValidUntil() {
10399
return validUntil;
104100
}
105101

106102
/**
107-
* When set, it states that the accepted
108-
* [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is only valid until
109-
* the end of this date (in UTC). A new one must be accepted before then. The information of the
110-
* required [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is found in
111-
* the [Required](Required) message.
103+
* When set, it states that the accepted `TermsOfService` is only valid until the end of this date
104+
* (in UTC). A new one must be accepted before then. The information of the required
105+
* `TermsOfService` is found in the `Required` message.
112106
* @param validUntil validUntil or {@code null} for none
113107
*/
114108
public Accepted setValidUntil(Date validUntil) {

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Account.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public final class Account extends com.google.api.client.json.GenericJson {
8484
* Required. The time zone of the account. On writes, `time_zone` sets both the
8585
* `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the
8686
* `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is
87-
* empty.
87+
* empty. The `version` field is not supported, won't be set in responses and will be silently
88+
* ignored if specified in requests.
8889
* The value may be {@code null}.
8990
*/
9091
@com.google.api.client.util.Key
@@ -202,7 +203,8 @@ public Account setTestAccount(java.lang.Boolean testAccount) {
202203
* Required. The time zone of the account. On writes, `time_zone` sets both the
203204
* `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the
204205
* `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is
205-
* empty.
206+
* empty. The `version` field is not supported, won't be set in responses and will be silently
207+
* ignored if specified in requests.
206208
* @return value or {@code null} for none
207209
*/
208210
public TimeZone getTimeZone() {
@@ -213,7 +215,8 @@ public TimeZone getTimeZone() {
213215
* Required. The time zone of the account. On writes, `time_zone` sets both the
214216
* `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the
215217
* `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is
216-
* empty.
218+
* empty. The `version` field is not supported, won't be set in responses and will be silently
219+
* ignored if specified in requests.
217220
* @param timeZone timeZone or {@code null} for none
218221
*/
219222
public Account setTimeZone(TimeZone timeZone) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.merchantapi.accounts_v1beta.model;
18+
19+
/**
20+
* This improvement will attempt to automatically correct submitted images if they don't meet the
21+
* [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing
22+
* overlays. If successful, the image will be replaced and approved. This improvement is only
23+
* applied to images of disapproved offers. For more information see: [Automatic image
24+
* improvements](https://support.google.com/merchants/answer/9242973)
25+
*
26+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
27+
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
28+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
29+
* </p>
30+
*
31+
* @author Google, Inc.
32+
*/
33+
@SuppressWarnings("javadoc")
34+
public final class AutomaticImageImprovements extends com.google.api.client.json.GenericJson {
35+
36+
/**
37+
* Optional. Determines how the images should be automatically updated. If this field is not
38+
* present and provided in the update mask, then the settings will be deleted. If there are no
39+
* settings for subaccount, they are inherited from aggregator.
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private ImageImprovementsAccountLevelSettings accountImageImprovementsSettings;
44+
45+
/**
46+
* Output only. The effective value of allow_automatic_image_improvements. If
47+
* account_image_improvements_settings is present, then this value is the same. Otherwise, it
48+
* represents the inherited value of the parent account. Read-only.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean effectiveAllowAutomaticImageImprovements;
53+
54+
/**
55+
* Optional. Determines how the images should be automatically updated. If this field is not
56+
* present and provided in the update mask, then the settings will be deleted. If there are no
57+
* settings for subaccount, they are inherited from aggregator.
58+
* @return value or {@code null} for none
59+
*/
60+
public ImageImprovementsAccountLevelSettings getAccountImageImprovementsSettings() {
61+
return accountImageImprovementsSettings;
62+
}
63+
64+
/**
65+
* Optional. Determines how the images should be automatically updated. If this field is not
66+
* present and provided in the update mask, then the settings will be deleted. If there are no
67+
* settings for subaccount, they are inherited from aggregator.
68+
* @param accountImageImprovementsSettings accountImageImprovementsSettings or {@code null} for none
69+
*/
70+
public AutomaticImageImprovements setAccountImageImprovementsSettings(ImageImprovementsAccountLevelSettings accountImageImprovementsSettings) {
71+
this.accountImageImprovementsSettings = accountImageImprovementsSettings;
72+
return this;
73+
}
74+
75+
/**
76+
* Output only. The effective value of allow_automatic_image_improvements. If
77+
* account_image_improvements_settings is present, then this value is the same. Otherwise, it
78+
* represents the inherited value of the parent account. Read-only.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.Boolean getEffectiveAllowAutomaticImageImprovements() {
82+
return effectiveAllowAutomaticImageImprovements;
83+
}
84+
85+
/**
86+
* Output only. The effective value of allow_automatic_image_improvements. If
87+
* account_image_improvements_settings is present, then this value is the same. Otherwise, it
88+
* represents the inherited value of the parent account. Read-only.
89+
* @param effectiveAllowAutomaticImageImprovements effectiveAllowAutomaticImageImprovements or {@code null} for none
90+
*/
91+
public AutomaticImageImprovements setEffectiveAllowAutomaticImageImprovements(java.lang.Boolean effectiveAllowAutomaticImageImprovements) {
92+
this.effectiveAllowAutomaticImageImprovements = effectiveAllowAutomaticImageImprovements;
93+
return this;
94+
}
95+
96+
@Override
97+
public AutomaticImageImprovements set(String fieldName, Object value) {
98+
return (AutomaticImageImprovements) super.set(fieldName, value);
99+
}
100+
101+
@Override
102+
public AutomaticImageImprovements clone() {
103+
return (AutomaticImageImprovements) super.clone();
104+
}
105+
106+
}

0 commit comments

Comments
 (0)