Skip to content

Commit 4a2591d

Browse files
1 parent 3759f25 commit 4a2591d

29 files changed

+1088
-102
lines changed

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

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59473,6 +59473,29 @@ public Create setPipelineJobId(java.lang.String pipelineJobId) {
5947359473
return this;
5947459474
}
5947559475

59476+
/**
59477+
* Optional. Whether to do component level validations before job creation. Currently we
59478+
* only support Google First Party Component/Pipelines.
59479+
*/
59480+
@com.google.api.client.util.Key
59481+
private java.lang.Boolean preflightValidations;
59482+
59483+
/** Optional. Whether to do component level validations before job creation. Currently we only support
59484+
Google First Party Component/Pipelines.
59485+
*/
59486+
public java.lang.Boolean getPreflightValidations() {
59487+
return preflightValidations;
59488+
}
59489+
59490+
/**
59491+
* Optional. Whether to do component level validations before job creation. Currently we
59492+
* only support Google First Party Component/Pipelines.
59493+
*/
59494+
public Create setPreflightValidations(java.lang.Boolean preflightValidations) {
59495+
this.preflightValidations = preflightValidations;
59496+
return this;
59497+
}
59498+
5947659499
@Override
5947759500
public Create set(String parameterName, Object value) {
5947859501
return (Create) super.set(parameterName, value);

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiNlLlmProtoServiceCandidate.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ public final class CloudAiNlLlmProtoServiceCandidate extends com.google.api.clie
5757
@com.google.api.client.util.Key
5858
private java.lang.String finishReason;
5959

60+
/**
61+
* Grounding metadata. Combine with the facts list from response to generate grounding citations
62+
* for this choice.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private LearningGenaiRootGroundingMetadata groundingMetadata;
67+
6068
/**
6169
* Index of the candidate.
6270
* The value may be {@code null}.
@@ -139,6 +147,25 @@ public CloudAiNlLlmProtoServiceCandidate setFinishReason(java.lang.String finish
139147
return this;
140148
}
141149

150+
/**
151+
* Grounding metadata. Combine with the facts list from response to generate grounding citations
152+
* for this choice.
153+
* @return value or {@code null} for none
154+
*/
155+
public LearningGenaiRootGroundingMetadata getGroundingMetadata() {
156+
return groundingMetadata;
157+
}
158+
159+
/**
160+
* Grounding metadata. Combine with the facts list from response to generate grounding citations
161+
* for this choice.
162+
* @param groundingMetadata groundingMetadata or {@code null} for none
163+
*/
164+
public CloudAiNlLlmProtoServiceCandidate setGroundingMetadata(LearningGenaiRootGroundingMetadata groundingMetadata) {
165+
this.groundingMetadata = groundingMetadata;
166+
return this;
167+
}
168+
142169
/**
143170
* Index of the candidate.
144171
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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.aiplatform.v1.model;
18+
19+
/**
20+
* A condense version of WorldFact (assistant/boq/lamda/factuality/proto/factuality.proto) to
21+
* propagate the essential information about the fact used in factuality to the upstream caller.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CloudAiNlLlmProtoServiceFact extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Query that is used to retrieve this fact.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String query;
39+
40+
/**
41+
* If present, the summary/snippet of the fact.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String summary;
46+
47+
/**
48+
* If present, it refers to the title of this fact.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String title;
53+
54+
/**
55+
* If present, this URL links to the webpage of the fact.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.String url;
60+
61+
/**
62+
* Query that is used to retrieve this fact.
63+
* @return value or {@code null} for none
64+
*/
65+
public java.lang.String getQuery() {
66+
return query;
67+
}
68+
69+
/**
70+
* Query that is used to retrieve this fact.
71+
* @param query query or {@code null} for none
72+
*/
73+
public CloudAiNlLlmProtoServiceFact setQuery(java.lang.String query) {
74+
this.query = query;
75+
return this;
76+
}
77+
78+
/**
79+
* If present, the summary/snippet of the fact.
80+
* @return value or {@code null} for none
81+
*/
82+
public java.lang.String getSummary() {
83+
return summary;
84+
}
85+
86+
/**
87+
* If present, the summary/snippet of the fact.
88+
* @param summary summary or {@code null} for none
89+
*/
90+
public CloudAiNlLlmProtoServiceFact setSummary(java.lang.String summary) {
91+
this.summary = summary;
92+
return this;
93+
}
94+
95+
/**
96+
* If present, it refers to the title of this fact.
97+
* @return value or {@code null} for none
98+
*/
99+
public java.lang.String getTitle() {
100+
return title;
101+
}
102+
103+
/**
104+
* If present, it refers to the title of this fact.
105+
* @param title title or {@code null} for none
106+
*/
107+
public CloudAiNlLlmProtoServiceFact setTitle(java.lang.String title) {
108+
this.title = title;
109+
return this;
110+
}
111+
112+
/**
113+
* If present, this URL links to the webpage of the fact.
114+
* @return value or {@code null} for none
115+
*/
116+
public java.lang.String getUrl() {
117+
return url;
118+
}
119+
120+
/**
121+
* If present, this URL links to the webpage of the fact.
122+
* @param url url or {@code null} for none
123+
*/
124+
public CloudAiNlLlmProtoServiceFact setUrl(java.lang.String url) {
125+
this.url = url;
126+
return this;
127+
}
128+
129+
@Override
130+
public CloudAiNlLlmProtoServiceFact set(String fieldName, Object value) {
131+
return (CloudAiNlLlmProtoServiceFact) super.set(fieldName, value);
132+
}
133+
134+
@Override
135+
public CloudAiNlLlmProtoServiceFact clone() {
136+
return (CloudAiNlLlmProtoServiceFact) super.clone();
137+
}
138+
139+
}

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiNlLlmProtoServiceGenerateMultiModalResponse.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ public final class CloudAiNlLlmProtoServiceGenerateMultiModalResponse extends co
5050
@com.google.api.client.util.Key
5151
private CloudAiNlLlmProtoServiceMessageMetadata debugMetadata;
5252

