Skip to content

Commit c273253

Browse files
1 parent 5eef1ac commit c273253

25 files changed

+935
-18
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-rev20250613-2.0.0</version>
25+
<version>v2-rev20250626-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-rev20250613-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20250626-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public final class GoogleCloudRetailV2IntentClassificationConfig extends com.goo
5555
@com.google.api.client.util.Key
5656
private java.util.List<GoogleCloudRetailV2IntentClassificationConfigExample> example;
5757

58+
/**
59+
* Optional. Inline source for intent classifications.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private GoogleCloudRetailV2IntentClassificationConfigInlineSource inlineSource;
64+
5865
/**
5966
* Optional. Customers can use the preamble to specify any requirements for blocklisting intent
6067
* classification. This preamble will be added to the blocklisting intent classification model
@@ -121,6 +128,23 @@ public GoogleCloudRetailV2IntentClassificationConfig setExample(java.util.List<G
121128
return this;
122129
}
123130

131+
/**
132+
* Optional. Inline source for intent classifications.
133+
* @return value or {@code null} for none
134+
*/
135+
public GoogleCloudRetailV2IntentClassificationConfigInlineSource getInlineSource() {
136+
return inlineSource;
137+
}
138+
139+
/**
140+
* Optional. Inline source for intent classifications.
141+
* @param inlineSource inlineSource or {@code null} for none
142+
*/
143+
public GoogleCloudRetailV2IntentClassificationConfig setInlineSource(GoogleCloudRetailV2IntentClassificationConfigInlineSource inlineSource) {
144+
this.inlineSource = inlineSource;
145+
return this;
146+
}
147+
124148
/**
125149
* Optional. Customers can use the preamble to specify any requirements for blocklisting intent
126150
* classification. This preamble will be added to the blocklisting intent classification model

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

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

33+
/**
34+
* Required. Whether the example is classified positively.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean classifiedPositive;
39+
3340
/**
3441
* Optional. The intent_type must match one of the predefined intent types defined at
3542
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
@@ -53,6 +60,23 @@ public final class GoogleCloudRetailV2IntentClassificationConfigExample extends
5360
@com.google.api.client.util.Key
5461
private java.lang.String reason;
5562

63+
/**
64+
* Required. Whether the example is classified positively.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.Boolean getClassifiedPositive() {
68+
return classifiedPositive;
69+
}
70+
71+
/**
72+
* Required. Whether the example is classified positively.
73+
* @param classifiedPositive classifiedPositive or {@code null} for none
74+
*/
75+
public GoogleCloudRetailV2IntentClassificationConfigExample setClassifiedPositive(java.lang.Boolean classifiedPositive) {
76+
this.classifiedPositive = classifiedPositive;
77+
return this;
78+
}
79+
5680
/**
5781
* Optional. The intent_type must match one of the predefined intent types defined at
5882
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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+
* An inline force intent classification configuration.
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 GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The intent_type must match one of the predefined intent types defined at
35+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String intentType;
40+
41+
/**
42+
* Optional. The operation to perform for the query.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String operation;
47+
48+
/**
49+
* Optional. A example query.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String query;
54+
55+
/**
56+
* Optional. The intent_type must match one of the predefined intent types defined at
57+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.String getIntentType() {
61+
return intentType;
62+
}
63+
64+
/**
65+
* Optional. The intent_type must match one of the predefined intent types defined at
66+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
67+
* @param intentType intentType or {@code null} for none
68+
*/
69+
public GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent setIntentType(java.lang.String intentType) {
70+
this.intentType = intentType;
71+
return this;
72+
}
73+
74+
/**
75+
* Optional. The operation to perform for the query.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getOperation() {
79+
return operation;
80+
}
81+
82+
/**
83+
* Optional. The operation to perform for the query.
84+
* @param operation operation or {@code null} for none
85+
*/
86+
public GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent setOperation(java.lang.String operation) {
87+
this.operation = operation;
88+
return this;
89+
}
90+
91+
/**
92+
* Optional. A example query.
93+
* @return value or {@code null} for none
94+
*/
95+
public java.lang.String getQuery() {
96+
return query;
97+
}
98+
99+
/**
100+
* Optional. A example query.
101+
* @param query query or {@code null} for none
102+
*/
103+
public GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent setQuery(java.lang.String query) {
104+
this.query = query;
105+
return this;
106+
}
107+
108+
@Override
109+
public GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent set(String fieldName, Object value) {
110+
return (GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent) super.set(fieldName, value);
111+
}
112+
113+
@Override
114+
public GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent clone() {
115+
return (GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent) super.clone();
116+
}
117+
118+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
* Inline source for intent classifications.
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 GoogleCloudRetailV2IntentClassificationConfigInlineSource extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. A list of inline force intent classifications.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent> inlineForceIntents;
39+
40+
static {
41+
// hack to force ProGuard to consider GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.class);
44+
}
45+
46+
/**
47+
* Optional. A list of inline force intent classifications.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.util.List<GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent> getInlineForceIntents() {
51+
return inlineForceIntents;
52+
}
53+
54+
/**
55+
* Optional. A list of inline force intent classifications.
56+
* @param inlineForceIntents inlineForceIntents or {@code null} for none
57+
*/
58+
public GoogleCloudRetailV2IntentClassificationConfigInlineSource setInlineForceIntents(java.util.List<GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent> inlineForceIntents) {
59+
this.inlineForceIntents = inlineForceIntents;
60+
return this;
61+
}
62+
63+
@Override
64+
public GoogleCloudRetailV2IntentClassificationConfigInlineSource set(String fieldName, Object value) {
65+
return (GoogleCloudRetailV2IntentClassificationConfigInlineSource) super.set(fieldName, value);
66+
}
67+
68+
@Override
69+
public GoogleCloudRetailV2IntentClassificationConfigInlineSource clone() {
70+
return (GoogleCloudRetailV2IntentClassificationConfigInlineSource) super.clone();
71+
}
72+
73+
}

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,16 @@ public final class GoogleCloudRetailV2SearchRequest extends com.google.api.clien
253253
@com.google.api.client.util.Key
254254
private GoogleCloudRetailV2SearchRequestTileNavigationSpec tileNavigationSpec;
255255

