Skip to content

Commit 249ec2b

Browse files
1 parent 4e72baa commit 249ec2b

File tree

6 files changed

+157
-9
lines changed

6 files changed

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class GoogleCloudAiplatformV1beta1FunctionDeclaration extends com.g
4343

4444
/**
4545
* Required. The name of the function to call. Must start with a letter or an underscore. Must be
46-
* a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
46+
* a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 64.
4747
* The value may be {@code null}.
4848
*/
4949
@com.google.api.client.util.Key
@@ -111,7 +111,7 @@ public GoogleCloudAiplatformV1beta1FunctionDeclaration setDescription(java.lang.
111111

112112
/**
113113
* Required. The name of the function to call. Must start with a letter or an underscore. Must be
114-
* a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
114+
* a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 64.
115115
* @return value or {@code null} for none
116116
*/
117117
public java.lang.String getName() {
@@ -120,7 +120,7 @@ public java.lang.String getName() {
120120

121121
/**
122122
* Required. The name of the function to call. Must start with a letter or an underscore. Must be
123-
* a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
123+
* a-z, A-Z, 0-9, or contain underscores, dots, colons and dashes, with a maximum length of 64.
124124
* @param name name or {@code null} for none
125125
*/
126126
public GoogleCloudAiplatformV1beta1FunctionDeclaration setName(java.lang.String name) {
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 configuration for the replicated voice to use.
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 GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The mimetype of the voice sample. Currently only mime_type=audio/pcm is supported,
34+
* which is raw mono 16-bit signed little-endian pcm data, with 24k sampling rate.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String mimeType;
39+
40+
/**
41+
* Optional. The sample of the custom voice.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String voiceSampleAudio;
46+
47+
/**
48+
* Optional. The mimetype of the voice sample. Currently only mime_type=audio/pcm is supported,
49+
* which is raw mono 16-bit signed little-endian pcm data, with 24k sampling rate.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getMimeType() {
53+
return mimeType;
54+
}
55+
56+
/**
57+
* Optional. The mimetype of the voice sample. Currently only mime_type=audio/pcm is supported,
58+
* which is raw mono 16-bit signed little-endian pcm data, with 24k sampling rate.
59+
* @param mimeType mimeType or {@code null} for none
60+
*/
61+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig setMimeType(java.lang.String mimeType) {
62+
this.mimeType = mimeType;
63+
return this;
64+
}
65+
66+
/**
67+
* Optional. The sample of the custom voice.
68+
* @see #decodeVoiceSampleAudio()
69+
* @return value or {@code null} for none
70+
*/
71+
public java.lang.String getVoiceSampleAudio() {
72+
return voiceSampleAudio;
73+
}
74+
75+
/**
76+
* Optional. The sample of the custom voice.
77+
* @see #getVoiceSampleAudio()
78+
* @return Base64 decoded value or {@code null} for none
79+
*
80+
* @since 1.14
81+
*/
82+
public byte[] decodeVoiceSampleAudio() {
83+
return com.google.api.client.util.Base64.decodeBase64(voiceSampleAudio);
84+
}
85+
86+
/**
87+
* Optional. The sample of the custom voice.
88+
* @see #encodeVoiceSampleAudio()
89+
* @param voiceSampleAudio voiceSampleAudio or {@code null} for none
90+
*/
91+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig setVoiceSampleAudio(java.lang.String voiceSampleAudio) {
92+
this.voiceSampleAudio = voiceSampleAudio;
93+
return this;
94+
}
95+
96+
/**
97+
* Optional. The sample of the custom voice.
98+
* @see #setVoiceSampleAudio()
99+
*
100+
* <p>
101+
* The value is encoded Base64 or {@code null} for none.
102+
* </p>
103+
*
104+
* @since 1.14
105+
*/
106+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig encodeVoiceSampleAudio(byte[] voiceSampleAudio) {
107+
this.voiceSampleAudio = com.google.api.client.util.Base64.encodeBase64URLSafeString(voiceSampleAudio);
108+
return this;
109+
}
110+
111+
@Override
112+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig set(String fieldName, Object value) {
113+
return (GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig) super.set(fieldName, value);
114+
}
115+
116+
@Override
117+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig clone() {
118+
return (GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig) super.clone();
119+
}
120+
121+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public final class GoogleCloudAiplatformV1beta1VoiceConfig extends com.google.ap
3636
@com.google.api.client.util.Key
3737
private GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig prebuiltVoiceConfig;
3838

39+
/**
40+
* Optional. The configuration for a replicated voice. This enables users to replicate a voice
41+
* from an audio sample.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig replicatedVoiceConfig;
46+
3947
/**
4048
* The configuration for a prebuilt voice.
4149
* @return value or {@code null} for none
@@ -53,6 +61,25 @@ public GoogleCloudAiplatformV1beta1VoiceConfig setPrebuiltVoiceConfig(GoogleClou
5361
return this;
5462
}
5563

64+
/**
65+
* Optional. The configuration for a replicated voice. This enables users to replicate a voice
66+
* from an audio sample.
67+
* @return value or {@code null} for none
68+
*/
69+
public GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig getReplicatedVoiceConfig() {
70+
return replicatedVoiceConfig;
71+
}
72+
73+
/**
74+
* Optional. The configuration for a replicated voice. This enables users to replicate a voice
75+
* from an audio sample.
76+
* @param replicatedVoiceConfig replicatedVoiceConfig or {@code null} for none
77+
*/
78+
public GoogleCloudAiplatformV1beta1VoiceConfig setReplicatedVoiceConfig(GoogleCloudAiplatformV1beta1ReplicatedVoiceConfig replicatedVoiceConfig) {
79+
this.replicatedVoiceConfig = replicatedVoiceConfig;
80+
return this;
81+
}
82+
5683
@Override
5784
public GoogleCloudAiplatformV1beta1VoiceConfig set(String fieldName, Object value) {
5885
return (GoogleCloudAiplatformV1beta1VoiceConfig) super.set(fieldName, value);

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

Lines changed: 2 additions & 2 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-rev20251116-2.0.0</version>
12-
<name>Firebase ML API v2beta-rev20251116-2.0.0</name>
11+
<version>v2beta-rev20251117-2.0.0</version>
12+
<name>Firebase ML API v2beta-rev20251117-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)