Skip to content

Commit b01cf23

Browse files
1 parent 8927820 commit b01cf23

10 files changed

Lines changed: 723 additions & 18 deletions

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
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+
* Configuration for audio-specific output formatting.
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 GoogleCloudAiplatformV1beta1AudioResponseFormat extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3,
34+
* Opus).
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Integer bitRate;
39+
40+
/**
41+
* Optional. Delivery mode for the generated content.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String delivery;
46+
47+
/**
48+
* Optional. The MIME type of the audio output.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String mimeType;
53+
54+
/**
55+
* Optional. Sample rate for the generated audio in Hertz.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.Integer sampleRate;
60+
61+
/**
62+
* Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3,
63+
* Opus).
64+
* @return value or {@code null} for none
65+
*/
66+
public java.lang.Integer getBitRate() {
67+
return bitRate;
68+
}
69+
70+
/**
71+
* Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3,
72+
* Opus).
73+
* @param bitRate bitRate or {@code null} for none
74+
*/
75+
public GoogleCloudAiplatformV1beta1AudioResponseFormat setBitRate(java.lang.Integer bitRate) {
76+
this.bitRate = bitRate;
77+
return this;
78+
}
79+
80+
/**
81+
* Optional. Delivery mode for the generated content.
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getDelivery() {
85+
return delivery;
86+
}
87+
88+
/**
89+
* Optional. Delivery mode for the generated content.
90+
* @param delivery delivery or {@code null} for none
91+
*/
92+
public GoogleCloudAiplatformV1beta1AudioResponseFormat setDelivery(java.lang.String delivery) {
93+
this.delivery = delivery;
94+
return this;
95+
}
96+
97+
/**
98+
* Optional. The MIME type of the audio output.
99+
* @return value or {@code null} for none
100+
*/
101+
public java.lang.String getMimeType() {
102+
return mimeType;
103+
}
104+
105+
/**
106+
* Optional. The MIME type of the audio output.
107+
* @param mimeType mimeType or {@code null} for none
108+
*/
109+
public GoogleCloudAiplatformV1beta1AudioResponseFormat setMimeType(java.lang.String mimeType) {
110+
this.mimeType = mimeType;
111+
return this;
112+
}
113+
114+
/**
115+
* Optional. Sample rate for the generated audio in Hertz.
116+
* @return value or {@code null} for none
117+
*/
118+
public java.lang.Integer getSampleRate() {
119+
return sampleRate;
120+
}
121+
122+
/**
123+
* Optional. Sample rate for the generated audio in Hertz.
124+
* @param sampleRate sampleRate or {@code null} for none
125+
*/
126+
public GoogleCloudAiplatformV1beta1AudioResponseFormat setSampleRate(java.lang.Integer sampleRate) {
127+
this.sampleRate = sampleRate;
128+
return this;
129+
}
130+
131+
@Override
132+
public GoogleCloudAiplatformV1beta1AudioResponseFormat set(String fieldName, Object value) {
133+
return (GoogleCloudAiplatformV1beta1AudioResponseFormat) super.set(fieldName, value);
134+
}
135+
136+
@Override
137+
public GoogleCloudAiplatformV1beta1AudioResponseFormat clone() {
138+
return (GoogleCloudAiplatformV1beta1AudioResponseFormat) super.clone();
139+
}
140+
141+
}

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

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
6666
private java.lang.Float frequencyPenalty;
6767

6868
/**
69-
* Optional. Config for image generation features.
69+
* Optional. Config for image generation features. Deprecated: Use `response_format.image`
70+
* instead.
7071
* The value may be {@code null}.
7172
*/
7273
@com.google.api.client.util.Key
@@ -117,9 +118,16 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
117118
@com.google.api.client.util.Key
118119
private java.lang.Float presencePenalty;
119120

