Skip to content

Commit 85a9076

Browse files
1 parent 8f50782 commit 85a9076

File tree

115 files changed

+4989
-2474
lines changed

Some content is hidden

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

115 files changed

+4989
-2474
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-rev20240829-2.0.0</version>
25+
<version>v1-rev20240906-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-rev20240829-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20240906-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: 610 additions & 610 deletions
Large diffs are not rendered by default.

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ public final class GoogleCloudDiscoveryengineV1AnswerQueryRequest extends com.go
3737
private GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec answerGenerationSpec;
3838

3939
/**
40-
* Asynchronous mode control. If enabled, the response will be returned with answer/session
41-
* resource name without final answer. The API users need to do the polling to get the latest
42-
* status of answer/session by calling ConversationalSearchService.GetAnswer or
43-
* ConversationalSearchService.GetSession method.
40+
* Deprecated: This field is deprecated. Streaming Answer API will be supported. Asynchronous mode
41+
* control. If enabled, the response will be returned with answer/session resource name without
42+
* final answer. The API users need to do the polling to get the latest status of answer/session
43+
* by calling ConversationalSearchService.GetAnswer or ConversationalSearchService.GetSession
44+
* method.
4445
* The value may be {@code null}.
4546
*/
4647
@com.google.api.client.util.Key
@@ -135,21 +136,23 @@ public GoogleCloudDiscoveryengineV1AnswerQueryRequest setAnswerGenerationSpec(Go
135136
}
136137

137138
/**
138-
* Asynchronous mode control. If enabled, the response will be returned with answer/session
139-
* resource name without final answer. The API users need to do the polling to get the latest
140-
* status of answer/session by calling ConversationalSearchService.GetAnswer or
141-
* ConversationalSearchService.GetSession method.
139+
* Deprecated: This field is deprecated. Streaming Answer API will be supported. Asynchronous mode
140+
* control. If enabled, the response will be returned with answer/session resource name without
141+
* final answer. The API users need to do the polling to get the latest status of answer/session
142+
* by calling ConversationalSearchService.GetAnswer or ConversationalSearchService.GetSession
143+
* method.
142144
* @return value or {@code null} for none
143145
*/
144146
public java.lang.Boolean getAsynchronousMode() {
145147
return asynchronousMode;
146148
}
147149

