Skip to content

Commit 11d8df6

Browse files
1 parent d610bd0 commit 11d8df6

22 files changed

+1385
-27
lines changed

clients/google-api-services-retail/v2/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-retail</artifactId>
25-
<version>v2-rev20240702-2.0.0</version>
25+
<version>v2-rev20240801-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-retail:v2-rev20240702-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20240801-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2/2.0.0/com/google/api/services/retail/v2/model/GoogleCloudRetailV2CompleteQueryResponse.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudRetailV2CompleteQueryResponse extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* A map of matched attribute suggestions. This field is only available for "cloud-retail"
35+
* dataset. Current supported keys: * `brands` * `categories`
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.Map<String, GoogleCloudRetailV2CompleteQueryResponseAttributeResult> attributeResults;
40+
3341
/**
3442
* A unique complete token. This should be included in the UserEvent.completion_detail for search
3543
* events resulting from this completion, which enables accurate attribution of complete model
@@ -60,6 +68,25 @@ public final class GoogleCloudRetailV2CompleteQueryResponse extends com.google.a
6068
@com.google.api.client.util.Key
6169
private java.util.List<GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult> recentSearchResults;
6270

71+
/**
72+
* A map of matched attribute suggestions. This field is only available for "cloud-retail"
73+
* dataset. Current supported keys: * `brands` * `categories`
74+
* @return value or {@code null} for none
75+
*/
76+
public java.util.Map<String, GoogleCloudRetailV2CompleteQueryResponseAttributeResult> getAttributeResults() {
77+
return attributeResults;
78+
}
79+
80+
/**
81+
* A map of matched attribute suggestions. This field is only available for "cloud-retail"
82+
* dataset. Current supported keys: * `brands` * `categories`
83+
* @param attributeResults attributeResults or {@code null} for none
84+
*/
85+
public GoogleCloudRetailV2CompleteQueryResponse setAttributeResults(java.util.Map<String, GoogleCloudRetailV2CompleteQueryResponseAttributeResult> attributeResults) {
86+
this.attributeResults = attributeResults;
87+
return this;
88+
}
89+
6390
/**
6491
* A unique complete token. This should be included in the UserEvent.completion_detail for search
6592
* events resulting from this completion, which enables accurate attribution of complete model
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.retail.v2.model;
18+
19+
/**
20+
* Resource that represents attribute results.
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 Vertex AI Search for Retail API. For a detailed
24+
* 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 GoogleCloudRetailV2CompleteQueryResponseAttributeResult extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<java.lang.String> suggestions;
38+
39+
/**
40+
* @return value or {@code null} for none
41+
*/
42+
public java.util.List<java.lang.String> getSuggestions() {
43+
return suggestions;
44+
}
45+
46+
/**
47+
* @param suggestions suggestions or {@code null} for none
48+
*/
49+
public GoogleCloudRetailV2CompleteQueryResponseAttributeResult setSuggestions(java.util.List<java.lang.String> suggestions) {
50+
this.suggestions = suggestions;
51+
return this;
52+
}
53+
54+
@Override
55+
public GoogleCloudRetailV2CompleteQueryResponseAttributeResult set(String fieldName, Object value) {
56+
return (GoogleCloudRetailV2CompleteQueryResponseAttributeResult) super.set(fieldName, value);
57+
}
58+
59+
@Override
60+
public GoogleCloudRetailV2CompleteQueryResponseAttributeResult clone() {
61+
return (GoogleCloudRetailV2CompleteQueryResponseAttributeResult) super.clone();
62+
}
63+
64+
}

clients/google-api-services-retail/v2/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-retail</artifactId>
11-
<version>v2-rev20240702-2.0.0</version>
12-
<name>Vertex AI Search for Retail API v2-rev20240702-2.0.0</name>
11+
<version>v2-rev20240801-2.0.0</version>
12+
<name>Vertex AI Search for Retail API v2-rev20240801-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-retail/v2/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-retail</artifactId>
25-
<version>v2-rev20240702-2.0.0</version>
25+
<version>v2-rev20240801-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-retail:v2-rev20240702-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20240801-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2alpha/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-retail</artifactId>
25-
<version>v2alpha-rev20240711-2.0.0</version>
25+
<version>v2alpha-rev20240801-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-retail:v2alpha-rev20240711-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20240801-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/CloudRetail.java

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5098,6 +5098,147 @@ public Delete set(String parameterName, Object value) {
50985098
return (Delete) super.set(parameterName, value);
50995099
}
51005100
}
5101+
/**
5102+
* Exports multiple Products.
5103+
*
5104+
* Create a request for the method "products.export".
5105+
*
5106+
* This request holds the parameters needed by the retail server. After setting any optional
5107+
* parameters, call the {@link Export#execute()} method to invoke the remote operation.
5108+
*
5109+
* @param parent Required. Resource name of a Branch, and `default_branch` for branch_id component is supported. For
5110+
* example `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
5111+
* @param content the {@link com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportProductsRequest}
5112+
* @return the request
5113+
*/
5114+
public Export export(java.lang.String parent, com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportProductsRequest content) throws java.io.IOException {
5115+
Export result = new Export(parent, content);
5116+
initialize(result);
5117+
return result;
5118+
}
5119+
5120+
public class Export extends CloudRetailRequest<com.google.api.services.retail.v2alpha.model.GoogleLongrunningOperation> {
5121+
5122+
private static final String REST_PATH = "v2alpha/{+parent}/products:export";
5123+
5124+
private final java.util.regex.Pattern PARENT_PATTERN =
5125+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$");
5126+
5127+
/**
5128+
* Exports multiple Products.
5129+
*
5130+
* Create a request for the method "products.export".
5131+
*
5132+
* This request holds the parameters needed by the the retail server. After setting any optional
5133+
* parameters, call the {@link Export#execute()} method to invoke the remote operation. <p> {@link
5134+
* Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
5135+
* be called to initialize this instance immediately after invoking the constructor. </p>
5136+
*
5137+
* @param parent Required. Resource name of a Branch, and `default_branch` for branch_id component is supported. For
5138+
* example `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
5139+
* @param content the {@link com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportProductsRequest}
5140+
* @since 1.13
5141+
*/
5142+
protected Export(java.lang.String parent, com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportProductsRequest content) {
5143+
super(CloudRetail.this, "POST", REST_PATH, content, com.google.api.services.retail.v2alpha.model.GoogleLongrunningOperation.class);
5144+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
5145+
if (!getSuppressPatternChecks()) {
5146+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
5147+
"Parameter parent must conform to the pattern " +
5148+
"^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$");
5149+
}
5150+
}
5151+
5152+
@Override
5153+
public Export set$Xgafv(java.lang.String $Xgafv) {
5154+
return (Export) super.set$Xgafv($Xgafv);
5155+
}
5156+
5157+
@Override
5158+
public Export setAccessToken(java.lang.String accessToken) {
5159+
return (Export) super.setAccessToken(accessToken);
5160+
}
5161+
5162+
@Override
5163+
public Export setAlt(java.lang.String alt) {
5164+
return (Export) super.setAlt(alt);
5165+
}
5166+
5167+
@Override
5168+
public Export setCallback(java.lang.String callback) {
5169+
return (Export) super.setCallback(callback);
5170+
}
5171+
5172+
@Override
5173+
public Export setFields(java.lang.String fields) {
5174+
return (Export) super.setFields(fields);
5175+
}
5176+
5177+
@Override
5178+
public Export setKey(java.lang.String key) {
5179+
return (Export) super.setKey(key);
5180+
}
5181+
5182+
@Override
5183+
public Export setOauthToken(java.lang.String oauthToken) {
5184+
return (Export) super.setOauthToken(oauthToken);
5185+
}
5186+
5187+
@Override
5188+
public Export setPrettyPrint(java.lang.Boolean prettyPrint) {
5189+
return (Export) super.setPrettyPrint(prettyPrint);
5190+
}
5191+
5192+
@Override
5193+
public Export setQuotaUser(java.lang.String quotaUser) {
5194+
return (Export) super.setQuotaUser(quotaUser);
5195+
}
5196+
5197+
@Override
5198+
public Export setUploadType(java.lang.String uploadType) {
5199+
return (Export) super.setUploadType(uploadType);
5200+
}
5201+
5202+
@Override
5203+
public Export setUploadProtocol(java.lang.String uploadProtocol) {
5204+
return (Export) super.setUploadProtocol(uploadProtocol);
5205+
}
5206+
5207+
/**
5208+
* Required. Resource name of a Branch, and `default_branch` for branch_id component
5209+
* is supported. For example
5210+
* `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
5211+
*/
5212+
@com.google.api.client.util.Key
5213+
private java.lang.String parent;
5214+
5215+
/** Required. Resource name of a Branch, and `default_branch` for branch_id component is supported. For
5216+
example `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
5217+
*/
5218+
public java.lang.String getParent() {
5219+
return parent;
5220+
}
5221+
5222+
/**
5223+
* Required. Resource name of a Branch, and `default_branch` for branch_id component
5224+
* is supported. For example
5225+
* `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`
5226+
*/
5227+
public Export setParent(java.lang.String parent) {
5228+
if (!getSuppressPatternChecks()) {
5229+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
5230+
"Parameter parent must conform to the pattern " +
5231+
"^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$");
5232+
}
5233+
this.parent = parent;
5234+
return this;
5235+
}
5236+
5237+
@Override
5238+
public Export set(String parameterName, Object value) {
5239+
return (Export) super.set(parameterName, value);
5240+
}
5241+
}
51015242
/**
51025243
* Gets a Product.
51035244
*

clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaAlertConfigAlertPolicy.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
public final class GoogleCloudRetailV2alphaAlertConfigAlertPolicy extends com.google.api.client.json.GenericJson {
3232

3333
/**
34-
* The feature that provides alerting capability. Supported value is only `search-data-quality`
35-
* for now.
34+
* The feature that provides alerting capability. Supported value: - `search-data-quality` for
35+
* retail search customers. - `conv-data-quality` for retail conversation customers.
3636
* The value may be {@code null}.
3737
*/
3838
@com.google.api.client.util.Key
@@ -53,17 +53,17 @@ public final class GoogleCloudRetailV2alphaAlertConfigAlertPolicy extends com.go
5353
private java.util.List<GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient> recipients;
5454

5555
/**
56-
* The feature that provides alerting capability. Supported value is only `search-data-quality`
57-
* for now.
56+
* The feature that provides alerting capability. Supported value: - `search-data-quality` for
57+
* retail search customers. - `conv-data-quality` for retail conversation customers.
5858
* @return value or {@code null} for none
5959
*/
6060
public java.lang.String getAlertGroup() {
6161
return alertGroup;
6262
}
6363

6464
/**
65-
* The feature that provides alerting capability. Supported value is only `search-data-quality`
66-
* for now.
65+
* The feature that provides alerting capability. Supported value: - `search-data-quality` for
66+
* retail search customers. - `conv-data-quality` for retail conversation customers.
6767
* @param alertGroup alertGroup or {@code null} for none
6868
*/
6969
public GoogleCloudRetailV2alphaAlertConfigAlertPolicy setAlertGroup(java.lang.String alertGroup) {

clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,19 @@
3131
public final class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult extends com.google.api.client.json.GenericJson {
3232

3333
/**
34-
* The list of suggestions for the attribute.
3534
* The value may be {@code null}.
3635
*/
3736
@com.google.api.client.util.Key
3837
private java.util.List<java.lang.String> suggestions;
3938

4039
/**
41-
* The list of suggestions for the attribute.
4240
* @return value or {@code null} for none
4341
*/
4442
public java.util.List<java.lang.String> getSuggestions() {
4543
return suggestions;
4644
}
4745

4846
/**
49-
* The list of suggestions for the attribute.
5047
* @param suggestions suggestions or {@code null} for none
5148
*/
5249
public GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult setSuggestions(java.util.List<java.lang.String> suggestions) {

0 commit comments

Comments
 (0)