Skip to content

Commit a5d8ed5

Browse files
1 parent 87bf2e0 commit a5d8ed5

20 files changed

+1338
-47
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-rev20251101-2.0.0</version>
25+
<version>v1-rev20251114-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-rev20251101-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20251114-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: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52121,6 +52121,208 @@ public InvokeRequest set(String parameterName, Object value) {
5212152121

5212252122
}
5212352123
}
52124+
/**
52125+
* An accessor for creating requests from the Google collection.
52126+
*
52127+
* <p>The typical use is:</p>
52128+
* <pre>
52129+
* {@code Aiplatform aiplatform = new Aiplatform(...);}
52130+
* {@code Aiplatform.Google.List request = aiplatform.google().list(parameters ...)}
52131+
* </pre>
52132+
*
52133+
* @return the resource collection
52134+
*/
52135+
public Google google() {
52136+
return new Google();
52137+
}
52138+
52139+
/**
52140+
* The "google" collection of methods.
52141+
*/
52142+
public class Google {
52143+
52144+
/**
52145+
* An accessor for creating requests from the Science collection.
52146+
*
52147+
* <p>The typical use is:</p>
52148+
* <pre>
52149+
* {@code Aiplatform aiplatform = new Aiplatform(...);}
52150+
* {@code Aiplatform.Science.List request = aiplatform.science().list(parameters ...)}
52151+
* </pre>
52152+
*
52153+
* @return the resource collection
52154+
*/
52155+
public Science science() {
52156+
return new Science();
52157+
}
52158+
52159+
/**
52160+
* The "science" collection of methods.
52161+
*/
52162+
public class Science {
52163+
52164+
/**
52165+
* Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method,
52166+
* invoke_route_prefix must be set to allow the paths that will be specified in the request.
52167+
*
52168+
* Create a request for the method "science.inference".
52169+
*
52170+
* This request holds the parameters needed by the aiplatform server. After setting any optional
52171+
* parameters, call the {@link Inference#execute()} method to invoke the remote operation.
52172+
*
52173+
* @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
52174+
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
52175+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody}
52176+
* @return the request
52177+
*/
52178+
public Inference inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) throws java.io.IOException {
52179+
Inference result = new Inference(endpoint, content);
52180+
initialize(result);
52181+
return result;
52182+
}
52183+
52184+
public class Inference extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody> {
52185+
52186+
private static final String REST_PATH = "v1/{+endpoint}/science/inference";
52187+
52188+
private final java.util.regex.Pattern ENDPOINT_PATTERN =
52189+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/google$");
52190+
52191+
/**
52192+
* Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this
52193+
* method, invoke_route_prefix must be set to allow the paths that will be specified in the
52194+
* request.
52195+
*
52196+
* Create a request for the method "science.inference".
52197+
*
52198+
* This request holds the parameters needed by the the aiplatform server. After setting any
52199+
* optional parameters, call the {@link Inference#execute()} method to invoke the remote
52200+
* operation. <p> {@link
52201+
* Inference#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
52202+
* must be called to initialize this instance immediately after invoking the constructor. </p>
52203+
*
52204+
* @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format:
52205+
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
52206+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody}
52207+
* @since 1.13
52208+
*/
52209+
protected Inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody content) {
52210+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class);
52211+
this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified.");
52212+
if (!getSuppressPatternChecks()) {
52213+
com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(),
52214+
"Parameter endpoint must conform to the pattern " +
52215+
"^projects/[^/]+/locations/[^/]+/endpoints/google$");
52216+
}
52217+
}
52218+
52219+
@Override
52220+
public Inference set$Xgafv(java.lang.String $Xgafv) {
52221+
return (Inference) super.set$Xgafv($Xgafv);
52222+
}
52223+
52224+
@Override
52225+
public Inference setAccessToken(java.lang.String accessToken) {
52226+
return (Inference) super.setAccessToken(accessToken);
52227+
}
52228+
52229+
@Override
52230+
public Inference setAlt(java.lang.String alt) {
52231+
return (Inference) super.setAlt(alt);
52232+
}
52233+
52234+
@Override
52235+
public Inference setCallback(java.lang.String callback) {
52236+
return (Inference) super.setCallback(callback);
52237+
}
52238+
52239+
@Override
52240+
public Inference setFields(java.lang.String fields) {
52241+
return (Inference) super.setFields(fields);
52242+
}
52243+
52244+
@Override
52245+
public Inference setKey(java.lang.String key) {
52246+
return (Inference) super.setKey(key);
52247+
}
52248+
52249+
@Override
52250+
public Inference setOauthToken(java.lang.String oauthToken) {
52251+
return (Inference) super.setOauthToken(oauthToken);
52252+
}
52253+
52254+
@Override
52255+
public Inference setPrettyPrint(java.lang.Boolean prettyPrint) {
52256+
return (Inference) super.setPrettyPrint(prettyPrint);
52257+
}
52258+
52259+
@Override
52260+
public Inference setQuotaUser(java.lang.String quotaUser) {
52261+
return (Inference) super.setQuotaUser(quotaUser);
52262+
}
52263+
52264+
@Override
52265+
public Inference setUploadType(java.lang.String uploadType) {
52266+
return (Inference) super.setUploadType(uploadType);
52267+
}
52268+
52269+
@Override
52270+
public Inference setUploadProtocol(java.lang.String uploadProtocol) {
52271+
return (Inference) super.setUploadProtocol(uploadProtocol);
52272+
}
52273+
52274+
/**
52275+
* Required. The name of the Endpoint requested to serve the prediction. Format:
52276+
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
52277+
*/
52278+
@com.google.api.client.util.Key
52279+
private java.lang.String endpoint;
52280+
52281+
/** Required. The name of the Endpoint requested to serve the prediction. Format:
52282+
`projects/{project}/locations/{location}/endpoints/{endpoint}`
52283+
*/
52284+
public java.lang.String getEndpoint() {
52285+
return endpoint;
52286+
}
52287+
52288+
/**
52289+
* Required. The name of the Endpoint requested to serve the prediction. Format:
52290+
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
52291+
*/
52292+
public Inference setEndpoint(java.lang.String endpoint) {
52293+
if (!getSuppressPatternChecks()) {
52294+
com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(),
52295+
"Parameter endpoint must conform to the pattern " +
52296+
"^projects/[^/]+/locations/[^/]+/endpoints/google$");
52297+
}
52298+
this.endpoint = endpoint;
52299+
return this;
52300+
}
52301+
52302+
/** ID of the DeployedModel that serves the invoke request. */
52303+
@com.google.api.client.util.Key
52304+
private java.lang.String deployedModelId;
52305+
52306+
/** ID of the DeployedModel that serves the invoke request.
52307+
*/
52308+
public java.lang.String getDeployedModelId() {
52309+
return deployedModelId;
52310+
}
52311+
52312+
/** ID of the DeployedModel that serves the invoke request. */
52313+
public Inference setDeployedModelId(java.lang.String deployedModelId) {
52314+
this.deployedModelId = deployedModelId;
52315+
return this;
52316+
}
52317+
52318+
@Override
52319+
public Inference set(String parameterName, Object value) {
52320+
return (Inference) super.set(parameterName, value);
52321+
}
52322+
}
52323+
52324+
}
52325+
}
5212452326
/**
5212552327
* An accessor for creating requests from the Invoke collection.
5212652328
*

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public final class GoogleCloudAiplatformV1AutoscalingMetricSpec extends com.goog
3434
* Required. The resource metric name. Supported metrics: * For Online Prediction: *
3535
* `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` *
3636
* `aiplatform.googleapis.com/prediction/online/cpu/utilization` *
37-
* `aiplatform.googleapis.com/prediction/online/request_count`
37+
* `aiplatform.googleapis.com/prediction/online/request_count` *
38+
* `pubsub.googleapis.com/subscription/num_undelivered_messages`
3839
* The value may be {@code null}.
3940
*/
4041
@com.google.api.client.util.Key
@@ -53,7 +54,8 @@ public final class GoogleCloudAiplatformV1AutoscalingMetricSpec extends com.goog
5354
* Required. The resource metric name. Supported metrics: * For Online Prediction: *
5455
* `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` *
5556
* `aiplatform.googleapis.com/prediction/online/cpu/utilization` *
56-
* `aiplatform.googleapis.com/prediction/online/request_count`
57+
* `aiplatform.googleapis.com/prediction/online/request_count` *
58+
* `pubsub.googleapis.com/subscription/num_undelivered_messages`
5759
* @return value or {@code null} for none
5860
*/
5961
public java.lang.String getMetricName() {
@@ -64,7 +66,8 @@ public java.lang.String getMetricName() {
6466
* Required. The resource metric name. Supported metrics: * For Online Prediction: *
6567
* `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` *
6668
* `aiplatform.googleapis.com/prediction/online/cpu/utilization` *
67-
* `aiplatform.googleapis.com/prediction/online/request_count`
69+
* `aiplatform.googleapis.com/prediction/online/request_count` *
70+
* `pubsub.googleapis.com/subscription/num_undelivered_messages`
6871
* @param metricName metricName or {@code null} for none
6972
*/
7073
public GoogleCloudAiplatformV1AutoscalingMetricSpec setMetricName(java.lang.String metricName) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public final class GoogleCloudAiplatformV1EvaluationInstance extends com.google.
5959
private GoogleCloudAiplatformV1EvaluationInstanceInstanceData reference;
6060

6161
/**
62-
* Required. Data used to populate placeholder `response` in a metric prompt template.
62+
* Optional. Data used to populate placeholder `response` in a metric prompt template.
6363
* The value may be {@code null}.
6464
*/
6565
@com.google.api.client.util.Key
@@ -143,15 +143,15 @@ public GoogleCloudAiplatformV1EvaluationInstance setReference(GoogleCloudAiplatf
143143
}
144144

145145
/**
146-
* Required. Data used to populate placeholder `response` in a metric prompt template.
146+
* Optional. Data used to populate placeholder `response` in a metric prompt template.
147147
* @return value or {@code null} for none
148148
*/
149149
public GoogleCloudAiplatformV1EvaluationInstanceInstanceData getResponse() {
150150
return response;
151151
}
152152

153153
/**
154-
* Required. Data used to populate placeholder `response` in a metric prompt template.
154+
* Optional. Data used to populate placeholder `response` in a metric prompt template.
155155
* @param response response or {@code null} for none
156156
*/
157157
public GoogleCloudAiplatformV1EvaluationInstance setResponse(GoogleCloudAiplatformV1EvaluationInstanceInstanceData response) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
* Defines data for an application builder.
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 GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Serialized state of the code repository. This string will typically contain a JSON
34+
* representation of the UI's CodeRepositoryService state (files, folders, content, and any
35+
* metadata). The UI is responsible for serialization and deserialization.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String codeRepositoryState;
40+
41+
/**
42+
* Linked resources attached to the application by the user.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource> linkedResources;
47+
48+
/**
49+
* Serialized state of the code repository. This string will typically contain a JSON
50+
* representation of the UI's CodeRepositoryService state (files, folders, content, and any
51+
* metadata). The UI is responsible for serialization and deserialization.
52+
* @return value or {@code null} for none
53+
*/
54+
public java.lang.String getCodeRepositoryState() {
55+
return codeRepositoryState;
56+
}
57+
58+
/**
59+
* Serialized state of the code repository. This string will typically contain a JSON
60+
* representation of the UI's CodeRepositoryService state (files, folders, content, and any
61+
* metadata). The UI is responsible for serialization and deserialization.
62+
* @param codeRepositoryState codeRepositoryState or {@code null} for none
63+
*/
64+
public GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData setCodeRepositoryState(java.lang.String codeRepositoryState) {
65+
this.codeRepositoryState = codeRepositoryState;
66+
return this;
67+
}
68+
69+
/**
70+
* Linked resources attached to the application by the user.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.util.List<GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource> getLinkedResources() {
74+
return linkedResources;
75+
}
76+
77+
/**
78+
* Linked resources attached to the application by the user.
79+
* @param linkedResources linkedResources or {@code null} for none
80+
*/
81+
public GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData setLinkedResources(java.util.List<GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource> linkedResources) {
82+
this.linkedResources = linkedResources;
83+
return this;
84+
}
85+
86+
@Override
87+
public GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData set(String fieldName, Object value) {
88+
return (GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData clone() {
93+
return (GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData) super.clone();
94+
}
95+
96+
}

0 commit comments

Comments
 (0)