google_cloud_texttospeech_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::ListVoicesRequest {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("ListVoicesRequest");
23 debug_struct.field("language_code", &self.language_code);
24 if !self._unknown_fields.is_empty() {
25 debug_struct.field("_unknown_fields", &self._unknown_fields);
26 }
27 debug_struct.finish()
28 }
29}
30
31impl std::fmt::Debug for super::ListVoicesResponse {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 let mut debug_struct = f.debug_struct("ListVoicesResponse");
34 debug_struct.field("voices", &self.voices);
35 if !self._unknown_fields.is_empty() {
36 debug_struct.field("_unknown_fields", &self._unknown_fields);
37 }
38 debug_struct.finish()
39 }
40}
41
42impl std::fmt::Debug for super::Voice {
43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44 let mut debug_struct = f.debug_struct("Voice");
45 debug_struct.field("language_codes", &self.language_codes);
46 debug_struct.field("name", &self.name);
47 debug_struct.field("ssml_gender", &self.ssml_gender);
48 debug_struct.field("natural_sample_rate_hertz", &self.natural_sample_rate_hertz);
49 if !self._unknown_fields.is_empty() {
50 debug_struct.field("_unknown_fields", &self._unknown_fields);
51 }
52 debug_struct.finish()
53 }
54}
55
56impl std::fmt::Debug for super::AdvancedVoiceOptions {
57 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58 let mut debug_struct = f.debug_struct("AdvancedVoiceOptions");
59 debug_struct.field(
60 "low_latency_journey_synthesis",
61 &self.low_latency_journey_synthesis,
62 );
63 debug_struct.field("relax_safety_filters", &self.relax_safety_filters);
64 debug_struct.field("safety_settings", &self.safety_settings);
65 debug_struct.field("enable_textnorm", &self.enable_textnorm);
66 if !self._unknown_fields.is_empty() {
67 debug_struct.field("_unknown_fields", &self._unknown_fields);
68 }
69 debug_struct.finish()
70 }
71}
72
73impl std::fmt::Debug for super::advanced_voice_options::SafetySetting {
74 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75 let mut debug_struct = f.debug_struct("SafetySetting");
76 debug_struct.field("category", &self.category);
77 debug_struct.field("threshold", &self.threshold);
78 if !self._unknown_fields.is_empty() {
79 debug_struct.field("_unknown_fields", &self._unknown_fields);
80 }
81 debug_struct.finish()
82 }
83}
84
85impl std::fmt::Debug for super::advanced_voice_options::SafetySettings {
86 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87 let mut debug_struct = f.debug_struct("SafetySettings");
88 debug_struct.field("settings", &self.settings);
89 if !self._unknown_fields.is_empty() {
90 debug_struct.field("_unknown_fields", &self._unknown_fields);
91 }
92 debug_struct.finish()
93 }
94}
95
96impl std::fmt::Debug for super::SynthesizeSpeechRequest {
97 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98 let mut debug_struct = f.debug_struct("SynthesizeSpeechRequest");
99 debug_struct.field("input", &self.input);
100 debug_struct.field("voice", &self.voice);
101 debug_struct.field("audio_config", &self.audio_config);
102 debug_struct.field("advanced_voice_options", &self.advanced_voice_options);
103 if !self._unknown_fields.is_empty() {
104 debug_struct.field("_unknown_fields", &self._unknown_fields);
105 }
106 debug_struct.finish()
107 }
108}
109
110impl std::fmt::Debug for super::CustomPronunciationParams {
111 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112 let mut debug_struct = f.debug_struct("CustomPronunciationParams");
113 debug_struct.field("phrase", &self.phrase);
114 debug_struct.field("phonetic_encoding", &self.phonetic_encoding);
115 debug_struct.field("pronunciation", &self.pronunciation);
116 if !self._unknown_fields.is_empty() {
117 debug_struct.field("_unknown_fields", &self._unknown_fields);
118 }
119 debug_struct.finish()
120 }
121}
122
123impl std::fmt::Debug for super::CustomPronunciations {
124 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125 let mut debug_struct = f.debug_struct("CustomPronunciations");
126 debug_struct.field("pronunciations", &self.pronunciations);
127 if !self._unknown_fields.is_empty() {
128 debug_struct.field("_unknown_fields", &self._unknown_fields);
129 }
130 debug_struct.finish()
131 }
132}
133
134impl std::fmt::Debug for super::MultiSpeakerMarkup {
135 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136 let mut debug_struct = f.debug_struct("MultiSpeakerMarkup");
137 debug_struct.field("turns", &self.turns);
138 if !self._unknown_fields.is_empty() {
139 debug_struct.field("_unknown_fields", &self._unknown_fields);
140 }
141 debug_struct.finish()
142 }
143}
144
145impl std::fmt::Debug for super::multi_speaker_markup::Turn {
146 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147 let mut debug_struct = f.debug_struct("Turn");
148 debug_struct.field("speaker", &self.speaker);
149 debug_struct.field("text", &self.text);
150 if !self._unknown_fields.is_empty() {
151 debug_struct.field("_unknown_fields", &self._unknown_fields);
152 }
153 debug_struct.finish()
154 }
155}
156
157impl std::fmt::Debug for super::MultispeakerPrebuiltVoice {
158 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
159 let mut debug_struct = f.debug_struct("MultispeakerPrebuiltVoice");
160 debug_struct.field("speaker_alias", &self.speaker_alias);
161 debug_struct.field("speaker_id", &self.speaker_id);
162 if !self._unknown_fields.is_empty() {
163 debug_struct.field("_unknown_fields", &self._unknown_fields);
164 }
165 debug_struct.finish()
166 }
167}
168
169impl std::fmt::Debug for super::MultiSpeakerVoiceConfig {
170 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171 let mut debug_struct = f.debug_struct("MultiSpeakerVoiceConfig");
172 debug_struct.field("speaker_voice_configs", &self.speaker_voice_configs);
173 if !self._unknown_fields.is_empty() {
174 debug_struct.field("_unknown_fields", &self._unknown_fields);
175 }
176 debug_struct.finish()
177 }
178}
179
180impl std::fmt::Debug for super::SynthesisInput {
181 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
182 let mut debug_struct = f.debug_struct("SynthesisInput");
183 debug_struct.field("prompt", &self.prompt);
184 debug_struct.field("custom_pronunciations", &self.custom_pronunciations);
185 debug_struct.field("input_source", &self.input_source);
186 if !self._unknown_fields.is_empty() {
187 debug_struct.field("_unknown_fields", &self._unknown_fields);
188 }
189 debug_struct.finish()
190 }
191}
192
193impl std::fmt::Debug for super::VoiceSelectionParams {
194 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
195 let mut debug_struct = f.debug_struct("VoiceSelectionParams");
196 debug_struct.field("language_code", &self.language_code);
197 debug_struct.field("name", &self.name);
198 debug_struct.field("ssml_gender", &self.ssml_gender);
199 debug_struct.field("custom_voice", &self.custom_voice);
200 debug_struct.field("voice_clone", &self.voice_clone);
201 debug_struct.field("model_name", &self.model_name);
202 debug_struct.field(
203 "multi_speaker_voice_config",
204 &self.multi_speaker_voice_config,
205 );
206 if !self._unknown_fields.is_empty() {
207 debug_struct.field("_unknown_fields", &self._unknown_fields);
208 }
209 debug_struct.finish()
210 }
211}
212
213impl std::fmt::Debug for super::AudioConfig {
214 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
215 let mut debug_struct = f.debug_struct("AudioConfig");
216 debug_struct.field("audio_encoding", &self.audio_encoding);
217 debug_struct.field("speaking_rate", &self.speaking_rate);
218 debug_struct.field("pitch", &self.pitch);
219 debug_struct.field("volume_gain_db", &self.volume_gain_db);
220 debug_struct.field("sample_rate_hertz", &self.sample_rate_hertz);
221 debug_struct.field("effects_profile_id", &self.effects_profile_id);
222 if !self._unknown_fields.is_empty() {
223 debug_struct.field("_unknown_fields", &self._unknown_fields);
224 }
225 debug_struct.finish()
226 }
227}
228
229impl std::fmt::Debug for super::CustomVoiceParams {
230 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
231 let mut debug_struct = f.debug_struct("CustomVoiceParams");
232 debug_struct.field("model", &self.model);
233 debug_struct.field("reported_usage", &self.reported_usage);
234 if !self._unknown_fields.is_empty() {
235 debug_struct.field("_unknown_fields", &self._unknown_fields);
236 }
237 debug_struct.finish()
238 }
239}
240
241impl std::fmt::Debug for super::VoiceCloneParams {
242 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
243 let mut debug_struct = f.debug_struct("VoiceCloneParams");
244 debug_struct.field("voice_cloning_key", &self.voice_cloning_key);
245 if !self._unknown_fields.is_empty() {
246 debug_struct.field("_unknown_fields", &self._unknown_fields);
247 }
248 debug_struct.finish()
249 }
250}
251
252impl std::fmt::Debug for super::SynthesizeSpeechResponse {
253 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
254 let mut debug_struct = f.debug_struct("SynthesizeSpeechResponse");
255 debug_struct.field("audio_content", &self.audio_content);
256 if !self._unknown_fields.is_empty() {
257 debug_struct.field("_unknown_fields", &self._unknown_fields);
258 }
259 debug_struct.finish()
260 }
261}
262
263impl std::fmt::Debug for super::StreamingAudioConfig {
264 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
265 let mut debug_struct = f.debug_struct("StreamingAudioConfig");
266 debug_struct.field("audio_encoding", &self.audio_encoding);
267 debug_struct.field("sample_rate_hertz", &self.sample_rate_hertz);
268 debug_struct.field("speaking_rate", &self.speaking_rate);
269 if !self._unknown_fields.is_empty() {
270 debug_struct.field("_unknown_fields", &self._unknown_fields);
271 }
272 debug_struct.finish()
273 }
274}
275
276impl std::fmt::Debug for super::StreamingSynthesizeConfig {
277 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278 let mut debug_struct = f.debug_struct("StreamingSynthesizeConfig");
279 debug_struct.field("voice", &self.voice);
280 debug_struct.field("streaming_audio_config", &self.streaming_audio_config);
281 debug_struct.field("custom_pronunciations", &self.custom_pronunciations);
282 debug_struct.field("advanced_voice_options", &self.advanced_voice_options);
283 if !self._unknown_fields.is_empty() {
284 debug_struct.field("_unknown_fields", &self._unknown_fields);
285 }
286 debug_struct.finish()
287 }
288}
289
290impl std::fmt::Debug for super::StreamingSynthesisInput {
291 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
292 let mut debug_struct = f.debug_struct("StreamingSynthesisInput");
293 debug_struct.field("prompt", &self.prompt);
294 debug_struct.field("input_source", &self.input_source);
295 if !self._unknown_fields.is_empty() {
296 debug_struct.field("_unknown_fields", &self._unknown_fields);
297 }
298 debug_struct.finish()
299 }
300}
301
302impl std::fmt::Debug for super::StreamingSynthesizeRequest {
303 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304 let mut debug_struct = f.debug_struct("StreamingSynthesizeRequest");
305 debug_struct.field("streaming_request", &self.streaming_request);
306 if !self._unknown_fields.is_empty() {
307 debug_struct.field("_unknown_fields", &self._unknown_fields);
308 }
309 debug_struct.finish()
310 }
311}
312
313impl std::fmt::Debug for super::StreamingSynthesizeResponse {
314 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
315 let mut debug_struct = f.debug_struct("StreamingSynthesizeResponse");
316 debug_struct.field("audio_content", &self.audio_content);
317 if !self._unknown_fields.is_empty() {
318 debug_struct.field("_unknown_fields", &self._unknown_fields);
319 }
320 debug_struct.finish()
321 }
322}
323
324impl std::fmt::Debug for super::SynthesizeLongAudioRequest {
325 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
326 let mut debug_struct = f.debug_struct("SynthesizeLongAudioRequest");
327 debug_struct.field("parent", &self.parent);
328 debug_struct.field("input", &self.input);
329 debug_struct.field("audio_config", &self.audio_config);
330 debug_struct.field("output_gcs_uri", &self.output_gcs_uri);
331 debug_struct.field("voice", &self.voice);
332 if !self._unknown_fields.is_empty() {
333 debug_struct.field("_unknown_fields", &self._unknown_fields);
334 }
335 debug_struct.finish()
336 }
337}
338
339impl std::fmt::Debug for super::SynthesizeLongAudioResponse {
340 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
341 let mut debug_struct = f.debug_struct("SynthesizeLongAudioResponse");
342 if !self._unknown_fields.is_empty() {
343 debug_struct.field("_unknown_fields", &self._unknown_fields);
344 }
345 debug_struct.finish()
346 }
347}
348
349impl std::fmt::Debug for super::SynthesizeLongAudioMetadata {
350 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
351 let mut debug_struct = f.debug_struct("SynthesizeLongAudioMetadata");
352 debug_struct.field("start_time", &self.start_time);
353 debug_struct.field("last_update_time", &self.last_update_time);
354 debug_struct.field("progress_percentage", &self.progress_percentage);
355 if !self._unknown_fields.is_empty() {
356 debug_struct.field("_unknown_fields", &self._unknown_fields);
357 }
358 debug_struct.finish()
359 }
360}