Represents a TranslationService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.translation.v3.TranslationServicePackage
@google-cloud/translateConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new TranslationService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
adaptiveMtTranslate(request, callback)
public adaptiveMtTranslate(request: google.cloud.translation.v3.IAdaptiveMtTranslateRequest, callback: google.cloud.translation.v3.TranslationService.AdaptiveMtTranslateCallback): void;
Calls AdaptiveMtTranslate.
Parameters | |
---|---|
Name | Description |
request |
IAdaptiveMtTranslateRequest
AdaptiveMtTranslateRequest message or plain object |
callback |
AdaptiveMtTranslateCallback
Node-style callback called with the error, if any, and AdaptiveMtTranslateResponse |
Returns | |
---|---|
Type | Description |
void |
adaptiveMtTranslate(request)
public adaptiveMtTranslate(request: google.cloud.translation.v3.IAdaptiveMtTranslateRequest): Promise<google.cloud.translation.v3.AdaptiveMtTranslateResponse>;
Calls AdaptiveMtTranslate.
Parameter | |
---|---|
Name | Description |
request |
IAdaptiveMtTranslateRequest
AdaptiveMtTranslateRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.AdaptiveMtTranslateResponse> |
Promise |
batchTranslateDocument(request, callback)
public batchTranslateDocument(request: google.cloud.translation.v3.IBatchTranslateDocumentRequest, callback: google.cloud.translation.v3.TranslationService.BatchTranslateDocumentCallback): void;
Calls BatchTranslateDocument.
Parameters | |
---|---|
Name | Description |
request |
IBatchTranslateDocumentRequest
BatchTranslateDocumentRequest message or plain object |
callback |
BatchTranslateDocumentCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
batchTranslateDocument(request)
public batchTranslateDocument(request: google.cloud.translation.v3.IBatchTranslateDocumentRequest): Promise<google.longrunning.Operation>;
Calls BatchTranslateDocument.
Parameter | |
---|---|
Name | Description |
request |
IBatchTranslateDocumentRequest
BatchTranslateDocumentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
batchTranslateText(request, callback)
public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest, callback: google.cloud.translation.v3.TranslationService.BatchTranslateTextCallback): void;
Calls BatchTranslateText.
Parameters | |
---|---|
Name | Description |
request |
IBatchTranslateTextRequest
BatchTranslateTextRequest message or plain object |
callback |
BatchTranslateTextCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
batchTranslateText(request)
public batchTranslateText(request: google.cloud.translation.v3.IBatchTranslateTextRequest): Promise<google.longrunning.Operation>;
Calls BatchTranslateText.
Parameter | |
---|---|
Name | Description |
request |
IBatchTranslateTextRequest
BatchTranslateTextRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TranslationService;
Creates new TranslationService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
TranslationService |
RPC service. Useful where requests and/or responses are streamed. |
createAdaptiveMtDataset(request, callback)
public createAdaptiveMtDataset(request: google.cloud.translation.v3.ICreateAdaptiveMtDatasetRequest, callback: google.cloud.translation.v3.TranslationService.CreateAdaptiveMtDatasetCallback): void;
Calls CreateAdaptiveMtDataset.
Parameters | |
---|---|
Name | Description |
request |
ICreateAdaptiveMtDatasetRequest
CreateAdaptiveMtDatasetRequest message or plain object |
callback |
CreateAdaptiveMtDatasetCallback
Node-style callback called with the error, if any, and AdaptiveMtDataset |
Returns | |
---|---|
Type | Description |
void |
createAdaptiveMtDataset(request)
public createAdaptiveMtDataset(request: google.cloud.translation.v3.ICreateAdaptiveMtDatasetRequest): Promise<google.cloud.translation.v3.AdaptiveMtDataset>;
Calls CreateAdaptiveMtDataset.
Parameter | |
---|---|
Name | Description |
request |
ICreateAdaptiveMtDatasetRequest
CreateAdaptiveMtDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.AdaptiveMtDataset> |
Promise |
createDataset(request, callback)
public createDataset(request: google.cloud.translation.v3.ICreateDatasetRequest, callback: google.cloud.translation.v3.TranslationService.CreateDatasetCallback): void;
Calls CreateDataset.
Parameters | |
---|---|
Name | Description |
request |
ICreateDatasetRequest
CreateDatasetRequest message or plain object |
callback |
CreateDatasetCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createDataset(request)
public createDataset(request: google.cloud.translation.v3.ICreateDatasetRequest): Promise<google.longrunning.Operation>;
Calls CreateDataset.
Parameter | |
---|---|
Name | Description |
request |
ICreateDatasetRequest
CreateDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
createGlossary(request, callback)
public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.CreateGlossaryCallback): void;
Calls CreateGlossary.
Parameters | |
---|---|
Name | Description |
request |
ICreateGlossaryRequest
CreateGlossaryRequest message or plain object |
callback |
CreateGlossaryCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createGlossary(request)
public createGlossary(request: google.cloud.translation.v3.ICreateGlossaryRequest): Promise<google.longrunning.Operation>;
Calls CreateGlossary.
Parameter | |
---|---|
Name | Description |
request |
ICreateGlossaryRequest
CreateGlossaryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
createGlossaryEntry(request, callback)
public createGlossaryEntry(request: google.cloud.translation.v3.ICreateGlossaryEntryRequest, callback: google.cloud.translation.v3.TranslationService.CreateGlossaryEntryCallback): void;
Calls CreateGlossaryEntry.
Parameters | |
---|---|
Name | Description |
request |
ICreateGlossaryEntryRequest
CreateGlossaryEntryRequest message or plain object |
callback |
CreateGlossaryEntryCallback
Node-style callback called with the error, if any, and GlossaryEntry |
Returns | |
---|---|
Type | Description |
void |
createGlossaryEntry(request)
public createGlossaryEntry(request: google.cloud.translation.v3.ICreateGlossaryEntryRequest): Promise<google.cloud.translation.v3.GlossaryEntry>;
Calls CreateGlossaryEntry.
Parameter | |
---|---|
Name | Description |
request |
ICreateGlossaryEntryRequest
CreateGlossaryEntryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.GlossaryEntry> |
Promise |
createModel(request, callback)
public createModel(request: google.cloud.translation.v3.ICreateModelRequest, callback: google.cloud.translation.v3.TranslationService.CreateModelCallback): void;
Calls CreateModel.
Parameters | |
---|---|
Name | Description |
request |
ICreateModelRequest
CreateModelRequest message or plain object |
callback |
CreateModelCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createModel(request)
public createModel(request: google.cloud.translation.v3.ICreateModelRequest): Promise<google.longrunning.Operation>;
Calls CreateModel.
Parameter | |
---|---|
Name | Description |
request |
ICreateModelRequest
CreateModelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
deleteAdaptiveMtDataset(request, callback)
public deleteAdaptiveMtDataset(request: google.cloud.translation.v3.IDeleteAdaptiveMtDatasetRequest, callback: google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtDatasetCallback): void;
Calls DeleteAdaptiveMtDataset.
Parameters | |
---|---|
Name | Description |
request |
IDeleteAdaptiveMtDatasetRequest
DeleteAdaptiveMtDatasetRequest message or plain object |
callback |
DeleteAdaptiveMtDatasetCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteAdaptiveMtDataset(request)
public deleteAdaptiveMtDataset(request: google.cloud.translation.v3.IDeleteAdaptiveMtDatasetRequest): Promise<google.protobuf.Empty>;
Calls DeleteAdaptiveMtDataset.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAdaptiveMtDatasetRequest
DeleteAdaptiveMtDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
deleteAdaptiveMtFile(request, callback)
public deleteAdaptiveMtFile(request: google.cloud.translation.v3.IDeleteAdaptiveMtFileRequest, callback: google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtFileCallback): void;
Calls DeleteAdaptiveMtFile.
Parameters | |
---|---|
Name | Description |
request |
IDeleteAdaptiveMtFileRequest
DeleteAdaptiveMtFileRequest message or plain object |
callback |
DeleteAdaptiveMtFileCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteAdaptiveMtFile(request)
public deleteAdaptiveMtFile(request: google.cloud.translation.v3.IDeleteAdaptiveMtFileRequest): Promise<google.protobuf.Empty>;
Calls DeleteAdaptiveMtFile.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAdaptiveMtFileRequest
DeleteAdaptiveMtFileRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
deleteDataset(request, callback)
public deleteDataset(request: google.cloud.translation.v3.IDeleteDatasetRequest, callback: google.cloud.translation.v3.TranslationService.DeleteDatasetCallback): void;
Calls DeleteDataset.
Parameters | |
---|---|
Name | Description |
request |
IDeleteDatasetRequest
DeleteDatasetRequest message or plain object |
callback |
DeleteDatasetCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteDataset(request)
public deleteDataset(request: google.cloud.translation.v3.IDeleteDatasetRequest): Promise<google.longrunning.Operation>;
Calls DeleteDataset.
Parameter | |
---|---|
Name | Description |
request |
IDeleteDatasetRequest
DeleteDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
deleteGlossary(request, callback)
public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.DeleteGlossaryCallback): void;
Calls DeleteGlossary.
Parameters | |
---|---|
Name | Description |
request |
IDeleteGlossaryRequest
DeleteGlossaryRequest message or plain object |
callback |
DeleteGlossaryCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteGlossary(request)
public deleteGlossary(request: google.cloud.translation.v3.IDeleteGlossaryRequest): Promise<google.longrunning.Operation>;
Calls DeleteGlossary.
Parameter | |
---|---|
Name | Description |
request |
IDeleteGlossaryRequest
DeleteGlossaryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
deleteGlossaryEntry(request, callback)
public deleteGlossaryEntry(request: google.cloud.translation.v3.IDeleteGlossaryEntryRequest, callback: google.cloud.translation.v3.TranslationService.DeleteGlossaryEntryCallback): void;
Calls DeleteGlossaryEntry.
Parameters | |
---|---|
Name | Description |
request |
IDeleteGlossaryEntryRequest
DeleteGlossaryEntryRequest message or plain object |
callback |
DeleteGlossaryEntryCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteGlossaryEntry(request)
public deleteGlossaryEntry(request: google.cloud.translation.v3.IDeleteGlossaryEntryRequest): Promise<google.protobuf.Empty>;
Calls DeleteGlossaryEntry.
Parameter | |
---|---|
Name | Description |
request |
IDeleteGlossaryEntryRequest
DeleteGlossaryEntryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
deleteModel(request, callback)
public deleteModel(request: google.cloud.translation.v3.IDeleteModelRequest, callback: google.cloud.translation.v3.TranslationService.DeleteModelCallback): void;
Calls DeleteModel.
Parameters | |
---|---|
Name | Description |
request |
IDeleteModelRequest
DeleteModelRequest message or plain object |
callback |
DeleteModelCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteModel(request)
public deleteModel(request: google.cloud.translation.v3.IDeleteModelRequest): Promise<google.longrunning.Operation>;
Calls DeleteModel.
Parameter | |
---|---|
Name | Description |
request |
IDeleteModelRequest
DeleteModelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
detectLanguage(request, callback)
public detectLanguage(request: google.cloud.translation.v3.IDetectLanguageRequest, callback: google.cloud.translation.v3.TranslationService.DetectLanguageCallback): void;
Calls DetectLanguage.
Parameters | |
---|---|
Name | Description |
request |
IDetectLanguageRequest
DetectLanguageRequest message or plain object |
callback |
DetectLanguageCallback
Node-style callback called with the error, if any, and DetectLanguageResponse |
Returns | |
---|---|
Type | Description |
void |
detectLanguage(request)
public detectLanguage(request: google.cloud.translation.v3.IDetectLanguageRequest): Promise<google.cloud.translation.v3.DetectLanguageResponse>;
Calls DetectLanguage.
Parameter | |
---|---|
Name | Description |
request |
IDetectLanguageRequest
DetectLanguageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.DetectLanguageResponse> |
Promise |
exportData(request, callback)
public exportData(request: google.cloud.translation.v3.IExportDataRequest, callback: google.cloud.translation.v3.TranslationService.ExportDataCallback): void;
Calls ExportData.
Parameters | |
---|---|
Name | Description |
request |
IExportDataRequest
ExportDataRequest message or plain object |
callback |
ExportDataCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
exportData(request)
public exportData(request: google.cloud.translation.v3.IExportDataRequest): Promise<google.longrunning.Operation>;
Calls ExportData.
Parameter | |
---|---|
Name | Description |
request |
IExportDataRequest
ExportDataRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
getAdaptiveMtDataset(request, callback)
public getAdaptiveMtDataset(request: google.cloud.translation.v3.IGetAdaptiveMtDatasetRequest, callback: google.cloud.translation.v3.TranslationService.GetAdaptiveMtDatasetCallback): void;
Calls GetAdaptiveMtDataset.
Parameters | |
---|---|
Name | Description |
request |
IGetAdaptiveMtDatasetRequest
GetAdaptiveMtDatasetRequest message or plain object |
callback |
GetAdaptiveMtDatasetCallback
Node-style callback called with the error, if any, and AdaptiveMtDataset |
Returns | |
---|---|
Type | Description |
void |
getAdaptiveMtDataset(request)
public getAdaptiveMtDataset(request: google.cloud.translation.v3.IGetAdaptiveMtDatasetRequest): Promise<google.cloud.translation.v3.AdaptiveMtDataset>;
Calls GetAdaptiveMtDataset.
Parameter | |
---|---|
Name | Description |
request |
IGetAdaptiveMtDatasetRequest
GetAdaptiveMtDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.AdaptiveMtDataset> |
Promise |
getAdaptiveMtFile(request, callback)
public getAdaptiveMtFile(request: google.cloud.translation.v3.IGetAdaptiveMtFileRequest, callback: google.cloud.translation.v3.TranslationService.GetAdaptiveMtFileCallback): void;
Calls GetAdaptiveMtFile.
Parameters | |
---|---|
Name | Description |
request |
IGetAdaptiveMtFileRequest
GetAdaptiveMtFileRequest message or plain object |
callback |
GetAdaptiveMtFileCallback
Node-style callback called with the error, if any, and AdaptiveMtFile |
Returns | |
---|---|
Type | Description |
void |
getAdaptiveMtFile(request)
public getAdaptiveMtFile(request: google.cloud.translation.v3.IGetAdaptiveMtFileRequest): Promise<google.cloud.translation.v3.AdaptiveMtFile>;
Calls GetAdaptiveMtFile.
Parameter | |
---|---|
Name | Description |
request |
IGetAdaptiveMtFileRequest
GetAdaptiveMtFileRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.AdaptiveMtFile> |
Promise |
getDataset(request, callback)
public getDataset(request: google.cloud.translation.v3.IGetDatasetRequest, callback: google.cloud.translation.v3.TranslationService.GetDatasetCallback): void;
Calls GetDataset.
Parameters | |
---|---|
Name | Description |
request |
IGetDatasetRequest
GetDatasetRequest message or plain object |
callback |
GetDatasetCallback
Node-style callback called with the error, if any, and Dataset |
Returns | |
---|---|
Type | Description |
void |
getDataset(request)
public getDataset(request: google.cloud.translation.v3.IGetDatasetRequest): Promise<google.cloud.translation.v3.Dataset>;
Calls GetDataset.
Parameter | |
---|---|
Name | Description |
request |
IGetDatasetRequest
GetDatasetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.Dataset> |
Promise |
getGlossary(request, callback)
public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.GetGlossaryCallback): void;
Calls GetGlossary.
Parameters | |
---|---|
Name | Description |
request |
IGetGlossaryRequest
GetGlossaryRequest message or plain object |
callback |
GetGlossaryCallback
Node-style callback called with the error, if any, and Glossary |
Returns | |
---|---|
Type | Description |
void |
getGlossary(request)
public getGlossary(request: google.cloud.translation.v3.IGetGlossaryRequest): Promise<google.cloud.translation.v3.Glossary>;
Calls GetGlossary.
Parameter | |
---|---|
Name | Description |
request |
IGetGlossaryRequest
GetGlossaryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.Glossary> |
Promise |
getGlossaryEntry(request, callback)
public getGlossaryEntry(request: google.cloud.translation.v3.IGetGlossaryEntryRequest, callback: google.cloud.translation.v3.TranslationService.GetGlossaryEntryCallback): void;
Calls GetGlossaryEntry.
Parameters | |
---|---|
Name | Description |
request |
IGetGlossaryEntryRequest
GetGlossaryEntryRequest message or plain object |
callback |
GetGlossaryEntryCallback
Node-style callback called with the error, if any, and GlossaryEntry |
Returns | |
---|---|
Type | Description |
void |
getGlossaryEntry(request)
public getGlossaryEntry(request: google.cloud.translation.v3.IGetGlossaryEntryRequest): Promise<google.cloud.translation.v3.GlossaryEntry>;
Calls GetGlossaryEntry.
Parameter | |
---|---|
Name | Description |
request |
IGetGlossaryEntryRequest
GetGlossaryEntryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.GlossaryEntry> |
Promise |
getModel(request, callback)
public getModel(request: google.cloud.translation.v3.IGetModelRequest, callback: google.cloud.translation.v3.TranslationService.GetModelCallback): void;
Calls GetModel.
Parameters | |
---|---|
Name | Description |
request |
IGetModelRequest
GetModelRequest message or plain object |
callback |
GetModelCallback
Node-style callback called with the error, if any, and Model |
Returns | |
---|---|
Type | Description |
void |
getModel(request)
public getModel(request: google.cloud.translation.v3.IGetModelRequest): Promise<google.cloud.translation.v3.Model>;
Calls GetModel.
Parameter | |
---|---|
Name | Description |
request |
IGetModelRequest
GetModelRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.Model> |
Promise |
getSupportedLanguages(request, callback)
public getSupportedLanguages(request: google.cloud.translation.v3.IGetSupportedLanguagesRequest, callback: google.cloud.translation.v3.TranslationService.GetSupportedLanguagesCallback): void;
Calls GetSupportedLanguages.
Parameters | |
---|---|
Name | Description |
request |
IGetSupportedLanguagesRequest
GetSupportedLanguagesRequest message or plain object |
callback |
GetSupportedLanguagesCallback
Node-style callback called with the error, if any, and SupportedLanguages |
Returns | |
---|---|
Type | Description |
void |
getSupportedLanguages(request)
public getSupportedLanguages(request: google.cloud.translation.v3.IGetSupportedLanguagesRequest): Promise<google.cloud.translation.v3.SupportedLanguages>;
Calls GetSupportedLanguages.
Parameter | |
---|---|
Name | Description |
request |
IGetSupportedLanguagesRequest
GetSupportedLanguagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.SupportedLanguages> |
Promise |
importAdaptiveMtFile(request, callback)
public importAdaptiveMtFile(request: google.cloud.translation.v3.IImportAdaptiveMtFileRequest, callback: google.cloud.translation.v3.TranslationService.ImportAdaptiveMtFileCallback): void;
Calls ImportAdaptiveMtFile.
Parameters | |
---|---|
Name | Description |
request |
IImportAdaptiveMtFileRequest
ImportAdaptiveMtFileRequest message or plain object |
callback |
ImportAdaptiveMtFileCallback
Node-style callback called with the error, if any, and ImportAdaptiveMtFileResponse |
Returns | |
---|---|
Type | Description |
void |
importAdaptiveMtFile(request)
public importAdaptiveMtFile(request: google.cloud.translation.v3.IImportAdaptiveMtFileRequest): Promise<google.cloud.translation.v3.ImportAdaptiveMtFileResponse>;
Calls ImportAdaptiveMtFile.
Parameter | |
---|---|
Name | Description |
request |
IImportAdaptiveMtFileRequest
ImportAdaptiveMtFileRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ImportAdaptiveMtFileResponse> |
Promise |
importData(request, callback)
public importData(request: google.cloud.translation.v3.IImportDataRequest, callback: google.cloud.translation.v3.TranslationService.ImportDataCallback): void;
Calls ImportData.
Parameters | |
---|---|
Name | Description |
request |
IImportDataRequest
ImportDataRequest message or plain object |
callback |
ImportDataCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
importData(request)
public importData(request: google.cloud.translation.v3.IImportDataRequest): Promise<google.longrunning.Operation>;
Calls ImportData.
Parameter | |
---|---|
Name | Description |
request |
IImportDataRequest
ImportDataRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
listAdaptiveMtDatasets(request, callback)
public listAdaptiveMtDatasets(request: google.cloud.translation.v3.IListAdaptiveMtDatasetsRequest, callback: google.cloud.translation.v3.TranslationService.ListAdaptiveMtDatasetsCallback): void;
Calls ListAdaptiveMtDatasets.
Parameters | |
---|---|
Name | Description |
request |
IListAdaptiveMtDatasetsRequest
ListAdaptiveMtDatasetsRequest message or plain object |
callback |
ListAdaptiveMtDatasetsCallback
Node-style callback called with the error, if any, and ListAdaptiveMtDatasetsResponse |
Returns | |
---|---|
Type | Description |
void |
listAdaptiveMtDatasets(request)
public listAdaptiveMtDatasets(request: google.cloud.translation.v3.IListAdaptiveMtDatasetsRequest): Promise<google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse>;
Calls ListAdaptiveMtDatasets.
Parameter | |
---|---|
Name | Description |
request |
IListAdaptiveMtDatasetsRequest
ListAdaptiveMtDatasetsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse> |
Promise |
listAdaptiveMtFiles(request, callback)
public listAdaptiveMtFiles(request: google.cloud.translation.v3.IListAdaptiveMtFilesRequest, callback: google.cloud.translation.v3.TranslationService.ListAdaptiveMtFilesCallback): void;
Calls ListAdaptiveMtFiles.
Parameters | |
---|---|
Name | Description |
request |
IListAdaptiveMtFilesRequest
ListAdaptiveMtFilesRequest message or plain object |
callback |
ListAdaptiveMtFilesCallback
Node-style callback called with the error, if any, and ListAdaptiveMtFilesResponse |
Returns | |
---|---|
Type | Description |
void |
listAdaptiveMtFiles(request)
public listAdaptiveMtFiles(request: google.cloud.translation.v3.IListAdaptiveMtFilesRequest): Promise<google.cloud.translation.v3.ListAdaptiveMtFilesResponse>;
Calls ListAdaptiveMtFiles.
Parameter | |
---|---|
Name | Description |
request |
IListAdaptiveMtFilesRequest
ListAdaptiveMtFilesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListAdaptiveMtFilesResponse> |
Promise |
listAdaptiveMtSentences(request, callback)
public listAdaptiveMtSentences(request: google.cloud.translation.v3.IListAdaptiveMtSentencesRequest, callback: google.cloud.translation.v3.TranslationService.ListAdaptiveMtSentencesCallback): void;
Calls ListAdaptiveMtSentences.
Parameters | |
---|---|
Name | Description |
request |
IListAdaptiveMtSentencesRequest
ListAdaptiveMtSentencesRequest message or plain object |
callback |
ListAdaptiveMtSentencesCallback
Node-style callback called with the error, if any, and ListAdaptiveMtSentencesResponse |
Returns | |
---|---|
Type | Description |
void |
listAdaptiveMtSentences(request)
public listAdaptiveMtSentences(request: google.cloud.translation.v3.IListAdaptiveMtSentencesRequest): Promise<google.cloud.translation.v3.ListAdaptiveMtSentencesResponse>;
Calls ListAdaptiveMtSentences.
Parameter | |
---|---|
Name | Description |
request |
IListAdaptiveMtSentencesRequest
ListAdaptiveMtSentencesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListAdaptiveMtSentencesResponse> |
Promise |
listDatasets(request, callback)
public listDatasets(request: google.cloud.translation.v3.IListDatasetsRequest, callback: google.cloud.translation.v3.TranslationService.ListDatasetsCallback): void;
Calls ListDatasets.
Parameters | |
---|---|
Name | Description |
request |
IListDatasetsRequest
ListDatasetsRequest message or plain object |
callback |
ListDatasetsCallback
Node-style callback called with the error, if any, and ListDatasetsResponse |
Returns | |
---|---|
Type | Description |
void |
listDatasets(request)
public listDatasets(request: google.cloud.translation.v3.IListDatasetsRequest): Promise<google.cloud.translation.v3.ListDatasetsResponse>;
Calls ListDatasets.
Parameter | |
---|---|
Name | Description |
request |
IListDatasetsRequest
ListDatasetsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListDatasetsResponse> |
Promise |
listExamples(request, callback)
public listExamples(request: google.cloud.translation.v3.IListExamplesRequest, callback: google.cloud.translation.v3.TranslationService.ListExamplesCallback): void;
Calls ListExamples.
Parameters | |
---|---|
Name | Description |
request |
IListExamplesRequest
ListExamplesRequest message or plain object |
callback |
ListExamplesCallback
Node-style callback called with the error, if any, and ListExamplesResponse |
Returns | |
---|---|
Type | Description |
void |
listExamples(request)
public listExamples(request: google.cloud.translation.v3.IListExamplesRequest): Promise<google.cloud.translation.v3.ListExamplesResponse>;
Calls ListExamples.
Parameter | |
---|---|
Name | Description |
request |
IListExamplesRequest
ListExamplesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListExamplesResponse> |
Promise |
listGlossaries(request, callback)
public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest, callback: google.cloud.translation.v3.TranslationService.ListGlossariesCallback): void;
Calls ListGlossaries.
Parameters | |
---|---|
Name | Description |
request |
IListGlossariesRequest
ListGlossariesRequest message or plain object |
callback |
ListGlossariesCallback
Node-style callback called with the error, if any, and ListGlossariesResponse |
Returns | |
---|---|
Type | Description |
void |
listGlossaries(request)
public listGlossaries(request: google.cloud.translation.v3.IListGlossariesRequest): Promise<google.cloud.translation.v3.ListGlossariesResponse>;
Calls ListGlossaries.
Parameter | |
---|---|
Name | Description |
request |
IListGlossariesRequest
ListGlossariesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListGlossariesResponse> |
Promise |
listGlossaryEntries(request, callback)
public listGlossaryEntries(request: google.cloud.translation.v3.IListGlossaryEntriesRequest, callback: google.cloud.translation.v3.TranslationService.ListGlossaryEntriesCallback): void;
Calls ListGlossaryEntries.
Parameters | |
---|---|
Name | Description |
request |
IListGlossaryEntriesRequest
ListGlossaryEntriesRequest message or plain object |
callback |
ListGlossaryEntriesCallback
Node-style callback called with the error, if any, and ListGlossaryEntriesResponse |
Returns | |
---|---|
Type | Description |
void |
listGlossaryEntries(request)
public listGlossaryEntries(request: google.cloud.translation.v3.IListGlossaryEntriesRequest): Promise<google.cloud.translation.v3.ListGlossaryEntriesResponse>;
Calls ListGlossaryEntries.
Parameter | |
---|---|
Name | Description |
request |
IListGlossaryEntriesRequest
ListGlossaryEntriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListGlossaryEntriesResponse> |
Promise |
listModels(request, callback)
public listModels(request: google.cloud.translation.v3.IListModelsRequest, callback: google.cloud.translation.v3.TranslationService.ListModelsCallback): void;
Calls ListModels.
Parameters | |
---|---|
Name | Description |
request |
IListModelsRequest
ListModelsRequest message or plain object |
callback |
ListModelsCallback
Node-style callback called with the error, if any, and ListModelsResponse |
Returns | |
---|---|
Type | Description |
void |
listModels(request)
public listModels(request: google.cloud.translation.v3.IListModelsRequest): Promise<google.cloud.translation.v3.ListModelsResponse>;
Calls ListModels.
Parameter | |
---|---|
Name | Description |
request |
IListModelsRequest
ListModelsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.ListModelsResponse> |
Promise |
romanizeText(request, callback)
public romanizeText(request: google.cloud.translation.v3.IRomanizeTextRequest, callback: google.cloud.translation.v3.TranslationService.RomanizeTextCallback): void;
Calls RomanizeText.
Parameters | |
---|---|
Name | Description |
request |
IRomanizeTextRequest
RomanizeTextRequest message or plain object |
callback |
RomanizeTextCallback
Node-style callback called with the error, if any, and RomanizeTextResponse |
Returns | |
---|---|
Type | Description |
void |
romanizeText(request)
public romanizeText(request: google.cloud.translation.v3.IRomanizeTextRequest): Promise<google.cloud.translation.v3.RomanizeTextResponse>;
Calls RomanizeText.
Parameter | |
---|---|
Name | Description |
request |
IRomanizeTextRequest
RomanizeTextRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.RomanizeTextResponse> |
Promise |
translateDocument(request, callback)
public translateDocument(request: google.cloud.translation.v3.ITranslateDocumentRequest, callback: google.cloud.translation.v3.TranslationService.TranslateDocumentCallback): void;
Calls TranslateDocument.
Parameters | |
---|---|
Name | Description |
request |
ITranslateDocumentRequest
TranslateDocumentRequest message or plain object |
callback |
TranslateDocumentCallback
Node-style callback called with the error, if any, and TranslateDocumentResponse |
Returns | |
---|---|
Type | Description |
void |
translateDocument(request)
public translateDocument(request: google.cloud.translation.v3.ITranslateDocumentRequest): Promise<google.cloud.translation.v3.TranslateDocumentResponse>;
Calls TranslateDocument.
Parameter | |
---|---|
Name | Description |
request |
ITranslateDocumentRequest
TranslateDocumentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.TranslateDocumentResponse> |
Promise |
translateText(request, callback)
public translateText(request: google.cloud.translation.v3.ITranslateTextRequest, callback: google.cloud.translation.v3.TranslationService.TranslateTextCallback): void;
Calls TranslateText.
Parameters | |
---|---|
Name | Description |
request |
ITranslateTextRequest
TranslateTextRequest message or plain object |
callback |
TranslateTextCallback
Node-style callback called with the error, if any, and TranslateTextResponse |
Returns | |
---|---|
Type | Description |
void |
translateText(request)
public translateText(request: google.cloud.translation.v3.ITranslateTextRequest): Promise<google.cloud.translation.v3.TranslateTextResponse>;
Calls TranslateText.
Parameter | |
---|---|
Name | Description |
request |
ITranslateTextRequest
TranslateTextRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.TranslateTextResponse> |
Promise |
updateGlossary(request, callback)
public updateGlossary(request: google.cloud.translation.v3.IUpdateGlossaryRequest, callback: google.cloud.translation.v3.TranslationService.UpdateGlossaryCallback): void;
Calls UpdateGlossary.
Parameters | |
---|---|
Name | Description |
request |
IUpdateGlossaryRequest
UpdateGlossaryRequest message or plain object |
callback |
UpdateGlossaryCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateGlossary(request)
public updateGlossary(request: google.cloud.translation.v3.IUpdateGlossaryRequest): Promise<google.longrunning.Operation>;
Calls UpdateGlossary.
Parameter | |
---|---|
Name | Description |
request |
IUpdateGlossaryRequest
UpdateGlossaryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
updateGlossaryEntry(request, callback)
public updateGlossaryEntry(request: google.cloud.translation.v3.IUpdateGlossaryEntryRequest, callback: google.cloud.translation.v3.TranslationService.UpdateGlossaryEntryCallback): void;
Calls UpdateGlossaryEntry.
Parameters | |
---|---|
Name | Description |
request |
IUpdateGlossaryEntryRequest
UpdateGlossaryEntryRequest message or plain object |
callback |
UpdateGlossaryEntryCallback
Node-style callback called with the error, if any, and GlossaryEntry |
Returns | |
---|---|
Type | Description |
void |
updateGlossaryEntry(request)
public updateGlossaryEntry(request: google.cloud.translation.v3.IUpdateGlossaryEntryRequest): Promise<google.cloud.translation.v3.GlossaryEntry>;
Calls UpdateGlossaryEntry.
Parameter | |
---|---|
Name | Description |
request |
IUpdateGlossaryEntryRequest
UpdateGlossaryEntryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.translation.v3.GlossaryEntry> |
Promise |