Skip to content

Commit 3808502

Browse files
1 parent 3519c96 commit 3808502

File tree

6 files changed

+109
-7
lines changed

6 files changed

+109
-7
lines changed

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
package com.google.api.services.retail.v2alpha.model;
1818

1919
/**
20-
* Suggested answers to the follow-up question.
20+
* Suggested answers to the follow-up question. If it's numerical attribute, only
21+
* ProductAttributeInterval will be set. If it's textual attribute, only productAttributeValue will
22+
* be set.
2123
*
2224
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2325
* transmitted over HTTP when working with the Vertex AI Search for commerce API. For a detailed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,16 @@ public final class GoogleCloudRetailV2alphaSearchRequest extends com.google.api.
263263
@com.google.api.client.util.Key
264264
private GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec tileNavigationSpec;
265265

266+
/**
267+
* Optional. The user attributes that could be used for personalization of search results. *
268+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
269+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
270+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
271+
* The value may be {@code null}.
272+
*/
273+
@com.google.api.client.util.Key
274+
private java.util.Map<String, GoogleCloudRetailV2alphaStringList> userAttributes;
275+
266276
/**
267277
* User information.
268278
* The value may be {@code null}.
@@ -848,6 +858,29 @@ public GoogleCloudRetailV2alphaSearchRequest setTileNavigationSpec(GoogleCloudRe
848858
return this;
849859
}
850860

861+
/**
862+
* Optional. The user attributes that could be used for personalization of search results. *
863+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
864+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
865+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
866+
* @return value or {@code null} for none
867+
*/
868+
public java.util.Map<String, GoogleCloudRetailV2alphaStringList> getUserAttributes() {
869+
return userAttributes;
870+
}
871+
872+
/**
873+
* Optional. The user attributes that could be used for personalization of search results. *
874+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
875+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
876+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
877+
* @param userAttributes userAttributes or {@code null} for none
878+
*/
879+
public GoogleCloudRetailV2alphaSearchRequest setUserAttributes(java.util.Map<String, GoogleCloudRetailV2alphaStringList> userAttributes) {
880+
this.userAttributes = userAttributes;
881+
return this;
882+
}
883+
851884
/**
852885
* User information.
853886
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.v2alpha.model;
18+
19+
/**
20+
* A list of string values.
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 commerce 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 GoogleCloudRetailV2alphaStringList extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* String values.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> values;
39+
40+
/**
41+
* String values.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<java.lang.String> getValues() {
45+
return values;
46+
}
47+
48+
/**
49+
* String values.
50+
* @param values values or {@code null} for none
51+
*/
52+
public GoogleCloudRetailV2alphaStringList setValues(java.util.List<java.lang.String> values) {
53+
this.values = values;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudRetailV2alphaStringList set(String fieldName, Object value) {
59+
return (GoogleCloudRetailV2alphaStringList) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudRetailV2alphaStringList clone() {
64+
return (GoogleCloudRetailV2alphaStringList) super.clone();
65+
}
66+
67+
}

clients/google-api-services-retail/v2alpha/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>v2alpha-rev20250515-2.0.0</version>
12-
<name>Vertex AI Search for commerce API v2alpha-rev20250515-2.0.0</name>
11+
<version>v2alpha-rev20250522-2.0.0</version>
12+
<name>Vertex AI Search for commerce API v2alpha-rev20250522-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)