Skip to content

Commit c85a4e5

Browse files
1 parent 349490d commit c85a4e5

File tree

66 files changed

+4032
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+4032
-37
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-rev20250114-2.0.0</version>
25+
<version>v1-rev20250131-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-rev20250114-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20250131-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: 484 additions & 4 deletions
Large diffs are not rendered by default.

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ public final class GoogleCloudAiplatformV1Blob extends com.google.api.client.jso
3636
@com.google.api.client.util.Key
3737
private java.lang.String data;
3838

39+
/**
40+
* Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs.
41+
* This field is only returned in PromptMessage for prompt management. It is not currently used in
42+
* the Gemini GenerateContent calls.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String displayName;
47+
3948
/**
4049
* Required. The IANA standard MIME type of the source data.
4150
* The value may be {@code null}.
@@ -88,6 +97,27 @@ public GoogleCloudAiplatformV1Blob encodeData(byte[] data) {
8897
return this;
8998
}
9099

100+
/**
101+
* Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs.
102+
* This field is only returned in PromptMessage for prompt management. It is not currently used in
103+
* the Gemini GenerateContent calls.
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getDisplayName() {
107+
return displayName;
108+
}
109+
110+
/**
111+
* Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs.
112+
* This field is only returned in PromptMessage for prompt management. It is not currently used in
113+
* the Gemini GenerateContent calls.
114+
* @param displayName displayName or {@code null} for none
115+
*/
116+
public GoogleCloudAiplatformV1Blob setDisplayName(java.lang.String displayName) {
117+
this.displayName = displayName;
118+
return this;
119+
}
120+
91121
/**
92122
* Required. The IANA standard MIME type of the source data.
93123
* @return value or {@code null} for none

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class GoogleCloudAiplatformV1CachedContent extends com.google.api.c
3737
private java.util.List<GoogleCloudAiplatformV1Content> contents;
3838

3939
/**
40-
* Output only. Creatation time of the cache entry.
40+
* Output only. Creation time of the cache entry.
4141
* The value may be {@code null}.
4242
*/
4343
@com.google.api.client.util.Key
@@ -135,15 +135,15 @@ public GoogleCloudAiplatformV1CachedContent setContents(java.util.List<GoogleClo
135135
}
136136

137137
/**
138-
* Output only. Creatation time of the cache entry.
138+
* Output only. Creation time of the cache entry.
139139
* @return value or {@code null} for none
140140
*/
141141
public String getCreateTime() {
142142
return createTime;
143143
}
144144

