Google Cloud Translation v3 API - Class TranslationServiceClientImpl (3.9.0)

public sealed class TranslationServiceClientImpl : TranslationServiceClient

Reference documentation and code samples for the Google Cloud Translation v3 API class TranslationServiceClientImpl.

TranslationService client wrapper implementation, for convenient use.

Inheritance

object > TranslationServiceClient > TranslationServiceClientImpl

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Remarks

Provides natural language translation operations.

Constructors

TranslationServiceClientImpl(TranslationServiceClient, TranslationServiceSettings, ILogger)

public TranslationServiceClientImpl(TranslationService.TranslationServiceClient grpcClient, TranslationServiceSettings settings, ILogger logger)

Constructs a client wrapper for the TranslationService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient TranslationServiceTranslationServiceClient

The underlying gRPC client.

settings TranslationServiceSettings

The base TranslationServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

BatchTranslateDocumentOperationsClient

public override OperationsClient BatchTranslateDocumentOperationsClient { get; }

The long-running operations client for BatchTranslateDocument.

Property Value
Type Description
OperationsClient
Overrides

BatchTranslateTextOperationsClient

public override OperationsClient BatchTranslateTextOperationsClient { get; }

The long-running operations client for BatchTranslateText.

Property Value
Type Description
OperationsClient
Overrides

CreateDatasetOperationsClient

public override OperationsClient CreateDatasetOperationsClient { get; }

The long-running operations client for CreateDataset.

Property Value
Type Description
OperationsClient
Overrides

CreateGlossaryOperationsClient

public override OperationsClient CreateGlossaryOperationsClient { get; }

The long-running operations client for CreateGlossary.

Property Value
Type Description
OperationsClient
Overrides

CreateModelOperationsClient

public override OperationsClient CreateModelOperationsClient { get; }

The long-running operations client for CreateModel.

Property Value
Type Description
OperationsClient
Overrides

DeleteDatasetOperationsClient

public override OperationsClient DeleteDatasetOperationsClient { get; }

The long-running operations client for DeleteDataset.

Property Value
Type Description
OperationsClient
Overrides

DeleteGlossaryOperationsClient

public override OperationsClient DeleteGlossaryOperationsClient { get; }

The long-running operations client for DeleteGlossary.

Property Value
Type Description
OperationsClient
Overrides

DeleteModelOperationsClient

public override OperationsClient DeleteModelOperationsClient { get; }

The long-running operations client for DeleteModel.

Property Value
Type Description
OperationsClient
Overrides

ExportDataOperationsClient

public override OperationsClient ExportDataOperationsClient { get; }

The long-running operations client for ExportData.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override TranslationService.TranslationServiceClient GrpcClient { get; }

The underlying gRPC TranslationService client

Property Value
Type Description
TranslationServiceTranslationServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

ImportDataOperationsClient

public override OperationsClient ImportDataOperationsClient { get; }

The long-running operations client for ImportData.

Property Value
Type Description
OperationsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

UpdateGlossaryOperationsClient

public override OperationsClient UpdateGlossaryOperationsClient { get; }

The long-running operations client for UpdateGlossary.

Property Value
Type Description
OperationsClient
Overrides

Methods

AdaptiveMtTranslate(AdaptiveMtTranslateRequest, CallSettings)

public override AdaptiveMtTranslateResponse AdaptiveMtTranslate(AdaptiveMtTranslateRequest request, CallSettings callSettings = null)

Translate text using Adaptive MT.

Parameters
Name Description
request AdaptiveMtTranslateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AdaptiveMtTranslateResponse

The RPC response.

Overrides

AdaptiveMtTranslateAsync(AdaptiveMtTranslateRequest, CallSettings)

public override Task<AdaptiveMtTranslateResponse> AdaptiveMtTranslateAsync(AdaptiveMtTranslateRequest request, CallSettings callSettings = null)

Translate text using Adaptive MT.

Parameters
Name Description
request AdaptiveMtTranslateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAdaptiveMtTranslateResponse

A Task containing the RPC response.

Overrides

BatchTranslateDocument(BatchTranslateDocumentRequest, CallSettings)

public override Operation<BatchTranslateDocumentResponse, BatchTranslateDocumentMetadata> BatchTranslateDocument(BatchTranslateDocumentRequest request, CallSettings callSettings = null)

Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location.

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

Parameters
Name Description
request BatchTranslateDocumentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchTranslateDocumentResponseBatchTranslateDocumentMetadata

