Skip to content

Commit 62ed957

Browse files
1 parent 74c93a5 commit 62ed957

File tree

15 files changed

+1361
-22
lines changed

15 files changed

+1361
-22
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-rev20240830-2.0.0</version>
25+
<version>accounts_v1beta-rev20240909-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-rev20240830-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20240909-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: 334 additions & 10 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
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+
* Collection of information related to the
21+
* [autofeed](https://support.google.com/merchants/answer/7538732) settings.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class AutofeedSettings extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. Determines whether merchant is eligible for being enrolled into an autofeed.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean eligible;
39+
40+
/**
41+
* Required. Enables or disables product crawling through the autofeed for the given account.
42+
* Autofeed accounts must meet [certain conditions](https://support.google.com/merchants/answer/75
43+
* 38732#Configure_automated_feeds_Standard_Experience), which can be checked through the
44+
* `eligible` field. The account must **not** be a marketplace. When the autofeed is enabled for
45+
* the first time, the products usually appear instantly. When re-enabling, it might take up to 24
46+
* hours for products to appear.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.Boolean enableProducts;
51+
52+
/**
53+
* Identifier. The resource name of the autofeed settings. Format:
54+
* `accounts/{account}/autofeedSettings`.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String name;
59+
60+
/**
61+
* Output only. Determines whether merchant is eligible for being enrolled into an autofeed.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.Boolean getEligible() {
65+
return eligible;
66+
}
67+
68+
/**
69+
* Output only. Determines whether merchant is eligible for being enrolled into an autofeed.
70+
* @param eligible eligible or {@code null} for none
71+
*/
72+
public AutofeedSettings setEligible(java.lang.Boolean eligible) {
73+
this.eligible = eligible;
74+
return this;
75+
}
76+
77+
/**
78+
* Required. Enables or disables product crawling through the autofeed for the given account.
79+
* Autofeed accounts must meet [certain conditions](https://support.google.com/merchants/answer/75
80+
* 38732#Configure_automated_feeds_Standard_Experience), which can be checked through the
81+
* `eligible` field. The account must **not** be a marketplace. When the autofeed is enabled for
82+
* the first time, the products usually appear instantly. When re-enabling, it might take up to 24
83+
* hours for products to appear.
84+
* @return value or {@code null} for none
85+
*/
86+
public java.lang.Boolean getEnableProducts() {
87+
return enableProducts;
88+
}
89+
90+
/**
91+
* Required. Enables or disables product crawling through the autofeed for the given account.
92+
* Autofeed accounts must meet [certain conditions](https://support.google.com/merchants/answer/75
93+
* 38732#Configure_automated_feeds_Standard_Experience), which can be checked through the
94+
* `eligible` field. The account must **not** be a marketplace. When the autofeed is enabled for
95+
* the first time, the products usually appear instantly. When re-enabling, it might take up to 24
96+
* hours for products to appear.
97+
* @param enableProducts enableProducts or {@code null} for none
98+
*/
99+
public AutofeedSettings setEnableProducts(java.lang.Boolean enableProducts) {
100+
this.enableProducts = enableProducts;
101+
return this;
102+
}
103+
104+
/**
105+
* Identifier. The resource name of the autofeed settings. Format:
106+
* `accounts/{account}/autofeedSettings`.
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getName() {
110+
return name;
111+
}
112+
113+
/**
114+
* Identifier. The resource name of the autofeed settings. Format:
115+
* `accounts/{account}/autofeedSettings`.
116+
* @param name name or {@code null} for none
117+
*/
118+
public AutofeedSettings setName(java.lang.String name) {
119+
this.name = name;
120+
return this;
121+
}
122+
123+
@Override
124+
public AutofeedSettings set(String fieldName, Object value) {
125+
return (AutofeedSettings) super.set(fieldName, value);
126+
}
127+
128+
@Override
129+
public AutofeedSettings clone() {
130+
return (AutofeedSettings) super.clone();
131+
}
132+
133+
}

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-merchantapi</artifactId>
11-
<version>accounts_v1beta-rev20240830-2.0.0</version>
12-
<name>Merchant API accounts_v1beta-rev20240830-2.0.0</name>
11+
<version>accounts_v1beta-rev20240909-2.0.0</version>
12+
<name>Merchant API accounts_v1beta-rev20240909-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-merchantapi/accounts_v1beta/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-rev20240830-2.0.0</version>
25+
<version>accounts_v1beta-rev20240909-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-rev20240830-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20240909-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/datasources_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>datasources_v1beta-rev20240827-2.0.0</version>
25+
<version>datasources_v1beta-rev20240909-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:datasources_v1beta-rev20240827-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:datasources_v1beta-rev20240909-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,175 @@ public Patch set(String parameterName, Object value) {
11001100
}
11011101
}
11021102

