Skip to content

Commit b061599

Browse files
1 parent 884bb0c commit b061599

18 files changed

+663
-15
lines changed

clients/google-api-services-firebaseml/v2beta/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-firebaseml</artifactId>
25-
<version>v2beta-rev20250223-2.0.0</version>
25+
<version>v2beta-rev20250420-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-firebaseml:v2beta-rev20250223-2.0.0'
38+
implementation 'com.google.apis:google-api-services-firebaseml:v2beta-rev20250420-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1FunctionCall.java

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,21 @@
3232
public final class GoogleCloudAiplatformV1beta1FunctionCall extends com.google.api.client.json.GenericJson {
3333

3434
/**
35-
* Optional. Required. The function parameters and values in JSON object format. See
35+
* Optional. The function parameters and values in JSON object format. See
3636
* [FunctionDeclaration.parameters] for parameter details.
3737
* The value may be {@code null}.
3838
*/
3939
@com.google.api.client.util.Key
4040
private java.util.Map<String, java.lang.Object> args;
4141

42+
/**
43+
* Optional. The unique id of the function call. If populated, the client to execute the
44+
* `function_call` and return the response with the matching `id`.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String id;
49+
4250
/**
4351
* Required. The name of the function to call. Matches [FunctionDeclaration.name].
4452
* The value may be {@code null}.
@@ -47,7 +55,7 @@ public final class GoogleCloudAiplatformV1beta1FunctionCall extends com.google.a
4755
private java.lang.String name;
4856

4957
/**
50-
* Optional. Required. The function parameters and values in JSON object format. See
58+
* Optional. The function parameters and values in JSON object format. See
5159
* [FunctionDeclaration.parameters] for parameter details.
5260
* @return value or {@code null} for none
5361
*/
@@ -56,7 +64,7 @@ public java.util.Map<String, java.lang.Object> getArgs() {
5664
}
5765

5866
/**
59-
* Optional. Required. The function parameters and values in JSON object format. See
67+
* Optional. The function parameters and values in JSON object format. See
6068
* [FunctionDeclaration.parameters] for parameter details.
6169
* @param args args or {@code null} for none
6270
*/
@@ -65,6 +73,25 @@ public GoogleCloudAiplatformV1beta1FunctionCall setArgs(java.util.Map<String, ja
6573
return this;
6674
}
6775

76+
/**
77+
* Optional. The unique id of the function call. If populated, the client to execute the
78+
* `function_call` and return the response with the matching `id`.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.lang.String getId() {
82+
return id;
83+
}
84+
85+
/**
86+
* Optional. The unique id of the function call. If populated, the client to execute the
87+
* `function_call` and return the response with the matching `id`.
88+
* @param id id or {@code null} for none
89+
*/
90+
public GoogleCloudAiplatformV1beta1FunctionCall setId(java.lang.String id) {
91+
this.id = id;
92+
return this;
93+
}
94+
6895
/**
6996
* Required. The name of the function to call. Matches [FunctionDeclaration.name].
7097
* @return value or {@code null} for none

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1FunctionResponse.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleCloudAiplatformV1beta1FunctionResponse extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* Optional. The id of the function call this response is for. Populated by the client to match
37+
* the corresponding function call `id`.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.String id;
42+
3543
/**
3644
* Required. The name of the function to call. Matches [FunctionDeclaration.name] and
3745
* [FunctionCall.name].
@@ -49,6 +57,25 @@ public final class GoogleCloudAiplatformV1beta1FunctionResponse extends com.goog
4957
@com.google.api.client.util.Key
5058
private java.util.Map<String, java.lang.Object> response;
5159

60+
/**
61+
* Optional. The id of the function call this response is for. Populated by the client to match
62+
* the corresponding function call `id`.
63+
* @return value or {@code null} for none
64+
*/
65+
public java.lang.String getId() {
66+
return id;
67+
}
68+
69+
/**
70+
* Optional. The id of the function call this response is for. Populated by the client to match
71+
* the corresponding function call `id`.
72+
* @param id id or {@code null} for none
73+
*/
74+
public GoogleCloudAiplatformV1beta1FunctionResponse setId(java.lang.String id) {
75+
this.id = id;
76+
return this;
77+
}
78+
5279
/**
5380
* Required. The name of the function to call. Matches [FunctionDeclaration.name] and
5481
* [FunctionCall.name].

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetad
7272
@com.google.api.client.util.Key
7373
private java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> promptTokensDetails;
7474

75+
/**
76+
* Output only. Number of tokens present in thoughts output.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.Integer thoughtsTokenCount;
81+
7582
/**
7683
* Output only. Number of tokens present in tool-use prompt(s).
7784
* The value may be {@code null}.
@@ -93,6 +100,14 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetad
93100
@com.google.api.client.util.Key
94101
private java.lang.Integer totalTokenCount;
95102

103+
/**
104+
* Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned
105+
* Throughput quota.
106+
* The value may be {@code null}.
107+
*/
108+
@com.google.api.client.util.Key
109+
private java.lang.String trafficType;
110+
96111
/**
97112
* Output only. List of modalities of the cached content in the request input.
98113
* @return value or {@code null} for none
@@ -197,6 +212,23 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setPromp
197212
return this;
198213
}
199214

215+
/**
216+
* Output only. Number of tokens present in thoughts output.
217+
* @return value or {@code null} for none
218+
*/
219+
public java.lang.Integer getThoughtsTokenCount() {
220+
return thoughtsTokenCount;
221+
}
222+
223+
/**
224+
* Output only. Number of tokens present in thoughts output.
225+
* @param thoughtsTokenCount thoughtsTokenCount or {@code null} for none
226+
*/
227+
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setThoughtsTokenCount(java.lang.Integer thoughtsTokenCount) {
228+
this.thoughtsTokenCount = thoughtsTokenCount;
229+
return this;
230+
}
231+
200232
/**
201233
* Output only. Number of tokens present in tool-use prompt(s).
202234
* @return value or {@code null} for none
@@ -248,6 +280,25 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setTotal
248280
return this;
249281
}
250282

283+
/**
284+
* Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned
285+
* Throughput quota.
286+
* @return value or {@code null} for none
287+
*/
288+
public java.lang.String getTrafficType() {
289+
return trafficType;
290+
}
291+
292+
/**
293+
* Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned
294+
* Throughput quota.
295+
* @param trafficType trafficType or {@code null} for none
296+
*/
297+
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setTrafficType(java.lang.String trafficType) {
298+
this.trafficType = trafficType;
299+
return this;
300+
}
301+
251302
@Override
252303
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata set(String fieldName, Object value) {
253304
return (GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata) super.set(fieldName, value);

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1GenerationConfig.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
7171
@com.google.api.client.util.Key
7272
private java.lang.String mediaResolution;
7373

74+
/**
75+
* Optional. Config for model selection.
76+
* The value may be {@code null}.
77+
*/
78+
@com.google.api.client.util.Key
79+
private GoogleCloudAiplatformV1beta1GenerationConfigModelConfig modelConfig;
80+
7481
/**
7582
* Optional. Positive penalties.
7683
* The value may be {@code null}.
@@ -148,6 +155,14 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
148155
@com.google.api.client.util.Key
149156
private java.lang.Float temperature;
150157

158+
/**
159+
* Optional. Config for thinking features. An error will be returned if this field is set for
160+
* models that don't support thinking.
161+
* The value may be {@code null}.
162+
*/
163+
@com.google.api.client.util.Key
164+
private GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig thinkingConfig;
165+
151166
/**
152167
* Optional. If specified, top-k sampling will be used.
153168
* The value may be {@code null}.
@@ -264,6 +279,23 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setMediaResolution(java.lang
264279
return this;
265280
}
266281

282+
/**
283+
* Optional. Config for model selection.
284+
* @return value or {@code null} for none
285+
*/
286+
public GoogleCloudAiplatformV1beta1GenerationConfigModelConfig getModelConfig() {
287+
return modelConfig;
288+
}
289+
290+
/**
291+
* Optional. Config for model selection.
292+
* @param modelConfig modelConfig or {@code null} for none
293+
*/
294+
public GoogleCloudAiplatformV1beta1GenerationConfig setModelConfig(GoogleCloudAiplatformV1beta1GenerationConfigModelConfig modelConfig) {
295+
this.modelConfig = modelConfig;
296+
return this;
297+
}
298+
267299
/**
268300
* Optional. Positive penalties.
269301
* @return value or {@code null} for none
@@ -448,6 +480,25 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setTemperature(java.lang.Flo
448480
return this;
449481
}
450482

483+
/**
484+
* Optional. Config for thinking features. An error will be returned if this field is set for
485+
* models that don't support thinking.
486+
* @return value or {@code null} for none
487+
*/
488+
public GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig getThinkingConfig() {
489+
return thinkingConfig;
490+
}
491+
492+
/**
493+
* Optional. Config for thinking features. An error will be returned if this field is set for
494+
* models that don't support thinking.
495+
* @param thinkingConfig thinkingConfig or {@code null} for none
496+
*/
497+
public GoogleCloudAiplatformV1beta1GenerationConfig setThinkingConfig(GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig thinkingConfig) {
498+
this.thinkingConfig = thinkingConfig;
499+
return this;
500+
}
501+
451502
/**
452503
* Optional. If specified, top-k sampling will be used.
453504
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.firebaseml.v2beta.model;
18+
19+
/**
20+
* Config for model selection.
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 Firebase ML 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 GoogleCloudAiplatformV1beta1GenerationConfigModelConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Feature selection preference.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String featureSelectionPreference;
38+
39+
/**
40+
* Required. Feature selection preference.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getFeatureSelectionPreference() {
44+
return featureSelectionPreference;
45+
}
46+
47+
/**
48+
* Required. Feature selection preference.
49+
* @param featureSelectionPreference featureSelectionPreference or {@code null} for none
50+
*/
51+
public GoogleCloudAiplatformV1beta1GenerationConfigModelConfig setFeatureSelectionPreference(java.lang.String featureSelectionPreference) {
52+
this.featureSelectionPreference = featureSelectionPreference;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudAiplatformV1beta1GenerationConfigModelConfig set(String fieldName, Object value) {
58+
return (GoogleCloudAiplatformV1beta1GenerationConfigModelConfig) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudAiplatformV1beta1GenerationConfigModelConfig clone() {
63+
return (GoogleCloudAiplatformV1beta1GenerationConfigModelConfig) super.clone();
64+
}
65+
66+
}

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,28 @@
3030
public final class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.
33+
* The model name to use. Only the public LLM models are accepted. See [Supported
34+
* models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-
35+
* reference/inference#supported-models).
3436
* The value may be {@code null}.
3537
*/
3638
@com.google.api.client.util.Key
3739
private java.lang.String modelName;
3840

3941
/**
40-
* The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.
42+
* The model name to use. Only the public LLM models are accepted. See [Supported
43+
* models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-
44+
* reference/inference#supported-models).
4145
* @return value or {@code null} for none
4246
*/
4347
public java.lang.String getModelName() {
4448
return modelName;
4549
}
4650

4751
/**
48-
* The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.
52+
* The model name to use. Only the public LLM models are accepted. See [Supported
53+
* models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-
54+
* reference/inference#supported-models).
4955
* @param modelName modelName or {@code null} for none
5056
*/
5157
public GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode setModelName(java.lang.String modelName) {

0 commit comments

Comments
 (0)