Debian Codegraph @

internal/generated/snippets/translate/apiv3/snippet_metadata.google.cloud.translation.v3.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/translate/apiv3",
4 "version": "1.12.6",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.translation.v3",
9 "version": "v3"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "translate_v3_generated_TranslationService_AdaptiveMtTranslate_sync",
16 "title": "translate AdaptiveMtTranslate Sample",
17 "description": "AdaptiveMtTranslate translate text using Adaptive MT.",
18 "file": "TranslationClient/AdaptiveMtTranslate/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "AdaptiveMtTranslate",
22 "fullName": "google.cloud.translation.v3.TranslationClient.AdaptiveMtTranslate",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "translatepb.AdaptiveMtTranslateRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*translatepb.AdaptiveMtTranslateResponse",
38 "client": {
39 "shortName": "TranslationClient",
40 "fullName": "google.cloud.translation.v3.TranslationClient"
41 },
42 "method": {
43 "shortName": "AdaptiveMtTranslate",
44 "fullName": "google.cloud.translation.v3.TranslationService.AdaptiveMtTranslate",
45 "service": {
46 "shortName": "TranslationService",
47 "fullName": "google.cloud.translation.v3.TranslationService"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 53,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "translate_v3_generated_TranslationService_BatchTranslateDocument_sync",
62 "title": "translate BatchTranslateDocument Sample",
63 "description": "BatchTranslateDocument translates a large volume of document in asynchronous batch mode.\nThis function provides real-time output as the inputs are being processed.\nIf caller cancels a request, the partial results (for an input file, it's\nall or nothing) may still be available on the specified output location.\n\nThis call returns immediately and you can use\ngoogle.longrunning.Operation.name to poll the status of the call.",
64 "file": "TranslationClient/BatchTranslateDocument/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "BatchTranslateDocument",
68 "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateDocument",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "translatepb.BatchTranslateDocumentRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "BatchTranslateDocumentOperation",
84 "client": {
85 "shortName": "TranslationClient",
86 "fullName": "google.cloud.translation.v3.TranslationClient"
87 },
88 "method": {
89 "shortName": "BatchTranslateDocument",
90 "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateDocument",
91 "service": {
92 "shortName": "TranslationService",
93 "fullName": "google.cloud.translation.v3.TranslationService"
94 }
95 }
96 },
97 "origin": "API_DEFINITION",
98 "segments": [
99 {
100 "start": 18,
101 "end": 58,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "translate_v3_generated_TranslationService_BatchTranslateText_sync",
108 "title": "translate BatchTranslateText Sample",
109 "description": "BatchTranslateText translates a large volume of text in asynchronous batch mode.\nThis function provides real-time output as the inputs are being processed.\nIf caller cancels a request, the partial results (for an input file, it's\nall or nothing) may still be available on the specified output location.\n\nThis call returns immediately and you can\nuse google.longrunning.Operation.name to poll the status of the call.",
110 "file": "TranslationClient/BatchTranslateText/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "BatchTranslateText",
114 "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateText",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "translatepb.BatchTranslateTextRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "BatchTranslateTextOperation",
130 "client": {
131 "shortName": "TranslationClient",
132 "fullName": "google.cloud.translation.v3.TranslationClient"
133 },
134 "method": {
135 "shortName": "BatchTranslateText",
136 "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateText",
137 "service": {
138 "shortName": "TranslationService",
139 "fullName": "google.cloud.translation.v3.TranslationService"
140 }
141 }
142 },
143 "origin": "API_DEFINITION",
144 "segments": [
145 {
146 "start": 18,
147 "end": 58,
148 "type": "FULL"
149 }
150 ]
151 },
152 {
153 "regionTag": "translate_v3_generated_TranslationService_CancelOperation_sync",
154 "title": "translate CancelOperation Sample",
155 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
156 "file": "TranslationClient/CancelOperation/main.go",
157 "language": "GO",
158 "clientMethod": {
159 "shortName": "CancelOperation",
160 "fullName": "google.cloud.translation.v3.TranslationClient.CancelOperation",
161 "parameters": [
162 {
163 "type": "context.Context",
164 "name": "ctx"
165 },
166 {
167 "type": "longrunningpb.CancelOperationRequest",
168 "name": "req"
169 },
170 {
171 "type": "...gax.CallOption",
172 "name": "opts"
173 }
174 ],
175 "client": {
176 "shortName": "TranslationClient",
177 "fullName": "google.cloud.translation.v3.TranslationClient"
178 },
179 "method": {
180 "shortName": "CancelOperation",
181 "fullName": "google.longrunning.Operations.CancelOperation",
182 "service": {
183 "shortName": "Operations",
184 "fullName": "google.longrunning.Operations"
185 }
186 }
187 },
188 "origin": "API_DEFINITION",
189 "segments": [
190 {
191 "start": 18,
192 "end": 51,
193 "type": "FULL"
194 }
195 ]
196 },
197 {
198 "regionTag": "translate_v3_generated_TranslationService_CreateAdaptiveMtDataset_sync",
199 "title": "translate CreateAdaptiveMtDataset Sample",
200 "description": "CreateAdaptiveMtDataset creates an Adaptive MT dataset.",
201 "file": "TranslationClient/CreateAdaptiveMtDataset/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "CreateAdaptiveMtDataset",
205 "fullName": "google.cloud.translation.v3.TranslationClient.CreateAdaptiveMtDataset",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "translatepb.CreateAdaptiveMtDatasetRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "*translatepb.AdaptiveMtDataset",
221 "client": {
222 "shortName": "TranslationClient",
223 "fullName": "google.cloud.translation.v3.TranslationClient"
224 },
225 "method": {
226 "shortName": "CreateAdaptiveMtDataset",
227 "fullName": "google.cloud.translation.v3.TranslationService.CreateAdaptiveMtDataset",
228 "service": {
229 "shortName": "TranslationService",
230 "fullName": "google.cloud.translation.v3.TranslationService"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 53,
239 "type": "FULL"
240 }
241 ]
242 },
243 {
244 "regionTag": "translate_v3_generated_TranslationService_CreateDataset_sync",
245 "title": "translate CreateDataset Sample",
246 "description": "CreateDataset creates a Dataset.",
247 "file": "TranslationClient/CreateDataset/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "CreateDataset",
251 "fullName": "google.cloud.translation.v3.TranslationClient.CreateDataset",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "translatepb.CreateDatasetRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "CreateDatasetOperation",
267 "client": {
268 "shortName": "TranslationClient",
269 "fullName": "google.cloud.translation.v3.TranslationClient"
270 },
271 "method": {
272 "shortName": "CreateDataset",
273 "fullName": "google.cloud.translation.v3.TranslationService.CreateDataset",
274 "service": {
275 "shortName": "TranslationService",
276 "fullName": "google.cloud.translation.v3.TranslationService"
277 }
278 }
279 },
280 "origin": "API_DEFINITION",
281 "segments": [
282 {
283 "start": 18,
284 "end": 58,
285 "type": "FULL"
286 }
287 ]
288 },
289 {
290 "regionTag": "translate_v3_generated_TranslationService_CreateGlossary_sync",
291 "title": "translate CreateGlossary Sample",
292 "description": "CreateGlossary creates a glossary and returns the long-running operation. Returns\nNOT_FOUND, if the project doesn't exist.",
293 "file": "TranslationClient/CreateGlossary/main.go",
294 "language": "GO",
295 "clientMethod": {
296 "shortName": "CreateGlossary",
297 "fullName": "google.cloud.translation.v3.TranslationClient.CreateGlossary",
298 "parameters": [
299 {
300 "type": "context.Context",
301 "name": "ctx"
302 },
303 {
304 "type": "translatepb.CreateGlossaryRequest",
305 "name": "req"
306 },
307 {
308 "type": "...gax.CallOption",
309 "name": "opts"
310 }
311 ],
312 "resultType": "CreateGlossaryOperation",
313 "client": {
314 "shortName": "TranslationClient",
315 "fullName": "google.cloud.translation.v3.TranslationClient"
316 },
317 "method": {
318 "shortName": "CreateGlossary",
319 "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossary",
320 "service": {
321 "shortName": "TranslationService",
322 "fullName": "google.cloud.translation.v3.TranslationService"
323 }
324 }
325 },
326 "origin": "API_DEFINITION",
327 "segments": [
328 {
329 "start": 18,
330 "end": 58,
331 "type": "FULL"
332 }
333 ]
334 },
335 {
336 "regionTag": "translate_v3_generated_TranslationService_CreateGlossaryEntry_sync",
337 "title": "translate CreateGlossaryEntry Sample",
338 "description": "CreateGlossaryEntry creates a glossary entry.",
339 "file": "TranslationClient/CreateGlossaryEntry/main.go",
340 "language": "GO",
341 "clientMethod": {
342 "shortName": "CreateGlossaryEntry",
343 "fullName": "google.cloud.translation.v3.TranslationClient.CreateGlossaryEntry",
344 "parameters": [
345 {
346 "type": "context.Context",
347 "name": "ctx"
348 },
349 {
350 "type": "translatepb.CreateGlossaryEntryRequest",
351 "name": "req"
352 },
353 {
354 "type": "...gax.CallOption",
355 "name": "opts"
356 }
357 ],
358 "resultType": "*translatepb.GlossaryEntry",
359 "client": {
360 "shortName": "TranslationClient",
361 "fullName": "google.cloud.translation.v3.TranslationClient"
362 },
363 "method": {
364 "shortName": "CreateGlossaryEntry",
365 "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossaryEntry",
366 "service": {
367 "shortName": "TranslationService",
368 "fullName": "google.cloud.translation.v3.TranslationService"
369 }
370 }
371 },
372 "origin": "API_DEFINITION",
373 "segments": [
374 {
375 "start": 18,
376 "end": 53,
377 "type": "FULL"
378 }
379 ]
380 },
381 {
382 "regionTag": "translate_v3_generated_TranslationService_CreateModel_sync",
383 "title": "translate CreateModel Sample",
384 "description": "CreateModel creates a Model.",
385 "file": "TranslationClient/CreateModel/main.go",
386 "language": "GO",
387 "clientMethod": {
388 "shortName": "CreateModel",
389 "fullName": "google.cloud.translation.v3.TranslationClient.CreateModel",
390 "parameters": [
391 {
392 "type": "context.Context",
393 "name": "ctx"
394 },
395 {
396 "type": "translatepb.CreateModelRequest",
397 "name": "req"
398 },
399 {
400 "type": "...gax.CallOption",
401 "name": "opts"
402 }
403 ],
404 "resultType": "CreateModelOperation",
405 "client": {
406 "shortName": "TranslationClient",
407 "fullName": "google.cloud.translation.v3.TranslationClient"
408 },
409 "method": {
410 "shortName": "CreateModel",
411 "fullName": "google.cloud.translation.v3.TranslationService.CreateModel",
412 "service": {
413 "shortName": "TranslationService",
414 "fullName": "google.cloud.translation.v3.TranslationService"
415 }
416 }
417 },
418 "origin": "API_DEFINITION",
419 "segments": [
420 {
421 "start": 18,
422 "end": 58,
423 "type": "FULL"
424 }
425 ]
426 },
427 {
428 "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtDataset_sync",
429 "title": "translate DeleteAdaptiveMtDataset Sample",
430 "description": "DeleteAdaptiveMtDataset deletes an Adaptive MT dataset, including all its entries and associated\nmetadata.",
431 "file": "TranslationClient/DeleteAdaptiveMtDataset/main.go",
432 "language": "GO",
433 "clientMethod": {
434 "shortName": "DeleteAdaptiveMtDataset",
435 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteAdaptiveMtDataset",
436 "parameters": [
437 {
438 "type": "context.Context",
439 "name": "ctx"
440 },
441 {
442 "type": "translatepb.DeleteAdaptiveMtDatasetRequest",
443 "name": "req"
444 },
445 {
446 "type": "...gax.CallOption",
447 "name": "opts"
448 }
449 ],
450 "client": {
451 "shortName": "TranslationClient",
452 "fullName": "google.cloud.translation.v3.TranslationClient"
453 },
454 "method": {
455 "shortName": "DeleteAdaptiveMtDataset",
456 "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtDataset",
457 "service": {
458 "shortName": "TranslationService",
459 "fullName": "google.cloud.translation.v3.TranslationService"
460 }
461 }
462 },
463 "origin": "API_DEFINITION",
464 "segments": [
465 {
466 "start": 18,
467 "end": 51,
468 "type": "FULL"
469 }
470 ]
471 },
472 {
473 "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtFile_sync",
474 "title": "translate DeleteAdaptiveMtFile Sample",
475 "description": "DeleteAdaptiveMtFile deletes an AdaptiveMtFile along with its sentences.",
476 "file": "TranslationClient/DeleteAdaptiveMtFile/main.go",
477 "language": "GO",
478 "clientMethod": {
479 "shortName": "DeleteAdaptiveMtFile",
480 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteAdaptiveMtFile",
481 "parameters": [
482 {
483 "type": "context.Context",
484 "name": "ctx"
485 },
486 {
487 "type": "translatepb.DeleteAdaptiveMtFileRequest",
488 "name": "req"
489 },
490 {
491 "type": "...gax.CallOption",
492 "name": "opts"
493 }
494 ],
495 "client": {
496 "shortName": "TranslationClient",
497 "fullName": "google.cloud.translation.v3.TranslationClient"
498 },
499 "method": {
500 "shortName": "DeleteAdaptiveMtFile",
501 "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtFile",
502 "service": {
503 "shortName": "TranslationService",
504 "fullName": "google.cloud.translation.v3.TranslationService"
505 }
506 }
507 },
508 "origin": "API_DEFINITION",
509 "segments": [
510 {
511 "start": 18,
512 "end": 51,
513 "type": "FULL"
514 }
515 ]
516 },
517 {
518 "regionTag": "translate_v3_generated_TranslationService_DeleteDataset_sync",
519 "title": "translate DeleteDataset Sample",
520 "description": "DeleteDataset deletes a dataset and all of its contents.",
521 "file": "TranslationClient/DeleteDataset/main.go",
522 "language": "GO",
523 "clientMethod": {
524 "shortName": "DeleteDataset",
525 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteDataset",
526 "parameters": [
527 {
528 "type": "context.Context",
529 "name": "ctx"
530 },
531 {
532 "type": "translatepb.DeleteDatasetRequest",
533 "name": "req"
534 },
535 {
536 "type": "...gax.CallOption",
537 "name": "opts"
538 }
539 ],
540 "resultType": "DeleteDatasetOperation",
541 "client": {
542 "shortName": "TranslationClient",
543 "fullName": "google.cloud.translation.v3.TranslationClient"
544 },
545 "method": {
546 "shortName": "DeleteDataset",
547 "fullName": "google.cloud.translation.v3.TranslationService.DeleteDataset",
548 "service": {
549 "shortName": "TranslationService",
550 "fullName": "google.cloud.translation.v3.TranslationService"
551 }
552 }
553 },
554 "origin": "API_DEFINITION",
555 "segments": [
556 {
557 "start": 18,
558 "end": 56,
559 "type": "FULL"
560 }
561 ]
562 },
563 {
564 "regionTag": "translate_v3_generated_TranslationService_DeleteGlossary_sync",
565 "title": "translate DeleteGlossary Sample",
566 "description": "DeleteGlossary deletes a glossary, or cancels glossary construction\nif the glossary isn't created yet.\nReturns NOT_FOUND, if the glossary doesn't exist.",
567 "file": "TranslationClient/DeleteGlossary/main.go",
568 "language": "GO",
569 "clientMethod": {
570 "shortName": "DeleteGlossary",
571 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteGlossary",
572 "parameters": [
573 {
574 "type": "context.Context",
575 "name": "ctx"
576 },
577 {
578 "type": "translatepb.DeleteGlossaryRequest",
579 "name": "req"
580 },
581 {
582 "type": "...gax.CallOption",
583 "name": "opts"
584 }
585 ],
586 "resultType": "DeleteGlossaryOperation",
587 "client": {
588 "shortName": "TranslationClient",
589 "fullName": "google.cloud.translation.v3.TranslationClient"
590 },
591 "method": {
592 "shortName": "DeleteGlossary",
593 "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossary",
594 "service": {
595 "shortName": "TranslationService",
596 "fullName": "google.cloud.translation.v3.TranslationService"
597 }
598 }
599 },
600 "origin": "API_DEFINITION",
601 "segments": [
602 {
603 "start": 18,
604 "end": 58,
605 "type": "FULL"
606 }
607 ]
608 },
609 {
610 "regionTag": "translate_v3_generated_TranslationService_DeleteGlossaryEntry_sync",
611 "title": "translate DeleteGlossaryEntry Sample",
612 "description": "DeleteGlossaryEntry deletes a single entry from the glossary",
613 "file": "TranslationClient/DeleteGlossaryEntry/main.go",
614 "language": "GO",
615 "clientMethod": {
616 "shortName": "DeleteGlossaryEntry",
617 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteGlossaryEntry",
618 "parameters": [
619 {
620 "type": "context.Context",
621 "name": "ctx"
622 },
623 {
624 "type": "translatepb.DeleteGlossaryEntryRequest",
625 "name": "req"
626 },
627 {
628 "type": "...gax.CallOption",
629 "name": "opts"
630 }
631 ],
632 "client": {
633 "shortName": "TranslationClient",
634 "fullName": "google.cloud.translation.v3.TranslationClient"
635 },
636 "method": {
637 "shortName": "DeleteGlossaryEntry",
638 "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossaryEntry",
639 "service": {
640 "shortName": "TranslationService",
641 "fullName": "google.cloud.translation.v3.TranslationService"
642 }
643 }
644 },
645 "origin": "API_DEFINITION",
646 "segments": [
647 {
648 "start": 18,
649 "end": 51,
650 "type": "FULL"
651 }
652 ]
653 },
654 {
655 "regionTag": "translate_v3_generated_TranslationService_DeleteModel_sync",
656 "title": "translate DeleteModel Sample",
657 "description": "DeleteModel deletes a model.",
658 "file": "TranslationClient/DeleteModel/main.go",
659 "language": "GO",
660 "clientMethod": {
661 "shortName": "DeleteModel",
662 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteModel",
663 "parameters": [
664 {
665 "type": "context.Context",
666 "name": "ctx"
667 },
668 {
669 "type": "translatepb.DeleteModelRequest",
670 "name": "req"
671 },
672 {
673 "type": "...gax.CallOption",
674 "name": "opts"
675 }
676 ],
677 "resultType": "DeleteModelOperation",
678 "client": {
679 "shortName": "TranslationClient",
680 "fullName": "google.cloud.translation.v3.TranslationClient"
681 },
682 "method": {
683 "shortName": "DeleteModel",
684 "fullName": "google.cloud.translation.v3.TranslationService.DeleteModel",
685 "service": {
686 "shortName": "TranslationService",
687 "fullName": "google.cloud.translation.v3.TranslationService"
688 }
689 }
690 },
691 "origin": "API_DEFINITION",
692 "segments": [
693 {
694 "start": 18,
695 "end": 56,
696 "type": "FULL"
697 }
698 ]
699 },
700 {
701 "regionTag": "translate_v3_generated_TranslationService_DeleteOperation_sync",
702 "title": "translate DeleteOperation Sample",
703 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
704 "file": "TranslationClient/DeleteOperation/main.go",
705 "language": "GO",
706 "clientMethod": {
707 "shortName": "DeleteOperation",
708 "fullName": "google.cloud.translation.v3.TranslationClient.DeleteOperation",
709 "parameters": [
710 {
711 "type": "context.Context",
712 "name": "ctx"
713 },
714 {
715 "type": "longrunningpb.DeleteOperationRequest",
716 "name": "req"
717 },
718 {
719 "type": "...gax.CallOption",
720 "name": "opts"
721 }
722 ],
723 "client": {
724 "shortName": "TranslationClient",
725 "fullName": "google.cloud.translation.v3.TranslationClient"
726 },
727 "method": {
728 "shortName": "DeleteOperation",
729 "fullName": "google.longrunning.Operations.DeleteOperation",
730 "service": {
731 "shortName": "Operations",
732 "fullName": "google.longrunning.Operations"
733 }
734 }
735 },
736 "origin": "API_DEFINITION",
737 "segments": [
738 {
739 "start": 18,
740 "end": 51,
741 "type": "FULL"
742 }
743 ]
744 },
745 {
746 "regionTag": "translate_v3_generated_TranslationService_DetectLanguage_sync",
747 "title": "translate DetectLanguage Sample",
748 "description": "DetectLanguage detects the language of text within a request.",
749 "file": "TranslationClient/DetectLanguage/main.go",
750 "language": "GO",
751 "clientMethod": {
752 "shortName": "DetectLanguage",
753 "fullName": "google.cloud.translation.v3.TranslationClient.DetectLanguage",
754 "parameters": [
755 {
756 "type": "context.Context",
757 "name": "ctx"
758 },
759 {
760 "type": "translatepb.DetectLanguageRequest",
761 "name": "req"
762 },
763 {
764 "type": "...gax.CallOption",
765 "name": "opts"
766 }
767 ],
768 "resultType": "*translatepb.DetectLanguageResponse",
769 "client": {
770 "shortName": "TranslationClient",
771 "fullName": "google.cloud.translation.v3.TranslationClient"
772 },
773 "method": {
774 "shortName": "DetectLanguage",
775 "fullName": "google.cloud.translation.v3.TranslationService.DetectLanguage",
776 "service": {
777 "shortName": "TranslationService",
778 "fullName": "google.cloud.translation.v3.TranslationService"
779 }
780 }
781 },
782 "origin": "API_DEFINITION",
783 "segments": [
784 {
785 "start": 18,
786 "end": 53,
787 "type": "FULL"
788 }
789 ]
790 },
791 {
792 "regionTag": "translate_v3_generated_TranslationService_ExportData_sync",
793 "title": "translate ExportData Sample",
794 "description": "ExportData exports dataset's data to the provided output location.",
795 "file": "TranslationClient/ExportData/main.go",
796 "language": "GO",
797 "clientMethod": {
798 "shortName": "ExportData",
799 "fullName": "google.cloud.translation.v3.TranslationClient.ExportData",
800 "parameters": [
801 {
802 "type": "context.Context",
803 "name": "ctx"
804 },
805 {
806 "type": "translatepb.ExportDataRequest",
807 "name": "req"
808 },
809 {
810 "type": "...gax.CallOption",
811 "name": "opts"
812 }
813 ],
814 "resultType": "ExportDataOperation",
815 "client": {
816 "shortName": "TranslationClient",
817 "fullName": "google.cloud.translation.v3.TranslationClient"
818 },
819 "method": {
820 "shortName": "ExportData",
821 "fullName": "google.cloud.translation.v3.TranslationService.ExportData",
822 "service": {
823 "shortName": "TranslationService",
824 "fullName": "google.cloud.translation.v3.TranslationService"
825 }
826 }
827 },
828 "origin": "API_DEFINITION",
829 "segments": [
830 {
831 "start": 18,
832 "end": 56,
833 "type": "FULL"
834 }
835 ]
836 },
837 {
838 "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtDataset_sync",
839 "title": "translate GetAdaptiveMtDataset Sample",
840 "description": "GetAdaptiveMtDataset gets the Adaptive MT dataset.",
841 "file": "TranslationClient/GetAdaptiveMtDataset/main.go",
842 "language": "GO",
843 "clientMethod": {
844 "shortName": "GetAdaptiveMtDataset",
845 "fullName": "google.cloud.translation.v3.TranslationClient.GetAdaptiveMtDataset",
846 "parameters": [
847 {
848 "type": "context.Context",
849 "name": "ctx"
850 },
851 {
852 "type": "translatepb.GetAdaptiveMtDatasetRequest",
853 "name": "req"
854 },
855 {
856 "type": "...gax.CallOption",
857 "name": "opts"
858 }
859 ],
860 "resultType": "*translatepb.AdaptiveMtDataset",
861 "client": {
862 "shortName": "TranslationClient",
863 "fullName": "google.cloud.translation.v3.TranslationClient"
864 },
865 "method": {
866 "shortName": "GetAdaptiveMtDataset",
867 "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtDataset",
868 "service": {
869 "shortName": "TranslationService",
870 "fullName": "google.cloud.translation.v3.TranslationService"
871 }
872 }
873 },
874 "origin": "API_DEFINITION",
875 "segments": [
876 {
877 "start": 18,
878 "end": 53,
879 "type": "FULL"
880 }
881 ]
882 },
883 {
884 "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtFile_sync",
885 "title": "translate GetAdaptiveMtFile Sample",
886 "description": "GetAdaptiveMtFile gets and AdaptiveMtFile",
887 "file": "TranslationClient/GetAdaptiveMtFile/main.go",
888 "language": "GO",
889 "clientMethod": {
890 "shortName": "GetAdaptiveMtFile",
891 "fullName": "google.cloud.translation.v3.TranslationClient.GetAdaptiveMtFile",
892 "parameters": [
893 {
894 "type": "context.Context",
895 "name": "ctx"
896 },
897 {
898 "type": "translatepb.GetAdaptiveMtFileRequest",
899 "name": "req"
900 },
901 {
902 "type": "...gax.CallOption",
903 "name": "opts"
904 }
905 ],
906 "resultType": "*translatepb.AdaptiveMtFile",
907 "client": {
908 "shortName": "TranslationClient",
909 "fullName": "google.cloud.translation.v3.TranslationClient"
910 },
911 "method": {
912 "shortName": "GetAdaptiveMtFile",
913 "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtFile",
914 "service": {
915 "shortName": "TranslationService",
916 "fullName": "google.cloud.translation.v3.TranslationService"
917 }
918 }
919 },
920 "origin": "API_DEFINITION",
921 "segments": [
922 {
923 "start": 18,
924 "end": 53,
925 "type": "FULL"
926 }
927 ]
928 },
929 {
930 "regionTag": "translate_v3_generated_TranslationService_GetDataset_sync",
931 "title": "translate GetDataset Sample",
932 "description": "GetDataset gets a Dataset.",
933 "file": "TranslationClient/GetDataset/main.go",
934 "language": "GO",
935 "clientMethod": {
936 "shortName": "GetDataset",
937 "fullName": "google.cloud.translation.v3.TranslationClient.GetDataset",
938 "parameters": [
939 {
940 "type": "context.Context",
941 "name": "ctx"
942 },
943 {
944 "type": "translatepb.GetDatasetRequest",
945 "name": "req"
946 },
947 {
948 "type": "...gax.CallOption",
949 "name": "opts"
950 }
951 ],
952 "resultType": "*translatepb.Dataset",
953 "client": {
954 "shortName": "TranslationClient",
955 "fullName": "google.cloud.translation.v3.TranslationClient"
956 },
957 "method": {
958 "shortName": "GetDataset",
959 "fullName": "google.cloud.translation.v3.TranslationService.GetDataset",
960 "service": {
961 "shortName": "TranslationService",
962 "fullName": "google.cloud.translation.v3.TranslationService"
963 }
964 }
965 },
966 "origin": "API_DEFINITION",
967 "segments": [
968 {
969 "start": 18,
970 "end": 53,
971 "type": "FULL"
972 }
973 ]
974 },
975 {
976 "regionTag": "translate_v3_generated_TranslationService_GetGlossary_sync",
977 "title": "translate GetGlossary Sample",
978 "description": "GetGlossary gets a glossary. Returns NOT_FOUND, if the glossary doesn't\nexist.",
979 "file": "TranslationClient/GetGlossary/main.go",
980 "language": "GO",
981 "clientMethod": {
982 "shortName": "GetGlossary",
983 "fullName": "google.cloud.translation.v3.TranslationClient.GetGlossary",
984 "parameters": [
985 {
986 "type": "context.Context",
987 "name": "ctx"
988 },
989 {
990 "type": "translatepb.GetGlossaryRequest",
991 "name": "req"
992 },
993 {
994 "type": "...gax.CallOption",
995 "name": "opts"
996 }
997 ],
998 "resultType": "*translatepb.Glossary",
999 "client": {
1000 "shortName": "TranslationClient",
1001 "fullName": "google.cloud.translation.v3.TranslationClient"
1002 },
1003 "method": {
1004 "shortName": "GetGlossary",
1005 "fullName": "google.cloud.translation.v3.TranslationService.GetGlossary",
1006 "service": {
1007 "shortName": "TranslationService",
1008 "fullName": "google.cloud.translation.v3.TranslationService"
1009 }
1010 }
1011 },
1012 "origin": "API_DEFINITION",
1013 "segments": [
1014 {
1015 "start": 18,
1016 "end": 53,
1017 "type": "FULL"
1018 }
1019 ]
1020 },
1021 {
1022 "regionTag": "translate_v3_generated_TranslationService_GetGlossaryEntry_sync",
1023 "title": "translate GetGlossaryEntry Sample",
1024 "description": "GetGlossaryEntry gets a single glossary entry by the given id.",
1025 "file": "TranslationClient/GetGlossaryEntry/main.go",
1026 "language": "GO",
1027 "clientMethod": {
1028 "shortName": "GetGlossaryEntry",
1029 "fullName": "google.cloud.translation.v3.TranslationClient.GetGlossaryEntry",
1030 "parameters": [
1031 {
1032 "type": "context.Context",
1033 "name": "ctx"
1034 },
1035 {
1036 "type": "translatepb.GetGlossaryEntryRequest",
1037 "name": "req"
1038 },
1039 {
1040 "type": "...gax.CallOption",
1041 "name": "opts"
1042 }
1043 ],
1044 "resultType": "*translatepb.GlossaryEntry",
1045 "client": {
1046 "shortName": "TranslationClient",
1047 "fullName": "google.cloud.translation.v3.TranslationClient"
1048 },
1049 "method": {
1050 "shortName": "GetGlossaryEntry",
1051 "fullName": "google.cloud.translation.v3.TranslationService.GetGlossaryEntry",
1052 "service": {
1053 "shortName": "TranslationService",
1054 "fullName": "google.cloud.translation.v3.TranslationService"
1055 }
1056 }
1057 },
1058 "origin": "API_DEFINITION",
1059 "segments": [
1060 {
1061 "start": 18,
1062 "end": 53,
1063 "type": "FULL"
1064 }
1065 ]
1066 },
1067 {
1068 "regionTag": "translate_v3_generated_TranslationService_GetLocation_sync",
1069 "title": "translate GetLocation Sample",
1070 "description": "GetLocation gets information about a location.",
1071 "file": "TranslationClient/GetLocation/main.go",
1072 "language": "GO",
1073 "clientMethod": {
1074 "shortName": "GetLocation",
1075 "fullName": "google.cloud.translation.v3.TranslationClient.GetLocation",
1076 "parameters": [
1077 {
1078 "type": "context.Context",
1079 "name": "ctx"
1080 },
1081 {
1082 "type": "locationpb.GetLocationRequest",
1083 "name": "req"
1084 },
1085 {
1086 "type": "...gax.CallOption",
1087 "name": "opts"
1088 }
1089 ],
1090 "resultType": "*locationpb.Location",
1091 "client": {
1092 "shortName": "TranslationClient",
1093 "fullName": "google.cloud.translation.v3.TranslationClient"
1094 },
1095 "method": {
1096 "shortName": "GetLocation",
1097 "fullName": "google.cloud.location.Locations.GetLocation",
1098 "service": {
1099 "shortName": "Locations",
1100 "fullName": "google.cloud.location.Locations"
1101 }
1102 }
1103 },
1104 "origin": "API_DEFINITION",
1105 "segments": [
1106 {
1107 "start": 18,
1108 "end": 53,
1109 "type": "FULL"
1110 }
1111 ]
1112 },
1113 {
1114 "regionTag": "translate_v3_generated_TranslationService_GetModel_sync",
1115 "title": "translate GetModel Sample",
1116 "description": "GetModel gets a model.",
1117 "file": "TranslationClient/GetModel/main.go",
1118 "language": "GO",
1119 "clientMethod": {
1120 "shortName": "GetModel",
1121 "fullName": "google.cloud.translation.v3.TranslationClient.GetModel",
1122 "parameters": [
1123 {
1124 "type": "context.Context",
1125 "name": "ctx"
1126 },
1127 {
1128 "type": "translatepb.GetModelRequest",
1129 "name": "req"
1130 },
1131 {
1132 "type": "...gax.CallOption",
1133 "name": "opts"
1134 }
1135 ],
1136 "resultType": "*translatepb.Model",
1137 "client": {
1138 "shortName": "TranslationClient",
1139 "fullName": "google.cloud.translation.v3.TranslationClient"
1140 },
1141 "method": {
1142 "shortName": "GetModel",
1143 "fullName": "google.cloud.translation.v3.TranslationService.GetModel",
1144 "service": {
1145 "shortName": "TranslationService",
1146 "fullName": "google.cloud.translation.v3.TranslationService"
1147 }
1148 }
1149 },
1150 "origin": "API_DEFINITION",
1151 "segments": [
1152 {
1153 "start": 18,
1154 "end": 53,
1155 "type": "FULL"
1156 }
1157 ]
1158 },
1159 {
1160 "regionTag": "translate_v3_generated_TranslationService_GetOperation_sync",
1161 "title": "translate GetOperation Sample",
1162 "description": "GetOperation is a utility method from google.longrunning.Operations.",
1163 "file": "TranslationClient/GetOperation/main.go",
1164 "language": "GO",
1165 "clientMethod": {
1166 "shortName": "GetOperation",
1167 "fullName": "google.cloud.translation.v3.TranslationClient.GetOperation",
1168 "parameters": [
1169 {
1170 "type": "context.Context",
1171 "name": "ctx"
1172 },
1173 {
1174 "type": "longrunningpb.GetOperationRequest",
1175 "name": "req"
1176 },
1177 {
1178 "type": "...gax.CallOption",
1179 "name": "opts"
1180 }
1181 ],
1182 "resultType": "*longrunningpb.Operation",
1183 "client": {
1184 "shortName": "TranslationClient",
1185 "fullName": "google.cloud.translation.v3.TranslationClient"
1186 },
1187 "method": {
1188 "shortName": "GetOperation",
1189 "fullName": "google.longrunning.Operations.GetOperation",
1190 "service": {
1191 "shortName": "Operations",
1192 "fullName": "google.longrunning.Operations"
1193 }
1194 }
1195 },
1196 "origin": "API_DEFINITION",
1197 "segments": [
1198 {
1199 "start": 18,
1200 "end": 53,
1201 "type": "FULL"
1202 }
1203 ]
1204 },
1205 {
1206 "regionTag": "translate_v3_generated_TranslationService_GetSupportedLanguages_sync",
1207 "title": "translate GetSupportedLanguages Sample",
1208 "description": "GetSupportedLanguages returns a list of supported languages for translation.",
1209 "file": "TranslationClient/GetSupportedLanguages/main.go",
1210 "language": "GO",
1211 "clientMethod": {
1212 "shortName": "GetSupportedLanguages",
1213 "fullName": "google.cloud.translation.v3.TranslationClient.GetSupportedLanguages",
1214 "parameters": [
1215 {
1216 "type": "context.Context",
1217 "name": "ctx"
1218 },
1219 {
1220 "type": "translatepb.GetSupportedLanguagesRequest",
1221 "name": "req"
1222 },
1223 {
1224 "type": "...gax.CallOption",
1225 "name": "opts"
1226 }
1227 ],
1228 "resultType": "*translatepb.SupportedLanguages",
1229 "client": {
1230 "shortName": "TranslationClient",
1231 "fullName": "google.cloud.translation.v3.TranslationClient"
1232 },
1233 "method": {
1234 "shortName": "GetSupportedLanguages",
1235 "fullName": "google.cloud.translation.v3.TranslationService.GetSupportedLanguages",
1236 "service": {
1237 "shortName": "TranslationService",
1238 "fullName": "google.cloud.translation.v3.TranslationService"
1239 }
1240 }
1241 },
1242 "origin": "API_DEFINITION",
1243 "segments": [
1244 {
1245 "start": 18,
1246 "end": 53,
1247 "type": "FULL"
1248 }
1249 ]
1250 },
1251 {
1252 "regionTag": "translate_v3_generated_TranslationService_ImportAdaptiveMtFile_sync",
1253 "title": "translate ImportAdaptiveMtFile Sample",
1254 "description": "ImportAdaptiveMtFile imports an AdaptiveMtFile and adds all of its sentences into the\nAdaptiveMtDataset.",
1255 "file": "TranslationClient/ImportAdaptiveMtFile/main.go",
1256 "language": "GO",
1257 "clientMethod": {
1258 "shortName": "ImportAdaptiveMtFile",
1259 "fullName": "google.cloud.translation.v3.TranslationClient.ImportAdaptiveMtFile",
1260 "parameters": [
1261 {
1262 "type": "context.Context",
1263 "name": "ctx"
1264 },
1265 {
1266 "type": "translatepb.ImportAdaptiveMtFileRequest",
1267 "name": "req"
1268 },
1269 {
1270 "type": "...gax.CallOption",
1271 "name": "opts"
1272 }
1273 ],
1274 "resultType": "*translatepb.ImportAdaptiveMtFileResponse",
1275 "client": {
1276 "shortName": "TranslationClient",
1277 "fullName": "google.cloud.translation.v3.TranslationClient"
1278 },
1279 "method": {
1280 "shortName": "ImportAdaptiveMtFile",
1281 "fullName": "google.cloud.translation.v3.TranslationService.ImportAdaptiveMtFile",
1282 "service": {
1283 "shortName": "TranslationService",
1284 "fullName": "google.cloud.translation.v3.TranslationService"
1285 }
1286 }
1287 },
1288 "origin": "API_DEFINITION",
1289 "segments": [
1290 {
1291 "start": 18,
1292 "end": 53,
1293 "type": "FULL"
1294 }
1295 ]
1296 },
1297 {
1298 "regionTag": "translate_v3_generated_TranslationService_ImportData_sync",
1299 "title": "translate ImportData Sample",
1300 "description": "ImportData import sentence pairs into translation Dataset.",
1301 "file": "TranslationClient/ImportData/main.go",
1302 "language": "GO",
1303 "clientMethod": {
1304 "shortName": "ImportData",
1305 "fullName": "google.cloud.translation.v3.TranslationClient.ImportData",
1306 "parameters": [
1307 {
1308 "type": "context.Context",
1309 "name": "ctx"
1310 },
1311 {
1312 "type": "translatepb.ImportDataRequest",
1313 "name": "req"
1314 },
1315 {
1316 "type": "...gax.CallOption",
1317 "name": "opts"
1318 }
1319 ],
1320 "resultType": "ImportDataOperation",
1321 "client": {
1322 "shortName": "TranslationClient",
1323 "fullName": "google.cloud.translation.v3.TranslationClient"
1324 },
1325 "method": {
1326 "shortName": "ImportData",
1327 "fullName": "google.cloud.translation.v3.TranslationService.ImportData",
1328 "service": {
1329 "shortName": "TranslationService",
1330 "fullName": "google.cloud.translation.v3.TranslationService"
1331 }
1332 }
1333 },
1334 "origin": "API_DEFINITION",
1335 "segments": [
1336 {
1337 "start": 18,
1338 "end": 56,
1339 "type": "FULL"
1340 }
1341 ]
1342 },
1343 {
1344 "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtDatasets_sync",
1345 "title": "translate ListAdaptiveMtDatasets Sample",
1346 "description": "ListAdaptiveMtDatasets lists all Adaptive MT datasets for which the caller has read permission.",
1347 "file": "TranslationClient/ListAdaptiveMtDatasets/main.go",
1348 "language": "GO",
1349 "clientMethod": {
1350 "shortName": "ListAdaptiveMtDatasets",
1351 "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtDatasets",
1352 "parameters": [
1353 {
1354 "type": "context.Context",
1355 "name": "ctx"
1356 },
1357 {
1358 "type": "translatepb.ListAdaptiveMtDatasetsRequest",
1359 "name": "req"
1360 },
1361 {
1362 "type": "...gax.CallOption",
1363 "name": "opts"
1364 }
1365 ],
1366 "resultType": "AdaptiveMtDatasetIterator",
1367 "client": {
1368 "shortName": "TranslationClient",
1369 "fullName": "google.cloud.translation.v3.TranslationClient"
1370 },
1371 "method": {
1372 "shortName": "ListAdaptiveMtDatasets",
1373 "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtDatasets",
1374 "service": {
1375 "shortName": "TranslationService",
1376 "fullName": "google.cloud.translation.v3.TranslationService"
1377 }
1378 }
1379 },
1380 "origin": "API_DEFINITION",
1381 "segments": [
1382 {
1383 "start": 18,
1384 "end": 66,
1385 "type": "FULL"
1386 }
1387 ]
1388 },
1389 {
1390 "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtFiles_sync",
1391 "title": "translate ListAdaptiveMtFiles Sample",
1392 "description": "ListAdaptiveMtFiles lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.",
1393 "file": "TranslationClient/ListAdaptiveMtFiles/main.go",
1394 "language": "GO",
1395 "clientMethod": {
1396 "shortName": "ListAdaptiveMtFiles",
1397 "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtFiles",
1398 "parameters": [
1399 {
1400 "type": "context.Context",
1401 "name": "ctx"
1402 },
1403 {
1404 "type": "translatepb.ListAdaptiveMtFilesRequest",
1405 "name": "req"
1406 },
1407 {
1408 "type": "...gax.CallOption",
1409 "name": "opts"
1410 }
1411 ],
1412 "resultType": "AdaptiveMtFileIterator",
1413 "client": {
1414 "shortName": "TranslationClient",
1415 "fullName": "google.cloud.translation.v3.TranslationClient"
1416 },
1417 "method": {
1418 "shortName": "ListAdaptiveMtFiles",
1419 "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtFiles",
1420 "service": {
1421 "shortName": "TranslationService",
1422 "fullName": "google.cloud.translation.v3.TranslationService"
1423 }
1424 }
1425 },
1426 "origin": "API_DEFINITION",
1427 "segments": [
1428 {
1429 "start": 18,
1430 "end": 66,
1431 "type": "FULL"
1432 }
1433 ]
1434 },
1435 {
1436 "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtSentences_sync",
1437 "title": "translate ListAdaptiveMtSentences Sample",
1438 "description": "ListAdaptiveMtSentences lists all AdaptiveMtSentences under a given file/dataset.",
1439 "file": "TranslationClient/ListAdaptiveMtSentences/main.go",
1440 "language": "GO",
1441 "clientMethod": {
1442 "shortName": "ListAdaptiveMtSentences",
1443 "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtSentences",
1444 "parameters": [
1445 {
1446 "type": "context.Context",
1447 "name": "ctx"
1448 },
1449 {
1450 "type": "translatepb.ListAdaptiveMtSentencesRequest",
1451 "name": "req"
1452 },
1453 {
1454 "type": "...gax.CallOption",
1455 "name": "opts"
1456 }
1457 ],
1458 "resultType": "AdaptiveMtSentenceIterator",
1459 "client": {
1460 "shortName": "TranslationClient",
1461 "fullName": "google.cloud.translation.v3.TranslationClient"
1462 },
1463 "method": {
1464 "shortName": "ListAdaptiveMtSentences",
1465 "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtSentences",
1466 "service": {
1467 "shortName": "TranslationService",
1468 "fullName": "google.cloud.translation.v3.TranslationService"
1469 }
1470 }
1471 },
1472 "origin": "API_DEFINITION",
1473 "segments": [
1474 {
1475 "start": 18,
1476 "end": 66,
1477 "type": "FULL"
1478 }
1479 ]
1480 },
1481 {
1482 "regionTag": "translate_v3_generated_TranslationService_ListDatasets_sync",
1483 "title": "translate ListDatasets Sample",
1484 "description": "ListDatasets lists datasets.",
1485 "file": "TranslationClient/ListDatasets/main.go",
1486 "language": "GO",
1487 "clientMethod": {
1488 "shortName": "ListDatasets",
1489 "fullName": "google.cloud.translation.v3.TranslationClient.ListDatasets",
1490 "parameters": [
1491 {
1492 "type": "context.Context",
1493 "name": "ctx"
1494 },
1495 {
1496 "type": "translatepb.ListDatasetsRequest",
1497 "name": "req"
1498 },
1499 {
1500 "type": "...gax.CallOption",
1501 "name": "opts"
1502 }
1503 ],
1504 "resultType": "DatasetIterator",
1505 "client": {
1506 "shortName": "TranslationClient",
1507 "fullName": "google.cloud.translation.v3.TranslationClient"
1508 },
1509 "method": {
1510 "shortName": "ListDatasets",
1511 "fullName": "google.cloud.translation.v3.TranslationService.ListDatasets",
1512 "service": {
1513 "shortName": "TranslationService",
1514 "fullName": "google.cloud.translation.v3.TranslationService"
1515 }
1516 }
1517 },
1518 "origin": "API_DEFINITION",
1519 "segments": [
1520 {
1521 "start": 18,
1522 "end": 66,
1523 "type": "FULL"
1524 }
1525 ]
1526 },
1527 {
1528 "regionTag": "translate_v3_generated_TranslationService_ListExamples_sync",
1529 "title": "translate ListExamples Sample",
1530 "description": "ListExamples lists sentence pairs in the dataset.",
1531 "file": "TranslationClient/ListExamples/main.go",
1532 "language": "GO",
1533 "clientMethod": {
1534 "shortName": "ListExamples",
1535 "fullName": "google.cloud.translation.v3.TranslationClient.ListExamples",
1536 "parameters": [
1537 {
1538 "type": "context.Context",
1539 "name": "ctx"
1540 },
1541 {
1542 "type": "translatepb.ListExamplesRequest",
1543 "name": "req"
1544 },
1545 {
1546 "type": "...gax.CallOption",
1547 "name": "opts"
1548 }
1549 ],
1550 "resultType": "ExampleIterator",
1551 "client": {
1552 "shortName": "TranslationClient",
1553 "fullName": "google.cloud.translation.v3.TranslationClient"
1554 },
1555 "method": {
1556 "shortName": "ListExamples",
1557 "fullName": "google.cloud.translation.v3.TranslationService.ListExamples",
1558 "service": {
1559 "shortName": "TranslationService",
1560 "fullName": "google.cloud.translation.v3.TranslationService"
1561 }
1562 }
1563 },
1564 "origin": "API_DEFINITION",
1565 "segments": [
1566 {
1567 "start": 18,
1568 "end": 66,
1569 "type": "FULL"
1570 }
1571 ]
1572 },
1573 {
1574 "regionTag": "translate_v3_generated_TranslationService_ListGlossaries_sync",
1575 "title": "translate ListGlossaries Sample",
1576 "description": "ListGlossaries lists glossaries in a project. Returns NOT_FOUND, if the project doesn't\nexist.",
1577 "file": "TranslationClient/ListGlossaries/main.go",
1578 "language": "GO",
1579 "clientMethod": {
1580 "shortName": "ListGlossaries",
1581 "fullName": "google.cloud.translation.v3.TranslationClient.ListGlossaries",
1582 "parameters": [
1583 {
1584 "type": "context.Context",
1585 "name": "ctx"
1586 },
1587 {
1588 "type": "translatepb.ListGlossariesRequest",
1589 "name": "req"
1590 },
1591 {
1592 "type": "...gax.CallOption",
1593 "name": "opts"
1594 }
1595 ],
1596 "resultType": "GlossaryIterator",
1597 "client": {
1598 "shortName": "TranslationClient",
1599 "fullName": "google.cloud.translation.v3.TranslationClient"
1600 },
1601 "method": {
1602 "shortName": "ListGlossaries",
1603 "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaries",
1604 "service": {
1605 "shortName": "TranslationService",
1606 "fullName": "google.cloud.translation.v3.TranslationService"
1607 }
1608 }
1609 },
1610 "origin": "API_DEFINITION",
1611 "segments": [
1612 {
1613 "start": 18,
1614 "end": 66,
1615 "type": "FULL"
1616 }
1617 ]
1618 },
1619 {
1620 "regionTag": "translate_v3_generated_TranslationService_ListGlossaryEntries_sync",
1621 "title": "translate ListGlossaryEntries Sample",
1622 "description": "ListGlossaryEntries list the entries for the glossary.",
1623 "file": "TranslationClient/ListGlossaryEntries/main.go",
1624 "language": "GO",
1625 "clientMethod": {
1626 "shortName": "ListGlossaryEntries",
1627 "fullName": "google.cloud.translation.v3.TranslationClient.ListGlossaryEntries",
1628 "parameters": [
1629 {
1630 "type": "context.Context",
1631 "name": "ctx"
1632 },
1633 {
1634 "type": "translatepb.ListGlossaryEntriesRequest",
1635 "name": "req"
1636 },
1637 {
1638 "type": "...gax.CallOption",
1639 "name": "opts"
1640 }
1641 ],
1642 "resultType": "GlossaryEntryIterator",
1643 "client": {
1644 "shortName": "TranslationClient",
1645 "fullName": "google.cloud.translation.v3.TranslationClient"
1646 },
1647 "method": {
1648 "shortName": "ListGlossaryEntries",
1649 "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaryEntries",
1650 "service": {
1651 "shortName": "TranslationService",
1652 "fullName": "google.cloud.translation.v3.TranslationService"
1653 }
1654 }
1655 },
1656 "origin": "API_DEFINITION",
1657 "segments": [
1658 {
1659 "start": 18,
1660 "end": 66,
1661 "type": "FULL"
1662 }
1663 ]
1664 },
1665 {
1666 "regionTag": "translate_v3_generated_TranslationService_ListLocations_sync",
1667 "title": "translate ListLocations Sample",
1668 "description": "ListLocations lists information about the supported locations for this service.",
1669 "file": "TranslationClient/ListLocations/main.go",
1670 "language": "GO",
1671 "clientMethod": {
1672 "shortName": "ListLocations",
1673 "fullName": "google.cloud.translation.v3.TranslationClient.ListLocations",
1674 "parameters": [
1675 {
1676 "type": "context.Context",
1677 "name": "ctx"
1678 },
1679 {
1680 "type": "locationpb.ListLocationsRequest",
1681 "name": "req"
1682 },
1683 {
1684 "type": "...gax.CallOption",
1685 "name": "opts"
1686 }
1687 ],
1688 "resultType": "LocationIterator",
1689 "client": {
1690 "shortName": "TranslationClient",
1691 "fullName": "google.cloud.translation.v3.TranslationClient"
1692 },
1693 "method": {
1694 "shortName": "ListLocations",
1695 "fullName": "google.cloud.location.Locations.ListLocations",
1696 "service": {
1697 "shortName": "Locations",
1698 "fullName": "google.cloud.location.Locations"
1699 }
1700 }
1701 },
1702 "origin": "API_DEFINITION",
1703 "segments": [
1704 {
1705 "start": 18,
1706 "end": 66,
1707 "type": "FULL"
1708 }
1709 ]
1710 },
1711 {
1712 "regionTag": "translate_v3_generated_TranslationService_ListModels_sync",
1713 "title": "translate ListModels Sample",
1714 "description": "ListModels lists models.",
1715 "file": "TranslationClient/ListModels/main.go",
1716 "language": "GO",
1717 "clientMethod": {
1718 "shortName": "ListModels",
1719 "fullName": "google.cloud.translation.v3.TranslationClient.ListModels",
1720 "parameters": [
1721 {
1722 "type": "context.Context",
1723 "name": "ctx"
1724 },
1725 {
1726 "type": "translatepb.ListModelsRequest",
1727 "name": "req"
1728 },
1729 {
1730 "type": "...gax.CallOption",
1731 "name": "opts"
1732 }
1733 ],
1734 "resultType": "ModelIterator",
1735 "client": {
1736 "shortName": "TranslationClient",
1737 "fullName": "google.cloud.translation.v3.TranslationClient"
1738 },
1739 "method": {
1740 "shortName": "ListModels",
1741 "fullName": "google.cloud.translation.v3.TranslationService.ListModels",
1742 "service": {
1743 "shortName": "TranslationService",
1744 "fullName": "google.cloud.translation.v3.TranslationService"
1745 }
1746 }
1747 },
1748 "origin": "API_DEFINITION",
1749 "segments": [
1750 {
1751 "start": 18,
1752 "end": 66,
1753 "type": "FULL"
1754 }
1755 ]
1756 },
1757 {
1758 "regionTag": "translate_v3_generated_TranslationService_ListOperations_sync",
1759 "title": "translate ListOperations Sample",
1760 "description": "ListOperations is a utility method from google.longrunning.Operations.",
1761 "file": "TranslationClient/ListOperations/main.go",
1762 "language": "GO",
1763 "clientMethod": {
1764 "shortName": "ListOperations",
1765 "fullName": "google.cloud.translation.v3.TranslationClient.ListOperations",
1766 "parameters": [
1767 {
1768 "type": "context.Context",
1769 "name": "ctx"
1770 },
1771 {
1772 "type": "longrunningpb.ListOperationsRequest",
1773 "name": "req"
1774 },
1775 {
1776 "type": "...gax.CallOption",
1777 "name": "opts"
1778 }
1779 ],
1780 "resultType": "OperationIterator",
1781 "client": {
1782 "shortName": "TranslationClient",
1783 "fullName": "google.cloud.translation.v3.TranslationClient"
1784 },
1785 "method": {
1786 "shortName": "ListOperations",
1787 "fullName": "google.longrunning.Operations.ListOperations",
1788 "service": {
1789 "shortName": "Operations",
1790 "fullName": "google.longrunning.Operations"
1791 }
1792 }
1793 },
1794 "origin": "API_DEFINITION",
1795 "segments": [
1796 {
1797 "start": 18,
1798 "end": 66,
1799 "type": "FULL"
1800 }
1801 ]
1802 },
1803 {
1804 "regionTag": "translate_v3_generated_TranslationService_RomanizeText_sync",
1805 "title": "translate RomanizeText Sample",
1806 "description": "RomanizeText romanize input text written in non-Latin scripts to Latin text.",
1807 "file": "TranslationClient/RomanizeText/main.go",
1808 "language": "GO",
1809 "clientMethod": {
1810 "shortName": "RomanizeText",
1811 "fullName": "google.cloud.translation.v3.TranslationClient.RomanizeText",
1812 "parameters": [
1813 {
1814 "type": "context.Context",
1815 "name": "ctx"
1816 },
1817 {
1818 "type": "translatepb.RomanizeTextRequest",
1819 "name": "req"
1820 },
1821 {
1822 "type": "...gax.CallOption",
1823 "name": "opts"
1824 }
1825 ],
1826 "resultType": "*translatepb.RomanizeTextResponse",
1827 "client": {
1828 "shortName": "TranslationClient",
1829 "fullName": "google.cloud.translation.v3.TranslationClient"
1830 },
1831 "method": {
1832 "shortName": "RomanizeText",
1833 "fullName": "google.cloud.translation.v3.TranslationService.RomanizeText",
1834 "service": {
1835 "shortName": "TranslationService",
1836 "fullName": "google.cloud.translation.v3.TranslationService"
1837 }
1838 }
1839 },
1840 "origin": "API_DEFINITION",
1841 "segments": [
1842 {
1843 "start": 18,
1844 "end": 53,
1845 "type": "FULL"
1846 }
1847 ]
1848 },
1849 {
1850 "regionTag": "translate_v3_generated_TranslationService_TranslateDocument_sync",
1851 "title": "translate TranslateDocument Sample",
1852 "description": "TranslateDocument translates documents in synchronous mode.",
1853 "file": "TranslationClient/TranslateDocument/main.go",
1854 "language": "GO",
1855 "clientMethod": {
1856 "shortName": "TranslateDocument",
1857 "fullName": "google.cloud.translation.v3.TranslationClient.TranslateDocument",
1858 "parameters": [
1859 {
1860 "type": "context.Context",
1861 "name": "ctx"
1862 },
1863 {
1864 "type": "translatepb.TranslateDocumentRequest",
1865 "name": "req"
1866 },
1867 {
1868 "type": "...gax.CallOption",
1869 "name": "opts"
1870 }
1871 ],
1872 "resultType": "*translatepb.TranslateDocumentResponse",
1873 "client": {
1874 "shortName": "TranslationClient",
1875 "fullName": "google.cloud.translation.v3.TranslationClient"
1876 },
1877 "method": {
1878 "shortName": "TranslateDocument",
1879 "fullName": "google.cloud.translation.v3.TranslationService.TranslateDocument",
1880 "service": {
1881 "shortName": "TranslationService",
1882 "fullName": "google.cloud.translation.v3.TranslationService"
1883 }
1884 }
1885 },
1886 "origin": "API_DEFINITION",
1887 "segments": [
1888 {
1889 "start": 18,
1890 "end": 53,
1891 "type": "FULL"
1892 }
1893 ]
1894 },
1895 {
1896 "regionTag": "translate_v3_generated_TranslationService_TranslateText_sync",
1897 "title": "translate TranslateText Sample",
1898 "description": "TranslateText translates input text and returns translated text.",
1899 "file": "TranslationClient/TranslateText/main.go",
1900 "language": "GO",
1901 "clientMethod": {
1902 "shortName": "TranslateText",
1903 "fullName": "google.cloud.translation.v3.TranslationClient.TranslateText",
1904 "parameters": [
1905 {
1906 "type": "context.Context",
1907 "name": "ctx"
1908 },
1909 {
1910 "type": "translatepb.TranslateTextRequest",
1911 "name": "req"
1912 },
1913 {
1914 "type": "...gax.CallOption",
1915 "name": "opts"
1916 }
1917 ],
1918 "resultType": "*translatepb.TranslateTextResponse",
1919 "client": {
1920 "shortName": "TranslationClient",
1921 "fullName": "google.cloud.translation.v3.TranslationClient"
1922 },
1923 "method": {
1924 "shortName": "TranslateText",
1925 "fullName": "google.cloud.translation.v3.TranslationService.TranslateText",
1926 "service": {
1927 "shortName": "TranslationService",
1928 "fullName": "google.cloud.translation.v3.TranslationService"
1929 }
1930 }
1931 },
1932 "origin": "API_DEFINITION",
1933 "segments": [
1934 {
1935 "start": 18,
1936 "end": 53,
1937 "type": "FULL"
1938 }
1939 ]
1940 },
1941 {
1942 "regionTag": "translate_v3_generated_TranslationService_UpdateGlossary_sync",
1943 "title": "translate UpdateGlossary Sample",
1944 "description": "UpdateGlossary updates a glossary. A LRO is used since the update can be async if the\nglossary's entry file is updated.",
1945 "file": "TranslationClient/UpdateGlossary/main.go",
1946 "language": "GO",
1947 "clientMethod": {
1948 "shortName": "UpdateGlossary",
1949 "fullName": "google.cloud.translation.v3.TranslationClient.UpdateGlossary",
1950 "parameters": [
1951 {
1952 "type": "context.Context",
1953 "name": "ctx"
1954 },
1955 {
1956 "type": "translatepb.UpdateGlossaryRequest",
1957 "name": "req"
1958 },
1959 {
1960 "type": "...gax.CallOption",
1961 "name": "opts"
1962 }
1963 ],
1964 "resultType": "UpdateGlossaryOperation",
1965 "client": {
1966 "shortName": "TranslationClient",
1967 "fullName": "google.cloud.translation.v3.TranslationClient"
1968 },
1969 "method": {
1970 "shortName": "UpdateGlossary",
1971 "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossary",
1972 "service": {
1973 "shortName": "TranslationService",
1974 "fullName": "google.cloud.translation.v3.TranslationService"
1975 }
1976 }
1977 },
1978 "origin": "API_DEFINITION",
1979 "segments": [
1980 {
1981 "start": 18,
1982 "end": 58,
1983 "type": "FULL"
1984 }
1985 ]
1986 },
1987 {
1988 "regionTag": "translate_v3_generated_TranslationService_UpdateGlossaryEntry_sync",
1989 "title": "translate UpdateGlossaryEntry Sample",
1990 "description": "UpdateGlossaryEntry updates a glossary entry.",
1991 "file": "TranslationClient/UpdateGlossaryEntry/main.go",
1992 "language": "GO",
1993 "clientMethod": {
1994 "shortName": "UpdateGlossaryEntry",
1995 "fullName": "google.cloud.translation.v3.TranslationClient.UpdateGlossaryEntry",
1996 "parameters": [
1997 {
1998 "type": "context.Context",
1999 "name": "ctx"
2000 },
2001 {
2002 "type": "translatepb.UpdateGlossaryEntryRequest",
2003 "name": "req"
2004 },
2005 {
2006 "type": "...gax.CallOption",
2007 "name": "opts"
2008 }
2009 ],
2010 "resultType": "*translatepb.GlossaryEntry",
2011 "client": {
2012 "shortName": "TranslationClient",
2013 "fullName": "google.cloud.translation.v3.TranslationClient"
2014 },
2015 "method": {
2016 "shortName": "UpdateGlossaryEntry",
2017 "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossaryEntry",
2018 "service": {
2019 "shortName": "TranslationService",
2020 "fullName": "google.cloud.translation.v3.TranslationService"
2021 }
2022 }
2023 },
2024 "origin": "API_DEFINITION",
2025 "segments": [
2026 {
2027 "start": 18,
2028 "end": 53,
2029 "type": "FULL"
2030 }
2031 ]
2032 },
2033 {
2034 "regionTag": "translate_v3_generated_TranslationService_WaitOperation_sync",
2035 "title": "translate WaitOperation Sample",
2036 "description": "WaitOperation is a utility method from google.longrunning.Operations.",
2037 "file": "TranslationClient/WaitOperation/main.go",
2038 "language": "GO",
2039 "clientMethod": {
2040 "shortName": "WaitOperation",
2041 "fullName": "google.cloud.translation.v3.TranslationClient.WaitOperation",
2042 "parameters": [
2043 {
2044 "type": "context.Context",
2045 "name": "ctx"
2046 },
2047 {
2048 "type": "longrunningpb.WaitOperationRequest",
2049 "name": "req"
2050 },
2051 {
2052 "type": "...gax.CallOption",
2053 "name": "opts"
2054 }
2055 ],
2056 "resultType": "*longrunningpb.Operation",
2057 "client": {
2058 "shortName": "TranslationClient",
2059 "fullName": "google.cloud.translation.v3.TranslationClient"
2060 },
2061 "method": {
2062 "shortName": "WaitOperation",
2063 "fullName": "google.longrunning.Operations.WaitOperation",
2064 "service": {
2065 "shortName": "Operations",
2066 "fullName": "google.longrunning.Operations"
2067 }
2068 }
2069 },
2070 "origin": "API_DEFINITION",
2071 "segments": [
2072 {
2073 "start": 18,
2074 "end": 53,
2075 "type": "FULL"
2076 }
2077 ]
2078 }
2079 ]
2080 }