145145
/**
146-
* Output only. Creatation time of the cache entry.
146+
* Output only. Creation time of the cache entry.
147147
* @param createTime createTime or {@code null} for none
148148
*/
149149
public GoogleCloudAiplatformV1CachedContent setCreateTime(String createTime) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
* Result of executing the [ExecutableCode]. Always follows a `part` containing the
21+
* [ExecutableCode].
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 GoogleCloudAiplatformV1CodeExecutionResult extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Outcome of the code execution.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String outcome;
39+
40+
/**
41+
* Optional. Contains stdout when code execution is successful, stderr or other description
42+
* otherwise.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String output;
47+
48+
/**
49+
* Required. Outcome of the code execution.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getOutcome() {
53+
return outcome;
54+
}
55+
56+
/**
57+
* Required. Outcome of the code execution.
58+
* @param outcome outcome or {@code null} for none
59+
*/
60+
public GoogleCloudAiplatformV1CodeExecutionResult setOutcome(java.lang.String outcome) {
61+
this.outcome = outcome;
62+
return this;
63+
}
64+
65+
/**
66+
* Optional. Contains stdout when code execution is successful, stderr or other description
67+
* otherwise.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getOutput() {
71+
return output;
72+
}
73+
74+
/**
75+
* Optional. Contains stdout when code execution is successful, stderr or other description
76+
* otherwise.
77+
* @param output output or {@code null} for none
78+
*/
79+
public GoogleCloudAiplatformV1CodeExecutionResult setOutput(java.lang.String output) {
80+
this.output = output;
81+
return this;
82+
}
83+
84+
@Override
85+
public GoogleCloudAiplatformV1CodeExecutionResult set(String fieldName, Object value) {
86+
return (GoogleCloudAiplatformV1CodeExecutionResult) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public GoogleCloudAiplatformV1CodeExecutionResult clone() {
91+
return (GoogleCloudAiplatformV1CodeExecutionResult) super.clone();
92+
}
93+
94+
}

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CountTokensResponse.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 GoogleCloudAiplatformV1CountTokensResponse extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Output only. List of modalities that were processed in the request input.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleCloudAiplatformV1ModalityTokenCount> promptTokensDetails;
38+
3239
/**
3340
* The total number of billable characters counted across all instances from the request.
3441
* The value may be {@code null}.
@@ -43,6 +50,23 @@ public final class GoogleCloudAiplatformV1CountTokensResponse extends com.google
4350
@com.google.api.client.util.Key
4451
private java.lang.Integer totalTokens;
4552

53+
/**
54+
* Output only. List of modalities that were processed in the request input.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.util.List<GoogleCloudAiplatformV1ModalityTokenCount> getPromptTokensDetails() {
58+
return promptTokensDetails;
59+
}
60+
61+
/**
62+
* Output only. List of modalities that were processed in the request input.
63+
* @param promptTokensDetails promptTokensDetails or {@code null} for none
64+
*/
65+
public GoogleCloudAiplatformV1CountTokensResponse setPromptTokensDetails(java.util.List<GoogleCloudAiplatformV1ModalityTokenCount> promptTokensDetails) {
66+
this.promptTokensDetails = promptTokensDetails;
67+
return this;
68+
}
69+
4670
/**
4771
* The total number of billable characters counted across all instances from the request.
4872
* @return value or {@code null} for none

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ public final class GoogleCloudAiplatformV1DeployedModel extends com.google.api.c
164164
@com.google.api.client.util.Key
165165
private java.lang.String sharedResources;
166166

167+
/**
168+
* Optional. Spec for configuring speculative decoding.
169+
* The value may be {@code null}.
170+
*/
171+
@com.google.api.client.util.Key
172+
private GoogleCloudAiplatformV1SpeculativeDecodingSpec speculativeDecodingSpec;
173+
167174
/**
168175
* Output only. Runtime status of the deployed model.
169176
* The value may be {@code null}.
@@ -494,6 +501,23 @@ public GoogleCloudAiplatformV1DeployedModel setSharedResources(java.lang.String
494501
return this;
495502
}
496503

504+
/**
505+
* Optional. Spec for configuring speculative decoding.
506+
* @return value or {@code null} for none
507+
*/
508+
public GoogleCloudAiplatformV1SpeculativeDecodingSpec getSpeculativeDecodingSpec() {
509+
return speculativeDecodingSpec;
510+
}
511+
512+
/**
513+
* Optional. Spec for configuring speculative decoding.
514+
* @param speculativeDecodingSpec speculativeDecodingSpec or {@code null} for none
515+
*/
516+
public GoogleCloudAiplatformV1DeployedModel setSpeculativeDecodingSpec(GoogleCloudAiplatformV1SpeculativeDecodingSpec speculativeDecodingSpec) {
517+
this.speculativeDecodingSpec = speculativeDecodingSpec;
518+
return this;
519+
}
520+
497521
/**
498522
* Output only. Runtime status of the deployed model.
499523
* @return value or {@code null} for none

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ public final class GoogleCloudAiplatformV1Endpoint extends com.google.api.client
117117
@com.google.api.client.util.Key
118118
private java.lang.String etag;
119119

120+
/**
121+
* Optional. Configuration for GenAiAdvancedFeatures. If the endpoint is serving GenAI models,
122+
* advanced features like native RAG integration can be configured. Currently, only Model Garden
123+
* models are supported.
124+
* The value may be {@code null}.
125+
*/
126+
@com.google.api.client.util.Key
127+
private GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig genAiAdvancedFeaturesConfig;
128+
120129
/**
121130
* The labels with user-defined metadata to organize your Endpoints. Label keys and values can be
122131
* no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric
@@ -395,6 +404,27 @@ public GoogleCloudAiplatformV1Endpoint setEtag(java.lang.String etag) {
395404
return this;
396405
}
397406

407+
/**
408+
* Optional. Configuration for GenAiAdvancedFeatures. If the endpoint is serving GenAI models,
409+
* advanced features like native RAG integration can be configured. Currently, only Model Garden
410+
* models are supported.
411+
* @return value or {@code null} for none
412+
*/
413+
public GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig getGenAiAdvancedFeaturesConfig() {
414+
return genAiAdvancedFeaturesConfig;
415+
}
416+
417+
/**
418+
* Optional. Configuration for GenAiAdvancedFeatures. If the endpoint is serving GenAI models,
419+
* advanced features like native RAG integration can be configured. Currently, only Model Garden
420+
* models are supported.
421+
* @param genAiAdvancedFeaturesConfig genAiAdvancedFeaturesConfig or {@code null} for none
422+
*/
423+
public GoogleCloudAiplatformV1Endpoint setGenAiAdvancedFeaturesConfig(GoogleCloudAiplatformV1GenAiAdvancedFeaturesConfig genAiAdvancedFeaturesConfig) {
424+
this.genAiAdvancedFeaturesConfig = genAiAdvancedFeaturesConfig;
425+
return this;
426+
}
427+
398428
/**
399429
* The labels with user-defined metadata to organize your Endpoints. Label keys and values can be
400430
* no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
* Code generated by the model that is meant to be executed, and the result returned to the model.
21+
* Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to
22+
* [Mode.CODE].
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudAiplatformV1ExecutableCode extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. The code to be executed.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String code;
40+
41+
/**
42+
* Required. Programming language of the `code`.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String language;
47+
48+
/**
49+
* Required. The code to be executed.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getCode() {
53+
return code;
54+
}
55+
56+
/**
57+
* Required. The code to be executed.
58+
* @param code code or {@code null} for none
59+
*/
60+
public GoogleCloudAiplatformV1ExecutableCode setCode(java.lang.String code) {
61+
this.code = code;
62+
return this;
63+
}
64+
65+
/**
66+
* Required. Programming language of the `code`.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.lang.String getLanguage() {
70+
return language;
71+
}
72+
73+
/**
74+
* Required. Programming language of the `code`.
75+
* @param language language or {@code null} for none
76+
*/
77+
public GoogleCloudAiplatformV1ExecutableCode setLanguage(java.lang.String language) {
78+
this.language = language;
79+
return this;
80+
}
81+
82+
@Override
83+
public GoogleCloudAiplatformV1ExecutableCode set(String fieldName, Object value) {
84+
return (GoogleCloudAiplatformV1ExecutableCode) super.set(fieldName, value);
85+
}
86+
87+
@Override
88+
public GoogleCloudAiplatformV1ExecutableCode clone() {
89+
return (GoogleCloudAiplatformV1ExecutableCode) super.clone();
90+
}
91+
92+
}

0 commit comments

Comments
 (0)