Skip to content

Commit 072e828

Browse files
1 parent a6bac2a commit 072e828

File tree

30 files changed

+1578
-126
lines changed

30 files changed

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

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

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ public final class GoogleCloudDiscoveryengineV1CheckGroundingResponse extends co
3535
* The value may be {@code null}.
3636
*/
3737
@com.google.api.client.util.Key
38-
private java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk> citedChunks;
38+
private java.util.List<GoogleCloudDiscoveryengineV1FactChunk> citedChunks;
39+
40+
/**
41+
* List of facts cited across all claims in the answer candidate. These are derived from the facts
42+
* supplied in the request.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk> citedFacts;
3947

4048
/**
4149
* Claim texts and citation info across all claims in the answer candidate.
@@ -58,7 +66,7 @@ public final class GoogleCloudDiscoveryengineV1CheckGroundingResponse extends co
5866
* supplied in the request.
5967
* @return value or {@code null} for none
6068
*/
61-
public java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk> getCitedChunks() {
69+
public java.util.List<GoogleCloudDiscoveryengineV1FactChunk> getCitedChunks() {
6270
return citedChunks;
6371
}
6472

@@ -67,11 +75,30 @@ public java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChun
6775
* supplied in the request.
6876
* @param citedChunks citedChunks or {@code null} for none
6977
*/
70-
public GoogleCloudDiscoveryengineV1CheckGroundingResponse setCitedChunks(java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk> citedChunks) {
78+
public GoogleCloudDiscoveryengineV1CheckGroundingResponse setCitedChunks(java.util.List<GoogleCloudDiscoveryengineV1FactChunk> citedChunks) {
7179
this.citedChunks = citedChunks;
7280
return this;
7381
}
7482

83+
/**
84+
* List of facts cited across all claims in the answer candidate. These are derived from the facts
85+
* supplied in the request.
86+
* @return value or {@code null} for none
87+
*/
88+
public java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk> getCitedFacts() {
89+
return citedFacts;
90+
}
91+
92+
/**
93+
* List of facts cited across all claims in the answer candidate. These are derived from the facts
94+
* supplied in the request.
95+
* @param citedFacts citedFacts or {@code null} for none
96+
*/
97+
public GoogleCloudDiscoveryengineV1CheckGroundingResponse setCitedFacts(java.util.List<GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk> citedFacts) {
98+
this.citedFacts = citedFacts;
99+
return this;
100+
}
101+
75102
/**
76103
* Claim texts and citation info across all claims in the answer candidate.
77104
* @return value or {@code null} for none
Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @author Google, Inc.
2828
*/
2929
@SuppressWarnings("javadoc")
30-
public final class GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk extends com.google.api.client.json.GenericJson {
30+
public final class GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk extends com.google.api.client.json.GenericJson {
3131

3232
/**
3333
* Text content of the fact chunk. Can be at most 10K characters long.
@@ -36,14 +36,6 @@ public final class GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk e
3636
@com.google.api.client.util.Key
3737
private java.lang.String chunkText;
3838

39-
/**
40-
* Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts,
41-
* this field will contain the index of the specific fact from which this chunk was retrieved.
42-
* The value may be {@code null}.
43-
*/
44-
@com.google.api.client.util.Key
45-
private java.lang.String source;
46-
4739
/**
4840
* Text content of the fact chunk. Can be at most 10K characters long.
4941
* @return value or {@code null} for none
@@ -56,38 +48,19 @@ public java.lang.String getChunkText() {
5648
* Text content of the fact chunk. Can be at most 10K characters long.
5749
* @param chunkText chunkText or {@code null} for none
5850
*/
59-
public GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk setChunkText(java.lang.String chunkText) {
51+
public GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk setChunkText(java.lang.String chunkText) {
6052
this.chunkText = chunkText;
6153
return this;
6254
}
6355

64-
/**
65-
* Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts,
66-
* this field will contain the index of the specific fact from which this chunk was retrieved.
67-
* @return value or {@code null} for none
68-
*/
69-
public java.lang.String getSource() {
70-
return source;
71-
}
72-
73-
/**
74-
* Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts,
75-
* this field will contain the index of the specific fact from which this chunk was retrieved.
76-
* @param source source or {@code null} for none
77-
*/
78-
public GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk setSource(java.lang.String source) {
79-
this.source = source;
80-
return this;
81-
}
82-
8356
@Override
84-
public GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk set(String fieldName, Object value) {
85-
return (GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk) super.set(fieldName, value);
57+
public GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk) super.set(fieldName, value);
8659
}
8760

8861
@Override
89-
public GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk clone() {
90-
return (GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk) super.clone();
62+
public GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk clone() {
63+
return (GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk) super.clone();
9164
}
9265

9366
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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+
* Fact 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 GoogleCloudDiscoveryengineV1FactChunk extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Text content of the fact chunk. Can be at most 10K characters long.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String chunkText;
38+
39+
/**
40+
* The index of this chunk. Currently, only used for the streaming mode.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Integer index;
45+
46+
/**
47+
* Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts
48+
* provided in the request then this field will contain the index of the specific fact from which
49+
* this chunk was retrieved.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String source;
54+
55+
/**
56+
* More fine-grained information for the source reference.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.util.Map<String, java.lang.String> sourceMetadata;
61+
62+
/**
63+
* Text content of the fact chunk. Can be at most 10K characters long.
64+
* @return value or {@code null} for none
65+
*/
66+
public java.lang.String getChunkText() {
67+
return chunkText;
68+
}
69+
70+
/**
71+
* Text content of the fact chunk. Can be at most 10K characters long.
72+
* @param chunkText chunkText or {@code null} for none
73+
*/
74+
public GoogleCloudDiscoveryengineV1FactChunk setChunkText(java.lang.String chunkText) {
75+
this.chunkText = chunkText;
76+
return this;
77+
}
78+
79+
/**
80+
* The index of this chunk. Currently, only used for the streaming mode.
81+
* @return value or {@code null} for none
82+
*/
83+
public java.lang.Integer getIndex() {
84+
return index;
85+
}
86+
87+
/**
88+
* The index of this chunk. Currently, only used for the streaming mode.
89+
* @param index index or {@code null} for none
90+
*/
91+
public GoogleCloudDiscoveryengineV1FactChunk setIndex(java.lang.Integer index) {
92+
this.index = index;
93+
return this;
94+
}
95+
96+
/**
97+
* Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts
98+
* provided in the request then this field will contain the index of the specific fact from which
99+
* this chunk was retrieved.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getSource() {
103+
return source;
104+
}
105+
106+
/**
107+
* Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts
108+
* provided in the request then this field will contain the index of the specific fact from which
109+
* this chunk was retrieved.
110+
* @param source source or {@code null} for none
111+
*/
112+
public GoogleCloudDiscoveryengineV1FactChunk setSource(java.lang.String source) {
113+
this.source = source;
114+
return this;
115+
}
116+
117+
/**
118+
* More fine-grained information for the source reference.
119+
* @return value or {@code null} for none
120+
*/
121+
public java.util.Map<String, java.lang.String> getSourceMetadata() {
122+
return sourceMetadata;
123+
}
124+
125+
/**
126+
* More fine-grained information for the source reference.
127+
* @param sourceMetadata sourceMetadata or {@code null} for none
128+
*/
129+
public GoogleCloudDiscoveryengineV1FactChunk setSourceMetadata(java.util.Map<String, java.lang.String> sourceMetadata) {
130+
this.sourceMetadata = sourceMetadata;
131+
return this;
132+
}
133+
134+
@Override
135+
public GoogleCloudDiscoveryengineV1FactChunk set(String fieldName, Object value) {
136+
return (GoogleCloudDiscoveryengineV1FactChunk) super.set(fieldName, value);
137+
}
138+
139+
@Override
140+
public GoogleCloudDiscoveryengineV1FactChunk clone() {
141+
return (GoogleCloudDiscoveryengineV1FactChunk) super.clone();
142+
}
143+
144+
}

0 commit comments

Comments
 (0)