148150
/**
149-
* Asynchronous mode control. If enabled, the response will be returned with answer/session
150-
* resource name without final answer. The API users need to do the polling to get the latest
151-
* status of answer/session by calling ConversationalSearchService.GetAnswer or
152-
* ConversationalSearchService.GetSession method.
151+
* Deprecated: This field is deprecated. Streaming Answer API will be supported. Asynchronous mode
152+
* control. If enabled, the response will be returned with answer/session resource name without
153+
* final answer. The API users need to do the polling to get the latest status of answer/session
154+
* by calling ConversationalSearchService.GetAnswer or ConversationalSearchService.GetSession
155+
* method.
153156
* @param asynchronousMode asynchronousMode or {@code null} for none
154157
*/
155158
public GoogleCloudDiscoveryengineV1AnswerQueryRequest setAsynchronousMode(java.lang.Boolean asynchronousMode) {

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ public final class GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGeneratio
4949
@com.google.api.client.util.Key
5050
private java.lang.Boolean ignoreAdversarialQuery;
5151

52+
/**
53+
* Optional. Specifies whether to filter out jail-breaking queries. The default value is `false`.
54+
* Google employs search-query classification to detect jail-breaking queries. No summary is
55+
* returned if the search query is classified as a jail-breaking query. A user might add
56+
* instructions to the query to change the tone, style, language, content of the answer, or ask
57+
* the model to act as a different entity, e.g. "Reply in the tone of a competing company's CEO".
58+
* If this field is set to `true`, we skip generating summaries for jail-breaking queries and
59+
* return fallback messages instead.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.lang.Boolean ignoreJailBreakingQuery;
64+
5265
/**
5366
* Specifies whether to filter out queries that have low relevance. If this field is set to
5467
* `false`, all search results are used regardless of relevance to generate answers. If set to
@@ -136,6 +149,35 @@ public GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec setIgn
136149
return this;
137150
}
138151

152+
/**
153+
* Optional. Specifies whether to filter out jail-breaking queries. The default value is `false`.
154+
* Google employs search-query classification to detect jail-breaking queries. No summary is
155+
* returned if the search query is classified as a jail-breaking query. A user might add
156+
* instructions to the query to change the tone, style, language, content of the answer, or ask
157+
* the model to act as a different entity, e.g. "Reply in the tone of a competing company's CEO".
158+
* If this field is set to `true`, we skip generating summaries for jail-breaking queries and
159+
* return fallback messages instead.
160+
* @return value or {@code null} for none
161+
*/
162+
public java.lang.Boolean getIgnoreJailBreakingQuery() {
163+
return ignoreJailBreakingQuery;
164+
}
165+
166+
/**
167+
* Optional. Specifies whether to filter out jail-breaking queries. The default value is `false`.
168+
* Google employs search-query classification to detect jail-breaking queries. No summary is
169+
* returned if the search query is classified as a jail-breaking query. A user might add
170+
* instructions to the query to change the tone, style, language, content of the answer, or ask
171+
* the model to act as a different entity, e.g. "Reply in the tone of a competing company's CEO".
172+
* If this field is set to `true`, we skip generating summaries for jail-breaking queries and
173+
* return fallback messages instead.
174+
* @param ignoreJailBreakingQuery ignoreJailBreakingQuery or {@code null} for none
175+
*/
176+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec setIgnoreJailBreakingQuery(java.lang.Boolean ignoreJailBreakingQuery) {
177+
this.ignoreJailBreakingQuery = ignoreJailBreakingQuery;
178+
return this;
179+
}
180+
139181
/**
140182
* Specifies whether to filter out queries that have low relevance. If this field is set to
141183
* `false`, all search results are used regardless of relevance to generate answers. If set to

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearc
4343
@com.google.api.client.util.Key
4444
private java.lang.String content;
4545

46+
/**
47+
* Metadata of the document from the current chunk.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata documentMetadata;
52+
4653
/**
4754
* Chunk resource name.
4855
* @return value or {@code null} for none
@@ -77,6 +84,23 @@ public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListS
7784
return this;
7885
}
7986

87+
/**
88+
* Metadata of the document from the current chunk.
89+
* @return value or {@code null} for none
90+
*/
91+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata getDocumentMetadata() {
92+
return documentMetadata;
93+
}
94+
95+
/**
96+
* Metadata of the document from the current chunk.
97+
* @param documentMetadata documentMetadata or {@code null} for none
98+
*/
99+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo setDocumentMetadata(GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata documentMetadata) {
100+
this.documentMetadata = documentMetadata;
101+
return this;
102+
}
103+
80104
@Override
81105
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo set(String fieldName, Object value) {
82106
return (GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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+
* Document metadata contains the information of the document of the current chunk.
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 GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Title of the document.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String title;
38+
39+
/**
40+
* Uri of the document.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String uri;
45+
46+
/**
47+
* Title of the document.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.String getTitle() {
51+
return title;
52+
}
53+
54+
/**
55+
* Title of the document.
56+
* @param title title or {@code null} for none
57+
*/
58+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata setTitle(java.lang.String title) {
59+
this.title = title;
60+
return this;
61+
}
62+
63+
/**
64+
* Uri of the document.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getUri() {
68+
return uri;
69+
}
70+
71+
/**
72+
* Uri of the document.
73+
* @param uri uri or {@code null} for none
74+
*/
75+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata setUri(java.lang.String uri) {
76+
this.uri = uri;
77+
return this;
78+
}
79+
80+
@Override
81+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata set(String fieldName, Object value) {
82+
return (GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata clone() {
87+
return (GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata) super.clone();
88+
}
89+
90+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public final class GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearch
5252

5353
/**
5454
* Data representation. The structured JSON data for the document. It's populated from the struct
55-
* data from the Document , or the Chunk in search result .
55+
* data from the Document, or the Chunk in search result. .
5656
* The value may be {@code null}.
5757
*/
5858
@com.google.api.client.util.Key
@@ -125,7 +125,7 @@ public GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResult setSn
125125

126126
/**
127127
* Data representation. The structured JSON data for the document. It's populated from the struct
128-
* data from the Document , or the Chunk in search result .
128+
* data from the Document, or the Chunk in search result. .
129129
* @return value or {@code null} for none
130130
*/
131131
public java.util.Map<String, java.lang.Object> getStructData() {
@@ -134,7 +134,7 @@ public java.util.Map<String, java.lang.Object> getStructData() {
134134

135135
/**
136136
* Data representation. The structured JSON data for the document. It's populated from the struct
137-
* data from the Document , or the Chunk in search result .
137+
* data from the Document, or the Chunk in search result. .
138138
* @param structData structData or {@code null} for none
139139
*/
140140
public GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResult setStructData(java.util.Map<String, java.lang.Object> structData) {

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public final class GoogleCloudDiscoveryengineV1BatchGetDocumentsMetadataResponse
5353
private GoogleCloudDiscoveryengineV1BatchGetDocumentsMetadataResponseDocumentMetadataMatcherValue matcherValue;
5454

5555
/**
56-
* The status of the document.
56+
* The state of the document.
5757
* The value may be {@code null}.
5858
*/
5959
@com.google.api.client.util.Key
60-
private java.lang.String status;
60+
private java.lang.String state;
6161

6262
/**
6363
* The data ingestion source of the Document. Allowed values are: * `batch`: Data ingested via
@@ -115,19 +115,19 @@ public GoogleCloudDiscoveryengineV1BatchGetDocumentsMetadataResponseDocumentMeta
115115
}
116116

117117
/**
118-
* The status of the document.
118+
* The state of the document.
119119
* @return value or {@code null} for none
120120
*/
121-
public java.lang.String getStatus() {
122-
return status;
121+
public java.lang.String getState() {
122+
return state;
123123
}
124124

125125
/**
126-
* The status of the document.
127-
* @param status status or {@code null} for none
126+
* The state of the document.
127+
* @param state state or {@code null} for none
128128
*/
129-
public GoogleCloudDiscoveryengineV1BatchGetDocumentsMetadataResponseDocumentMetadata setStatus(java.lang.String status) {
130-
this.status = status;
129+
public GoogleCloudDiscoveryengineV1BatchGetDocumentsMetadataResponseDocumentMetadata setState(java.lang.String state) {
130+
this.state = state;
131131
return this;
132132
}
133133

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public final class GoogleCloudDiscoveryengineV1ConverseConversationRequest exten
7777
private java.lang.Boolean safeSearch;
7878

7979
/**
80-
* The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{l
81-
* ocation_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_
82-
* id}` If this is not set, the default serving config will be used.
80+
* The resource name of the Serving Config to use. Format: `projects/{project}/locations/{location
81+
* }/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If
82+
* this is not set, the default serving config will be used.
8383
* The value may be {@code null}.
8484
*/
8585
@com.google.api.client.util.Key
@@ -218,19 +218,19 @@ public GoogleCloudDiscoveryengineV1ConverseConversationRequest setSafeSearch(jav
218218
}
219219

220220
/**
221-
* The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{l
222-
* ocation_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_
223-
* id}` If this is not set, the default serving config will be used.
221+
* The resource name of the Serving Config to use. Format: `projects/{project}/locations/{location
222+
* }/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If
223+
* this is not set, the default serving config will be used.
224224
* @return value or {@code null} for none
225225
*/
226226
public java.lang.String getServingConfig() {
227227
return servingConfig;
228228
}
229229

230230
/**
231-
* The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{l
232-
* ocation_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_
233-
* id}` If this is not set, the default serving config will be used.
231+
* The resource name of the Serving Config to use. Format: `projects/{project}/locations/{location
232+
* }/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If
233+
* this is not set, the default serving config will be used.
234234
* @param servingConfig servingConfig or {@code null} for none
235235
*/
236236
public GoogleCloudDiscoveryengineV1ConverseConversationRequest setServingConfig(java.lang.String servingConfig) {

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public final class GoogleCloudDiscoveryengineV1CustomTuningModel extends com.goo
6565
private java.lang.Long modelVersion;
6666

6767
/**
68-
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo
69-
* cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_
70-
* tuning_model}` model must be an alpha-numerical string with limit of 40 characters.
68+
* Required. The fully qualified resource name of the model. Format: `projects/{project}/locations
69+
* /{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_
70+
* model}`. Model must be an alpha-numerical string with limit of 40 characters.
7171
* The value may be {@code null}.
7272
*/
7373
@com.google.api.client.util.Key
@@ -166,19 +166,19 @@ public GoogleCloudDiscoveryengineV1CustomTuningModel setModelVersion(java.lang.L
166166
}
167167

168168
/**
169-
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo
170-
* cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_
171-
* tuning_model}` model must be an alpha-numerical string with limit of 40 characters.
169+
* Required. The fully qualified resource name of the model. Format: `projects/{project}/locations
170+
* /{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_
171+
* model}`. Model must be an alpha-numerical string with limit of 40 characters.
172172
* @return value or {@code null} for none
173173
*/
174174
public java.lang.String getName() {
175175
return name;
176176
}
177177

178178
/**
179-
* Required. The fully qualified resource name of the model. Format: `projects/{project_number}/lo
180-
* cations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_
181-
* tuning_model}` model must be an alpha-numerical string with limit of 40 characters.
179+
* Required. The fully qualified resource name of the model. Format: `projects/{project}/locations
180+
* /{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_
181+
* model}`. Model must be an alpha-numerical string with limit of 40 characters.
182182
* @param name name or {@code null} for none
183183
*/
184184
public GoogleCloudDiscoveryengineV1CustomTuningModel setName(java.lang.String name) {

0 commit comments

Comments
 (0)