| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/translate/apiv3", |
| "version": "1.10.3", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.translation.v3", |
| "version": "v3" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "translate_v3_generated_TranslationService_AdaptiveMtTranslate_sync", |
| "title": "translate AdaptiveMtTranslate Sample", |
| "description": "AdaptiveMtTranslate translate text using Adaptive MT.", |
| "file": "TranslationClient/AdaptiveMtTranslate/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "AdaptiveMtTranslate", |
| "fullName": "google.cloud.translation.v3.TranslationClient.AdaptiveMtTranslate", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.AdaptiveMtTranslateRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.AdaptiveMtTranslateResponse", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "AdaptiveMtTranslate", |
| "fullName": "google.cloud.translation.v3.TranslationService.AdaptiveMtTranslate", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_BatchTranslateDocument_sync", |
| "title": "translate BatchTranslateDocument Sample", |
| "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.", |
| "file": "TranslationClient/BatchTranslateDocument/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "BatchTranslateDocument", |
| "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateDocument", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.BatchTranslateDocumentRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "BatchTranslateDocumentOperation", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "BatchTranslateDocument", |
| "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateDocument", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_BatchTranslateText_sync", |
| "title": "translate BatchTranslateText Sample", |
| "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.", |
| "file": "TranslationClient/BatchTranslateText/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "BatchTranslateText", |
| "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateText", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.BatchTranslateTextRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "BatchTranslateTextOperation", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "BatchTranslateText", |
| "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateText", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_CreateAdaptiveMtDataset_sync", |
| "title": "translate CreateAdaptiveMtDataset Sample", |
| "description": "CreateAdaptiveMtDataset creates an Adaptive MT dataset.", |
| "file": "TranslationClient/CreateAdaptiveMtDataset/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationClient.CreateAdaptiveMtDataset", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.CreateAdaptiveMtDatasetRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.AdaptiveMtDataset", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "CreateAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationService.CreateAdaptiveMtDataset", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_CreateGlossary_sync", |
| "title": "translate CreateGlossary Sample", |
| "description": "CreateGlossary creates a glossary and returns the long-running operation. Returns\nNOT_FOUND, if the project doesn't exist.", |
| "file": "TranslationClient/CreateGlossary/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationClient.CreateGlossary", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.CreateGlossaryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateGlossaryOperation", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "CreateGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossary", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtDataset_sync", |
| "title": "translate DeleteAdaptiveMtDataset Sample", |
| "description": "DeleteAdaptiveMtDataset deletes an Adaptive MT dataset, including all its entries and associated\nmetadata.", |
| "file": "TranslationClient/DeleteAdaptiveMtDataset/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationClient.DeleteAdaptiveMtDataset", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.DeleteAdaptiveMtDatasetRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "DeleteAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtDataset", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtFile_sync", |
| "title": "translate DeleteAdaptiveMtFile Sample", |
| "description": "DeleteAdaptiveMtFile deletes an AdaptiveMtFile along with its sentences.", |
| "file": "TranslationClient/DeleteAdaptiveMtFile/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationClient.DeleteAdaptiveMtFile", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.DeleteAdaptiveMtFileRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "DeleteAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtFile", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_DeleteGlossary_sync", |
| "title": "translate DeleteGlossary Sample", |
| "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.", |
| "file": "TranslationClient/DeleteGlossary/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationClient.DeleteGlossary", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.DeleteGlossaryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteGlossaryOperation", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "DeleteGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossary", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_DetectLanguage_sync", |
| "title": "translate DetectLanguage Sample", |
| "description": "DetectLanguage detects the language of text within a request.", |
| "file": "TranslationClient/DetectLanguage/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DetectLanguage", |
| "fullName": "google.cloud.translation.v3.TranslationClient.DetectLanguage", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.DetectLanguageRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.DetectLanguageResponse", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "DetectLanguage", |
| "fullName": "google.cloud.translation.v3.TranslationService.DetectLanguage", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtDataset_sync", |
| "title": "translate GetAdaptiveMtDataset Sample", |
| "description": "GetAdaptiveMtDataset gets the Adaptive MT dataset.", |
| "file": "TranslationClient/GetAdaptiveMtDataset/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationClient.GetAdaptiveMtDataset", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.GetAdaptiveMtDatasetRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.AdaptiveMtDataset", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "GetAdaptiveMtDataset", |
| "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtDataset", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtFile_sync", |
| "title": "translate GetAdaptiveMtFile Sample", |
| "description": "GetAdaptiveMtFile gets and AdaptiveMtFile", |
| "file": "TranslationClient/GetAdaptiveMtFile/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationClient.GetAdaptiveMtFile", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.GetAdaptiveMtFileRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.AdaptiveMtFile", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "GetAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtFile", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_GetGlossary_sync", |
| "title": "translate GetGlossary Sample", |
| "description": "GetGlossary gets a glossary. Returns NOT_FOUND, if the glossary doesn't\nexist.", |
| "file": "TranslationClient/GetGlossary/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationClient.GetGlossary", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.GetGlossaryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.Glossary", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "GetGlossary", |
| "fullName": "google.cloud.translation.v3.TranslationService.GetGlossary", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_GetSupportedLanguages_sync", |
| "title": "translate GetSupportedLanguages Sample", |
| "description": "GetSupportedLanguages returns a list of supported languages for translation.", |
| "file": "TranslationClient/GetSupportedLanguages/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetSupportedLanguages", |
| "fullName": "google.cloud.translation.v3.TranslationClient.GetSupportedLanguages", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.GetSupportedLanguagesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.SupportedLanguages", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "GetSupportedLanguages", |
| "fullName": "google.cloud.translation.v3.TranslationService.GetSupportedLanguages", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_ImportAdaptiveMtFile_sync", |
| "title": "translate ImportAdaptiveMtFile Sample", |
| "description": "ImportAdaptiveMtFile imports an AdaptiveMtFile and adds all of its sentences into the\nAdaptiveMtDataset.", |
| "file": "TranslationClient/ImportAdaptiveMtFile/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ImportAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationClient.ImportAdaptiveMtFile", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.ImportAdaptiveMtFileRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.ImportAdaptiveMtFileResponse", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "ImportAdaptiveMtFile", |
| "fullName": "google.cloud.translation.v3.TranslationService.ImportAdaptiveMtFile", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtDatasets_sync", |
| "title": "translate ListAdaptiveMtDatasets Sample", |
| "description": "ListAdaptiveMtDatasets lists all Adaptive MT datasets for which the caller has read permission.", |
| "file": "TranslationClient/ListAdaptiveMtDatasets/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListAdaptiveMtDatasets", |
| "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtDatasets", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.ListAdaptiveMtDatasetsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "AdaptiveMtDatasetIterator", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "ListAdaptiveMtDatasets", |
| "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtDatasets", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtFiles_sync", |
| "title": "translate ListAdaptiveMtFiles Sample", |
| "description": "ListAdaptiveMtFiles lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.", |
| "file": "TranslationClient/ListAdaptiveMtFiles/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListAdaptiveMtFiles", |
| "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtFiles", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.ListAdaptiveMtFilesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "AdaptiveMtFileIterator", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "ListAdaptiveMtFiles", |
| "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtFiles", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtSentences_sync", |
| "title": "translate ListAdaptiveMtSentences Sample", |
| "description": "ListAdaptiveMtSentences lists all AdaptiveMtSentences under a given file/dataset.", |
| "file": "TranslationClient/ListAdaptiveMtSentences/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListAdaptiveMtSentences", |
| "fullName": "google.cloud.translation.v3.TranslationClient.ListAdaptiveMtSentences", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.ListAdaptiveMtSentencesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "AdaptiveMtSentenceIterator", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "ListAdaptiveMtSentences", |
| "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtSentences", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_ListGlossaries_sync", |
| "title": "translate ListGlossaries Sample", |
| "description": "ListGlossaries lists glossaries in a project. Returns NOT_FOUND, if the project doesn't\nexist.", |
| "file": "TranslationClient/ListGlossaries/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListGlossaries", |
| "fullName": "google.cloud.translation.v3.TranslationClient.ListGlossaries", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.ListGlossariesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "GlossaryIterator", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "ListGlossaries", |
| "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaries", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_TranslateDocument_sync", |
| "title": "translate TranslateDocument Sample", |
| "description": "TranslateDocument translates documents in synchronous mode.", |
| "file": "TranslationClient/TranslateDocument/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "TranslateDocument", |
| "fullName": "google.cloud.translation.v3.TranslationClient.TranslateDocument", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.TranslateDocumentRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.TranslateDocumentResponse", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "TranslateDocument", |
| "fullName": "google.cloud.translation.v3.TranslationService.TranslateDocument", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "translate_v3_generated_TranslationService_TranslateText_sync", |
| "title": "translate TranslateText Sample", |
| "description": "TranslateText translates input text and returns translated text.", |
| "file": "TranslationClient/TranslateText/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "TranslateText", |
| "fullName": "google.cloud.translation.v3.TranslationClient.TranslateText", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "translatepb.TranslateTextRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*translatepb.TranslateTextResponse", |
| "client": { |
| "shortName": "TranslationClient", |
| "fullName": "google.cloud.translation.v3.TranslationClient" |
| }, |
| "method": { |
| "shortName": "TranslateText", |
| "fullName": "google.cloud.translation.v3.TranslationService.TranslateText", |
| "service": { |
| "shortName": "TranslationService", |
| "fullName": "google.cloud.translation.v3.TranslationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |