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

The underlying gRPC client.

settingsTranslationServiceSettings

The base TranslationServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

BatchTranslateDocumentOperationsClient

public override OperationsClient BatchTranslateDocumentOperationsClient { get; }

The long-running operations client for BatchTranslateDocument.

Property Value
TypeDescription
OperationsClient
Overrides

BatchTranslateTextOperationsClient

public override OperationsClient BatchTranslateTextOperationsClient { get; }

The long-running operations client for BatchTranslateText.

Property Value
TypeDescription
OperationsClient
Overrides

CreateGlossaryOperationsClient

public override OperationsClient CreateGlossaryOperationsClient { get; }

The long-running operations client for CreateGlossary.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteGlossaryOperationsClient

public override OperationsClient DeleteGlossaryOperationsClient { get; }

The long-running operations client for DeleteGlossary.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override TranslationService.TranslationServiceClient GrpcClient { get; }

The underlying gRPC TranslationService client

Property Value
TypeDescription
TranslationServiceTranslationServiceClient
Overrides

Methods

AdaptiveMtTranslate(AdaptiveMtTranslateRequest, CallSettings)

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

Translate text using Adaptive MT.

Parameters
NameDescription
requestAdaptiveMtTranslateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AdaptiveMtTranslateResponse

The RPC response.

Overrides

AdaptiveMtTranslateAsync(AdaptiveMtTranslateRequest, CallSettings)

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

Translate text using Adaptive MT.

Parameters
NameDescription
requestAdaptiveMtTranslateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBatchTranslateDocumentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBatchTranslateDocumentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBatchTranslateTextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBatchTranslateTextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateAdaptiveMtDatasetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AdaptiveMtDataset

The RPC response.

Overrides

CreateAdaptiveMtDatasetAsync(CreateAdaptiveMtDatasetRequest, CallSettings)

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

Creates an Adaptive MT dataset.

Parameters
NameDescription
requestCreateAdaptiveMtDatasetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteAdaptiveMtDatasetRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteAdaptiveMtDatasetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteAdaptiveMtFileRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteAdaptiveMtFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDetectLanguageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDetectLanguageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetAdaptiveMtDatasetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AdaptiveMtDataset

The RPC response.

Overrides

GetAdaptiveMtDatasetAsync(GetAdaptiveMtDatasetRequest, CallSettings)

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

Gets the Adaptive MT dataset.

Parameters
NameDescription
requestGetAdaptiveMtDatasetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAdaptiveMtDataset

A Task containing the RPC response.

Overrides

GetAdaptiveMtFile(GetAdaptiveMtFileRequest, CallSettings)

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

Gets and AdaptiveMtFile

Parameters
NameDescription
requestGetAdaptiveMtFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AdaptiveMtFile

The RPC response.

Overrides

GetAdaptiveMtFileAsync(GetAdaptiveMtFileRequest, CallSettings)

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

Gets and AdaptiveMtFile

Parameters
NameDescription
requestGetAdaptiveMtFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetGlossaryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSupportedLanguagesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSupportedLanguagesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestImportAdaptiveMtFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestImportAdaptiveMtFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtDatasetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtDatasetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtFilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtFilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtSentencesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListAdaptiveMtSentencesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListGlossariesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListGlossariesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTranslateDocumentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TranslateDocumentResponse

The RPC response.

Overrides

TranslateDocumentAsync(TranslateDocumentRequest, CallSettings)

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

Translates documents in synchronous mode.

Parameters
NameDescription
requestTranslateDocumentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTranslateTextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTranslateTextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTranslateTextResponse

A Task containing the RPC response.

Overrides