{ "clientLibrary": { "name": "cloud.google.com/go/translate/apiv3", "version": "1.12.6", "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_CancelOperation_sync", "title": "translate CancelOperation Sample", "description": "CancelOperation is a utility method from google.longrunning.Operations.", "file": "TranslationClient/CancelOperation/main.go", "language": "GO", "clientMethod": { "shortName": "CancelOperation", "fullName": "google.cloud.translation.v3.TranslationClient.CancelOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.CancelOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "CancelOperation", "fullName": "google.longrunning.Operations.CancelOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "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_CreateDataset_sync", "title": "translate CreateDataset Sample", "description": "CreateDataset creates a Dataset.", "file": "TranslationClient/CreateDataset/main.go", "language": "GO", "clientMethod": { "shortName": "CreateDataset", "fullName": "google.cloud.translation.v3.TranslationClient.CreateDataset", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.CreateDatasetRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateDatasetOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "CreateDataset", "fullName": "google.cloud.translation.v3.TranslationService.CreateDataset", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "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_CreateGlossaryEntry_sync", "title": "translate CreateGlossaryEntry Sample", "description": "CreateGlossaryEntry creates a glossary entry.", "file": "TranslationClient/CreateGlossaryEntry/main.go", "language": "GO", "clientMethod": { "shortName": "CreateGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationClient.CreateGlossaryEntry", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.CreateGlossaryEntryRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.GlossaryEntry", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "CreateGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossaryEntry", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_CreateModel_sync", "title": "translate CreateModel Sample", "description": "CreateModel creates a Model.", "file": "TranslationClient/CreateModel/main.go", "language": "GO", "clientMethod": { "shortName": "CreateModel", "fullName": "google.cloud.translation.v3.TranslationClient.CreateModel", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.CreateModelRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateModelOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "CreateModel", "fullName": "google.cloud.translation.v3.TranslationService.CreateModel", "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_DeleteDataset_sync", "title": "translate DeleteDataset Sample", "description": "DeleteDataset deletes a dataset and all of its contents.", "file": "TranslationClient/DeleteDataset/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteDataset", "fullName": "google.cloud.translation.v3.TranslationClient.DeleteDataset", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.DeleteDatasetRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteDatasetOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "DeleteDataset", "fullName": "google.cloud.translation.v3.TranslationService.DeleteDataset", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "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_DeleteGlossaryEntry_sync", "title": "translate DeleteGlossaryEntry Sample", "description": "DeleteGlossaryEntry deletes a single entry from the glossary", "file": "TranslationClient/DeleteGlossaryEntry/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationClient.DeleteGlossaryEntry", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.DeleteGlossaryEntryRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "DeleteGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossaryEntry", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_DeleteModel_sync", "title": "translate DeleteModel Sample", "description": "DeleteModel deletes a model.", "file": "TranslationClient/DeleteModel/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteModel", "fullName": "google.cloud.translation.v3.TranslationClient.DeleteModel", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.DeleteModelRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteModelOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "DeleteModel", "fullName": "google.cloud.translation.v3.TranslationService.DeleteModel", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_DeleteOperation_sync", "title": "translate DeleteOperation Sample", "description": "DeleteOperation is a utility method from google.longrunning.Operations.", "file": "TranslationClient/DeleteOperation/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteOperation", "fullName": "google.cloud.translation.v3.TranslationClient.DeleteOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.DeleteOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "DeleteOperation", "fullName": "google.longrunning.Operations.DeleteOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "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_ExportData_sync", "title": "translate ExportData Sample", "description": "ExportData exports dataset's data to the provided output location.", "file": "TranslationClient/ExportData/main.go", "language": "GO", "clientMethod": { "shortName": "ExportData", "fullName": "google.cloud.translation.v3.TranslationClient.ExportData", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ExportDataRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ExportDataOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ExportData", "fullName": "google.cloud.translation.v3.TranslationService.ExportData", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "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_GetDataset_sync", "title": "translate GetDataset Sample", "description": "GetDataset gets a Dataset.", "file": "TranslationClient/GetDataset/main.go", "language": "GO", "clientMethod": { "shortName": "GetDataset", "fullName": "google.cloud.translation.v3.TranslationClient.GetDataset", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.GetDatasetRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.Dataset", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "GetDataset", "fullName": "google.cloud.translation.v3.TranslationService.GetDataset", "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_GetGlossaryEntry_sync", "title": "translate GetGlossaryEntry Sample", "description": "GetGlossaryEntry gets a single glossary entry by the given id.", "file": "TranslationClient/GetGlossaryEntry/main.go", "language": "GO", "clientMethod": { "shortName": "GetGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationClient.GetGlossaryEntry", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.GetGlossaryEntryRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.GlossaryEntry", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "GetGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationService.GetGlossaryEntry", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_GetLocation_sync", "title": "translate GetLocation Sample", "description": "GetLocation gets information about a location.", "file": "TranslationClient/GetLocation/main.go", "language": "GO", "clientMethod": { "shortName": "GetLocation", "fullName": "google.cloud.translation.v3.TranslationClient.GetLocation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "locationpb.GetLocationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*locationpb.Location", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "GetLocation", "fullName": "google.cloud.location.Locations.GetLocation", "service": { "shortName": "Locations", "fullName": "google.cloud.location.Locations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_GetModel_sync", "title": "translate GetModel Sample", "description": "GetModel gets a model.", "file": "TranslationClient/GetModel/main.go", "language": "GO", "clientMethod": { "shortName": "GetModel", "fullName": "google.cloud.translation.v3.TranslationClient.GetModel", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.GetModelRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.Model", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "GetModel", "fullName": "google.cloud.translation.v3.TranslationService.GetModel", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_GetOperation_sync", "title": "translate GetOperation Sample", "description": "GetOperation is a utility method from google.longrunning.Operations.", "file": "TranslationClient/GetOperation/main.go", "language": "GO", "clientMethod": { "shortName": "GetOperation", "fullName": "google.cloud.translation.v3.TranslationClient.GetOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.GetOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*longrunningpb.Operation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "GetOperation", "fullName": "google.longrunning.Operations.GetOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "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_ImportData_sync", "title": "translate ImportData Sample", "description": "ImportData import sentence pairs into translation Dataset.", "file": "TranslationClient/ImportData/main.go", "language": "GO", "clientMethod": { "shortName": "ImportData", "fullName": "google.cloud.translation.v3.TranslationClient.ImportData", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ImportDataRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ImportDataOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ImportData", "fullName": "google.cloud.translation.v3.TranslationService.ImportData", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "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_ListDatasets_sync", "title": "translate ListDatasets Sample", "description": "ListDatasets lists datasets.", "file": "TranslationClient/ListDatasets/main.go", "language": "GO", "clientMethod": { "shortName": "ListDatasets", "fullName": "google.cloud.translation.v3.TranslationClient.ListDatasets", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ListDatasetsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DatasetIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListDatasets", "fullName": "google.cloud.translation.v3.TranslationService.ListDatasets", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_ListExamples_sync", "title": "translate ListExamples Sample", "description": "ListExamples lists sentence pairs in the dataset.", "file": "TranslationClient/ListExamples/main.go", "language": "GO", "clientMethod": { "shortName": "ListExamples", "fullName": "google.cloud.translation.v3.TranslationClient.ListExamples", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ListExamplesRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ExampleIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListExamples", "fullName": "google.cloud.translation.v3.TranslationService.ListExamples", "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_ListGlossaryEntries_sync", "title": "translate ListGlossaryEntries Sample", "description": "ListGlossaryEntries list the entries for the glossary.", "file": "TranslationClient/ListGlossaryEntries/main.go", "language": "GO", "clientMethod": { "shortName": "ListGlossaryEntries", "fullName": "google.cloud.translation.v3.TranslationClient.ListGlossaryEntries", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ListGlossaryEntriesRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "GlossaryEntryIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListGlossaryEntries", "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaryEntries", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_ListLocations_sync", "title": "translate ListLocations Sample", "description": "ListLocations lists information about the supported locations for this service.", "file": "TranslationClient/ListLocations/main.go", "language": "GO", "clientMethod": { "shortName": "ListLocations", "fullName": "google.cloud.translation.v3.TranslationClient.ListLocations", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "locationpb.ListLocationsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "LocationIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListLocations", "fullName": "google.cloud.location.Locations.ListLocations", "service": { "shortName": "Locations", "fullName": "google.cloud.location.Locations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_ListModels_sync", "title": "translate ListModels Sample", "description": "ListModels lists models.", "file": "TranslationClient/ListModels/main.go", "language": "GO", "clientMethod": { "shortName": "ListModels", "fullName": "google.cloud.translation.v3.TranslationClient.ListModels", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.ListModelsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ModelIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListModels", "fullName": "google.cloud.translation.v3.TranslationService.ListModels", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_ListOperations_sync", "title": "translate ListOperations Sample", "description": "ListOperations is a utility method from google.longrunning.Operations.", "file": "TranslationClient/ListOperations/main.go", "language": "GO", "clientMethod": { "shortName": "ListOperations", "fullName": "google.cloud.translation.v3.TranslationClient.ListOperations", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.ListOperationsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "OperationIterator", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "ListOperations", "fullName": "google.longrunning.Operations.ListOperations", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_RomanizeText_sync", "title": "translate RomanizeText Sample", "description": "RomanizeText romanize input text written in non-Latin scripts to Latin text.", "file": "TranslationClient/RomanizeText/main.go", "language": "GO", "clientMethod": { "shortName": "RomanizeText", "fullName": "google.cloud.translation.v3.TranslationClient.RomanizeText", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.RomanizeTextRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.RomanizeTextResponse", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "RomanizeText", "fullName": "google.cloud.translation.v3.TranslationService.RomanizeText", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "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" } ] }, { "regionTag": "translate_v3_generated_TranslationService_UpdateGlossary_sync", "title": "translate UpdateGlossary Sample", "description": "UpdateGlossary updates a glossary. A LRO is used since the update can be async if the\nglossary's entry file is updated.", "file": "TranslationClient/UpdateGlossary/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateGlossary", "fullName": "google.cloud.translation.v3.TranslationClient.UpdateGlossary", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.UpdateGlossaryRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateGlossaryOperation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "UpdateGlossary", "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossary", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_UpdateGlossaryEntry_sync", "title": "translate UpdateGlossaryEntry Sample", "description": "UpdateGlossaryEntry updates a glossary entry.", "file": "TranslationClient/UpdateGlossaryEntry/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationClient.UpdateGlossaryEntry", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "translatepb.UpdateGlossaryEntryRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*translatepb.GlossaryEntry", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "UpdateGlossaryEntry", "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossaryEntry", "service": { "shortName": "TranslationService", "fullName": "google.cloud.translation.v3.TranslationService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "translate_v3_generated_TranslationService_WaitOperation_sync", "title": "translate WaitOperation Sample", "description": "WaitOperation is a utility method from google.longrunning.Operations.", "file": "TranslationClient/WaitOperation/main.go", "language": "GO", "clientMethod": { "shortName": "WaitOperation", "fullName": "google.cloud.translation.v3.TranslationClient.WaitOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.WaitOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*longrunningpb.Operation", "client": { "shortName": "TranslationClient", "fullName": "google.cloud.translation.v3.TranslationClient" }, "method": { "shortName": "WaitOperation", "fullName": "google.longrunning.Operations.WaitOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] } ] }