Skip to content

Commit ab658af

Browse files
1 parent 869747f commit ab658af

27 files changed

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

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

Lines changed: 315 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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+
* The public proto to represent the conversational search customization config. It will be
21+
* converted to the internal proto in the backend.
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 Vertex AI Search for commerce API. For a detailed
25+
* explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudRetailV2ConversationalSearchCustomizationConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. Resource name of the catalog. Format:
36+
* projects/{project}/locations/{location}/catalogs/{catalog}
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String catalog;
41+
42+
/**
43+
* Optional. The configs for intent classification.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private GoogleCloudRetailV2IntentClassificationConfig intentClassificationConfig;
48+
49+
/**
50+
* Optional. The retailer's display name that could be used in our LLM answers. Example - "Google"
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String retailerDisplayName;
55+
56+
/**
57+
* Required. Resource name of the catalog. Format:
58+
* projects/{project}/locations/{location}/catalogs/{catalog}
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.String getCatalog() {
62+
return catalog;
63+
}
64+
65+
/**
66+
* Required. Resource name of the catalog. Format:
67+
* projects/{project}/locations/{location}/catalogs/{catalog}
68+
* @param catalog catalog or {@code null} for none
69+
*/
70+
public GoogleCloudRetailV2ConversationalSearchCustomizationConfig setCatalog(java.lang.String catalog) {
71+
this.catalog = catalog;
72+
return this;
73+
}
74+
75+
/**
76+
* Optional. The configs for intent classification.
77+
* @return value or {@code null} for none
78+
*/
79+
public GoogleCloudRetailV2IntentClassificationConfig getIntentClassificationConfig() {
80+
return intentClassificationConfig;
81+
}
82+
83+
/**
84+
* Optional. The configs for intent classification.
85+
* @param intentClassificationConfig intentClassificationConfig or {@code null} for none
86+
*/
87+
public GoogleCloudRetailV2ConversationalSearchCustomizationConfig setIntentClassificationConfig(GoogleCloudRetailV2IntentClassificationConfig intentClassificationConfig) {
88+
this.intentClassificationConfig = intentClassificationConfig;
89+
return this;
90+
}
91+
92+
/**
93+
* Optional. The retailer's display name that could be used in our LLM answers. Example - "Google"
94+
* @return value or {@code null} for none
95+
*/
96+
public java.lang.String getRetailerDisplayName() {
97+
return retailerDisplayName;
98+
}
99+
100+
/**
101+
* Optional. The retailer's display name that could be used in our LLM answers. Example - "Google"
102+
* @param retailerDisplayName retailerDisplayName or {@code null} for none
103+
*/
104+
public GoogleCloudRetailV2ConversationalSearchCustomizationConfig setRetailerDisplayName(java.lang.String retailerDisplayName) {
105+
this.retailerDisplayName = retailerDisplayName;
106+
return this;
107+
}
108+
109+
@Override
110+
public GoogleCloudRetailV2ConversationalSearchCustomizationConfig set(String fieldName, Object value) {
111+
return (GoogleCloudRetailV2ConversationalSearchCustomizationConfig) super.set(fieldName, value);
112+
}
113+
114+
@Override
115+
public GoogleCloudRetailV2ConversationalSearchCustomizationConfig clone() {
116+
return (GoogleCloudRetailV2ConversationalSearchCustomizationConfig) super.clone();
117+
}
118+
119+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
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+
* The public proto to represent the intent classification config. It will be converted to the
21+
* internal proto in the backend.
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 Vertex AI Search for commerce API. For a detailed
25+
* explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudRetailV2IntentClassificationConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. A list of keywords that will be used to classify the query to the "BLOCKLISTED"
36+
* intent type. The keywords are case insensitive.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<java.lang.String> blocklistKeywords;
41+
42+
/**
43+
* Optional. A list of intent types that will be disabled for this customer. The intent types must
44+
* match one of the predefined intent types defined at
45+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.util.List<java.lang.String> disabledIntentTypes;
50+
51+
/**
52+
* Optional. A list of examples for intent classification.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.util.List<GoogleCloudRetailV2IntentClassificationConfigExample> example;
57+
58+
/**
59+
* Optional. Customers can use the preamble to specify any requirements for blocklisting intent
60+
* classification. This preamble will be added to the blocklisting intent classification model
61+
* prompt.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.lang.String modelPreamble;
66+
67+
/**
68+
* Optional. A list of keywords that will be used to classify the query to the "BLOCKLISTED"
69+
* intent type. The keywords are case insensitive.
70+
* @return value or {@code null} for none
71+
*/
72+
public java.util.List<java.lang.String> getBlocklistKeywords() {
73+
return blocklistKeywords;
74+
}
75+
76+
/**
77+
* Optional. A list of keywords that will be used to classify the query to the "BLOCKLISTED"
78+
* intent type. The keywords are case insensitive.
79+
* @param blocklistKeywords blocklistKeywords or {@code null} for none
80+
*/
81+
public GoogleCloudRetailV2IntentClassificationConfig setBlocklistKeywords(java.util.List<java.lang.String> blocklistKeywords) {
82+
this.blocklistKeywords = blocklistKeywords;
83+
return this;
84+
}
85+
86+
/**
87+
* Optional. A list of intent types that will be disabled for this customer. The intent types must
88+
* match one of the predefined intent types defined at
89+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
90+
* @return value or {@code null} for none
91+
*/
92+
public java.util.List<java.lang.String> getDisabledIntentTypes() {
93+
return disabledIntentTypes;
94+
}
95+
96+
/**
97+
* Optional. A list of intent types that will be disabled for this customer. The intent types must
98+
* match one of the predefined intent types defined at
99+
* https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
100+
* @param disabledIntentTypes disabledIntentTypes or {@code null} for none
101+
*/
102+
public GoogleCloudRetailV2IntentClassificationConfig setDisabledIntentTypes(java.util.List<java.lang.String> disabledIntentTypes) {
103+
this.disabledIntentTypes = disabledIntentTypes;
104+
return this;
105+
}
106+
107+
/**
108+
* Optional. A list of examples for intent classification.
109+
* @return value or {@code null} for none
110+
*/
111+
public java.util.List<GoogleCloudRetailV2IntentClassificationConfigExample> getExample() {
112+
return example;
113+
}
114+
115+
/**
116+
* Optional. A list of examples for intent classification.
117+
* @param example example or {@code null} for none
118+
*/
119+
public GoogleCloudRetailV2IntentClassificationConfig setExample(java.util.List<GoogleCloudRetailV2IntentClassificationConfigExample> example) {
120+
this.example = example;
121+
return this;
122+
}
123+
124+
/**
125+
* Optional. Customers can use the preamble to specify any requirements for blocklisting intent
126+
* classification. This preamble will be added to the blocklisting intent classification model
127+
* prompt.
128+
* @return value or {@code null} for none
129+
*/
130+
public java.lang.String getModelPreamble() {
131+
return modelPreamble;
132+
}
133+
134+
/**
135+
* Optional. Customers can use the preamble to specify any requirements for blocklisting intent
136+
* classification. This preamble will be added to the blocklisting intent classification model
137+
* prompt.
138+
* @param modelPreamble modelPreamble or {@code null} for none
139+
*/
140+
public GoogleCloudRetailV2IntentClassificationConfig setModelPreamble(java.lang.String modelPreamble) {
141+
this.modelPreamble = modelPreamble;
142+
return this;
143+
}
144+
145+
@Override
146+
public GoogleCloudRetailV2IntentClassificationConfig set(String fieldName, Object value) {
147+
return (GoogleCloudRetailV2IntentClassificationConfig) super.set(fieldName, value);
148+
}
149+
150+
@Override
151+
public GoogleCloudRetailV2IntentClassificationConfig clone() {
152+
return (GoogleCloudRetailV2IntentClassificationConfig) super.clone();
153+
}
154+
155+
}

0 commit comments

Comments
 (0)