Skip to content

Commit dad71fb

Browse files
1 parent 6fd489d commit dad71fb

File tree

68 files changed

+3996
-165
lines changed

Some content is hidden

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

68 files changed

+3996
-165
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-rev20240617-2.0.0</version>
25+
<version>v1-rev20240701-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-rev20240617-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20240701-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ public final class GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearch
5050
@com.google.api.client.util.Key
5151
private java.util.List<GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo> snippetInfo;
5252

53+
/**
54+
* Data representation. The structured JSON data for the document. It's populated from the struct
55+
* data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result
56+
* (code pointer: http://shortn/_Ipo6KFFGBL).
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.util.Map<String, java.lang.Object> structData;
61+
5362
/**
5463
* Title.
5564
* The value may be {@code null}.
@@ -115,6 +124,27 @@ public GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResult setSn
115124
return this;
116125
}
117126

127+
/**
128+
* Data representation. The structured JSON data for the document. It's populated from the struct
129+
* data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result
130+
* (code pointer: http://shortn/_Ipo6KFFGBL).
131+
* @return value or {@code null} for none
132+
*/
133+
public java.util.Map<String, java.lang.Object> getStructData() {
134+
return structData;
135+
}
136+
137+
/**
138+
* Data representation. The structured JSON data for the document. It's populated from the struct
139+
* data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result
140+
* (code pointer: http://shortn/_Ipo6KFFGBL).
141+
* @param structData structData or {@code null} for none
142+
*/
143+
public GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResult setStructData(java.util.Map<String, java.lang.Object> structData) {
144+
this.structData = structData;
145+
return this;
146+
}
147+
118148
/**
119149
* Title.
120150
* @return value or {@code null} for none

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public final class GoogleCloudDiscoveryengineV1DocumentProcessingConfig extends
5959
* Map from file type to override the default parsing configuration based on the file type.
6060
* Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
6161
* parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only
62-
* digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX
63-
* files, only digital parsing and or layout parsing are supported.
62+
* digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX
63+
* files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config
64+
* for PPTX files, only digital parsing and layout parsing are supported.
6465
* The value may be {@code null}.
6566
*/
6667
@com.google.api.client.util.Key
@@ -127,8 +128,9 @@ public GoogleCloudDiscoveryengineV1DocumentProcessingConfig setName(java.lang.St
127128
* Map from file type to override the default parsing configuration based on the file type.
128129
* Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
129130
* parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only
130-
* digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX
131-
* files, only digital parsing and or layout parsing are supported.
131+
* digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX
132+
* files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config
133+
* for PPTX files, only digital parsing and layout parsing are supported.
132134
* @return value or {@code null} for none
133135
*/
134136
public java.util.Map<String, GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig> getParsingConfigOverrides() {
@@ -139,8 +141,9 @@ public java.util.Map<String, GoogleCloudDiscoveryengineV1DocumentProcessingConfi
139141
* Map from file type to override the default parsing configuration based on the file type.
140142
* Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
141143
* parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only
142-
* digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX
143-
* files, only digital parsing and or layout parsing are supported.
144+
* digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX
145+
* files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config
146+
* for PPTX files, only digital parsing and layout parsing are supported.
144147
* @param parsingConfigOverrides parsingConfigOverrides or {@code null} for none
145148
*/
146149
public GoogleCloudDiscoveryengineV1DocumentProcessingConfig setParsingConfigOverrides(java.util.Map<String, GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig> parsingConfigOverrides) {

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

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,40 @@ public final class GoogleCloudDiscoveryengineV1SearchRequest extends com.google.
192192
@com.google.api.client.util.Key
193193
private java.lang.Boolean safeSearch;
194194

195+
/**
196+
* Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
197+
* The value may be {@code null}.
198+
*/
199+
@com.google.api.client.util.Key
200+
private GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec searchAsYouTypeSpec;
201+
202+
/**
203+
* The session resource name. Optional. Session allows users to do multi-turn /search API calls or
204+
* coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search
205+
* API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API
206+
* with the session ID generated in the first call. Here, the previous search query gets
207+
* considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and
208+
* the current query is "How about 2023?", the current query will be interpreted as "How did
209+
* Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API
210+
* calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with
211+
* the session ID generated in the first call. Here, the answer generation happens in the context
212+
* of the search results from the first search call. Auto-session mode: when
213+
* `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users
214+
* can use the create-session API to create a session manually. Multi-turn Search feature is
215+
* currently at private GA stage. Please use v1alpha or v1beta version instead before we launch
216+
* this feature to public GA. Or ask for allowlisting through Google Support team.
217+
* The value may be {@code null}.
218+
*/
219+
@com.google.api.client.util.Key
220+
private java.lang.String session;
221+
222+
/**
223+
* Session specification. Can be used only when `session` is set.
224+
* The value may be {@code null}.
225+
*/
226+
@com.google.api.client.util.Key
227+
private GoogleCloudDiscoveryengineV1SearchRequestSessionSpec sessionSpec;
228+
195229
/**
196230
* The spell correction specification that specifies the mode under which spell correction takes
197231
* effect.
@@ -614,6 +648,83 @@ public GoogleCloudDiscoveryengineV1SearchRequest setSafeSearch(java.lang.Boolean
614648
return this;
615649
}
616650

651+
/**
652+
* Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
653+
* @return value or {@code null} for none
654+
*/
655+
public GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec getSearchAsYouTypeSpec() {
656+
return searchAsYouTypeSpec;
657+
}
658+
659+
/**
660+
* Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
661+
* @param searchAsYouTypeSpec searchAsYouTypeSpec or {@code null} for none
662+
*/
663+
public GoogleCloudDiscoveryengineV1SearchRequest setSearchAsYouTypeSpec(GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec searchAsYouTypeSpec) {
664+
this.searchAsYouTypeSpec = searchAsYouTypeSpec;
665+
return this;
666+
}
667+
668+
/**
669+
* The session resource name. Optional. Session allows users to do multi-turn /search API calls or
670+
* coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search
671+
* API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API
672+
* with the session ID generated in the first call. Here, the previous search query gets
673+
* considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and
674+
* the current query is "How about 2023?", the current query will be interpreted as "How did
675+
* Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API
676+
* calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with
677+
* the session ID generated in the first call. Here, the answer generation happens in the context
678+
* of the search results from the first search call. Auto-session mode: when
679+
* `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users
680+
* can use the create-session API to create a session manually. Multi-turn Search feature is
681+
* currently at private GA stage. Please use v1alpha or v1beta version instead before we launch
682+
* this feature to public GA. Or ask for allowlisting through Google Support team.
683+
* @return value or {@code null} for none
684+
*/
685+
public java.lang.String getSession() {
686+
return session;
687+
}
688+
689+
/**
690+
* The session resource name. Optional. Session allows users to do multi-turn /search API calls or
691+
* coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search
692+
* API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API
693+
* with the session ID generated in the first call. Here, the previous search query gets
694+
* considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and
695+
* the current query is "How about 2023?", the current query will be interpreted as "How did
696+
* Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API
697+
* calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with
698+
* the session ID generated in the first call. Here, the answer generation happens in the context
699+
* of the search results from the first search call. Auto-session mode: when
700+
* `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users
701+
* can use the create-session API to create a session manually. Multi-turn Search feature is
702+
* currently at private GA stage. Please use v1alpha or v1beta version instead before we launch
703+
* this feature to public GA. Or ask for allowlisting through Google Support team.
704+
* @param session session or {@code null} for none
705+
*/
706+
public GoogleCloudDiscoveryengineV1SearchRequest setSession(java.lang.String session) {
707+
this.session = session;
708+
return this;
709+
}
710+
711+
/**
712+
* Session specification. Can be used only when `session` is set.
713+
* @return value or {@code null} for none
714+
*/
715+
public GoogleCloudDiscoveryengineV1SearchRequestSessionSpec getSessionSpec() {
716+
return sessionSpec;
717+
}
718+
719+
/**
720+
* Session specification. Can be used only when `session` is set.
721+
* @param sessionSpec sessionSpec or {@code null} for none
722+
*/
723+
public GoogleCloudDiscoveryengineV1SearchRequest setSessionSpec(GoogleCloudDiscoveryengineV1SearchRequestSessionSpec sessionSpec) {
724+
this.sessionSpec = sessionSpec;
725+
return this;
726+
}
727+
617728
/**
618729
* The spell correction specification that specifies the mode under which spell correction takes
619730
* effect.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
/**
2020
* A struct to define data stores to filter on in a search call and configurations for those data
21-
* stores. A maximum of 1 DataStoreSpec per data_store is allowed. Otherwise, an `INVALID_ARGUMENT`
22-
* error is returned.
21+
* stores. Otherwise, an `INVALID_ARGUMENT` error is returned.
2322
*
2423
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2524
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
* Specification for search as you type in search requests.
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 GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The condition under which search as you type should occur. Default to Condition.DISABLED.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String condition;
38+
39+
/**
40+
* The condition under which search as you type should occur. Default to Condition.DISABLED.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getCondition() {
44+
return condition;
45+
}
46+
47+
/**
48+
* The condition under which search as you type should occur. Default to Condition.DISABLED.
49+
* @param condition condition or {@code null} for none
50+
*/
51+
public GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec setCondition(java.lang.String condition) {
52+
this.condition = condition;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec clone() {
63+
return (GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)