256+
/**
257+
* Optional. The user attributes that could be used for personalization of search results. *
258+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
259+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
260+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
261+
* The value may be {@code null}.
262+
*/
263+
@com.google.api.client.util.Key
264+
private java.util.Map<String, GoogleCloudRetailV2StringList> userAttributes;
265+
256266
/**
257267
* User information.
258268
* The value may be {@code null}.
@@ -815,6 +825,29 @@ public GoogleCloudRetailV2SearchRequest setTileNavigationSpec(GoogleCloudRetailV
815825
return this;
816826
}
817827

828+
/**
829+
* Optional. The user attributes that could be used for personalization of search results. *
830+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
831+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
832+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
833+
* @return value or {@code null} for none
834+
*/
835+
public java.util.Map<String, GoogleCloudRetailV2StringList> getUserAttributes() {
836+
return userAttributes;
837+
}
838+
839+
/**
840+
* Optional. The user attributes that could be used for personalization of search results. *
841+
* Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string
842+
* values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ {
843+
* key: "pets" value { values: "dog" values: "cat" } }, { key: "state" value { values: "CA" } } ]
844+
* @param userAttributes userAttributes or {@code null} for none
845+
*/
846+
public GoogleCloudRetailV2SearchRequest setUserAttributes(java.util.Map<String, GoogleCloudRetailV2StringList> userAttributes) {
847+
this.userAttributes = userAttributes;
848+
return this;
849+
}
850+
818851
/**
819852
* User information.
820853
* @return value or {@code null} for none

0 commit comments

Comments
 (0)