1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::AdaptiveMtDataset {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("AdaptiveMtDataset");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("display_name", &self.display_name);
25 debug_struct.field("source_language_code", &self.source_language_code);
26 debug_struct.field("target_language_code", &self.target_language_code);
27 debug_struct.field("example_count", &self.example_count);
28 debug_struct.field("create_time", &self.create_time);
29 debug_struct.field("update_time", &self.update_time);
30 if !self._unknown_fields.is_empty() {
31 debug_struct.field("_unknown_fields", &self._unknown_fields);
32 }
33 debug_struct.finish()
34 }
35}
36
37impl std::fmt::Debug for super::CreateAdaptiveMtDatasetRequest {
38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39 let mut debug_struct = f.debug_struct("CreateAdaptiveMtDatasetRequest");
40 debug_struct.field("parent", &self.parent);
41 debug_struct.field("adaptive_mt_dataset", &self.adaptive_mt_dataset);
42 if !self._unknown_fields.is_empty() {
43 debug_struct.field("_unknown_fields", &self._unknown_fields);
44 }
45 debug_struct.finish()
46 }
47}
48
49impl std::fmt::Debug for super::DeleteAdaptiveMtDatasetRequest {
50 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
51 let mut debug_struct = f.debug_struct("DeleteAdaptiveMtDatasetRequest");
52 debug_struct.field("name", &self.name);
53 if !self._unknown_fields.is_empty() {
54 debug_struct.field("_unknown_fields", &self._unknown_fields);
55 }
56 debug_struct.finish()
57 }
58}
59
60impl std::fmt::Debug for super::GetAdaptiveMtDatasetRequest {
61 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
62 let mut debug_struct = f.debug_struct("GetAdaptiveMtDatasetRequest");
63 debug_struct.field("name", &self.name);
64 if !self._unknown_fields.is_empty() {
65 debug_struct.field("_unknown_fields", &self._unknown_fields);
66 }
67 debug_struct.finish()
68 }
69}
70
71impl std::fmt::Debug for super::ListAdaptiveMtDatasetsRequest {
72 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73 let mut debug_struct = f.debug_struct("ListAdaptiveMtDatasetsRequest");
74 debug_struct.field("parent", &self.parent);
75 debug_struct.field("page_size", &self.page_size);
76 debug_struct.field("page_token", &self.page_token);
77 debug_struct.field("filter", &self.filter);
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::ListAdaptiveMtDatasetsResponse {
86 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87 let mut debug_struct = f.debug_struct("ListAdaptiveMtDatasetsResponse");
88 debug_struct.field("adaptive_mt_datasets", &self.adaptive_mt_datasets);
89 debug_struct.field("next_page_token", &self.next_page_token);
90 if !self._unknown_fields.is_empty() {
91 debug_struct.field("_unknown_fields", &self._unknown_fields);
92 }
93 debug_struct.finish()
94 }
95}
96
97impl std::fmt::Debug for super::AdaptiveMtTranslateRequest {
98 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99 let mut debug_struct = f.debug_struct("AdaptiveMtTranslateRequest");
100 debug_struct.field("parent", &self.parent);
101 debug_struct.field("dataset", &self.dataset);
102 debug_struct.field("content", &self.content);
103 debug_struct.field("reference_sentence_config", &self.reference_sentence_config);
104 debug_struct.field("glossary_config", &self.glossary_config);
105 if !self._unknown_fields.is_empty() {
106 debug_struct.field("_unknown_fields", &self._unknown_fields);
107 }
108 debug_struct.finish()
109 }
110}
111
112impl std::fmt::Debug for super::adaptive_mt_translate_request::ReferenceSentencePair {
113 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
114 let mut debug_struct = f.debug_struct("ReferenceSentencePair");
115 debug_struct.field("source_sentence", &self.source_sentence);
116 debug_struct.field("target_sentence", &self.target_sentence);
117 if !self._unknown_fields.is_empty() {
118 debug_struct.field("_unknown_fields", &self._unknown_fields);
119 }
120 debug_struct.finish()
121 }
122}
123
124impl std::fmt::Debug for super::adaptive_mt_translate_request::ReferenceSentencePairList {
125 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126 let mut debug_struct = f.debug_struct("ReferenceSentencePairList");
127 debug_struct.field("reference_sentence_pairs", &self.reference_sentence_pairs);
128 if !self._unknown_fields.is_empty() {
129 debug_struct.field("_unknown_fields", &self._unknown_fields);
130 }
131 debug_struct.finish()
132 }
133}
134
135impl std::fmt::Debug for super::adaptive_mt_translate_request::ReferenceSentenceConfig {
136 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
137 let mut debug_struct = f.debug_struct("ReferenceSentenceConfig");
138 debug_struct.field(
139 "reference_sentence_pair_lists",
140 &self.reference_sentence_pair_lists,
141 );
142 debug_struct.field("source_language_code", &self.source_language_code);
143 debug_struct.field("target_language_code", &self.target_language_code);
144 if !self._unknown_fields.is_empty() {
145 debug_struct.field("_unknown_fields", &self._unknown_fields);
146 }
147 debug_struct.finish()
148 }
149}
150
151impl std::fmt::Debug for super::adaptive_mt_translate_request::GlossaryConfig {
152 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153 let mut debug_struct = f.debug_struct("GlossaryConfig");
154 debug_struct.field("glossary", &self.glossary);
155 debug_struct.field("ignore_case", &self.ignore_case);
156 debug_struct.field(
157 "contextual_translation_enabled",
158 &self.contextual_translation_enabled,
159 );
160 if !self._unknown_fields.is_empty() {
161 debug_struct.field("_unknown_fields", &self._unknown_fields);
162 }
163 debug_struct.finish()
164 }
165}
166
167impl std::fmt::Debug for super::AdaptiveMtTranslation {
168 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
169 let mut debug_struct = f.debug_struct("AdaptiveMtTranslation");
170 debug_struct.field("translated_text", &self.translated_text);
171 if !self._unknown_fields.is_empty() {
172 debug_struct.field("_unknown_fields", &self._unknown_fields);
173 }
174 debug_struct.finish()
175 }
176}
177
178impl std::fmt::Debug for super::AdaptiveMtTranslateResponse {
179 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180 let mut debug_struct = f.debug_struct("AdaptiveMtTranslateResponse");
181 debug_struct.field("translations", &self.translations);
182 debug_struct.field("language_code", &self.language_code);
183 debug_struct.field("glossary_translations", &self.glossary_translations);
184 if !self._unknown_fields.is_empty() {
185 debug_struct.field("_unknown_fields", &self._unknown_fields);
186 }
187 debug_struct.finish()
188 }
189}
190
191impl std::fmt::Debug for super::AdaptiveMtFile {
192 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
193 let mut debug_struct = f.debug_struct("AdaptiveMtFile");
194 debug_struct.field("name", &self.name);
195 debug_struct.field("display_name", &self.display_name);
196 debug_struct.field("entry_count", &self.entry_count);
197 debug_struct.field("create_time", &self.create_time);
198 debug_struct.field("update_time", &self.update_time);
199 if !self._unknown_fields.is_empty() {
200 debug_struct.field("_unknown_fields", &self._unknown_fields);
201 }
202 debug_struct.finish()
203 }
204}
205
206impl std::fmt::Debug for super::GetAdaptiveMtFileRequest {
207 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
208 let mut debug_struct = f.debug_struct("GetAdaptiveMtFileRequest");
209 debug_struct.field("name", &self.name);
210 if !self._unknown_fields.is_empty() {
211 debug_struct.field("_unknown_fields", &self._unknown_fields);
212 }
213 debug_struct.finish()
214 }
215}
216
217impl std::fmt::Debug for super::DeleteAdaptiveMtFileRequest {
218 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
219 let mut debug_struct = f.debug_struct("DeleteAdaptiveMtFileRequest");
220 debug_struct.field("name", &self.name);
221 if !self._unknown_fields.is_empty() {
222 debug_struct.field("_unknown_fields", &self._unknown_fields);
223 }
224 debug_struct.finish()
225 }
226}
227
228impl std::fmt::Debug for super::ImportAdaptiveMtFileRequest {
229 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
230 let mut debug_struct = f.debug_struct("ImportAdaptiveMtFileRequest");
231 debug_struct.field("parent", &self.parent);
232 debug_struct.field("source", &self.source);
233 if !self._unknown_fields.is_empty() {
234 debug_struct.field("_unknown_fields", &self._unknown_fields);
235 }
236 debug_struct.finish()
237 }
238}
239
240impl std::fmt::Debug for super::ImportAdaptiveMtFileResponse {
241 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
242 let mut debug_struct = f.debug_struct("ImportAdaptiveMtFileResponse");
243 debug_struct.field("adaptive_mt_file", &self.adaptive_mt_file);
244 if !self._unknown_fields.is_empty() {
245 debug_struct.field("_unknown_fields", &self._unknown_fields);
246 }
247 debug_struct.finish()
248 }
249}
250
251impl std::fmt::Debug for super::ListAdaptiveMtFilesRequest {
252 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
253 let mut debug_struct = f.debug_struct("ListAdaptiveMtFilesRequest");
254 debug_struct.field("parent", &self.parent);
255 debug_struct.field("page_size", &self.page_size);
256 debug_struct.field("page_token", &self.page_token);
257 if !self._unknown_fields.is_empty() {
258 debug_struct.field("_unknown_fields", &self._unknown_fields);
259 }
260 debug_struct.finish()
261 }
262}
263
264impl std::fmt::Debug for super::ListAdaptiveMtFilesResponse {
265 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
266 let mut debug_struct = f.debug_struct("ListAdaptiveMtFilesResponse");
267 debug_struct.field("adaptive_mt_files", &self.adaptive_mt_files);
268 debug_struct.field("next_page_token", &self.next_page_token);
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::AdaptiveMtSentence {
277 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278 let mut debug_struct = f.debug_struct("AdaptiveMtSentence");
279 debug_struct.field("name", &self.name);
280 debug_struct.field("source_sentence", &self.source_sentence);
281 debug_struct.field("target_sentence", &self.target_sentence);
282 debug_struct.field("create_time", &self.create_time);
283 debug_struct.field("update_time", &self.update_time);
284 if !self._unknown_fields.is_empty() {
285 debug_struct.field("_unknown_fields", &self._unknown_fields);
286 }
287 debug_struct.finish()
288 }
289}
290
291impl std::fmt::Debug for super::ListAdaptiveMtSentencesRequest {
292 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
293 let mut debug_struct = f.debug_struct("ListAdaptiveMtSentencesRequest");
294 debug_struct.field("parent", &self.parent);
295 debug_struct.field("page_size", &self.page_size);
296 debug_struct.field("page_token", &self.page_token);
297 if !self._unknown_fields.is_empty() {
298 debug_struct.field("_unknown_fields", &self._unknown_fields);
299 }
300 debug_struct.finish()
301 }
302}
303
304impl std::fmt::Debug for super::ListAdaptiveMtSentencesResponse {
305 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
306 let mut debug_struct = f.debug_struct("ListAdaptiveMtSentencesResponse");
307 debug_struct.field("adaptive_mt_sentences", &self.adaptive_mt_sentences);
308 debug_struct.field("next_page_token", &self.next_page_token);
309 if !self._unknown_fields.is_empty() {
310 debug_struct.field("_unknown_fields", &self._unknown_fields);
311 }
312 debug_struct.finish()
313 }
314}
315
316impl std::fmt::Debug for super::ImportDataRequest {
317 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
318 let mut debug_struct = f.debug_struct("ImportDataRequest");
319 debug_struct.field("dataset", &self.dataset);
320 debug_struct.field("input_config", &self.input_config);
321 if !self._unknown_fields.is_empty() {
322 debug_struct.field("_unknown_fields", &self._unknown_fields);
323 }
324 debug_struct.finish()
325 }
326}
327
328impl std::fmt::Debug for super::DatasetInputConfig {
329 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
330 let mut debug_struct = f.debug_struct("DatasetInputConfig");
331 debug_struct.field("input_files", &self.input_files);
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::dataset_input_config::InputFile {
340 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
341 let mut debug_struct = f.debug_struct("InputFile");
342 debug_struct.field("usage", &self.usage);
343 debug_struct.field("source", &self.source);
344 if !self._unknown_fields.is_empty() {
345 debug_struct.field("_unknown_fields", &self._unknown_fields);
346 }
347 debug_struct.finish()
348 }
349}
350
351impl std::fmt::Debug for super::ImportDataMetadata {
352 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
353 let mut debug_struct = f.debug_struct("ImportDataMetadata");
354 debug_struct.field("state", &self.state);
355 debug_struct.field("create_time", &self.create_time);
356 debug_struct.field("update_time", &self.update_time);
357 debug_struct.field("error", &self.error);
358 if !self._unknown_fields.is_empty() {
359 debug_struct.field("_unknown_fields", &self._unknown_fields);
360 }
361 debug_struct.finish()
362 }
363}
364
365impl std::fmt::Debug for super::ExportDataRequest {
366 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
367 let mut debug_struct = f.debug_struct("ExportDataRequest");
368 debug_struct.field("dataset", &self.dataset);
369 debug_struct.field("output_config", &self.output_config);
370 if !self._unknown_fields.is_empty() {
371 debug_struct.field("_unknown_fields", &self._unknown_fields);
372 }
373 debug_struct.finish()
374 }
375}
376
377impl std::fmt::Debug for super::DatasetOutputConfig {
378 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
379 let mut debug_struct = f.debug_struct("DatasetOutputConfig");
380 debug_struct.field("destination", &self.destination);
381 if !self._unknown_fields.is_empty() {
382 debug_struct.field("_unknown_fields", &self._unknown_fields);
383 }
384 debug_struct.finish()
385 }
386}
387
388impl std::fmt::Debug for super::ExportDataMetadata {
389 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
390 let mut debug_struct = f.debug_struct("ExportDataMetadata");
391 debug_struct.field("state", &self.state);
392 debug_struct.field("create_time", &self.create_time);
393 debug_struct.field("update_time", &self.update_time);
394 debug_struct.field("error", &self.error);
395 if !self._unknown_fields.is_empty() {
396 debug_struct.field("_unknown_fields", &self._unknown_fields);
397 }
398 debug_struct.finish()
399 }
400}
401
402impl std::fmt::Debug for super::DeleteDatasetRequest {
403 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
404 let mut debug_struct = f.debug_struct("DeleteDatasetRequest");
405 debug_struct.field("name", &self.name);
406 if !self._unknown_fields.is_empty() {
407 debug_struct.field("_unknown_fields", &self._unknown_fields);
408 }
409 debug_struct.finish()
410 }
411}
412
413impl std::fmt::Debug for super::DeleteDatasetMetadata {
414 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
415 let mut debug_struct = f.debug_struct("DeleteDatasetMetadata");
416 debug_struct.field("state", &self.state);
417 debug_struct.field("create_time", &self.create_time);
418 debug_struct.field("update_time", &self.update_time);
419 debug_struct.field("error", &self.error);
420 if !self._unknown_fields.is_empty() {
421 debug_struct.field("_unknown_fields", &self._unknown_fields);
422 }
423 debug_struct.finish()
424 }
425}
426
427impl std::fmt::Debug for super::GetDatasetRequest {
428 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
429 let mut debug_struct = f.debug_struct("GetDatasetRequest");
430 debug_struct.field("name", &self.name);
431 if !self._unknown_fields.is_empty() {
432 debug_struct.field("_unknown_fields", &self._unknown_fields);
433 }
434 debug_struct.finish()
435 }
436}
437
438impl std::fmt::Debug for super::ListDatasetsRequest {
439 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
440 let mut debug_struct = f.debug_struct("ListDatasetsRequest");
441 debug_struct.field("parent", &self.parent);
442 debug_struct.field("page_size", &self.page_size);
443 debug_struct.field("page_token", &self.page_token);
444 if !self._unknown_fields.is_empty() {
445 debug_struct.field("_unknown_fields", &self._unknown_fields);
446 }
447 debug_struct.finish()
448 }
449}
450
451impl std::fmt::Debug for super::ListDatasetsResponse {
452 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
453 let mut debug_struct = f.debug_struct("ListDatasetsResponse");
454 debug_struct.field("datasets", &self.datasets);
455 debug_struct.field("next_page_token", &self.next_page_token);
456 if !self._unknown_fields.is_empty() {
457 debug_struct.field("_unknown_fields", &self._unknown_fields);
458 }
459 debug_struct.finish()
460 }
461}
462
463impl std::fmt::Debug for super::CreateDatasetRequest {
464 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
465 let mut debug_struct = f.debug_struct("CreateDatasetRequest");
466 debug_struct.field("parent", &self.parent);
467 debug_struct.field("dataset", &self.dataset);
468 if !self._unknown_fields.is_empty() {
469 debug_struct.field("_unknown_fields", &self._unknown_fields);
470 }
471 debug_struct.finish()
472 }
473}
474
475impl std::fmt::Debug for super::CreateDatasetMetadata {
476 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
477 let mut debug_struct = f.debug_struct("CreateDatasetMetadata");
478 debug_struct.field("state", &self.state);
479 debug_struct.field("create_time", &self.create_time);
480 debug_struct.field("update_time", &self.update_time);
481 debug_struct.field("error", &self.error);
482 if !self._unknown_fields.is_empty() {
483 debug_struct.field("_unknown_fields", &self._unknown_fields);
484 }
485 debug_struct.finish()
486 }
487}
488
489impl std::fmt::Debug for super::ListExamplesRequest {
490 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
491 let mut debug_struct = f.debug_struct("ListExamplesRequest");
492 debug_struct.field("parent", &self.parent);
493 debug_struct.field("filter", &self.filter);
494 debug_struct.field("page_size", &self.page_size);
495 debug_struct.field("page_token", &self.page_token);
496 if !self._unknown_fields.is_empty() {
497 debug_struct.field("_unknown_fields", &self._unknown_fields);
498 }
499 debug_struct.finish()
500 }
501}
502
503impl std::fmt::Debug for super::ListExamplesResponse {
504 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
505 let mut debug_struct = f.debug_struct("ListExamplesResponse");
506 debug_struct.field("examples", &self.examples);
507 debug_struct.field("next_page_token", &self.next_page_token);
508 if !self._unknown_fields.is_empty() {
509 debug_struct.field("_unknown_fields", &self._unknown_fields);
510 }
511 debug_struct.finish()
512 }
513}
514
515impl std::fmt::Debug for super::Example {
516 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
517 let mut debug_struct = f.debug_struct("Example");
518 debug_struct.field("name", &self.name);
519 debug_struct.field("source_text", &self.source_text);
520 debug_struct.field("target_text", &self.target_text);
521 debug_struct.field("usage", &self.usage);
522 if !self._unknown_fields.is_empty() {
523 debug_struct.field("_unknown_fields", &self._unknown_fields);
524 }
525 debug_struct.finish()
526 }
527}
528
529impl std::fmt::Debug for super::BatchTransferResourcesResponse {
530 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
531 let mut debug_struct = f.debug_struct("BatchTransferResourcesResponse");
532 debug_struct.field("responses", &self.responses);
533 if !self._unknown_fields.is_empty() {
534 debug_struct.field("_unknown_fields", &self._unknown_fields);
535 }
536 debug_struct.finish()
537 }
538}
539
540impl std::fmt::Debug for super::batch_transfer_resources_response::TransferResourceResponse {
541 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
542 let mut debug_struct = f.debug_struct("TransferResourceResponse");
543 debug_struct.field("source", &self.source);
544 debug_struct.field("target", &self.target);
545 debug_struct.field("error", &self.error);
546 if !self._unknown_fields.is_empty() {
547 debug_struct.field("_unknown_fields", &self._unknown_fields);
548 }
549 debug_struct.finish()
550 }
551}
552
553impl std::fmt::Debug for super::Dataset {
554 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
555 let mut debug_struct = f.debug_struct("Dataset");
556 debug_struct.field("name", &self.name);
557 debug_struct.field("display_name", &self.display_name);
558 debug_struct.field("source_language_code", &self.source_language_code);
559 debug_struct.field("target_language_code", &self.target_language_code);
560 debug_struct.field("example_count", &self.example_count);
561 debug_struct.field("train_example_count", &self.train_example_count);
562 debug_struct.field("validate_example_count", &self.validate_example_count);
563 debug_struct.field("test_example_count", &self.test_example_count);
564 debug_struct.field("create_time", &self.create_time);
565 debug_struct.field("update_time", &self.update_time);
566 if !self._unknown_fields.is_empty() {
567 debug_struct.field("_unknown_fields", &self._unknown_fields);
568 }
569 debug_struct.finish()
570 }
571}
572
573impl std::fmt::Debug for super::CreateModelRequest {
574 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
575 let mut debug_struct = f.debug_struct("CreateModelRequest");
576 debug_struct.field("parent", &self.parent);
577 debug_struct.field("model", &self.model);
578 if !self._unknown_fields.is_empty() {
579 debug_struct.field("_unknown_fields", &self._unknown_fields);
580 }
581 debug_struct.finish()
582 }
583}
584
585impl std::fmt::Debug for super::CreateModelMetadata {
586 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
587 let mut debug_struct = f.debug_struct("CreateModelMetadata");
588 debug_struct.field("state", &self.state);
589 debug_struct.field("create_time", &self.create_time);
590 debug_struct.field("update_time", &self.update_time);
591 debug_struct.field("error", &self.error);
592 if !self._unknown_fields.is_empty() {
593 debug_struct.field("_unknown_fields", &self._unknown_fields);
594 }
595 debug_struct.finish()
596 }
597}
598
599impl std::fmt::Debug for super::ListModelsRequest {
600 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
601 let mut debug_struct = f.debug_struct("ListModelsRequest");
602 debug_struct.field("parent", &self.parent);
603 debug_struct.field("filter", &self.filter);
604 debug_struct.field("page_size", &self.page_size);
605 debug_struct.field("page_token", &self.page_token);
606 if !self._unknown_fields.is_empty() {
607 debug_struct.field("_unknown_fields", &self._unknown_fields);
608 }
609 debug_struct.finish()
610 }
611}
612
613impl std::fmt::Debug for super::ListModelsResponse {
614 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
615 let mut debug_struct = f.debug_struct("ListModelsResponse");
616 debug_struct.field("models", &self.models);
617 debug_struct.field("next_page_token", &self.next_page_token);
618 if !self._unknown_fields.is_empty() {
619 debug_struct.field("_unknown_fields", &self._unknown_fields);
620 }
621 debug_struct.finish()
622 }
623}
624
625impl std::fmt::Debug for super::GetModelRequest {
626 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
627 let mut debug_struct = f.debug_struct("GetModelRequest");
628 debug_struct.field("name", &self.name);
629 if !self._unknown_fields.is_empty() {
630 debug_struct.field("_unknown_fields", &self._unknown_fields);
631 }
632 debug_struct.finish()
633 }
634}
635
636impl std::fmt::Debug for super::DeleteModelRequest {
637 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
638 let mut debug_struct = f.debug_struct("DeleteModelRequest");
639 debug_struct.field("name", &self.name);
640 if !self._unknown_fields.is_empty() {
641 debug_struct.field("_unknown_fields", &self._unknown_fields);
642 }
643 debug_struct.finish()
644 }
645}
646
647impl std::fmt::Debug for super::DeleteModelMetadata {
648 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
649 let mut debug_struct = f.debug_struct("DeleteModelMetadata");
650 debug_struct.field("state", &self.state);
651 debug_struct.field("create_time", &self.create_time);
652 debug_struct.field("update_time", &self.update_time);
653 debug_struct.field("error", &self.error);
654 if !self._unknown_fields.is_empty() {
655 debug_struct.field("_unknown_fields", &self._unknown_fields);
656 }
657 debug_struct.finish()
658 }
659}
660
661impl std::fmt::Debug for super::Model {
662 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
663 let mut debug_struct = f.debug_struct("Model");
664 debug_struct.field("name", &self.name);
665 debug_struct.field("display_name", &self.display_name);
666 debug_struct.field("dataset", &self.dataset);
667 debug_struct.field("source_language_code", &self.source_language_code);
668 debug_struct.field("target_language_code", &self.target_language_code);
669 debug_struct.field("train_example_count", &self.train_example_count);
670 debug_struct.field("validate_example_count", &self.validate_example_count);
671 debug_struct.field("test_example_count", &self.test_example_count);
672 debug_struct.field("create_time", &self.create_time);
673 debug_struct.field("update_time", &self.update_time);
674 if !self._unknown_fields.is_empty() {
675 debug_struct.field("_unknown_fields", &self._unknown_fields);
676 }
677 debug_struct.finish()
678 }
679}
680
681impl std::fmt::Debug for super::GcsInputSource {
682 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
683 let mut debug_struct = f.debug_struct("GcsInputSource");
684 debug_struct.field("input_uri", &self.input_uri);
685 if !self._unknown_fields.is_empty() {
686 debug_struct.field("_unknown_fields", &self._unknown_fields);
687 }
688 debug_struct.finish()
689 }
690}
691
692impl std::fmt::Debug for super::FileInputSource {
693 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
694 let mut debug_struct = f.debug_struct("FileInputSource");
695 debug_struct.field("mime_type", &self.mime_type);
696 debug_struct.field("content", &self.content);
697 debug_struct.field("display_name", &self.display_name);
698 if !self._unknown_fields.is_empty() {
699 debug_struct.field("_unknown_fields", &self._unknown_fields);
700 }
701 debug_struct.finish()
702 }
703}
704
705impl std::fmt::Debug for super::GcsOutputDestination {
706 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
707 let mut debug_struct = f.debug_struct("GcsOutputDestination");
708 debug_struct.field("output_uri_prefix", &self.output_uri_prefix);
709 if !self._unknown_fields.is_empty() {
710 debug_struct.field("_unknown_fields", &self._unknown_fields);
711 }
712 debug_struct.finish()
713 }
714}
715
716impl std::fmt::Debug for super::GlossaryEntry {
717 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
718 let mut debug_struct = f.debug_struct("GlossaryEntry");
719 debug_struct.field("name", &self.name);
720 debug_struct.field("description", &self.description);
721 debug_struct.field("data", &self.data);
722 if !self._unknown_fields.is_empty() {
723 debug_struct.field("_unknown_fields", &self._unknown_fields);
724 }
725 debug_struct.finish()
726 }
727}
728
729impl std::fmt::Debug for super::glossary_entry::GlossaryTermsPair {
730 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
731 let mut debug_struct = f.debug_struct("GlossaryTermsPair");
732 debug_struct.field("source_term", &self.source_term);
733 debug_struct.field("target_term", &self.target_term);
734 if !self._unknown_fields.is_empty() {
735 debug_struct.field("_unknown_fields", &self._unknown_fields);
736 }
737 debug_struct.finish()
738 }
739}
740
741impl std::fmt::Debug for super::glossary_entry::GlossaryTermsSet {
742 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
743 let mut debug_struct = f.debug_struct("GlossaryTermsSet");
744 debug_struct.field("terms", &self.terms);
745 if !self._unknown_fields.is_empty() {
746 debug_struct.field("_unknown_fields", &self._unknown_fields);
747 }
748 debug_struct.finish()
749 }
750}
751
752impl std::fmt::Debug for super::GlossaryTerm {
753 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
754 let mut debug_struct = f.debug_struct("GlossaryTerm");
755 debug_struct.field("language_code", &self.language_code);
756 debug_struct.field("text", &self.text);
757 if !self._unknown_fields.is_empty() {
758 debug_struct.field("_unknown_fields", &self._unknown_fields);
759 }
760 debug_struct.finish()
761 }
762}
763
764impl std::fmt::Debug for super::TransliterationConfig {
765 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
766 let mut debug_struct = f.debug_struct("TransliterationConfig");
767 debug_struct.field("enable_transliteration", &self.enable_transliteration);
768 if !self._unknown_fields.is_empty() {
769 debug_struct.field("_unknown_fields", &self._unknown_fields);
770 }
771 debug_struct.finish()
772 }
773}
774
775impl std::fmt::Debug for super::TranslateTextRequest {
776 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
777 let mut debug_struct = f.debug_struct("TranslateTextRequest");
778 debug_struct.field("contents", &self.contents);
779 debug_struct.field("mime_type", &self.mime_type);
780 debug_struct.field("source_language_code", &self.source_language_code);
781 debug_struct.field("target_language_code", &self.target_language_code);
782 debug_struct.field("parent", &self.parent);
783 debug_struct.field("model", &self.model);
784 debug_struct.field("glossary_config", &self.glossary_config);
785 debug_struct.field("transliteration_config", &self.transliteration_config);
786 debug_struct.field("labels", &self.labels);
787 if !self._unknown_fields.is_empty() {
788 debug_struct.field("_unknown_fields", &self._unknown_fields);
789 }
790 debug_struct.finish()
791 }
792}
793
794impl std::fmt::Debug for super::TranslateTextResponse {
795 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
796 let mut debug_struct = f.debug_struct("TranslateTextResponse");
797 debug_struct.field("translations", &self.translations);
798 debug_struct.field("glossary_translations", &self.glossary_translations);
799 if !self._unknown_fields.is_empty() {
800 debug_struct.field("_unknown_fields", &self._unknown_fields);
801 }
802 debug_struct.finish()
803 }
804}
805
806impl std::fmt::Debug for super::Translation {
807 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
808 let mut debug_struct = f.debug_struct("Translation");
809 debug_struct.field("translated_text", &self.translated_text);
810 debug_struct.field("model", &self.model);
811 debug_struct.field("detected_language_code", &self.detected_language_code);
812 debug_struct.field("glossary_config", &self.glossary_config);
813 if !self._unknown_fields.is_empty() {
814 debug_struct.field("_unknown_fields", &self._unknown_fields);
815 }
816 debug_struct.finish()
817 }
818}
819
820impl std::fmt::Debug for super::RomanizeTextRequest {
821 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
822 let mut debug_struct = f.debug_struct("RomanizeTextRequest");
823 debug_struct.field("parent", &self.parent);
824 debug_struct.field("contents", &self.contents);
825 debug_struct.field("source_language_code", &self.source_language_code);
826 if !self._unknown_fields.is_empty() {
827 debug_struct.field("_unknown_fields", &self._unknown_fields);
828 }
829 debug_struct.finish()
830 }
831}
832
833impl std::fmt::Debug for super::Romanization {
834 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
835 let mut debug_struct = f.debug_struct("Romanization");
836 debug_struct.field("romanized_text", &self.romanized_text);
837 debug_struct.field("detected_language_code", &self.detected_language_code);
838 if !self._unknown_fields.is_empty() {
839 debug_struct.field("_unknown_fields", &self._unknown_fields);
840 }
841 debug_struct.finish()
842 }
843}
844
845impl std::fmt::Debug for super::RomanizeTextResponse {
846 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
847 let mut debug_struct = f.debug_struct("RomanizeTextResponse");
848 debug_struct.field("romanizations", &self.romanizations);
849 if !self._unknown_fields.is_empty() {
850 debug_struct.field("_unknown_fields", &self._unknown_fields);
851 }
852 debug_struct.finish()
853 }
854}
855
856impl std::fmt::Debug for super::DetectLanguageRequest {
857 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
858 let mut debug_struct = f.debug_struct("DetectLanguageRequest");
859 debug_struct.field("parent", &self.parent);
860 debug_struct.field("model", &self.model);
861 debug_struct.field("mime_type", &self.mime_type);
862 debug_struct.field("labels", &self.labels);
863 debug_struct.field("source", &self.source);
864 if !self._unknown_fields.is_empty() {
865 debug_struct.field("_unknown_fields", &self._unknown_fields);
866 }
867 debug_struct.finish()
868 }
869}
870
871impl std::fmt::Debug for super::DetectedLanguage {
872 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
873 let mut debug_struct = f.debug_struct("DetectedLanguage");
874 debug_struct.field("language_code", &self.language_code);
875 debug_struct.field("confidence", &self.confidence);
876 if !self._unknown_fields.is_empty() {
877 debug_struct.field("_unknown_fields", &self._unknown_fields);
878 }
879 debug_struct.finish()
880 }
881}
882
883impl std::fmt::Debug for super::DetectLanguageResponse {
884 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
885 let mut debug_struct = f.debug_struct("DetectLanguageResponse");
886 debug_struct.field("languages", &self.languages);
887 if !self._unknown_fields.is_empty() {
888 debug_struct.field("_unknown_fields", &self._unknown_fields);
889 }
890 debug_struct.finish()
891 }
892}
893
894impl std::fmt::Debug for super::GetSupportedLanguagesRequest {
895 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
896 let mut debug_struct = f.debug_struct("GetSupportedLanguagesRequest");
897 debug_struct.field("parent", &self.parent);
898 debug_struct.field("display_language_code", &self.display_language_code);
899 debug_struct.field("model", &self.model);
900 if !self._unknown_fields.is_empty() {
901 debug_struct.field("_unknown_fields", &self._unknown_fields);
902 }
903 debug_struct.finish()
904 }
905}
906
907impl std::fmt::Debug for super::SupportedLanguages {
908 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
909 let mut debug_struct = f.debug_struct("SupportedLanguages");
910 debug_struct.field("languages", &self.languages);
911 if !self._unknown_fields.is_empty() {
912 debug_struct.field("_unknown_fields", &self._unknown_fields);
913 }
914 debug_struct.finish()
915 }
916}
917
918impl std::fmt::Debug for super::SupportedLanguage {
919 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
920 let mut debug_struct = f.debug_struct("SupportedLanguage");
921 debug_struct.field("language_code", &self.language_code);
922 debug_struct.field("display_name", &self.display_name);
923 debug_struct.field("support_source", &self.support_source);
924 debug_struct.field("support_target", &self.support_target);
925 if !self._unknown_fields.is_empty() {
926 debug_struct.field("_unknown_fields", &self._unknown_fields);
927 }
928 debug_struct.finish()
929 }
930}
931
932impl std::fmt::Debug for super::GcsSource {
933 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
934 let mut debug_struct = f.debug_struct("GcsSource");
935 debug_struct.field("input_uri", &self.input_uri);
936 if !self._unknown_fields.is_empty() {
937 debug_struct.field("_unknown_fields", &self._unknown_fields);
938 }
939 debug_struct.finish()
940 }
941}
942
943impl std::fmt::Debug for super::InputConfig {
944 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
945 let mut debug_struct = f.debug_struct("InputConfig");
946 debug_struct.field("mime_type", &self.mime_type);
947 debug_struct.field("source", &self.source);
948 if !self._unknown_fields.is_empty() {
949 debug_struct.field("_unknown_fields", &self._unknown_fields);
950 }
951 debug_struct.finish()
952 }
953}
954
955impl std::fmt::Debug for super::GcsDestination {
956 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
957 let mut debug_struct = f.debug_struct("GcsDestination");
958 debug_struct.field("output_uri_prefix", &self.output_uri_prefix);
959 if !self._unknown_fields.is_empty() {
960 debug_struct.field("_unknown_fields", &self._unknown_fields);
961 }
962 debug_struct.finish()
963 }
964}
965
966impl std::fmt::Debug for super::OutputConfig {
967 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
968 let mut debug_struct = f.debug_struct("OutputConfig");
969 debug_struct.field("destination", &self.destination);
970 if !self._unknown_fields.is_empty() {
971 debug_struct.field("_unknown_fields", &self._unknown_fields);
972 }
973 debug_struct.finish()
974 }
975}
976
977impl std::fmt::Debug for super::DocumentInputConfig {
978 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
979 let mut debug_struct = f.debug_struct("DocumentInputConfig");
980 debug_struct.field("mime_type", &self.mime_type);
981 debug_struct.field("source", &self.source);
982 if !self._unknown_fields.is_empty() {
983 debug_struct.field("_unknown_fields", &self._unknown_fields);
984 }
985 debug_struct.finish()
986 }
987}
988
989impl std::fmt::Debug for super::DocumentOutputConfig {
990 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
991 let mut debug_struct = f.debug_struct("DocumentOutputConfig");
992 debug_struct.field("mime_type", &self.mime_type);
993 debug_struct.field("destination", &self.destination);
994 if !self._unknown_fields.is_empty() {
995 debug_struct.field("_unknown_fields", &self._unknown_fields);
996 }
997 debug_struct.finish()
998 }
999}
1000
1001impl std::fmt::Debug for super::TranslateDocumentRequest {
1002 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1003 let mut debug_struct = f.debug_struct("TranslateDocumentRequest");
1004 debug_struct.field("parent", &self.parent);
1005 debug_struct.field("source_language_code", &self.source_language_code);
1006 debug_struct.field("target_language_code", &self.target_language_code);
1007 debug_struct.field("document_input_config", &self.document_input_config);
1008 debug_struct.field("document_output_config", &self.document_output_config);
1009 debug_struct.field("model", &self.model);
1010 debug_struct.field("glossary_config", &self.glossary_config);
1011 debug_struct.field("labels", &self.labels);
1012 debug_struct.field("customized_attribution", &self.customized_attribution);
1013 debug_struct.field(
1014 "is_translate_native_pdf_only",
1015 &self.is_translate_native_pdf_only,
1016 );
1017 debug_struct.field(
1018 "enable_shadow_removal_native_pdf",
1019 &self.enable_shadow_removal_native_pdf,
1020 );
1021 debug_struct.field(
1022 "enable_rotation_correction",
1023 &self.enable_rotation_correction,
1024 );
1025 if !self._unknown_fields.is_empty() {
1026 debug_struct.field("_unknown_fields", &self._unknown_fields);
1027 }
1028 debug_struct.finish()
1029 }
1030}
1031
1032impl std::fmt::Debug for super::DocumentTranslation {
1033 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1034 let mut debug_struct = f.debug_struct("DocumentTranslation");
1035 debug_struct.field("byte_stream_outputs", &self.byte_stream_outputs);
1036 debug_struct.field("mime_type", &self.mime_type);
1037 debug_struct.field("detected_language_code", &self.detected_language_code);
1038 if !self._unknown_fields.is_empty() {
1039 debug_struct.field("_unknown_fields", &self._unknown_fields);
1040 }
1041 debug_struct.finish()
1042 }
1043}
1044
1045impl std::fmt::Debug for super::TranslateDocumentResponse {
1046 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1047 let mut debug_struct = f.debug_struct("TranslateDocumentResponse");
1048 debug_struct.field("document_translation", &self.document_translation);
1049 debug_struct.field(
1050 "glossary_document_translation",
1051 &self.glossary_document_translation,
1052 );
1053 debug_struct.field("model", &self.model);
1054 debug_struct.field("glossary_config", &self.glossary_config);
1055 if !self._unknown_fields.is_empty() {
1056 debug_struct.field("_unknown_fields", &self._unknown_fields);
1057 }
1058 debug_struct.finish()
1059 }
1060}
1061
1062impl std::fmt::Debug for super::BatchTranslateTextRequest {
1063 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1064 let mut debug_struct = f.debug_struct("BatchTranslateTextRequest");
1065 debug_struct.field("parent", &self.parent);
1066 debug_struct.field("source_language_code", &self.source_language_code);
1067 debug_struct.field("target_language_codes", &self.target_language_codes);
1068 debug_struct.field("models", &self.models);
1069 debug_struct.field("input_configs", &self.input_configs);
1070 debug_struct.field("output_config", &self.output_config);
1071 debug_struct.field("glossaries", &self.glossaries);
1072 debug_struct.field("labels", &self.labels);
1073 if !self._unknown_fields.is_empty() {
1074 debug_struct.field("_unknown_fields", &self._unknown_fields);
1075 }
1076 debug_struct.finish()
1077 }
1078}
1079
1080impl std::fmt::Debug for super::BatchTranslateMetadata {
1081 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1082 let mut debug_struct = f.debug_struct("BatchTranslateMetadata");
1083 debug_struct.field("state", &self.state);
1084 debug_struct.field("translated_characters", &self.translated_characters);
1085 debug_struct.field("failed_characters", &self.failed_characters);
1086 debug_struct.field("total_characters", &self.total_characters);
1087 debug_struct.field("submit_time", &self.submit_time);
1088 if !self._unknown_fields.is_empty() {
1089 debug_struct.field("_unknown_fields", &self._unknown_fields);
1090 }
1091 debug_struct.finish()
1092 }
1093}
1094
1095impl std::fmt::Debug for super::BatchTranslateResponse {
1096 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1097 let mut debug_struct = f.debug_struct("BatchTranslateResponse");
1098 debug_struct.field("total_characters", &self.total_characters);
1099 debug_struct.field("translated_characters", &self.translated_characters);
1100 debug_struct.field("failed_characters", &self.failed_characters);
1101 debug_struct.field("submit_time", &self.submit_time);
1102 debug_struct.field("end_time", &self.end_time);
1103 if !self._unknown_fields.is_empty() {
1104 debug_struct.field("_unknown_fields", &self._unknown_fields);
1105 }
1106 debug_struct.finish()
1107 }
1108}
1109
1110impl std::fmt::Debug for super::GlossaryInputConfig {
1111 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1112 let mut debug_struct = f.debug_struct("GlossaryInputConfig");
1113 debug_struct.field("source", &self.source);
1114 if !self._unknown_fields.is_empty() {
1115 debug_struct.field("_unknown_fields", &self._unknown_fields);
1116 }
1117 debug_struct.finish()
1118 }
1119}
1120
1121impl std::fmt::Debug for super::Glossary {
1122 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1123 let mut debug_struct = f.debug_struct("Glossary");
1124 debug_struct.field("name", &self.name);
1125 debug_struct.field("input_config", &self.input_config);
1126 debug_struct.field("entry_count", &self.entry_count);
1127 debug_struct.field("submit_time", &self.submit_time);
1128 debug_struct.field("end_time", &self.end_time);
1129 debug_struct.field("display_name", &self.display_name);
1130 debug_struct.field("languages", &self.languages);
1131 if !self._unknown_fields.is_empty() {
1132 debug_struct.field("_unknown_fields", &self._unknown_fields);
1133 }
1134 debug_struct.finish()
1135 }
1136}
1137
1138impl std::fmt::Debug for super::glossary::LanguageCodePair {
1139 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1140 let mut debug_struct = f.debug_struct("LanguageCodePair");
1141 debug_struct.field("source_language_code", &self.source_language_code);
1142 debug_struct.field("target_language_code", &self.target_language_code);
1143 if !self._unknown_fields.is_empty() {
1144 debug_struct.field("_unknown_fields", &self._unknown_fields);
1145 }
1146 debug_struct.finish()
1147 }
1148}
1149
1150impl std::fmt::Debug for super::glossary::LanguageCodesSet {
1151 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1152 let mut debug_struct = f.debug_struct("LanguageCodesSet");
1153 debug_struct.field("language_codes", &self.language_codes);
1154 if !self._unknown_fields.is_empty() {
1155 debug_struct.field("_unknown_fields", &self._unknown_fields);
1156 }
1157 debug_struct.finish()
1158 }
1159}
1160
1161impl std::fmt::Debug for super::CreateGlossaryRequest {
1162 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1163 let mut debug_struct = f.debug_struct("CreateGlossaryRequest");
1164 debug_struct.field("parent", &self.parent);
1165 debug_struct.field("glossary", &self.glossary);
1166 if !self._unknown_fields.is_empty() {
1167 debug_struct.field("_unknown_fields", &self._unknown_fields);
1168 }
1169 debug_struct.finish()
1170 }
1171}
1172
1173impl std::fmt::Debug for super::UpdateGlossaryRequest {
1174 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1175 let mut debug_struct = f.debug_struct("UpdateGlossaryRequest");
1176 debug_struct.field("glossary", &self.glossary);
1177 debug_struct.field("update_mask", &self.update_mask);
1178 if !self._unknown_fields.is_empty() {
1179 debug_struct.field("_unknown_fields", &self._unknown_fields);
1180 }
1181 debug_struct.finish()
1182 }
1183}
1184
1185impl std::fmt::Debug for super::GetGlossaryRequest {
1186 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1187 let mut debug_struct = f.debug_struct("GetGlossaryRequest");
1188 debug_struct.field("name", &self.name);
1189 if !self._unknown_fields.is_empty() {
1190 debug_struct.field("_unknown_fields", &self._unknown_fields);
1191 }
1192 debug_struct.finish()
1193 }
1194}
1195
1196impl std::fmt::Debug for super::DeleteGlossaryRequest {
1197 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1198 let mut debug_struct = f.debug_struct("DeleteGlossaryRequest");
1199 debug_struct.field("name", &self.name);
1200 if !self._unknown_fields.is_empty() {
1201 debug_struct.field("_unknown_fields", &self._unknown_fields);
1202 }
1203 debug_struct.finish()
1204 }
1205}
1206
1207impl std::fmt::Debug for super::ListGlossariesRequest {
1208 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1209 let mut debug_struct = f.debug_struct("ListGlossariesRequest");
1210 debug_struct.field("parent", &self.parent);
1211 debug_struct.field("page_size", &self.page_size);
1212 debug_struct.field("page_token", &self.page_token);
1213 debug_struct.field("filter", &self.filter);
1214 if !self._unknown_fields.is_empty() {
1215 debug_struct.field("_unknown_fields", &self._unknown_fields);
1216 }
1217 debug_struct.finish()
1218 }
1219}
1220
1221impl std::fmt::Debug for super::ListGlossariesResponse {
1222 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1223 let mut debug_struct = f.debug_struct("ListGlossariesResponse");
1224 debug_struct.field("glossaries", &self.glossaries);
1225 debug_struct.field("next_page_token", &self.next_page_token);
1226 if !self._unknown_fields.is_empty() {
1227 debug_struct.field("_unknown_fields", &self._unknown_fields);
1228 }
1229 debug_struct.finish()
1230 }
1231}
1232
1233impl std::fmt::Debug for super::GetGlossaryEntryRequest {
1234 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1235 let mut debug_struct = f.debug_struct("GetGlossaryEntryRequest");
1236 debug_struct.field("name", &self.name);
1237 if !self._unknown_fields.is_empty() {
1238 debug_struct.field("_unknown_fields", &self._unknown_fields);
1239 }
1240 debug_struct.finish()
1241 }
1242}
1243
1244impl std::fmt::Debug for super::DeleteGlossaryEntryRequest {
1245 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1246 let mut debug_struct = f.debug_struct("DeleteGlossaryEntryRequest");
1247 debug_struct.field("name", &self.name);
1248 if !self._unknown_fields.is_empty() {
1249 debug_struct.field("_unknown_fields", &self._unknown_fields);
1250 }
1251 debug_struct.finish()
1252 }
1253}
1254
1255impl std::fmt::Debug for super::ListGlossaryEntriesRequest {
1256 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1257 let mut debug_struct = f.debug_struct("ListGlossaryEntriesRequest");
1258 debug_struct.field("parent", &self.parent);
1259 debug_struct.field("page_size", &self.page_size);
1260 debug_struct.field("page_token", &self.page_token);
1261 if !self._unknown_fields.is_empty() {
1262 debug_struct.field("_unknown_fields", &self._unknown_fields);
1263 }
1264 debug_struct.finish()
1265 }
1266}
1267
1268impl std::fmt::Debug for super::ListGlossaryEntriesResponse {
1269 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1270 let mut debug_struct = f.debug_struct("ListGlossaryEntriesResponse");
1271 debug_struct.field("glossary_entries", &self.glossary_entries);
1272 debug_struct.field("next_page_token", &self.next_page_token);
1273 if !self._unknown_fields.is_empty() {
1274 debug_struct.field("_unknown_fields", &self._unknown_fields);
1275 }
1276 debug_struct.finish()
1277 }
1278}
1279
1280impl std::fmt::Debug for super::CreateGlossaryEntryRequest {
1281 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1282 let mut debug_struct = f.debug_struct("CreateGlossaryEntryRequest");
1283 debug_struct.field("parent", &self.parent);
1284 debug_struct.field("glossary_entry", &self.glossary_entry);
1285 if !self._unknown_fields.is_empty() {
1286 debug_struct.field("_unknown_fields", &self._unknown_fields);
1287 }
1288 debug_struct.finish()
1289 }
1290}
1291
1292impl std::fmt::Debug for super::UpdateGlossaryEntryRequest {
1293 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1294 let mut debug_struct = f.debug_struct("UpdateGlossaryEntryRequest");
1295 debug_struct.field("glossary_entry", &self.glossary_entry);
1296 if !self._unknown_fields.is_empty() {
1297 debug_struct.field("_unknown_fields", &self._unknown_fields);
1298 }
1299 debug_struct.finish()
1300 }
1301}
1302
1303impl std::fmt::Debug for super::CreateGlossaryMetadata {
1304 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1305 let mut debug_struct = f.debug_struct("CreateGlossaryMetadata");
1306 debug_struct.field("name", &self.name);
1307 debug_struct.field("state", &self.state);
1308 debug_struct.field("submit_time", &self.submit_time);
1309 if !self._unknown_fields.is_empty() {
1310 debug_struct.field("_unknown_fields", &self._unknown_fields);
1311 }
1312 debug_struct.finish()
1313 }
1314}
1315
1316impl std::fmt::Debug for super::UpdateGlossaryMetadata {
1317 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1318 let mut debug_struct = f.debug_struct("UpdateGlossaryMetadata");
1319 debug_struct.field("glossary", &self.glossary);
1320 debug_struct.field("state", &self.state);
1321 debug_struct.field("submit_time", &self.submit_time);
1322 if !self._unknown_fields.is_empty() {
1323 debug_struct.field("_unknown_fields", &self._unknown_fields);
1324 }
1325 debug_struct.finish()
1326 }
1327}
1328
1329impl std::fmt::Debug for super::DeleteGlossaryMetadata {
1330 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1331 let mut debug_struct = f.debug_struct("DeleteGlossaryMetadata");
1332 debug_struct.field("name", &self.name);
1333 debug_struct.field("state", &self.state);
1334 debug_struct.field("submit_time", &self.submit_time);
1335 if !self._unknown_fields.is_empty() {
1336 debug_struct.field("_unknown_fields", &self._unknown_fields);
1337 }
1338 debug_struct.finish()
1339 }
1340}
1341
1342impl std::fmt::Debug for super::DeleteGlossaryResponse {
1343 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1344 let mut debug_struct = f.debug_struct("DeleteGlossaryResponse");
1345 debug_struct.field("name", &self.name);
1346 debug_struct.field("submit_time", &self.submit_time);
1347 debug_struct.field("end_time", &self.end_time);
1348 if !self._unknown_fields.is_empty() {
1349 debug_struct.field("_unknown_fields", &self._unknown_fields);
1350 }
1351 debug_struct.finish()
1352 }
1353}
1354
1355impl std::fmt::Debug for super::BatchTranslateDocumentRequest {
1356 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1357 let mut debug_struct = f.debug_struct("BatchTranslateDocumentRequest");
1358 debug_struct.field("parent", &self.parent);
1359 debug_struct.field("source_language_code", &self.source_language_code);
1360 debug_struct.field("target_language_codes", &self.target_language_codes);
1361 debug_struct.field("input_configs", &self.input_configs);
1362 debug_struct.field("output_config", &self.output_config);
1363 debug_struct.field("models", &self.models);
1364 debug_struct.field("glossaries", &self.glossaries);
1365 debug_struct.field("format_conversions", &self.format_conversions);
1366 debug_struct.field("customized_attribution", &self.customized_attribution);
1367 debug_struct.field(
1368 "enable_shadow_removal_native_pdf",
1369 &self.enable_shadow_removal_native_pdf,
1370 );
1371 debug_struct.field(
1372 "enable_rotation_correction",
1373 &self.enable_rotation_correction,
1374 );
1375 if !self._unknown_fields.is_empty() {
1376 debug_struct.field("_unknown_fields", &self._unknown_fields);
1377 }
1378 debug_struct.finish()
1379 }
1380}
1381
1382impl std::fmt::Debug for super::BatchDocumentInputConfig {
1383 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1384 let mut debug_struct = f.debug_struct("BatchDocumentInputConfig");
1385 debug_struct.field("source", &self.source);
1386 if !self._unknown_fields.is_empty() {
1387 debug_struct.field("_unknown_fields", &self._unknown_fields);
1388 }
1389 debug_struct.finish()
1390 }
1391}
1392
1393impl std::fmt::Debug for super::BatchDocumentOutputConfig {
1394 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1395 let mut debug_struct = f.debug_struct("BatchDocumentOutputConfig");
1396 debug_struct.field("destination", &self.destination);
1397 if !self._unknown_fields.is_empty() {
1398 debug_struct.field("_unknown_fields", &self._unknown_fields);
1399 }
1400 debug_struct.finish()
1401 }
1402}
1403
1404impl std::fmt::Debug for super::BatchTranslateDocumentResponse {
1405 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1406 let mut debug_struct = f.debug_struct("BatchTranslateDocumentResponse");
1407 debug_struct.field("total_pages", &self.total_pages);
1408 debug_struct.field("translated_pages", &self.translated_pages);
1409 debug_struct.field("failed_pages", &self.failed_pages);
1410 debug_struct.field("total_billable_pages", &self.total_billable_pages);
1411 debug_struct.field("total_characters", &self.total_characters);
1412 debug_struct.field("translated_characters", &self.translated_characters);
1413 debug_struct.field("failed_characters", &self.failed_characters);
1414 debug_struct.field("total_billable_characters", &self.total_billable_characters);
1415 debug_struct.field("submit_time", &self.submit_time);
1416 debug_struct.field("end_time", &self.end_time);
1417 if !self._unknown_fields.is_empty() {
1418 debug_struct.field("_unknown_fields", &self._unknown_fields);
1419 }
1420 debug_struct.finish()
1421 }
1422}
1423
1424impl std::fmt::Debug for super::BatchTranslateDocumentMetadata {
1425 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1426 let mut debug_struct = f.debug_struct("BatchTranslateDocumentMetadata");
1427 debug_struct.field("state", &self.state);
1428 debug_struct.field("total_pages", &self.total_pages);
1429 debug_struct.field("translated_pages", &self.translated_pages);
1430 debug_struct.field("failed_pages", &self.failed_pages);
1431 debug_struct.field("total_billable_pages", &self.total_billable_pages);
1432 debug_struct.field("total_characters", &self.total_characters);
1433 debug_struct.field("translated_characters", &self.translated_characters);
1434 debug_struct.field("failed_characters", &self.failed_characters);
1435 debug_struct.field("total_billable_characters", &self.total_billable_characters);
1436 debug_struct.field("submit_time", &self.submit_time);
1437 if !self._unknown_fields.is_empty() {
1438 debug_struct.field("_unknown_fields", &self._unknown_fields);
1439 }
1440 debug_struct.finish()
1441 }
1442}
1443
1444impl std::fmt::Debug for super::TranslateTextGlossaryConfig {
1445 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1446 let mut debug_struct = f.debug_struct("TranslateTextGlossaryConfig");
1447 debug_struct.field("glossary", &self.glossary);
1448 debug_struct.field("ignore_case", &self.ignore_case);
1449 debug_struct.field(
1450 "contextual_translation_enabled",
1451 &self.contextual_translation_enabled,
1452 );
1453 if !self._unknown_fields.is_empty() {
1454 debug_struct.field("_unknown_fields", &self._unknown_fields);
1455 }
1456 debug_struct.finish()
1457 }
1458}