Skip to content

Commit 54fccb2

Browse files
1 parent a35df9d commit 54fccb2

24 files changed

+1147
-24
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-rev20250131-2.0.0</version>
25+
<version>v1-rev20250205-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-rev20250131-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20250205-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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23655,7 +23655,8 @@ public Patch setName(java.lang.String name) {
2365523655
* not the full request. A field will be overwritten if it is in the mask. If the user
2365623656
* does not provide a mask then only the non-empty fields present in the request will be
2365723657
* overwritten. Set the update_mask to `*` to override all fields. Updatable fields: *
23658-
* `labels` * `description` * `big_query` * `big_query.entity_id_columns`
23658+
* `labels` * `description` * `big_query` * `big_query.entity_id_columns` *
23659+
* `service_agent_type`
2365923660
*/
2366023661
@com.google.api.client.util.Key
2366123662
private String updateMask;
@@ -23665,7 +23666,7 @@ public Patch setName(java.lang.String name) {
2366523666
A field will be overwritten if it is in the mask. If the user does not provide a mask then only the
2366623667
non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override
2366723668
all fields. Updatable fields: * `labels` * `description` * `big_query` *
23668-
`big_query.entity_id_columns`
23669+
`big_query.entity_id_columns` * `service_agent_type`
2366923670
*/
2367023671
public String getUpdateMask() {
2367123672
return updateMask;
@@ -23677,7 +23678,8 @@ public String getUpdateMask() {
2367723678
* not the full request. A field will be overwritten if it is in the mask. If the user
2367823679
* does not provide a mask then only the non-empty fields present in the request will be
2367923680
* overwritten. Set the update_mask to `*` to override all fields. Updatable fields: *
23680-
* `labels` * `description` * `big_query` * `big_query.entity_id_columns`
23681+
* `labels` * `description` * `big_query` * `big_query.entity_id_columns` *
23682+
* `service_agent_type`
2368123683
*/
2368223684
public Patch setUpdateMask(String updateMask) {
2368323685
this.updateMask = updateMask;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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+
* The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset.
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 Vertex AI 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 GoogleCloudAiplatformV1AutoraterConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use.
34+
* Publisher model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
35+
* endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String autoraterModel;
40+
41+
/**
42+
* Optional. Whether to flip the candidate and baseline responses. This is only applicable to the
43+
* pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and
44+
* PairwiseMetricSpec.baseline_response_field_name. When rendering
45+
* PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped
46+
* for half of the samples to reduce bias.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.Boolean flipEnabled;
51+
52+
/**
53+
* Optional. Number of samples for each instance in the dataset. If not specified, the default is
54+
* 4. Minimum value is 1, maximum value is 32.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.Integer samplingCount;
59+
60+
/**
61+
* Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use.
62+
* Publisher model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
63+
* endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
64+
* @return value or {@code null} for none
65+
*/
66+
public java.lang.String getAutoraterModel() {
67+
return autoraterModel;
68+
}
69+
70+
/**
71+
* Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use.
72+
* Publisher model format: `projects/{project}/locations/{location}/publishers/models` Tuned model
73+
* endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
74+
* @param autoraterModel autoraterModel or {@code null} for none
75+
*/
76+
public GoogleCloudAiplatformV1AutoraterConfig setAutoraterModel(java.lang.String autoraterModel) {
77+
this.autoraterModel = autoraterModel;
78+
return this;
79+
}
80+
81+
/**
82+
* Optional. Whether to flip the candidate and baseline responses. This is only applicable to the
83+
* pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and
84+
* PairwiseMetricSpec.baseline_response_field_name. When rendering
85+
* PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped
86+
* for half of the samples to reduce bias.
87+
* @return value or {@code null} for none
88+
*/
89+
public java.lang.Boolean getFlipEnabled() {
90+
return flipEnabled;
91+
}
92+
93+
/**
94+
* Optional. Whether to flip the candidate and baseline responses. This is only applicable to the
95+
* pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and
96+
* PairwiseMetricSpec.baseline_response_field_name. When rendering
97+
* PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped
98+
* for half of the samples to reduce bias.
99+
* @param flipEnabled flipEnabled or {@code null} for none
100+
*/
101+
public GoogleCloudAiplatformV1AutoraterConfig setFlipEnabled(java.lang.Boolean flipEnabled) {
102+
this.flipEnabled = flipEnabled;
103+
return this;
104+
}
105+
106+
/**
107+
* Optional. Number of samples for each instance in the dataset. If not specified, the default is
108+
* 4. Minimum value is 1, maximum value is 32.
109+
* @return value or {@code null} for none
110+
*/
111+
public java.lang.Integer getSamplingCount() {
112+
return samplingCount;
113+
}
114+
115+
/**
116+
* Optional. Number of samples for each instance in the dataset. If not specified, the default is
117+
* 4. Minimum value is 1, maximum value is 32.
118+
* @param samplingCount samplingCount or {@code null} for none
119+
*/
120+
public GoogleCloudAiplatformV1AutoraterConfig setSamplingCount(java.lang.Integer samplingCount) {
121+
this.samplingCount = samplingCount;
122+
return this;
123+
}
124+
125+
@Override
126+
public GoogleCloudAiplatformV1AutoraterConfig set(String fieldName, Object value) {
127+
return (GoogleCloudAiplatformV1AutoraterConfig) super.set(fieldName, value);
128+
}
129+
130+
@Override
131+
public GoogleCloudAiplatformV1AutoraterConfig clone() {
132+
return (GoogleCloudAiplatformV1AutoraterConfig) super.clone();
133+
}
134+
135+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Autorater config used for evaluation.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudAiplatformV1AutoraterConfig autoraterConfig;
38+
3239
/**
3340
* Instances and metric spec for bleu metric.
3441
* The value may be {@code null}.
@@ -247,6 +254,23 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.g
247254
@com.google.api.client.util.Key
248255
private GoogleCloudAiplatformV1TrajectorySingleToolUseInput trajectorySingleToolUseInput;
249256

257+
/**
258+
* Optional. Autorater config used for evaluation.
259+
* @return value or {@code null} for none
260+
*/
261+
public GoogleCloudAiplatformV1AutoraterConfig getAutoraterConfig() {
262+
return autoraterConfig;
263+
}
264+
265+
/**
266+
* Optional. Autorater config used for evaluation.
267+
* @param autoraterConfig autoraterConfig or {@code null} for none
268+
*/
269+
public GoogleCloudAiplatformV1EvaluateInstancesRequest setAutoraterConfig(GoogleCloudAiplatformV1AutoraterConfig autoraterConfig) {
270+
this.autoraterConfig = autoraterConfig;
271+
return this;
272+
}
273+
250274
/**
251275
* Instances and metric spec for bleu metric.
252276
* @return value or {@code null} for none

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public final class GoogleCloudAiplatformV1MachineSpec extends com.google.api.cli
5656
@com.google.api.client.util.Key
5757
private java.lang.String machineType;
5858

59+
/**
60+
* Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private java.lang.Integer multihostGpuNodeCount;
65+
5966
/**
6067
* Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
6168
* The value may be {@code null}.
@@ -134,6 +141,23 @@ public GoogleCloudAiplatformV1MachineSpec setMachineType(java.lang.String machin
134141
return this;
135142
}
136143

144+
/**
145+
* Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
146+
* @return value or {@code null} for none
147+
*/
148+
public java.lang.Integer getMultihostGpuNodeCount() {
149+
return multihostGpuNodeCount;
150+
}
151+
152+
/**
153+
* Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
154+
* @param multihostGpuNodeCount multihostGpuNodeCount or {@code null} for none
155+
*/
156+
public GoogleCloudAiplatformV1MachineSpec setMultihostGpuNodeCount(java.lang.Integer multihostGpuNodeCount) {
157+
this.multihostGpuNodeCount = multihostGpuNodeCount;
158+
return this;
159+
}
160+
137161
/**
138162
* Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
139163
* @return value or {@code null} for none

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public final class GoogleCloudAiplatformV1ModelExportFormat extends com.google.a
4242
* tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A
4343
* [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in
4444
* Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model
45-
* that was uploaded or trained by custom code.
45+
* that was uploaded or trained by custom code. * `genie` A tuned Model Garden model.
4646
* The value may be {@code null}.
4747
*/
4848
@com.google.api.client.util.Key
@@ -71,7 +71,7 @@ public GoogleCloudAiplatformV1ModelExportFormat setExportableContents(java.util.
7171
* tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A
7272
* [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in
7373
* Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model
74-
* that was uploaded or trained by custom code.
74+
* that was uploaded or trained by custom code. * `genie` A tuned Model Garden model.
7575
* @return value or {@code null} for none
7676
*/
7777
public java.lang.String getId() {
@@ -84,7 +84,7 @@ public java.lang.String getId() {
8484
* tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A
8585
* [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in
8686
* Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model
87-
* that was uploaded or trained by custom code.
87+
* that was uploaded or trained by custom code. * `genie` A tuned Model Garden model.
8888
* @param id id or {@code null} for none
8989
*/
9090
public GoogleCloudAiplatformV1ModelExportFormat setId(java.lang.String id) {

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,68 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudAiplatformV1PairwiseMetricSpec extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. The field name of the baseline response.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String baselineResponseFieldName;
38+
39+
/**
40+
* Optional. The field name of the candidate response.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String candidateResponseFieldName;
45+
3246
/**
3347
* Required. Metric prompt template for pairwise metric.
3448
* The value may be {@code null}.
3549
*/
3650
@com.google.api.client.util.Key
3751
private java.lang.String metricPromptTemplate;
3852

53+
/**
54+
* Optional. System instructions for pairwise metric.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String systemInstruction;
59+
60+
/**
61+
* Optional. The field name of the baseline response.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getBaselineResponseFieldName() {
65+
return baselineResponseFieldName;
66+
}
67+
68+
/**
69+
* Optional. The field name of the baseline response.
70+
* @param baselineResponseFieldName baselineResponseFieldName or {@code null} for none
71+
*/
72+
public GoogleCloudAiplatformV1PairwiseMetricSpec setBaselineResponseFieldName(java.lang.String baselineResponseFieldName) {
73+
this.baselineResponseFieldName = baselineResponseFieldName;
74+
return this;
75+
}
76+
77+
/**
78+
* Optional. The field name of the candidate response.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.String getCandidateResponseFieldName() {
82+
return candidateResponseFieldName;
83+
}
84+
85+
/**
86+
* Optional. The field name of the candidate response.
87+
* @param candidateResponseFieldName candidateResponseFieldName or {@code null} for none
88+
*/
89+
public GoogleCloudAiplatformV1PairwiseMetricSpec setCandidateResponseFieldName(java.lang.String candidateResponseFieldName) {
90+
this.candidateResponseFieldName = candidateResponseFieldName;
91+
return this;
92+
}
93+
3994
/**
4095
* Required. Metric prompt template for pairwise metric.
4196
* @return value or {@code null} for none
@@ -53,6 +108,23 @@ public GoogleCloudAiplatformV1PairwiseMetricSpec setMetricPromptTemplate(java.la
53108
return this;
54109
}
55110

111+
/**
112+
* Optional. System instructions for pairwise metric.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.String getSystemInstruction() {
116+
return systemInstruction;
117+
}
118+
119+
/**
120+
* Optional. System instructions for pairwise metric.
121+
* @param systemInstruction systemInstruction or {@code null} for none
122+
*/
123+
public GoogleCloudAiplatformV1PairwiseMetricSpec setSystemInstruction(java.lang.String systemInstruction) {
124+
this.systemInstruction = systemInstruction;
125+
return this;
126+
}
127+
56128
@Override
57129
public GoogleCloudAiplatformV1PairwiseMetricSpec set(String fieldName, Object value) {
58130
return (GoogleCloudAiplatformV1PairwiseMetricSpec) super.set(fieldName, value);

0 commit comments

Comments
 (0)