53+
/**
54+
* External facts retrieved for factuality/grounding.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.util.List<CloudAiNlLlmProtoServiceFact> facts;
59+
60+
static {
61+
// hack to force ProGuard to consider CloudAiNlLlmProtoServiceFact used, since otherwise it would be stripped out
62+
// see https://github.com/google/google-api-java-client/issues/543
63+
com.google.api.client.util.Data.nullOf(CloudAiNlLlmProtoServiceFact.class);
64+
}
65+
5366
/**
5467
* Content filter results for a prompt sent in the request. Note: Sent only in the first stream
5568
* chunk. Only happens when no candidates were generated due to content violations.
@@ -108,6 +121,23 @@ public CloudAiNlLlmProtoServiceGenerateMultiModalResponse setDebugMetadata(Cloud
108121
return this;
109122
}
110123

124+
/**
125+
* External facts retrieved for factuality/grounding.
126+
* @return value or {@code null} for none
127+
*/
128+
public java.util.List<CloudAiNlLlmProtoServiceFact> getFacts() {
129+
return facts;
130+
}
131+
132+
/**
133+
* External facts retrieved for factuality/grounding.
134+
* @param facts facts or {@code null} for none
135+
*/
136+
public CloudAiNlLlmProtoServiceGenerateMultiModalResponse setFacts(java.util.List<CloudAiNlLlmProtoServiceFact> facts) {
137+
this.facts = facts;
138+
return this;
139+
}
140+
111141
/**
112142
* Content filter results for a prompt sent in the request. Note: Sent only in the first stream
113143
* chunk. Only happens when no candidates were generated due to content violations.

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiNlLlmProtoServicePartVideoMetadata.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public final class CloudAiNlLlmProtoServicePartVideoMetadata extends com.google.
3636
@com.google.api.client.util.Key
3737
private String endOffset;
3838

39+
/**
40+
* Internal only model level metadata.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata modelLevelMetaData;
45+
3946
/**
4047
* The start offset of the video.
4148
* The value may be {@code null}.
@@ -60,6 +67,23 @@ public CloudAiNlLlmProtoServicePartVideoMetadata setEndOffset(String endOffset)
6067
return this;
6168
}
6269

70+
/**
71+
* Internal only model level metadata.
72+
* @return value or {@code null} for none
73+
*/
74+
public CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata getModelLevelMetaData() {
75+
return modelLevelMetaData;
76+
}
77+
78+
/**
79+
* Internal only model level metadata.
80+
* @param modelLevelMetaData modelLevelMetaData or {@code null} for none
81+
*/
82+
public CloudAiNlLlmProtoServicePartVideoMetadata setModelLevelMetaData(CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata modelLevelMetaData) {
83+
this.modelLevelMetaData = modelLevelMetaData;
84+
return this;
85+
}
86+
6387
/**
6488
* The start offset of the video.
6589
* @return value or {@code null} for none

0 commit comments

Comments
 (0)