1103+
/**
1104+
* An accessor for creating requests from the FileUploads collection.
1105+
*
1106+
* <p>The typical use is:</p>
1107+
* <pre>
1108+
* {@code Merchant merchantapi = new Merchant(...);}
1109+
* {@code Merchant.FileUploads.List request = merchantapi.fileUploads().list(parameters ...)}
1110+
* </pre>
1111+
*
1112+
* @return the resource collection
1113+
*/
1114+
public FileUploads fileUploads() {
1115+
return new FileUploads();
1116+
}
1117+
1118+
/**
1119+
* The "fileUploads" collection of methods.
1120+
*/
1121+
public class FileUploads {
1122+
1123+
/**
1124+
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
1125+
*
1126+
* Create a request for the method "fileUploads.get".
1127+
*
1128+
* This request holds the parameters needed by the merchantapi server. After setting any optional
1129+
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
1130+
*
1131+
* @param name Required. The name of the data source file upload to retrieve. Format:
1132+
* `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
1133+
* @return the request
1134+
*/
1135+
public Get get(java.lang.String name) throws java.io.IOException {
1136+
Get result = new Get(name);
1137+
initialize(result);
1138+
return result;
1139+
}
1140+
1141+
public class Get extends MerchantRequest<com.google.api.services.merchantapi.datasources_v1beta.model.FileUpload> {
1142+
1143+
private static final String REST_PATH = "datasources/v1beta/{+name}";
1144+
1145+
private final java.util.regex.Pattern NAME_PATTERN =
1146+
java.util.regex.Pattern.compile("^accounts/[^/]+/dataSources/[^/]+/fileUploads/[^/]+$");
1147+
1148+
/**
1149+
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
1150+
*
1151+
* Create a request for the method "fileUploads.get".
1152+
*
1153+
* This request holds the parameters needed by the the merchantapi server. After setting any
1154+
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
1155+
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1156+
* must be called to initialize this instance immediately after invoking the constructor. </p>
1157+
*
1158+
* @param name Required. The name of the data source file upload to retrieve. Format:
1159+
* `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
1160+
* @since 1.13
1161+
*/
1162+
protected Get(java.lang.String name) {
1163+
super(Merchant.this, "GET", REST_PATH, null, com.google.api.services.merchantapi.datasources_v1beta.model.FileUpload.class);
1164+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1165+
if (!getSuppressPatternChecks()) {
1166+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1167+
"Parameter name must conform to the pattern " +
1168+
"^accounts/[^/]+/dataSources/[^/]+/fileUploads/[^/]+$");
1169+
}
1170+
}
1171+
1172+
@Override
1173+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1174+
return super.executeUsingHead();
1175+
}
1176+
1177+
@Override
1178+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1179+
return super.buildHttpRequestUsingHead();
1180+
}
1181+
1182+
@Override
1183+
public Get set$Xgafv(java.lang.String $Xgafv) {
1184+
return (Get) super.set$Xgafv($Xgafv);
1185+
}
1186+
1187+
@Override
1188+
public Get setAccessToken(java.lang.String accessToken) {
1189+
return (Get) super.setAccessToken(accessToken);
1190+
}
1191+
1192+
@Override
1193+
public Get setAlt(java.lang.String alt) {
1194+
return (Get) super.setAlt(alt);
1195+
}
1196+
1197+
@Override
1198+
public Get setCallback(java.lang.String callback) {
1199+
return (Get) super.setCallback(callback);
1200+
}
1201+
1202+
@Override
1203+
public Get setFields(java.lang.String fields) {
1204+
return (Get) super.setFields(fields);
1205+
}
1206+
1207+
@Override
1208+
public Get setKey(java.lang.String key) {
1209+
return (Get) super.setKey(key);
1210+
}
1211+
1212+
@Override
1213+
public Get setOauthToken(java.lang.String oauthToken) {
1214+
return (Get) super.setOauthToken(oauthToken);
1215+
}
1216+
1217+
@Override
1218+
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
1219+
return (Get) super.setPrettyPrint(prettyPrint);
1220+
}
1221+
1222+
@Override
1223+
public Get setQuotaUser(java.lang.String quotaUser) {
1224+
return (Get) super.setQuotaUser(quotaUser);
1225+
}
1226+
1227+
@Override
1228+
public Get setUploadType(java.lang.String uploadType) {
1229+
return (Get) super.setUploadType(uploadType);
1230+
}
1231+
1232+
@Override
1233+
public Get setUploadProtocol(java.lang.String uploadProtocol) {
1234+
return (Get) super.setUploadProtocol(uploadProtocol);
1235+
}
1236+
1237+
/**
1238+
* Required. The name of the data source file upload to retrieve. Format:
1239+
* `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
1240+
*/
1241+
@com.google.api.client.util.Key
1242+
private java.lang.String name;
1243+
1244+
/** Required. The name of the data source file upload to retrieve. Format:
1245+
`accounts/{account}/dataSources/{datasource}/fileUploads/latest`
1246+
*/
1247+
public java.lang.String getName() {
1248+
return name;
1249+
}
1250+
1251+
/**
1252+
* Required. The name of the data source file upload to retrieve. Format:
1253+
* `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
1254+
*/
1255+
public Get setName(java.lang.String name) {
1256+
if (!getSuppressPatternChecks()) {
1257+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1258+
"Parameter name must conform to the pattern " +
1259+
"^accounts/[^/]+/dataSources/[^/]+/fileUploads/[^/]+$");
1260+
}
1261+
this.name = name;
1262+
return this;
1263+
}
1264+
1265+
@Override
1266+
public Get set(String parameterName, Object value) {
1267+
return (Get) super.set(parameterName, value);
1268+
}
1269+
}
1270+
1271+
}
11031272
}
11041273
}
11051274

0 commit comments

Comments
 (0)