The RPC response.

Overrides

BatchTranslateDocumentAsync(BatchTranslateDocumentRequest, CallSettings)

public override Task<Operation<BatchTranslateDocumentResponse, BatchTranslateDocumentMetadata>> BatchTranslateDocumentAsync(BatchTranslateDocumentRequest request, CallSettings callSettings = null)

Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location.

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

Parameters
Name Description
request BatchTranslateDocumentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchTranslateDocumentResponseBatchTranslateDocumentMetadata

A Task containing the RPC response.

Overrides

BatchTranslateText(BatchTranslateTextRequest, CallSettings)

public override Operation<BatchTranslateResponse, BatchTranslateMetadata> BatchTranslateText(BatchTranslateTextRequest request, CallSettings callSettings = null)

Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location.

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

Parameters
Name Description
request BatchTranslateTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchTranslateResponseBatchTranslateMetadata

The RPC response.

Overrides

BatchTranslateTextAsync(BatchTranslateTextRequest, CallSettings)

public override Task<Operation<BatchTranslateResponse, BatchTranslateMetadata>> BatchTranslateTextAsync(BatchTranslateTextRequest request, CallSettings callSettings = null)

Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location.

This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

Parameters
Name Description
request BatchTranslateTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchTranslateResponseBatchTranslateMetadata

A Task containing the RPC response.

Overrides

CreateAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest, CallSettings)

public override AdaptiveMtDataset CreateAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Creates an Adaptive MT dataset.

Parameters
Name Description
request CreateAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AdaptiveMtDataset

The RPC response.

Overrides

CreateAdaptiveMtDatasetAsync(CreateAdaptiveMtDatasetRequest, CallSettings)

public override Task<AdaptiveMtDataset> CreateAdaptiveMtDatasetAsync(CreateAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Creates an Adaptive MT dataset.

Parameters
Name Description
request CreateAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAdaptiveMtDataset

A Task containing the RPC response.

Overrides

CreateDataset(CreateDatasetRequest, CallSettings)

public override Operation<Dataset, CreateDatasetMetadata> CreateDataset(CreateDatasetRequest request, CallSettings callSettings = null)

Creates a Dataset.

Parameters
Name Description
request CreateDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetCreateDatasetMetadata

The RPC response.

Overrides

CreateDatasetAsync(CreateDatasetRequest, CallSettings)

public override Task<Operation<Dataset, CreateDatasetMetadata>> CreateDatasetAsync(CreateDatasetRequest request, CallSettings callSettings = null)

Creates a Dataset.

Parameters
Name Description
request CreateDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetCreateDatasetMetadata

A Task containing the RPC response.

Overrides

CreateGlossary(CreateGlossaryRequest, CallSettings)

public override Operation<Glossary, CreateGlossaryMetadata> CreateGlossary(CreateGlossaryRequest request, CallSettings callSettings = null)

Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

Parameters
Name Description
request CreateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryCreateGlossaryMetadata

The RPC response.

Overrides

CreateGlossaryAsync(CreateGlossaryRequest, CallSettings)

public override Task<Operation<Glossary, CreateGlossaryMetadata>> CreateGlossaryAsync(CreateGlossaryRequest request, CallSettings callSettings = null)

Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

Parameters
Name Description
request CreateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryCreateGlossaryMetadata

A Task containing the RPC response.

Overrides

CreateGlossaryEntry(CreateGlossaryEntryRequest, CallSettings)

public override GlossaryEntry CreateGlossaryEntry(CreateGlossaryEntryRequest request, CallSettings callSettings = null)

Creates a glossary entry.

Parameters
Name Description
request CreateGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryEntry

The RPC response.

Overrides

CreateGlossaryEntryAsync(CreateGlossaryEntryRequest, CallSettings)

public override Task<GlossaryEntry> CreateGlossaryEntryAsync(CreateGlossaryEntryRequest request, CallSettings callSettings = null)

Creates a glossary entry.

Parameters
Name Description
request CreateGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryEntry

A Task containing the RPC response.

Overrides

CreateModel(CreateModelRequest, CallSettings)

public override Operation<Model, CreateModelMetadata> CreateModel(CreateModelRequest request, CallSettings callSettings = null)

Creates a Model.

Parameters
Name Description
request CreateModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationModelCreateModelMetadata

The RPC response.

Overrides

CreateModelAsync(CreateModelRequest, CallSettings)

public override Task<Operation<Model, CreateModelMetadata>> CreateModelAsync(CreateModelRequest request, CallSettings callSettings = null)

Creates a Model.

Parameters
Name Description
request CreateModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationModelCreateModelMetadata

A Task containing the RPC response.

Overrides

DeleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest, CallSettings)

public override void DeleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Deletes an Adaptive MT dataset, including all its entries and associated metadata.

Parameters
Name Description
request DeleteAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteAdaptiveMtDatasetAsync(DeleteAdaptiveMtDatasetRequest, CallSettings)

public override Task DeleteAdaptiveMtDatasetAsync(DeleteAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Deletes an Adaptive MT dataset, including all its entries and associated metadata.

Parameters
Name Description
request DeleteAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

DeleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest, CallSettings)

public override void DeleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request, CallSettings callSettings = null)

Deletes an AdaptiveMtFile along with its sentences.

Parameters
Name Description
request DeleteAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteAdaptiveMtFileAsync(DeleteAdaptiveMtFileRequest, CallSettings)

public override Task DeleteAdaptiveMtFileAsync(DeleteAdaptiveMtFileRequest request, CallSettings callSettings = null)

Deletes an AdaptiveMtFile along with its sentences.

Parameters
Name Description
request DeleteAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

DeleteDataset(DeleteDatasetRequest, CallSettings)

public override Operation<Empty, DeleteDatasetMetadata> DeleteDataset(DeleteDatasetRequest request, CallSettings callSettings = null)

Deletes a dataset and all of its contents.

Parameters
Name Description
request DeleteDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteDatasetMetadata

The RPC response.

Overrides

DeleteDatasetAsync(DeleteDatasetRequest, CallSettings)

public override Task<Operation<Empty, DeleteDatasetMetadata>> DeleteDatasetAsync(DeleteDatasetRequest request, CallSettings callSettings = null)

Deletes a dataset and all of its contents.

Parameters
Name Description
request DeleteDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteDatasetMetadata

A Task containing the RPC response.

Overrides

DeleteGlossary(DeleteGlossaryRequest, CallSettings)

public override Operation<DeleteGlossaryResponse, DeleteGlossaryMetadata> DeleteGlossary(DeleteGlossaryRequest request, CallSettings callSettings = null)

Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.

Parameters
Name Description
request DeleteGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDeleteGlossaryResponseDeleteGlossaryMetadata

The RPC response.

Overrides

DeleteGlossaryAsync(DeleteGlossaryRequest, CallSettings)

public override Task<Operation<DeleteGlossaryResponse, DeleteGlossaryMetadata>> DeleteGlossaryAsync(DeleteGlossaryRequest request, CallSettings callSettings = null)

Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.

Parameters
Name Description
request DeleteGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDeleteGlossaryResponseDeleteGlossaryMetadata

A Task containing the RPC response.

Overrides

DeleteGlossaryEntry(DeleteGlossaryEntryRequest, CallSettings)

public override void DeleteGlossaryEntry(DeleteGlossaryEntryRequest request, CallSettings callSettings = null)

Deletes a single entry from the glossary

Parameters
Name Description
request DeleteGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteGlossaryEntryAsync(DeleteGlossaryEntryRequest, CallSettings)

public override Task DeleteGlossaryEntryAsync(DeleteGlossaryEntryRequest request, CallSettings callSettings = null)

Deletes a single entry from the glossary

Parameters
Name Description
request DeleteGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

DeleteModel(DeleteModelRequest, CallSettings)

public override Operation<Empty, DeleteModelMetadata> DeleteModel(DeleteModelRequest request, CallSettings callSettings = null)

Deletes a model.

Parameters
Name Description
request DeleteModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyDeleteModelMetadata

The RPC response.

Overrides

DeleteModelAsync(DeleteModelRequest, CallSettings)

public override Task<Operation<Empty, DeleteModelMetadata>> DeleteModelAsync(DeleteModelRequest request, CallSettings callSettings = null)

Deletes a model.

Parameters
Name Description
request DeleteModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyDeleteModelMetadata

A Task containing the RPC response.

Overrides

DetectLanguage(DetectLanguageRequest, CallSettings)

public override DetectLanguageResponse DetectLanguage(DetectLanguageRequest request, CallSettings callSettings = null)

Detects the language of text within a request.

Parameters
Name Description
request DetectLanguageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DetectLanguageResponse

The RPC response.

Overrides

DetectLanguageAsync(DetectLanguageRequest, CallSettings)

public override Task<DetectLanguageResponse> DetectLanguageAsync(DetectLanguageRequest request, CallSettings callSettings = null)

Detects the language of text within a request.

Parameters
Name Description
request DetectLanguageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDetectLanguageResponse

A Task containing the RPC response.

Overrides

ExportData(ExportDataRequest, CallSettings)

public override Operation<Empty, ExportDataMetadata> ExportData(ExportDataRequest request, CallSettings callSettings = null)

Exports dataset's data to the provided output location.

Parameters
Name Description
request ExportDataRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyExportDataMetadata

The RPC response.

Overrides

ExportDataAsync(ExportDataRequest, CallSettings)

public override Task<Operation<Empty, ExportDataMetadata>> ExportDataAsync(ExportDataRequest request, CallSettings callSettings = null)

Exports dataset's data to the provided output location.

Parameters
Name Description
request ExportDataRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyExportDataMetadata

A Task containing the RPC response.

Overrides

GetAdaptiveMtDataset(GetAdaptiveMtDatasetRequest, CallSettings)

public override AdaptiveMtDataset GetAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Gets the Adaptive MT dataset.

Parameters
Name Description
request GetAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AdaptiveMtDataset

The RPC response.

Overrides

GetAdaptiveMtDatasetAsync(GetAdaptiveMtDatasetRequest, CallSettings)

public override Task<AdaptiveMtDataset> GetAdaptiveMtDatasetAsync(GetAdaptiveMtDatasetRequest request, CallSettings callSettings = null)

Gets the Adaptive MT dataset.

Parameters
Name Description
request GetAdaptiveMtDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAdaptiveMtDataset

A Task containing the RPC response.

Overrides

GetAdaptiveMtFile(GetAdaptiveMtFileRequest, CallSettings)

public override AdaptiveMtFile GetAdaptiveMtFile(GetAdaptiveMtFileRequest request, CallSettings callSettings = null)

Gets and AdaptiveMtFile

Parameters
Name Description
request GetAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AdaptiveMtFile

The RPC response.

Overrides

GetAdaptiveMtFileAsync(GetAdaptiveMtFileRequest, CallSettings)

public override Task<AdaptiveMtFile> GetAdaptiveMtFileAsync(GetAdaptiveMtFileRequest request, CallSettings callSettings = null)

Gets and AdaptiveMtFile

Parameters
Name Description
request GetAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAdaptiveMtFile

A Task containing the RPC response.

Overrides

GetDataset(GetDatasetRequest, CallSettings)

public override Dataset GetDataset(GetDatasetRequest request, CallSettings callSettings = null)

Gets a Dataset.

Parameters
Name Description
request GetDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Dataset

The RPC response.

Overrides

GetDatasetAsync(GetDatasetRequest, CallSettings)

public override Task<Dataset> GetDatasetAsync(GetDatasetRequest request, CallSettings callSettings = null)

Gets a Dataset.

Parameters
Name Description
request GetDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataset

A Task containing the RPC response.

Overrides

GetGlossary(GetGlossaryRequest, CallSettings)

public override Glossary GetGlossary(GetGlossaryRequest request, CallSettings callSettings = null)

Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.

Parameters
Name Description
request GetGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Glossary

The RPC response.

Overrides

GetGlossaryAsync(GetGlossaryRequest, CallSettings)

public override Task<Glossary> GetGlossaryAsync(GetGlossaryRequest request, CallSettings callSettings = null)

Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.

Parameters
Name Description
request GetGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Overrides

GetGlossaryEntry(GetGlossaryEntryRequest, CallSettings)

public override GlossaryEntry GetGlossaryEntry(GetGlossaryEntryRequest request, CallSettings callSettings = null)

Gets a single glossary entry by the given id.

Parameters
Name Description
request GetGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryEntry

The RPC response.

Overrides

GetGlossaryEntryAsync(GetGlossaryEntryRequest, CallSettings)

public override Task<GlossaryEntry> GetGlossaryEntryAsync(GetGlossaryEntryRequest request, CallSettings callSettings = null)

Gets a single glossary entry by the given id.

Parameters
Name Description
request GetGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryEntry

A Task containing the RPC response.

Overrides

GetModel(GetModelRequest, CallSettings)

public override Model GetModel(GetModelRequest request, CallSettings callSettings = null)

Gets a model.

