Skip to content

Commit cf5c5f0

Browse files
1 parent 1af02f8 commit cf5c5f0

File tree

18 files changed

+69
-48
lines changed

18 files changed

+69
-48
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-rev20240906-2.0.0</version>
25+
<version>v1-rev20240912-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-rev20240906-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20240912-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ public final class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearc
3737
private java.lang.String document;
3838

3939
/**
40-
* List of document contexts.
40+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
41+
* be the main content of the document that can be long and comprehensive.
4142
* The value may be {@code null}.
4243
*/
4344
@com.google.api.client.util.Key
4445
private java.util.List<GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> documentContexts;
4546

4647
/**
47-
* List of extractive answers.
48+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
49+
* use document_contexts and extractive_segments fields. List of extractive answers.
4850
* The value may be {@code null}.
4951
*/
5052
@com.google.api.client.util.Key
@@ -89,15 +91,17 @@ public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListS
8991
}
9092

9193
/**
92-
* List of document contexts.
94+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
95+
* be the main content of the document that can be long and comprehensive.
9396
* @return value or {@code null} for none
9497
*/
9598
public java.util.List<GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> getDocumentContexts() {
9699
return documentContexts;
97100
}
98101

99102
/**
100-
* List of document contexts.
103+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
104+
* be the main content of the document that can be long and comprehensive.
101105
* @param documentContexts documentContexts or {@code null} for none
102106
*/
103107
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo setDocumentContexts(java.util.List<GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> documentContexts) {
@@ -106,15 +110,17 @@ public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListS
106110
}
107111

108112
/**
109-
* List of extractive answers.
113+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
114+
* use document_contexts and extractive_segments fields. List of extractive answers.
110115
* @return value or {@code null} for none
111116
*/
112117
public java.util.List<GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer> getExtractiveAnswers() {
113118
return extractiveAnswers;
114119
}
115120

116121
/**
117-
* List of extractive answers.
122+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
123+
* use document_contexts and extractive_segments fields. List of extractive answers.
118124
* @param extractiveAnswers extractiveAnswers or {@code null} for none
119125
*/
120126
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo setExtractiveAnswers(java.util.List<GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer> extractiveAnswers) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public final class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Document content.
33+
* Document content to be used for answer generation.
3434
* The value may be {@code null}.
3535
*/
3636
@com.google.api.client.util.Key
@@ -44,15 +44,15 @@ public final class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearc
4444
private java.lang.String pageIdentifier;
4545

4646
/**
47-
* Document content.
47+
* Document content to be used for answer generation.
4848
* @return value or {@code null} for none
4949
*/
5050
public java.lang.String getContent() {
5151
return content;
5252
}
5353

5454
/**
55-
* Document content.
55+
* Document content to be used for answer generation.
5656
* @param content content or {@code null} for none
5757
*/
5858
public GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext setContent(java.lang.String content) {

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

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

1919
/**
2020
* Extractive segment. [Guide](https://cloud.google.com/generative-ai-app-
21-
* builder/docs/snippets#extractive-segments)
21+
* builder/docs/snippets#extractive-segments) Answer generation will only use it if
22+
* document_contexts is empty. This is supposed to be shorter snippets.
2223
*
2324
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2425
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:

clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-discoveryengine</artifactId>
11-
<version>v1-rev20240906-2.0.0</version>
12-
<name>Discovery Engine API v1-rev20240906-2.0.0</name>
11+
<version>v1-rev20240912-2.0.0</version>
12+
<name>Discovery Engine API v1-rev20240912-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

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

clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ public final class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
3737
private java.lang.String document;
3838

3939
/**
40-
* List of document contexts.
40+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
41+
* be the main content of the document that can be long and comprehensive.
4142
* The value may be {@code null}.
4243
*/
4344
@com.google.api.client.util.Key
4445
private java.util.List<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> documentContexts;
4546

4647
/**
47-
* List of extractive answers.
48+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
49+
* use document_contexts and extractive_segments fields. List of extractive answers.
4850
* The value may be {@code null}.
4951
*/
5052
@com.google.api.client.util.Key
@@ -89,15 +91,17 @@ public GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResult
8991
}
9092

9193
/**
92-
* List of document contexts.
94+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
95+
* be the main content of the document that can be long and comprehensive.
9396
* @return value or {@code null} for none
9497
*/
9598
public java.util.List<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> getDocumentContexts() {
9699
return documentContexts;
97100
}
98101

99102
/**
100-
* List of document contexts.
103+
* List of document contexts. The content will be used for Answer Generation. This is supposed to
104+
* be the main content of the document that can be long and comprehensive.
101105
* @param documentContexts documentContexts or {@code null} for none
102106
*/
103107
public GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo setDocumentContexts(java.util.List<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext> documentContexts) {
@@ -106,15 +110,17 @@ public GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResult
106110
}
107111

108112
/**
109-
* List of extractive answers.
113+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
114+
* use document_contexts and extractive_segments fields. List of extractive answers.
110115
* @return value or {@code null} for none
111116
*/
112117
public java.util.List<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer> getExtractiveAnswers() {
113118
return extractiveAnswers;
114119
}
115120

116121
/**
117-
* List of extractive answers.
122+
* Deprecated: This field is deprecated and will have no effect on the Answer generation. Please
123+
* use document_contexts and extractive_segments fields. List of extractive answers.
118124
* @param extractiveAnswers extractiveAnswers or {@code null} for none
119125
*/
120126
public GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo setExtractiveAnswers(java.util.List<GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer> extractiveAnswers) {

clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public final class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Document content.
33+
* Document content to be used for answer generation.
3434
* The value may be {@code null}.
3535
*/
3636
@com.google.api.client.util.Key
@@ -44,15 +44,15 @@ public final class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
4444
private java.lang.String pageIdentifier;
4545

4646
/**
47-
* Document content.
47+
* Document content to be used for answer generation.
4848
* @return value or {@code null} for none
4949
*/
5050
public java.lang.String getContent() {
5151
return content;
5252
}
5353

5454
/**
55-
* Document content.
55+
* Document content to be used for answer generation.
5656
* @param content content or {@code null} for none
5757
*/
5858
public GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext setContent(java.lang.String content) {

clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment.java

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

1919
/**
2020
* Extractive segment. [Guide](https://cloud.google.com/generative-ai-app-
21-
* builder/docs/snippets#extractive-segments)
21+
* builder/docs/snippets#extractive-segments) Answer generation will only use it if
22+
* document_contexts is empty. This is supposed to be shorter snippets.
2223
*
2324
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2425
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:

0 commit comments

Comments
 (0)