Google Cloud Translation v3 API - Class TranslationServiceClientImpl (3.6.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

CreateGlossaryOperationsClient

public override OperationsClient CreateGlossaryOperationsClient { get; }

The long-running operations client for CreateGlossary.

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

GrpcClient

public override TranslationService.TranslationServiceClient GrpcClient { get; }

The underlying gRPC TranslationService client

Property Value
Type Description
TranslationServiceTranslationServiceClient
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

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

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

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

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

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

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

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

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

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

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