Parameters
Name Description
request GetModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Model

The RPC response.

Overrides

GetModelAsync(GetModelRequest, CallSettings)

public override Task<Model> GetModelAsync(GetModelRequest request, CallSettings callSettings = null)

Gets a model.

Parameters
Name Description
request GetModelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskModel

A Task containing the RPC response.

Overrides

GetSupportedLanguages(GetSupportedLanguagesRequest, CallSettings)

public override SupportedLanguages GetSupportedLanguages(GetSupportedLanguagesRequest request, CallSettings callSettings = null)

Returns a list of supported languages for translation.

Parameters
Name Description
request GetSupportedLanguagesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SupportedLanguages

The RPC response.

Overrides

GetSupportedLanguagesAsync(GetSupportedLanguagesRequest, CallSettings)

public override Task<SupportedLanguages> GetSupportedLanguagesAsync(GetSupportedLanguagesRequest request, CallSettings callSettings = null)

Returns a list of supported languages for translation.

Parameters
Name Description
request GetSupportedLanguagesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSupportedLanguages

A Task containing the RPC response.

Overrides

ImportAdaptiveMtFile(ImportAdaptiveMtFileRequest, CallSettings)

public override ImportAdaptiveMtFileResponse ImportAdaptiveMtFile(ImportAdaptiveMtFileRequest request, CallSettings callSettings = null)

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.

Parameters
Name Description
request ImportAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ImportAdaptiveMtFileResponse

The RPC response.

Overrides

ImportAdaptiveMtFileAsync(ImportAdaptiveMtFileRequest, CallSettings)

public override Task<ImportAdaptiveMtFileResponse> ImportAdaptiveMtFileAsync(ImportAdaptiveMtFileRequest request, CallSettings callSettings = null)

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.

Parameters
Name Description
request ImportAdaptiveMtFileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskImportAdaptiveMtFileResponse

A Task containing the RPC response.

Overrides

ImportData(ImportDataRequest, CallSettings)

public override Operation<Empty, ImportDataMetadata> ImportData(ImportDataRequest request, CallSettings callSettings = null)

Import sentence pairs into translation Dataset.

Parameters
Name Description
request ImportDataRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyImportDataMetadata

The RPC response.

Overrides

ImportDataAsync(ImportDataRequest, CallSettings)

public override Task<Operation<Empty, ImportDataMetadata>> ImportDataAsync(ImportDataRequest request, CallSettings callSettings = null)

Import sentence pairs into translation Dataset.

Parameters
Name Description
request ImportDataRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyImportDataMetadata

A Task containing the RPC response.

Overrides

ListAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest, CallSettings)

public override PagedEnumerable<ListAdaptiveMtDatasetsResponse, AdaptiveMtDataset> ListAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request, CallSettings callSettings = null)

Lists all Adaptive MT datasets for which the caller has read permission.

Parameters
Name Description
request ListAdaptiveMtDatasetsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAdaptiveMtDatasetsResponseAdaptiveMtDataset

A pageable sequence of AdaptiveMtDataset resources.

Overrides

ListAdaptiveMtDatasetsAsync(ListAdaptiveMtDatasetsRequest, CallSettings)

public override PagedAsyncEnumerable<ListAdaptiveMtDatasetsResponse, AdaptiveMtDataset> ListAdaptiveMtDatasetsAsync(ListAdaptiveMtDatasetsRequest request, CallSettings callSettings = null)

Lists all Adaptive MT datasets for which the caller has read permission.

Parameters
Name Description
request ListAdaptiveMtDatasetsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAdaptiveMtDatasetsResponseAdaptiveMtDataset

A pageable asynchronous sequence of AdaptiveMtDataset resources.

Overrides

ListAdaptiveMtFiles(ListAdaptiveMtFilesRequest, CallSettings)

public override PagedEnumerable<ListAdaptiveMtFilesResponse, AdaptiveMtFile> ListAdaptiveMtFiles(ListAdaptiveMtFilesRequest request, CallSettings callSettings = null)

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

Parameters
Name Description
request ListAdaptiveMtFilesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAdaptiveMtFilesResponseAdaptiveMtFile

A pageable sequence of AdaptiveMtFile resources.

Overrides

ListAdaptiveMtFilesAsync(ListAdaptiveMtFilesRequest, CallSettings)

public override PagedAsyncEnumerable<ListAdaptiveMtFilesResponse, AdaptiveMtFile> ListAdaptiveMtFilesAsync(ListAdaptiveMtFilesRequest request, CallSettings callSettings = null)

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