121+
/**
122+
* Optional. New response format field for the model to configure output formatting and delivery.
123+
* The value may be {@code null}.
124+
*/
125+
@com.google.api.client.util.Key
126+
private java.util.List<GoogleCloudAiplatformV1beta1ResponseFormat> responseFormat;
127+
120128
/**
121129
* Optional. When this field is set, response_schema must be omitted and response_mime_type must
122-
* be set to `application/json`.
130+
* be set to `application/json`. Deprecated: Use `response_format` instead.
123131
* The value may be {@code null}.
124132
*/
125133
@com.google.api.client.util.Key
@@ -139,7 +147,7 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
139147
* Optional. The IANA standard MIME type of the response. The model will generate output that
140148
* conforms to this MIME type. Supported values include 'text/plain' (default) and
141149
* 'application/json'. The model needs to be prompted to output the appropriate response type,
142-
* otherwise the behavior is undefined.
150+
* otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
143151
* The value may be {@code null}.
144152
*/
145153
@com.google.api.client.util.Key
@@ -159,7 +167,8 @@ public final class GoogleCloudAiplatformV1beta1GenerationConfig extends com.goog
159167
* conforms to a particular structure. This is useful for generating structured data such as JSON.
160168
* The schema is a subset of the [OpenAPI 3.0 schema
161169
* object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
162-
* also set the `response_mime_type` to `application/json`.
170+
* also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
171+
* instead.
163172
* The value may be {@code null}.
164173
*/
165174
@com.google.api.client.util.Key
@@ -320,15 +329,17 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setFrequencyPenalty(java.lan
320329
}
321330

322331
/**
323-
* Optional. Config for image generation features.
332+
* Optional. Config for image generation features. Deprecated: Use `response_format.image`
333+
* instead.
324334
* @return value or {@code null} for none
325335
*/
326336
public GoogleCloudAiplatformV1beta1ImageConfig getImageConfig() {
327337
return imageConfig;
328338
}
329339

330340
/**
331-
* Optional. Config for image generation features.
341+
* Optional. Config for image generation features. Deprecated: Use `response_format.image`
342+
* instead.
332343
* @param imageConfig imageConfig or {@code null} for none
333344
*/
334345
public GoogleCloudAiplatformV1beta1GenerationConfig setImageConfig(GoogleCloudAiplatformV1beta1ImageConfig imageConfig) {
@@ -441,9 +452,26 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setPresencePenalty(java.lang
441452
return this;
442453
}
443454

455+
/**
456+
* Optional. New response format field for the model to configure output formatting and delivery.
457+
* @return value or {@code null} for none
458+
*/
459+
public java.util.List<GoogleCloudAiplatformV1beta1ResponseFormat> getResponseFormat() {
460+
return responseFormat;
461+
}
462+
463+
/**
464+
* Optional. New response format field for the model to configure output formatting and delivery.
465+
* @param responseFormat responseFormat or {@code null} for none
466+
*/
467+
public GoogleCloudAiplatformV1beta1GenerationConfig setResponseFormat(java.util.List<GoogleCloudAiplatformV1beta1ResponseFormat> responseFormat) {
468+
this.responseFormat = responseFormat;
469+
return this;
470+
}
471+
444472
/**
445473
* Optional. When this field is set, response_schema must be omitted and response_mime_type must
446-
* be set to `application/json`.
474+
* be set to `application/json`. Deprecated: Use `response_format` instead.
447475
* @return value or {@code null} for none
448476
*/
449477
public java.lang.Object getResponseJsonSchema() {
@@ -452,7 +480,7 @@ public java.lang.Object getResponseJsonSchema() {
452480

453481
/**
454482
* Optional. When this field is set, response_schema must be omitted and response_mime_type must
455-
* be set to `application/json`.
483+
* be set to `application/json`. Deprecated: Use `response_format` instead.
456484
* @param responseJsonSchema responseJsonSchema or {@code null} for none
457485
*/
458486
public GoogleCloudAiplatformV1beta1GenerationConfig setResponseJsonSchema(java.lang.Object responseJsonSchema) {
@@ -487,7 +515,7 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setResponseLogprobs(java.lan
487515
* Optional. The IANA standard MIME type of the response. The model will generate output that
488516
* conforms to this MIME type. Supported values include 'text/plain' (default) and
489517
* 'application/json'. The model needs to be prompted to output the appropriate response type,
490-
* otherwise the behavior is undefined.
518+
* otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
491519
* @return value or {@code null} for none
492520
*/
493521
public java.lang.String getResponseMimeType() {
@@ -498,7 +526,7 @@ public java.lang.String getResponseMimeType() {
498526
* Optional. The IANA standard MIME type of the response. The model will generate output that
499527
* conforms to this MIME type. Supported values include 'text/plain' (default) and
500528
* 'application/json'. The model needs to be prompted to output the appropriate response type,
501-
* otherwise the behavior is undefined.
529+
* otherwise the behavior is undefined. Deprecated: Use `response_format` instead.
502530
* @param responseMimeType responseMimeType or {@code null} for none
503531
*/
504532
public GoogleCloudAiplatformV1beta1GenerationConfig setResponseMimeType(java.lang.String responseMimeType) {
@@ -532,7 +560,8 @@ public GoogleCloudAiplatformV1beta1GenerationConfig setResponseModalities(java.u
532560
* conforms to a particular structure. This is useful for generating structured data such as JSON.
533561
* The schema is a subset of the [OpenAPI 3.0 schema
534562
* object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
535-
* also set the `response_mime_type` to `application/json`.
563+
* also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
564+
* instead.
536565
* @return value or {@code null} for none
537566
*/
538567
public GoogleCloudAiplatformV1beta1Schema getResponseSchema() {
@@ -544,7 +573,8 @@ public GoogleCloudAiplatformV1beta1Schema getResponseSchema() {
544573
* conforms to a particular structure. This is useful for generating structured data such as JSON.
545574
* The schema is a subset of the [OpenAPI 3.0 schema
546575
* object](https://spec.openapis.org/oas/v3.0.3#schema) object. When this field is set, you must
547-
* also set the `response_mime_type` to `application/json`.
576+
* also set the `response_mime_type` to `application/json`. Deprecated: Use `response_format`
577+
* instead.
548578
* @param responseSchema responseSchema or {@code null} for none
549579
*/
550580
public GoogleCloudAiplatformV1beta1GenerationConfig setResponseSchema(GoogleCloudAiplatformV1beta1Schema responseSchema) {

0 commit comments

Comments
 (0)