Skip to content

Commit 6a37ab6

Browse files
1 parent 19f0d61 commit 6a37ab6

File tree

12 files changed

+412
-18
lines changed

12 files changed

+412
-18
lines changed

clients/google-api-services-texttospeech/v1/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-texttospeech</artifactId>
25-
<version>v1-rev20260312-2.0.0</version>
25+
<version>v1-rev20260320-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-texttospeech:v1-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20260320-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-texttospeech/v1/2.0.0/com/google/api/services/texttospeech/v1/model/AdvancedVoiceOptions.java

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,22 @@ public final class AdvancedVoiceOptions extends com.google.api.client.json.Gener
4646
private java.lang.Boolean lowLatencyJourneySynthesis;
4747

4848
/**
49-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
49+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
50+
* for Gemini TTS.
5051
* The value may be {@code null}.
5152
*/
5253
@com.google.api.client.util.Key
5354
private java.lang.Boolean relaxSafetyFilters;
5455

56+
/**
57+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
58+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
59+
* safety filter will be disabled by default.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private SafetySettings safetySettings;
64+
5565
/**
5666
* Optional. If true, textnorm will be applied to text input. This feature is enabled by default.
5767
* Only applies for Gemini TTS.
@@ -89,22 +99,45 @@ public AdvancedVoiceOptions setLowLatencyJourneySynthesis(java.lang.Boolean lowL
8999
}
90100

91101
/**
92-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
102+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
103+
* for Gemini TTS.
93104
* @return value or {@code null} for none
94105
*/
95106
public java.lang.Boolean getRelaxSafetyFilters() {
96107
return relaxSafetyFilters;
97108
}
98109

99110
/**
100-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
111+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
112+
* for Gemini TTS.
101113
* @param relaxSafetyFilters relaxSafetyFilters or {@code null} for none
102114
*/
103115
public AdvancedVoiceOptions setRelaxSafetyFilters(java.lang.Boolean relaxSafetyFilters) {
104116
this.relaxSafetyFilters = relaxSafetyFilters;
105117
return this;
106118
}
107119

120+
/**
121+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
122+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
123+
* safety filter will be disabled by default.
124+
* @return value or {@code null} for none
125+
*/
126+
public SafetySettings getSafetySettings() {
127+
return safetySettings;
128+
}
129+
130+
/**
131+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
132+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
133+
* safety filter will be disabled by default.
134+
* @param safetySettings safetySettings or {@code null} for none
135+
*/
136+
public AdvancedVoiceOptions setSafetySettings(SafetySettings safetySettings) {
137+
this.safetySettings = safetySettings;
138+
return this;
139+
}
140+
108141
@Override
109142
public AdvancedVoiceOptions set(String fieldName, Object value) {
110143
return (AdvancedVoiceOptions) super.set(fieldName, value);
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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.texttospeech.v1.model;
18+
19+
/**
20+
* Safety setting for a single harm category.
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 Cloud Text-to-Speech API. For a detailed explanation
24+
* 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 SafetySetting extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The harm category to apply the safety setting to.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String category;
39+
40+
/**
41+
* The harm block threshold for the safety setting.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String threshold;
46+
47+
/**
48+
* The harm category to apply the safety setting to.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getCategory() {
52+
return category;
53+
}
54+
55+
/**
56+
* The harm category to apply the safety setting to.
57+
* @param category category or {@code null} for none
58+
*/
59+
public SafetySetting setCategory(java.lang.String category) {
60+
this.category = category;
61+
return this;
62+
}
63+
64+
/**
65+
* The harm block threshold for the safety setting.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.String getThreshold() {
69+
return threshold;
70+
}
71+
72+
/**
73+
* The harm block threshold for the safety setting.
74+
* @param threshold threshold or {@code null} for none
75+
*/
76+
public SafetySetting setThreshold(java.lang.String threshold) {
77+
this.threshold = threshold;
78+
return this;
79+
}
80+
81+
@Override
82+
public SafetySetting set(String fieldName, Object value) {
83+
return (SafetySetting) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public SafetySetting clone() {
88+
return (SafetySetting) super.clone();
89+
}
90+
91+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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.texttospeech.v1.model;
18+
19+
/**
20+
* Safety settings for the request.
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 Cloud Text-to-Speech API. For a detailed explanation
24+
* 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 SafetySettings extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The safety settings for the request.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<SafetySetting> settings;
39+
40+
static {
41+
// hack to force ProGuard to consider SafetySetting used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(SafetySetting.class);
44+
}
45+
46+
/**
47+
* The safety settings for the request.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.util.List<SafetySetting> getSettings() {
51+
return settings;
52+
}
53+
54+
/**
55+
* The safety settings for the request.
56+
* @param settings settings or {@code null} for none
57+
*/
58+
public SafetySettings setSettings(java.util.List<SafetySetting> settings) {
59+
this.settings = settings;
60+
return this;
61+
}
62+
63+
@Override
64+
public SafetySettings set(String fieldName, Object value) {
65+
return (SafetySettings) super.set(fieldName, value);
66+
}
67+
68+
@Override
69+
public SafetySettings clone() {
70+
return (SafetySettings) super.clone();
71+
}
72+
73+
}

clients/google-api-services-texttospeech/v1/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-texttospeech</artifactId>
11-
<version>v1-rev20260312-2.0.0</version>
12-
<name>Cloud Text-to-Speech API v1-rev20260312-2.0.0</name>
11+
<version>v1-rev20260320-2.0.0</version>
12+
<name>Cloud Text-to-Speech API v1-rev20260320-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-texttospeech/v1/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-texttospeech</artifactId>
25-
<version>v1-rev20260312-2.0.0</version>
25+
<version>v1-rev20260320-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-texttospeech:v1-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20260320-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-texttospeech/v1beta1/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-texttospeech</artifactId>
25-
<version>v1beta1-rev20260312-2.0.0</version>
25+
<version>v1beta1-rev20260320-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-texttospeech:v1beta1-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1beta1-rev20260320-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-texttospeech/v1beta1/2.0.0/com/google/api/services/texttospeech/v1beta1/model/AdvancedVoiceOptions.java

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,22 @@ public final class AdvancedVoiceOptions extends com.google.api.client.json.Gener
4646
private java.lang.Boolean lowLatencyJourneySynthesis;
4747

4848
/**
49-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
49+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
50+
* for Gemini TTS.
5051
* The value may be {@code null}.
5152
*/
5253
@com.google.api.client.util.Key
5354
private java.lang.Boolean relaxSafetyFilters;
5455

56+
/**
57+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
58+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
59+
* safety filter will be disabled by default.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private SafetySettings safetySettings;
64+
5565
/**
5666
* Optional. If true, textnorm will be applied to text input. This feature is enabled by default.
5767
* Only applies for Gemini TTS.
@@ -89,22 +99,45 @@ public AdvancedVoiceOptions setLowLatencyJourneySynthesis(java.lang.Boolean lowL
8999
}
90100

91101
/**
92-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
102+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
103+
* for Gemini TTS.
93104
* @return value or {@code null} for none
94105
*/
95106
public java.lang.Boolean getRelaxSafetyFilters() {
96107
return relaxSafetyFilters;
97108
}
98109

99110
/**
100-
* Optional. Input only. If true, relaxes safety filters for Gemini TTS.
111+
* Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters
112+
* for Gemini TTS.
101113
* @param relaxSafetyFilters relaxSafetyFilters or {@code null} for none
102114
*/
103115
public AdvancedVoiceOptions setRelaxSafetyFilters(java.lang.Boolean relaxSafetyFilters) {
104116
this.relaxSafetyFilters = relaxSafetyFilters;
105117
return this;
106118
}
107119

120+
/**
121+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
122+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
123+
* safety filter will be disabled by default.
124+
* @return value or {@code null} for none
125+
*/
126+
public SafetySettings getSafetySettings() {
127+
return safetySettings;
128+
}
129+
130+
/**
131+
* Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the
132+
* safety setting will be blocked if the harm probability is above the threshold. Otherwise, the
133+
* safety filter will be disabled by default.
134+
* @param safetySettings safetySettings or {@code null} for none
135+
*/
136+
public AdvancedVoiceOptions setSafetySettings(SafetySettings safetySettings) {
137+
this.safetySettings = safetySettings;
138+
return this;
139+
}
140+
108141
@Override
109142
public AdvancedVoiceOptions set(String fieldName, Object value) {
110143
return (AdvancedVoiceOptions) super.set(fieldName, value);

0 commit comments

Comments
 (0)