Parameters
Name Description
request ListAdaptiveMtFilesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAdaptiveMtFilesResponseAdaptiveMtFile

A pageable asynchronous sequence of AdaptiveMtFile resources.

Overrides

ListAdaptiveMtSentences(ListAdaptiveMtSentencesRequest, CallSettings)

public override PagedEnumerable<ListAdaptiveMtSentencesResponse, AdaptiveMtSentence> ListAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request, CallSettings callSettings = null)

Lists all AdaptiveMtSentences under a given file/dataset.

Parameters
Name Description
request ListAdaptiveMtSentencesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAdaptiveMtSentencesResponseAdaptiveMtSentence

A pageable sequence of AdaptiveMtSentence resources.

Overrides

ListAdaptiveMtSentencesAsync(ListAdaptiveMtSentencesRequest, CallSettings)

public override PagedAsyncEnumerable<ListAdaptiveMtSentencesResponse, AdaptiveMtSentence> ListAdaptiveMtSentencesAsync(ListAdaptiveMtSentencesRequest request, CallSettings callSettings = null)

Lists all AdaptiveMtSentences under a given file/dataset.

Parameters
Name Description
request ListAdaptiveMtSentencesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAdaptiveMtSentencesResponseAdaptiveMtSentence

A pageable asynchronous sequence of AdaptiveMtSentence resources.

Overrides

ListDatasets(ListDatasetsRequest, CallSettings)

public override PagedEnumerable<ListDatasetsResponse, Dataset> ListDatasets(ListDatasetsRequest request, CallSettings callSettings = null)

Lists datasets.

Parameters
Name Description
request ListDatasetsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDatasetsResponseDataset

A pageable sequence of Dataset resources.

Overrides

ListDatasetsAsync(ListDatasetsRequest, CallSettings)

public override PagedAsyncEnumerable<ListDatasetsResponse, Dataset> ListDatasetsAsync(ListDatasetsRequest request, CallSettings callSettings = null)

Lists datasets.

Parameters
Name Description
request ListDatasetsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDatasetsResponseDataset

A pageable asynchronous sequence of Dataset resources.

Overrides

ListExamples(ListExamplesRequest, CallSettings)

public override PagedEnumerable<ListExamplesResponse, Example> ListExamples(ListExamplesRequest request, CallSettings callSettings = null)

Lists sentence pairs in the dataset.

Parameters
Name Description
request ListExamplesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExamplesResponseExample

A pageable sequence of Example resources.

Overrides

ListExamplesAsync(ListExamplesRequest, CallSettings)

public override PagedAsyncEnumerable<ListExamplesResponse, Example> ListExamplesAsync(ListExamplesRequest request, CallSettings callSettings = null)

Lists sentence pairs in the dataset.

Parameters
Name Description
request ListExamplesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExamplesResponseExample

A pageable asynchronous sequence of Example resources.

Overrides

ListGlossaries(ListGlossariesRequest, CallSettings)

public override PagedEnumerable<ListGlossariesResponse, Glossary> ListGlossaries(ListGlossariesRequest request, CallSettings callSettings = null)

Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

Parameters
Name Description
request ListGlossariesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossariesResponseGlossary

A pageable sequence of Glossary resources.

Overrides

ListGlossariesAsync(ListGlossariesRequest, CallSettings)

public override PagedAsyncEnumerable<ListGlossariesResponse, Glossary> ListGlossariesAsync(ListGlossariesRequest request, CallSettings callSettings = null)

Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

Parameters
Name Description
request ListGlossariesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossariesResponseGlossary

A pageable asynchronous sequence of Glossary resources.

Overrides

ListGlossaryEntries(ListGlossaryEntriesRequest, CallSettings)

public override PagedEnumerable<ListGlossaryEntriesResponse, GlossaryEntry> ListGlossaryEntries(ListGlossaryEntriesRequest request, CallSettings callSettings = null)

List the entries for the glossary.

Parameters
Name Description
request ListGlossaryEntriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryEntriesResponseGlossaryEntry

A pageable sequence of GlossaryEntry resources.

Overrides

ListGlossaryEntriesAsync(ListGlossaryEntriesRequest, CallSettings)

public override PagedAsyncEnumerable<ListGlossaryEntriesResponse, GlossaryEntry> ListGlossaryEntriesAsync(ListGlossaryEntriesRequest request, CallSettings callSettings = null)

