Skip to content

Commit e6635b7

Browse files
1 parent e75f90c commit e6635b7

File tree

118 files changed

+10085
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+10085
-309
lines changed

clients/google-api-services-discoveryengine/v1/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-discoveryengine</artifactId>
25-
<version>v1-rev20250706-2.0.0</version>
25+
<version>v1-rev20250716-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-discoveryengine:v1-rev20250706-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20250716-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngine.java

Lines changed: 682 additions & 0 deletions
Large diffs are not rendered by default.

clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngineScopes.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public class DiscoveryEngineScopes {
2626
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
2727
public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
2828

29+
/** Search your organization's data in the Cloud Search index. */
30+
public static final String CLOUD_SEARCH_QUERY = "https://www.googleapis.com/auth/cloud_search.query";
31+
2932
/**
3033
* Returns an unmodifiable set that contains all scopes declared by this class.
3134
*
@@ -34,6 +37,7 @@ public class DiscoveryEngineScopes {
3437
public static java.util.Set<String> all() {
3538
java.util.Set<String> set = new java.util.HashSet<String>();
3639
set.add(CLOUD_PLATFORM);
40+
set.add(CLOUD_SEARCH_QUERY);
3741
return java.util.Collections.unmodifiableSet(set);
3842
}
3943

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,321 @@
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.discoveryengine.v1.model;
18+
19+
/**
20+
* Request message for CompletionService.AdvancedCompleteQuery 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 Discovery Engine API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Specification to boost suggestions matching the condition.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpec boostSpec;
38+
39+
/**
40+
* Optional. Experiment ids for this request.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.util.List<java.lang.String> experimentIds;
45+
46+
/**
47+
* Indicates if tail suggestions should be returned if there are no suggestions that match the
48+
* full query. Even if set to true, if there are suggestions that match the full query, those are
49+
* returned and no tail suggestions are returned.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.Boolean includeTailSuggestions;
54+
55+
/**
56+
* Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The
57+
* query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT`
58+
* error is returned. The exception is when the suggestion_types contains only the type
59+
* `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which
60+
* returns user's recently searched queries given the empty query.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private java.lang.String query;
65+
66+
/**
67+
* Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. This
68+
* overrides any model specified in the Configuration > Autocomplete section of the Cloud console.
69+
* Currently supported values: * `document` - Using suggestions generated from user-imported
70+
* documents. * `search-history` - Using suggestions generated from the past history of
71+
* SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-
72+
* event` - Using suggestions generated from user-imported search events. * `document-completable`
73+
* - Using suggestions taken directly from user-imported document fields marked as completable.
74+
* Default values: * `document` is the default model for regular dataStores. * `search-history` is
75+
* the default model for site search dataStores.
76+
* The value may be {@code null}.
77+
*/
78+
@com.google.api.client.util.Key
79+
private java.lang.String queryModel;
80+
81+
/**
82+
* Optional. Specification of each suggestion type.
83+
* The value may be {@code null}.
84+
*/
85+
@com.google.api.client.util.Key
86+
private java.util.List<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestSuggestionTypeSpec> suggestionTypeSpecs;
87+
88+
/**
89+
* Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned.
90+
* Only one suggestion type is supported at the moment.
91+
* The value may be {@code null}.
92+
*/
93+
@com.google.api.client.util.Key
94+
private java.util.List<java.lang.String> suggestionTypes;
95+
96+
/**
97+
* Optional. Information about the end user. This should be the same identifier information as
98+
* UserEvent.user_info and SearchRequest.user_info.
99+
* The value may be {@code null}.
100+
*/
101+
@com.google.api.client.util.Key
102+
private GoogleCloudDiscoveryengineV1UserInfo userInfo;
103+
104+
/**
105+
* A unique identifier for tracking visitors. For example, this could be implemented with an HTTP
106+
* cookie, which should be able to uniquely identify a visitor on a single device. This unique
107+
* identifier should not change if the visitor logs in or out of the website. This field should
108+
* NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as
109+
* UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded
110+
* string with a length limit of 128
111+
* The value may be {@code null}.
112+
*/
113+
@com.google.api.client.util.Key
114+
private java.lang.String userPseudoId;
115+
116+
/**
117+
* Optional. Specification to boost suggestions matching the condition.
118+
* @return value or {@code null} for none
119+
*/
120+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpec getBoostSpec() {
121+
return boostSpec;
122+
}
123+
124+
/**
125+
* Optional. Specification to boost suggestions matching the condition.
126+
* @param boostSpec boostSpec or {@code null} for none
127+
*/
128+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setBoostSpec(GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpec boostSpec) {
129+
this.boostSpec = boostSpec;
130+
return this;
131+
}
132+
133+
/**
134+
* Optional. Experiment ids for this request.
135+
* @return value or {@code null} for none
136+
*/
137+
public java.util.List<java.lang.String> getExperimentIds() {
138+
return experimentIds;
139+
}
140+
141+
/**
142+
* Optional. Experiment ids for this request.
143+
* @param experimentIds experimentIds or {@code null} for none
144+
*/
145+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setExperimentIds(java.util.List<java.lang.String> experimentIds) {
146+
this.experimentIds = experimentIds;
147+
return this;
148+
}
149+
150+
/**
151+
* Indicates if tail suggestions should be returned if there are no suggestions that match the
152+
* full query. Even if set to true, if there are suggestions that match the full query, those are
153+
* returned and no tail suggestions are returned.
154+
* @return value or {@code null} for none
155+
*/
156+
public java.lang.Boolean getIncludeTailSuggestions() {
157+
return includeTailSuggestions;
158+
}
159+
160+
/**
161+
* Indicates if tail suggestions should be returned if there are no suggestions that match the
162+
* full query. Even if set to true, if there are suggestions that match the full query, those are
163+
* returned and no tail suggestions are returned.
164+
* @param includeTailSuggestions includeTailSuggestions or {@code null} for none
165+
*/
166+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setIncludeTailSuggestions(java.lang.Boolean includeTailSuggestions) {
167+
this.includeTailSuggestions = includeTailSuggestions;
168+
return this;
169+
}
170+
171+
/**
172+
* Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The
173+
* query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT`
174+
* error is returned. The exception is when the suggestion_types contains only the type
175+
* `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which
176+
* returns user's recently searched queries given the empty query.
177+
* @return value or {@code null} for none
178+
*/
179+
public java.lang.String getQuery() {
180+
return query;
181+
}
182+
183+
/**
184+
* Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The
185+
* query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT`
186+
* error is returned. The exception is when the suggestion_types contains only the type
187+
* `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which
188+
* returns user's recently searched queries given the empty query.
189+
* @param query query or {@code null} for none
190+
*/
191+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setQuery(java.lang.String query) {
192+
this.query = query;
193+
return this;
194+
}
195+
196+
/**
197+
* Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. This
198+
* overrides any model specified in the Configuration > Autocomplete section of the Cloud console.
199+
* Currently supported values: * `document` - Using suggestions generated from user-imported
200+
* documents. * `search-history` - Using suggestions generated from the past history of
201+
* SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-
202+
* event` - Using suggestions generated from user-imported search events. * `document-completable`
203+
* - Using suggestions taken directly from user-imported document fields marked as completable.
204+
* Default values: * `document` is the default model for regular dataStores. * `search-history` is
205+
* the default model for site search dataStores.
206+
* @return value or {@code null} for none
207+
*/
208+
public java.lang.String getQueryModel() {
209+
return queryModel;
210+
}
211+
212+
/**
213+
* Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. This
214+
* overrides any model specified in the Configuration > Autocomplete section of the Cloud console.
215+
* Currently supported values: * `document` - Using suggestions generated from user-imported
216+
* documents. * `search-history` - Using suggestions generated from the past history of
217+
* SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-
218+
* event` - Using suggestions generated from user-imported search events. * `document-completable`
219+
* - Using suggestions taken directly from user-imported document fields marked as completable.
220+
* Default values: * `document` is the default model for regular dataStores. * `search-history` is
221+
* the default model for site search dataStores.
222+
* @param queryModel queryModel or {@code null} for none
223+
*/
224+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setQueryModel(java.lang.String queryModel) {
225+
this.queryModel = queryModel;
226+
return this;
227+
}
228+
229+
/**
230+
* Optional. Specification of each suggestion type.
231+
* @return value or {@code null} for none
232+
*/
233+
public java.util.List<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestSuggestionTypeSpec> getSuggestionTypeSpecs() {
234+
return suggestionTypeSpecs;
235+
}
236+
237+
/**
238+
* Optional. Specification of each suggestion type.
239+
* @param suggestionTypeSpecs suggestionTypeSpecs or {@code null} for none
240+
*/
241+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setSuggestionTypeSpecs(java.util.List<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestSuggestionTypeSpec> suggestionTypeSpecs) {
242+
this.suggestionTypeSpecs = suggestionTypeSpecs;
243+
return this;
244+
}
245+
246+
/**
247+
* Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned.
248+
* Only one suggestion type is supported at the moment.
249+
* @return value or {@code null} for none
250+
*/
251+
public java.util.List<java.lang.String> getSuggestionTypes() {
252+
return suggestionTypes;
253+
}
254+
255+
/**
256+
* Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned.
257+
* Only one suggestion type is supported at the moment.
258+
* @param suggestionTypes suggestionTypes or {@code null} for none
259+
*/
260+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setSuggestionTypes(java.util.List<java.lang.String> suggestionTypes) {
261+
this.suggestionTypes = suggestionTypes;
262+
return this;
263+
}
264+
265+
/**
266+
* Optional. Information about the end user. This should be the same identifier information as
267+
* UserEvent.user_info and SearchRequest.user_info.
268+
* @return value or {@code null} for none
269+
*/
270+
public GoogleCloudDiscoveryengineV1UserInfo getUserInfo() {
271+
return userInfo;
272+
}
273+
274+
/**
275+
* Optional. Information about the end user. This should be the same identifier information as
276+
* UserEvent.user_info and SearchRequest.user_info.
277+
* @param userInfo userInfo or {@code null} for none
278+
*/
279+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setUserInfo(GoogleCloudDiscoveryengineV1UserInfo userInfo) {
280+
this.userInfo = userInfo;
281+
return this;
282+
}
283+
284+
/**
285+
* A unique identifier for tracking visitors. For example, this could be implemented with an HTTP
286+
* cookie, which should be able to uniquely identify a visitor on a single device. This unique
287+
* identifier should not change if the visitor logs in or out of the website. This field should
288+
* NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as
289+
* UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded
290+
* string with a length limit of 128
291+
* @return value or {@code null} for none
292+
*/
293+
public java.lang.String getUserPseudoId() {
294+
return userPseudoId;
295+
}
296+
297+
/**
298+
* A unique identifier for tracking visitors. For example, this could be implemented with an HTTP
299+
* cookie, which should be able to uniquely identify a visitor on a single device. This unique
300+
* identifier should not change if the visitor logs in or out of the website. This field should
301+
* NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as
302+
* UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded
303+
* string with a length limit of 128
304+
* @param userPseudoId userPseudoId or {@code null} for none
305+
*/
306+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest setUserPseudoId(java.lang.String userPseudoId) {
307+
this.userPseudoId = userPseudoId;
308+
return this;
309+
}
310+
311+
@Override
312+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest set(String fieldName, Object value) {
313+
return (GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest) super.set(fieldName, value);
314+
}
315+
316+
@Override
317+
public GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest clone() {
318+
return (GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest) super.clone();
319+
}
320+
321+
}

0 commit comments

Comments
 (0)