Skip to content

Commit 1bb121a

Browse files
1 parent 86b27e2 commit 1bb121a

File tree

8 files changed

+198
-12
lines changed

8 files changed

+198
-12
lines changed

clients/google-api-services-firebaseml/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
9393
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
95-
<link>https://googleapis.dev/java/google-api-client/2.7.1/</link>
95+
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>
9797
</configuration>
9898
</plugin>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.google.api-client</groupId>
127127
<artifactId>google-api-client</artifactId>
128-
<version>2.7.1</version>
128+
<version>2.7.2</version>
129129
</dependency>
130130
</dependencies>
131131

clients/google-api-services-firebaseml/v1beta2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
9393
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
95-
<link>https://googleapis.dev/java/google-api-client/2.7.1/</link>
95+
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>
9797
</configuration>
9898
</plugin>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.google.api-client</groupId>
127127
<artifactId>google-api-client</artifactId>
128-
<version>2.7.1</version>
128+
<version>2.7.2</version>
129129
</dependency>
130130
</dependencies>
131131

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

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1CountTokensResponse.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 GoogleCloudAiplatformV1beta1CountTokensResponse 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<GoogleCloudAiplatformV1beta1ModalityTokenCount> 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 GoogleCloudAiplatformV1beta1CountTokensResponse extends com.g
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<GoogleCloudAiplatformV1beta1ModalityTokenCount> 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 GoogleCloudAiplatformV1beta1CountTokensResponse setPromptTokensDetails(java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> 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-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata.java

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

32+
/**
33+
* Output only. List of modalities of the cached content in the request input.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> cacheTokensDetails;
38+
3239
/**
3340
* Output only. Number of tokens in the cached part in the input (the cached content).
3441
* The value may be {@code null}.
@@ -43,6 +50,13 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetad
4350
@com.google.api.client.util.Key
4451
private java.lang.Integer candidatesTokenCount;
4552

53+
/**
54+
* Output only. List of modalities that were returned in the response.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> candidatesTokensDetails;
59+
4660
/**
4761
* Number of tokens in the request. When `cached_content` is set, this is still the total
4862
* effective prompt size meaning this includes the number of tokens in the cached content.
@@ -51,13 +65,37 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetad
5165
@com.google.api.client.util.Key
5266
private java.lang.Integer promptTokenCount;
5367

68+
/**
69+
* Output only. List of modalities that were processed in the request input.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> promptTokensDetails;
74+
5475
/**
5576
* Total token count for prompt and response candidates.
5677
* The value may be {@code null}.
5778
*/
5879
@com.google.api.client.util.Key
5980
private java.lang.Integer totalTokenCount;
6081

82+
/**
83+
* Output only. List of modalities of the cached content in the request input.
84+
* @return value or {@code null} for none
85+
*/
86+
public java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> getCacheTokensDetails() {
87+
return cacheTokensDetails;
88+
}
89+
90+
/**
91+
* Output only. List of modalities of the cached content in the request input.
92+
* @param cacheTokensDetails cacheTokensDetails or {@code null} for none
93+
*/
94+
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setCacheTokensDetails(java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> cacheTokensDetails) {
95+
this.cacheTokensDetails = cacheTokensDetails;
96+
return this;
97+
}
98+
6199
/**
62100
* Output only. Number of tokens in the cached part in the input (the cached content).
63101
* @return value or {@code null} for none
@@ -92,6 +130,23 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setCandi
92130
return this;
93131
}
94132

133+
/**
134+
* Output only. List of modalities that were returned in the response.
135+
* @return value or {@code null} for none
136+
*/
137+
public java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> getCandidatesTokensDetails() {
138+
return candidatesTokensDetails;
139+
}
140+
141+
/**
142+
* Output only. List of modalities that were returned in the response.
143+
* @param candidatesTokensDetails candidatesTokensDetails or {@code null} for none
144+
*/
145+
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setCandidatesTokensDetails(java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> candidatesTokensDetails) {
146+
this.candidatesTokensDetails = candidatesTokensDetails;
147+
return this;
148+
}
149+
95150
/**
96151
* Number of tokens in the request. When `cached_content` is set, this is still the total
97152
* effective prompt size meaning this includes the number of tokens in the cached content.
@@ -111,6 +166,23 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setPromp
111166
return this;
112167
}
113168

169+
/**
170+
* Output only. List of modalities that were processed in the request input.
171+
* @return value or {@code null} for none
172+
*/
173+
public java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> getPromptTokensDetails() {
174+
return promptTokensDetails;
175+
}
176+
177+
/**
178+
* Output only. List of modalities that were processed in the request input.
179+
* @param promptTokensDetails promptTokensDetails or {@code null} for none
180+
*/
181+
public GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata setPromptTokensDetails(java.util.List<GoogleCloudAiplatformV1beta1ModalityTokenCount> promptTokensDetails) {
182+
this.promptTokensDetails = promptTokensDetails;
183+
return this;
184+
}
185+
114186
/**
115187
* Total token count for prompt and response candidates.
116188
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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+
* Represents token counting info for a single modality.
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 GoogleCloudAiplatformV1beta1ModalityTokenCount extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The modality associated with this token count.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String modality;
38+
39+
/**
40+
* Number of tokens.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Integer tokenCount;
45+
46+
/**
47+
* The modality associated with this token count.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.String getModality() {
51+
return modality;
52+
}
53+
54+
/**
55+
* The modality associated with this token count.
56+
* @param modality modality or {@code null} for none
57+
*/
58+
public GoogleCloudAiplatformV1beta1ModalityTokenCount setModality(java.lang.String modality) {
59+
this.modality = modality;
60+
return this;
61+
}
62+
63+
/**
64+
* Number of tokens.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.Integer getTokenCount() {
68+
return tokenCount;
69+
}
70+
71+
/**
72+
* Number of tokens.
73+
* @param tokenCount tokenCount or {@code null} for none
74+
*/
75+
public GoogleCloudAiplatformV1beta1ModalityTokenCount setTokenCount(java.lang.Integer tokenCount) {
76+
this.tokenCount = tokenCount;
77+
return this;
78+
}
79+
80+
@Override
81+
public GoogleCloudAiplatformV1beta1ModalityTokenCount set(String fieldName, Object value) {
82+
return (GoogleCloudAiplatformV1beta1ModalityTokenCount) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GoogleCloudAiplatformV1beta1ModalityTokenCount clone() {
87+
return (GoogleCloudAiplatformV1beta1ModalityTokenCount) super.clone();
88+
}
89+
90+
}

clients/google-api-services-firebaseml/v2beta/2.0.0/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-firebaseml</artifactId>
11-
<version>v2beta-rev20250120-2.0.0</version>
12-
<name>Firebase ML API v2beta-rev20250120-2.0.0</name>
11+
<version>v2beta-rev20250122-2.0.0</version>
12+
<name>Firebase ML API v2beta-rev20250122-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>
@@ -92,7 +92,7 @@
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
9393
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
95-
<link>https://googleapis.dev/java/google-api-client/2.7.1/</link>
95+
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>
9797
</configuration>
9898
</plugin>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.google.api-client</groupId>
127127
<artifactId>google-api-client</artifactId>
128-
<version>2.7.1</version>
128+
<version>2.7.2</version>
129129
</dependency>
130130
</dependencies>
131131

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

0 commit comments

Comments
 (0)