Skip to content

Commit 1e65378

Browse files
1 parent f43593c commit 1e65378

16 files changed

Lines changed: 848 additions & 6 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-rev20260628-2.0.0</version>
25+
<version>v2beta-rev20260726-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-rev20260628-2.0.0'
38+
implementation 'com.google.apis:google-api-services-firebaseml:v2beta-rev20260726-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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+
* The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate
21+
* Part with its own AudioTranscription carrying the speaker_label.
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 Firebase ML 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 GoogleCloudAiplatformV1beta1AudioTranscription extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2").
35+
* Present when diarization is set.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String speakerLabel;
40+
41+
/**
42+
* Required. The transcription text of this audio segment.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String text;
47+
48+
/**
49+
* Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is
50+
* set.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.util.List<GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo> words;
55+
56+
/**
57+
* Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2").
58+
* Present when diarization is set.
59+
* @return value or {@code null} for none
60+
*/
61+
public java.lang.String getSpeakerLabel() {
62+
return speakerLabel;
63+
}
64+
65+
/**
66+
* Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2").
67+
* Present when diarization is set.
68+
* @param speakerLabel speakerLabel or {@code null} for none
69+
*/
70+
public GoogleCloudAiplatformV1beta1AudioTranscription setSpeakerLabel(java.lang.String speakerLabel) {
71+
this.speakerLabel = speakerLabel;
72+
return this;
73+
}
74+
75+
/**
76+
* Required. The transcription text of this audio segment.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.lang.String getText() {
80+
return text;
81+
}
82+
83+
/**
84+
* Required. The transcription text of this audio segment.
85+
* @param text text or {@code null} for none
86+
*/
87+
public GoogleCloudAiplatformV1beta1AudioTranscription setText(java.lang.String text) {
88+
this.text = text;
89+
return this;
90+
}
91+
92+
/**
93+
* Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is
94+
* set.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.util.List<GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo> getWords() {
98+
return words;
99+
}
100+
101+
/**
102+
* Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is
103+
* set.
104+
* @param words words or {@code null} for none
105+
*/
106+
public GoogleCloudAiplatformV1beta1AudioTranscription setWords(java.util.List<GoogleCloudAiplatformV1beta1AudioTranscriptionWordInfo> words) {
107+
this.words = words;
108+
return this;
109+
}
110+
111+
@Override
112+
public GoogleCloudAiplatformV1beta1AudioTranscription set(String fieldName, Object value) {
113+
return (GoogleCloudAiplatformV1beta1AudioTranscription) super.set(fieldName, value);
114+
}
115+
116+
@Override
117+
public GoogleCloudAiplatformV1beta1AudioTranscription clone() {
118+
return (GoogleCloudAiplatformV1beta1AudioTranscription) super.clone();
119+
}
120+
121+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
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 speech recognition (transcription).
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 GoogleCloudAiplatformV1beta1AudioTranscriptionConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. A list of phrases to bias the ASR model towards.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<java.lang.String> adaptationPhrases;
38+
39+
/**
40+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model toward
41+
* recognizing specific terms.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<java.lang.String> customVocabulary;
46+
47+
/**
48+
* Optional. Configures speaker diarization.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean diarization;
53+
54+
/**
55+
* Optional. The model will detect the language automatically.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto languageAuto;
60+
61+
/**
62+
* Optional. Specifies one or more languages in the audio.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints languageHints;
67+
68+
/**
69+
* Optional. Configures word-level timestamp generation.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private java.lang.Boolean wordTimestamp;
74+
75+
/**
76+
* Optional. A list of phrases to bias the ASR model towards.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.util.List<java.lang.String> getAdaptationPhrases() {
80+
return adaptationPhrases;
81+
}
82+
83+
/**
84+
* Optional. A list of phrases to bias the ASR model towards.
85+
* @param adaptationPhrases adaptationPhrases or {@code null} for none
86+
*/
87+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setAdaptationPhrases(java.util.List<java.lang.String> adaptationPhrases) {
88+
this.adaptationPhrases = adaptationPhrases;
89+
return this;
90+
}
91+
92+
/**
93+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model toward
94+
* recognizing specific terms.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.util.List<java.lang.String> getCustomVocabulary() {
98+
return customVocabulary;
99+
}
100+
101+
/**
102+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model toward
103+
* recognizing specific terms.
104+
* @param customVocabulary customVocabulary or {@code null} for none
105+
*/
106+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setCustomVocabulary(java.util.List<java.lang.String> customVocabulary) {
107+
this.customVocabulary = customVocabulary;
108+
return this;
109+
}
110+
111+
/**
112+
* Optional. Configures speaker diarization.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.Boolean getDiarization() {
116+
return diarization;
117+
}
118+
119+
/**
120+
* Optional. Configures speaker diarization.
121+
* @param diarization diarization or {@code null} for none
122+
*/
123+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setDiarization(java.lang.Boolean diarization) {
124+
this.diarization = diarization;
125+
return this;
126+
}
127+
128+
/**
129+
* Optional. The model will detect the language automatically.
130+
* @return value or {@code null} for none
131+
*/
132+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto getLanguageAuto() {
133+
return languageAuto;
134+
}
135+
136+
/**
137+
* Optional. The model will detect the language automatically.
138+
* @param languageAuto languageAuto or {@code null} for none
139+
*/
140+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setLanguageAuto(GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto languageAuto) {
141+
this.languageAuto = languageAuto;
142+
return this;
143+
}
144+
145+
/**
146+
* Optional. Specifies one or more languages in the audio.
147+
* @return value or {@code null} for none
148+
*/
149+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints getLanguageHints() {
150+
return languageHints;
151+
}
152+
153+
/**
154+
* Optional. Specifies one or more languages in the audio.
155+
* @param languageHints languageHints or {@code null} for none
156+
*/
157+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setLanguageHints(GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageHints languageHints) {
158+
this.languageHints = languageHints;
159+
return this;
160+
}
161+
162+
/**
163+
* Optional. Configures word-level timestamp generation.
164+
* @return value or {@code null} for none
165+
*/
166+
public java.lang.Boolean getWordTimestamp() {
167+
return wordTimestamp;
168+
}
169+
170+
/**
171+
* Optional. Configures word-level timestamp generation.
172+
* @param wordTimestamp wordTimestamp or {@code null} for none
173+
*/
174+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig setWordTimestamp(java.lang.Boolean wordTimestamp) {
175+
this.wordTimestamp = wordTimestamp;
176+
return this;
177+
}
178+
179+
@Override
180+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig set(String fieldName, Object value) {
181+
return (GoogleCloudAiplatformV1beta1AudioTranscriptionConfig) super.set(fieldName, value);
182+
}
183+
184+
@Override
185+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfig clone() {
186+
return (GoogleCloudAiplatformV1beta1AudioTranscriptionConfig) super.clone();
187+
}
188+
189+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
* Indicates the language of the audio should be automatically detected.
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 GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto set(String fieldName, Object value) {
34+
return (GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto clone() {
39+
return (GoogleCloudAiplatformV1beta1AudioTranscriptionConfigLanguageAuto) super.clone();
40+
}
41+
42+
}

0 commit comments

Comments
 (0)