Skip to content

Commit d079411

Browse files
1 parent c5bffcd commit d079411

10 files changed

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

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ public final class GoogleCloudAiplatformV1beta1Candidate extends com.google.api.
8080
@com.google.api.client.util.Key
8181
private java.lang.Integer index;
8282

83+
/**
84+
* Output only. Log-likelihood scores for the response tokens and top tokens
85+
* The value may be {@code null}.
86+
*/
87+
@com.google.api.client.util.Key
88+
private GoogleCloudAiplatformV1beta1LogprobsResult logprobsResult;
89+
8390
/**
8491
* Output only. List of ratings for the safety of a response candidate. There is at most one
8592
* rating per category.
@@ -211,6 +218,23 @@ public GoogleCloudAiplatformV1beta1Candidate setIndex(java.lang.Integer index) {
211218
return this;
212219
}
213220

221+
/**
222+
* Output only. Log-likelihood scores for the response tokens and top tokens
223+
* @return value or {@code null} for none
224+
*/
225+
public GoogleCloudAiplatformV1beta1LogprobsResult getLogprobsResult() {
226+
return logprobsResult;
227+
}
228+
229+
/**
230+
* Output only. Log-likelihood scores for the response tokens and top tokens
231+
* @param logprobsResult logprobsResult or {@code null} for none
232+
*/
233+
public GoogleCloudAiplatformV1beta1Candidate setLogprobsResult(GoogleCloudAiplatformV1beta1LogprobsResult logprobsResult) {
234+
this.logprobsResult = logprobsResult;
235+
return this;
236+
}
237+
214238
/**
215239
* Output only. List of ratings for the safety of a response candidate. There is at most one
216240
* rating per category.

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentResponse extends c
4242
com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1Candidate.class);
4343
}
4444

45+
/**
46+
* Output only. The model version used to generate the response.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.String modelVersion;
51+
4552
/**
4653
* Output only. Content filter results for a prompt sent in the request. Note: Sent only in the
4754
* first stream chunk. Only happens when no candidates were generated due to content violations.
@@ -74,6 +81,23 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponse setCandidates(java.ut
7481
return this;
7582
}
7683

84+
/**
85+
* Output only. The model version used to generate the response.
86+
* @return value or {@code null} for none
87+
*/
88+
public java.lang.String getModelVersion() {
89+
return modelVersion;
90+
}
91+
92+
/**
93+
* Output only. The model version used to generate the response.
94+
* @param modelVersion modelVersion or {@code null} for none
95+
*/
96+
public GoogleCloudAiplatformV1beta1GenerateContentResponse setModelVersion(java.lang.String modelVersion) {
97+
this.modelVersion = modelVersion;
98+
return this;
99+
}
100+
77101
/**
78102
* Output only. Content filter results for a prompt sent in the request. Note: Sent only in the
79103
* first stream chunk. Only happens when no candidates were generated due to content violations.

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
4343
@com.google.api.client.util.Key
4444
private java.lang.Float frequencyPenalty;
4545

46+
/**
47+
* Optional. Logit probabilities.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.Integer logprobs;
52+
4653
/**
4754
* Optional. The maximum number of output tokens to generate per message.
4855
* The value may be {@code null}.
@@ -57,6 +64,13 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
5764
@com.google.api.client.util.Key
5865
private java.lang.Float presencePenalty;
5966

67+
/**
68+
* Optional. If true, export the logprobs results in response.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.lang.Boolean responseLogprobs;
73+
6074
/**
6175
* Optional. Output response mimetype of the generated candidate text. Supported mimetype: -
6276
* `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The
@@ -154,6 +168,23 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setFrequencyPenalty(java.lan
154168
return this;
155169
}
156170

171+
/**
172+
* Optional. Logit probabilities.
173+
* @return value or {@code null} for none
174+
*/
175+
public java.lang.Integer getLogprobs() {
176+
return logprobs;
177+
}
178+
179+
/**
180+
* Optional. Logit probabilities.
181+
* @param logprobs logprobs or {@code null} for none
182+
*/
183+
public GoogleCloudAiplatformV1beta1GenerationConfig setLogprobs(java.lang.Integer logprobs) {
184+
this.logprobs = logprobs;
185+
return this;
186+
}
187+
157188
/**
158189
* Optional. The maximum number of output tokens to generate per message.
159190
* @return value or {@code null} for none
@@ -188,6 +219,23 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setPresencePenalty(java.lang
188219
return this;
189220
}
190221

222+
/**
223+
* Optional. If true, export the logprobs results in response.
224+
* @return value or {@code null} for none
225+
*/
226+
public java.lang.Boolean getResponseLogprobs() {
227+
return responseLogprobs;
228+
}
229+
230+
/**
231+
* Optional. If true, export the logprobs results in response.
232+
* @param responseLogprobs responseLogprobs or {@code null} for none
233+
*/
234+
public GoogleCloudAiplatformV1beta1GenerationConfig setResponseLogprobs(java.lang.Boolean responseLogprobs) {
235+
this.responseLogprobs = responseLogprobs;
236+
return this;
237+
}
238+
191239
/**
192240
* Optional. Output response mimetype of the generated candidate text. Supported mimetype: -
193241
* `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
* Logprobs Result
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 GoogleCloudAiplatformV1beta1LogprobsResult extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Length = total number of decoding steps. The chosen candidates may or may not be in
34+
* top_candidates.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultCandidate> chosenCandidates;
39+
40+
/**
41+
* Length = total number of decoding steps.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates> topCandidates;
46+
47+
/**
48+
* Length = total number of decoding steps. The chosen candidates may or may not be in
49+
* top_candidates.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultCandidate> getChosenCandidates() {
53+
return chosenCandidates;
54+
}
55+
56+
/**
57+
* Length = total number of decoding steps. The chosen candidates may or may not be in
58+
* top_candidates.
59+
* @param chosenCandidates chosenCandidates or {@code null} for none
60+
*/
61+
public GoogleCloudAiplatformV1beta1LogprobsResult setChosenCandidates(java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultCandidate> chosenCandidates) {
62+
this.chosenCandidates = chosenCandidates;
63+
return this;
64+
}
65+
66+
/**
67+
* Length = total number of decoding steps.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates> getTopCandidates() {
71+
return topCandidates;
72+
}
73+
74+
/**
75+
* Length = total number of decoding steps.
76+
* @param topCandidates topCandidates or {@code null} for none
77+
*/
78+
public GoogleCloudAiplatformV1beta1LogprobsResult setTopCandidates(java.util.List<GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates> topCandidates) {
79+
this.topCandidates = topCandidates;
80+
return this;
81+
}
82+
83+
@Override
84+
public GoogleCloudAiplatformV1beta1LogprobsResult set(String fieldName, Object value) {
85+
return (GoogleCloudAiplatformV1beta1LogprobsResult) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public GoogleCloudAiplatformV1beta1LogprobsResult clone() {
90+
return (GoogleCloudAiplatformV1beta1LogprobsResult) super.clone();
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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+
* Candidate for the logprobs token and score.
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 GoogleCloudAiplatformV1beta1LogprobsResultCandidate extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The candidate's log probability.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.Float logProbability;
38+
39+
/**
40+
* The candidate’s token string value.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String token;
45+
46+
/**
47+
* The candidate’s token id value.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.Integer tokenId;
52+
53+
/**
54+
* The candidate's log probability.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.Float getLogProbability() {
58+
return logProbability;
59+
}
60+
61+
/**
62+
* The candidate's log probability.
63+
* @param logProbability logProbability or {@code null} for none
64+
*/
65+
public GoogleCloudAiplatformV1beta1LogprobsResultCandidate setLogProbability(java.lang.Float logProbability) {
66+
this.logProbability = logProbability;
67+
return this;
68+
}
69+
70+
/**
71+
* The candidate’s token string value.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.String getToken() {
75+
return token;
76+
}
77+
78+
/**
79+
* The candidate’s token string value.
80+
* @param token token or {@code null} for none
81+
*/
82+
public GoogleCloudAiplatformV1beta1LogprobsResultCandidate setToken(java.lang.String token) {
83+
this.token = token;
84+
return this;
85+
}
86+
87+
/**
88+
* The candidate’s token id value.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.Integer getTokenId() {
92+
return tokenId;
93+
}
94+
95+
/**
96+
* The candidate’s token id value.
97+
* @param tokenId tokenId or {@code null} for none
98+
*/
99+
public GoogleCloudAiplatformV1beta1LogprobsResultCandidate setTokenId(java.lang.Integer tokenId) {
100+
this.tokenId = tokenId;
101+
return this;
102+
}
103+
104+
@Override
105+
public GoogleCloudAiplatformV1beta1LogprobsResultCandidate set(String fieldName, Object value) {
106+
return (GoogleCloudAiplatformV1beta1LogprobsResultCandidate) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public GoogleCloudAiplatformV1beta1LogprobsResultCandidate clone() {
111+
return (GoogleCloudAiplatformV1beta1LogprobsResultCandidate) super.clone();
112+
}
113+
114+
}

0 commit comments

Comments
 (0)