List the entries for the glossary.

Parameters
Name Description
request ListGlossaryEntriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryEntriesResponseGlossaryEntry

A pageable asynchronous sequence of GlossaryEntry resources.

Overrides

ListModels(ListModelsRequest, CallSettings)

public override PagedEnumerable<ListModelsResponse, Model> ListModels(ListModelsRequest request, CallSettings callSettings = null)

Lists models.

Parameters
Name Description
request ListModelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListModelsResponseModel

A pageable sequence of Model resources.

Overrides

ListModelsAsync(ListModelsRequest, CallSettings)

public override PagedAsyncEnumerable<ListModelsResponse, Model> ListModelsAsync(ListModelsRequest request, CallSettings callSettings = null)

Lists models.

Parameters
Name Description
request ListModelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListModelsResponseModel

A pageable asynchronous sequence of Model resources.

Overrides

RomanizeText(RomanizeTextRequest, CallSettings)

public override RomanizeTextResponse RomanizeText(RomanizeTextRequest request, CallSettings callSettings = null)

Romanize input text written in non-Latin scripts to Latin text.

Parameters
Name Description
request RomanizeTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RomanizeTextResponse

The RPC response.

Overrides

RomanizeTextAsync(RomanizeTextRequest, CallSettings)

public override Task<RomanizeTextResponse> RomanizeTextAsync(RomanizeTextRequest request, CallSettings callSettings = null)

Romanize input text written in non-Latin scripts to Latin text.

Parameters
Name Description
request RomanizeTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRomanizeTextResponse

A Task containing the RPC response.

Overrides

TranslateDocument(TranslateDocumentRequest, CallSettings)

public override TranslateDocumentResponse TranslateDocument(TranslateDocumentRequest request, CallSettings callSettings = null)

Translates documents in synchronous mode.

Parameters
Name Description
request TranslateDocumentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TranslateDocumentResponse

The RPC response.

Overrides

TranslateDocumentAsync(TranslateDocumentRequest, CallSettings)

public override Task<TranslateDocumentResponse> TranslateDocumentAsync(TranslateDocumentRequest request, CallSettings callSettings = null)

Translates documents in synchronous mode.

Parameters
Name Description
request TranslateDocumentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTranslateDocumentResponse

A Task containing the RPC response.

Overrides

TranslateText(TranslateTextRequest, CallSettings)

public override TranslateTextResponse TranslateText(TranslateTextRequest request, CallSettings callSettings = null)

Translates input text and returns translated text.

Parameters
Name Description
request TranslateTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TranslateTextResponse

The RPC response.

Overrides

TranslateTextAsync(TranslateTextRequest, CallSettings)

public override Task<TranslateTextResponse> TranslateTextAsync(TranslateTextRequest request, CallSettings callSettings = null)

Translates input text and returns translated text.

Parameters
Name Description
request TranslateTextRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTranslateTextResponse

A Task containing the RPC response.

Overrides

UpdateGlossary(UpdateGlossaryRequest, CallSettings)

public override Operation<Glossary, UpdateGlossaryMetadata> UpdateGlossary(UpdateGlossaryRequest request, CallSettings callSettings = null)

Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.

Parameters
Name Description
request UpdateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryUpdateGlossaryMetadata

The RPC response.

Overrides

UpdateGlossaryAsync(UpdateGlossaryRequest, CallSettings)

public override Task<Operation<Glossary, UpdateGlossaryMetadata>> UpdateGlossaryAsync(UpdateGlossaryRequest request, CallSettings callSettings = null)

Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.

Parameters
Name Description
request UpdateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryUpdateGlossaryMetadata

A Task containing the RPC response.

Overrides

UpdateGlossaryEntry(UpdateGlossaryEntryRequest, CallSettings)

public override GlossaryEntry UpdateGlossaryEntry(UpdateGlossaryEntryRequest request, CallSettings callSettings = null)

Updates a glossary entry.

Parameters
Name Description
request UpdateGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryEntry

The RPC response.

Overrides

UpdateGlossaryEntryAsync(UpdateGlossaryEntryRequest, CallSettings)

public override Task<GlossaryEntry> UpdateGlossaryEntryAsync(UpdateGlossaryEntryRequest request, CallSettings callSettings = null)

Updates a glossary entry.

Parameters
Name Description
request UpdateGlossaryEntryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryEntry

A Task containing the RPC response.

Overrides