Skip to content

Commit fc8689d

Browse files
1 parent 849c85a commit fc8689d

File tree

30 files changed

+4395
-27
lines changed

30 files changed

+4395
-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-rev20240912-2.0.0</version>
25+
<version>v2-rev20240920-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-rev20240912-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2-rev20240920-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: 814 additions & 3 deletions
Large diffs are not rendered by default.
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.v2.model;
18+
19+
/**
20+
* Request for BatchUpdateGenerativeQuestionConfig method.
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 GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The updates question configs.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest> requests;
39+
40+
/**
41+
* Required. The updates question configs.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest> getRequests() {
45+
return requests;
46+
}
47+
48+
/**
49+
* Required. The updates question configs.
50+
* @param requests requests or {@code null} for none
51+
*/
52+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest setRequests(java.util.List<GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest> requests) {
53+
this.requests = requests;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest set(String fieldName, Object value) {
59+
return (GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest clone() {
64+
return (GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest) super.clone();
65+
}
66+
67+
}
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.v2.model;
18+
19+
/**
20+
* Aggregated response for UpdateGenerativeQuestionConfig method.
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 GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The updates question configs.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleCloudRetailV2GenerativeQuestionConfig> generativeQuestionConfigs;
39+
40+
/**
41+
* Optional. The updates question configs.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<GoogleCloudRetailV2GenerativeQuestionConfig> getGenerativeQuestionConfigs() {
45+
return generativeQuestionConfigs;
46+
}
47+
48+
/**
49+
* Optional. The updates question configs.
50+
* @param generativeQuestionConfigs generativeQuestionConfigs or {@code null} for none
51+
*/
52+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse setGenerativeQuestionConfigs(java.util.List<GoogleCloudRetailV2GenerativeQuestionConfig> generativeQuestionConfigs) {
53+
this.generativeQuestionConfigs = generativeQuestionConfigs;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse set(String fieldName, Object value) {
59+
return (GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse clone() {
64+
return (GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
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+
* Configuration for a single generated question.
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 GoogleCloudRetailV2GenerativeQuestionConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. Whether the question is asked at serving time.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean allowedInConversation;
39+
40+
/**
41+
* Required. Resource name of the catalog. Format:
42+
* projects/{project}/locations/{location}/catalogs/{catalog}
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String catalog;
47+
48+
/**
49+
* Output only. Values that can be used to answer the question.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.util.List<java.lang.String> exampleValues;
54+
55+
/**
56+
* Required. The facet to which the question is associated.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String facet;
61+
62+
/**
63+
* Optional. The question that will be used at serving time. Question can have a max length of 300
64+
* bytes. When not populated, generated_question should be used.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.String finalQuestion;
69+
70+
/**
71+
* Output only. The ratio of how often a question was asked.
72+
* The value may be {@code null}.
73+
*/
74+
@com.google.api.client.util.Key
75+
private java.lang.Float frequency;
76+
77+
/**
78+
* Output only. The LLM generated question.
79+
* The value may be {@code null}.
80+
*/
81+
@com.google.api.client.util.Key
82+
private java.lang.String generatedQuestion;
83+
84+
/**
85+
* Optional. Whether the question is asked at serving time.
86+
* @return value or {@code null} for none
87+
*/
88+
public java.lang.Boolean getAllowedInConversation() {
89+
return allowedInConversation;
90+
}
91+
92+
/**
93+
* Optional. Whether the question is asked at serving time.
94+
* @param allowedInConversation allowedInConversation or {@code null} for none
95+
*/
96+
public GoogleCloudRetailV2GenerativeQuestionConfig setAllowedInConversation(java.lang.Boolean allowedInConversation) {
97+
this.allowedInConversation = allowedInConversation;
98+
return this;
99+
}
100+
101+
/**
102+
* Required. Resource name of the catalog. Format:
103+
* projects/{project}/locations/{location}/catalogs/{catalog}
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getCatalog() {
107+
return catalog;
108+
}
109+
110+
/**
111+
* Required. Resource name of the catalog. Format:
112+
* projects/{project}/locations/{location}/catalogs/{catalog}
113+
* @param catalog catalog or {@code null} for none
114+
*/
115+
public GoogleCloudRetailV2GenerativeQuestionConfig setCatalog(java.lang.String catalog) {
116+
this.catalog = catalog;
117+
return this;
118+
}
119+
120+
/**
121+
* Output only. Values that can be used to answer the question.
122+
* @return value or {@code null} for none
123+
*/
124+
public java.util.List<java.lang.String> getExampleValues() {
125+
return exampleValues;
126+
}
127+
128+
/**
129+
* Output only. Values that can be used to answer the question.
130+
* @param exampleValues exampleValues or {@code null} for none
131+
*/
132+
public GoogleCloudRetailV2GenerativeQuestionConfig setExampleValues(java.util.List<java.lang.String> exampleValues) {
133+
this.exampleValues = exampleValues;
134+
return this;
135+
}
136+
137+
/**
138+
* Required. The facet to which the question is associated.
139+
* @return value or {@code null} for none
140+
*/
141+
public java.lang.String getFacet() {
142+
return facet;
143+
}
144+
145+
/**
146+
* Required. The facet to which the question is associated.
147+
* @param facet facet or {@code null} for none
148+
*/
149+
public GoogleCloudRetailV2GenerativeQuestionConfig setFacet(java.lang.String facet) {
150+
this.facet = facet;
151+
return this;
152+
}
153+
154+
/**
155+
* Optional. The question that will be used at serving time. Question can have a max length of 300
156+
* bytes. When not populated, generated_question should be used.
157+
* @return value or {@code null} for none
158+
*/
159+
public java.lang.String getFinalQuestion() {
160+
return finalQuestion;
161+
}
162+
163+
/**
164+
* Optional. The question that will be used at serving time. Question can have a max length of 300
165+
* bytes. When not populated, generated_question should be used.
166+
* @param finalQuestion finalQuestion or {@code null} for none
167+
*/
168+
public GoogleCloudRetailV2GenerativeQuestionConfig setFinalQuestion(java.lang.String finalQuestion) {
169+
this.finalQuestion = finalQuestion;
170+
return this;
171+
}
172+
173+
/**
174+
* Output only. The ratio of how often a question was asked.
175+
* @return value or {@code null} for none
176+
*/
177+
public java.lang.Float getFrequency() {
178+
return frequency;
179+
}
180+
181+
/**
182+
* Output only. The ratio of how often a question was asked.
183+
* @param frequency frequency or {@code null} for none
184+
*/
185+
public GoogleCloudRetailV2GenerativeQuestionConfig setFrequency(java.lang.Float frequency) {
186+
this.frequency = frequency;
187+
return this;
188+
}
189+
190+
/**
191+
* Output only. The LLM generated question.
192+
* @return value or {@code null} for none
193+
*/
194+
public java.lang.String getGeneratedQuestion() {
195+
return generatedQuestion;
196+
}
197+
198+
/**
199+
* Output only. The LLM generated question.
200+
* @param generatedQuestion generatedQuestion or {@code null} for none
201+
*/
202+
public GoogleCloudRetailV2GenerativeQuestionConfig setGeneratedQuestion(java.lang.String generatedQuestion) {
203+
this.generatedQuestion = generatedQuestion;
204+
return this;
205+
}
206+
207+
@Override
208+
public GoogleCloudRetailV2GenerativeQuestionConfig set(String fieldName, Object value) {
209+
return (GoogleCloudRetailV2GenerativeQuestionConfig) super.set(fieldName, value);
210+
}
211+
212+
@Override
213+
public GoogleCloudRetailV2GenerativeQuestionConfig clone() {
214+
return (GoogleCloudRetailV2GenerativeQuestionConfig) super.clone();
215+
}
216+
217+
}

0 commit comments

Comments
 (0)