Google Cloud Translation v3 API - Class TranslationServiceSettings (3.8.0)

public sealed class TranslationServiceSettings : ServiceSettingsBase

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

Settings for TranslationServiceClient instances.

Inheritance

object > ServiceSettingsBase > TranslationServiceSettings

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

TranslationServiceSettings()

public TranslationServiceSettings()

Constructs a new TranslationServiceSettings object with default settings.

Properties

AdaptiveMtTranslateSettings

public CallSettings AdaptiveMtTranslateSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.AdaptiveMtTranslate and TranslationServiceClient.AdaptiveMtTranslateAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

BatchTranslateDocumentOperationsSettings

public OperationsSettings BatchTranslateDocumentOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.BatchTranslateDocument and TranslationServiceClient.BatchTranslateDocumentAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

BatchTranslateDocumentSettings

public CallSettings BatchTranslateDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.BatchTranslateDocument and TranslationServiceClient.BatchTranslateDocumentAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

BatchTranslateTextOperationsSettings

public OperationsSettings BatchTranslateTextOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.BatchTranslateText and TranslationServiceClient.BatchTranslateTextAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

BatchTranslateTextSettings

public CallSettings BatchTranslateTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.BatchTranslateText and TranslationServiceClient.BatchTranslateTextAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

CreateAdaptiveMtDatasetSettings

public CallSettings CreateAdaptiveMtDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.CreateAdaptiveMtDataset and TranslationServiceClient.CreateAdaptiveMtDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

CreateDatasetOperationsSettings

public OperationsSettings CreateDatasetOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.CreateDataset and TranslationServiceClient.CreateDatasetAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateDatasetSettings

public CallSettings CreateDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.CreateDataset and TranslationServiceClient.CreateDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

CreateGlossaryEntrySettings

public CallSettings CreateGlossaryEntrySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.CreateGlossaryEntry and TranslationServiceClient.CreateGlossaryEntryAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

CreateGlossaryOperationsSettings

public OperationsSettings CreateGlossaryOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.CreateGlossary and TranslationServiceClient.CreateGlossaryAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateGlossarySettings

public CallSettings CreateGlossarySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.CreateGlossary and TranslationServiceClient.CreateGlossaryAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

CreateModelOperationsSettings

public OperationsSettings CreateModelOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.CreateModel and TranslationServiceClient.CreateModelAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateModelSettings

public CallSettings CreateModelSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.CreateModel and TranslationServiceClient.CreateModelAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteAdaptiveMtDatasetSettings

public CallSettings DeleteAdaptiveMtDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteAdaptiveMtDataset and TranslationServiceClient.DeleteAdaptiveMtDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteAdaptiveMtFileSettings

public CallSettings DeleteAdaptiveMtFileSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteAdaptiveMtFile and TranslationServiceClient.DeleteAdaptiveMtFileAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteDatasetOperationsSettings

public OperationsSettings DeleteDatasetOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.DeleteDataset and TranslationServiceClient.DeleteDatasetAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteDatasetSettings

public CallSettings DeleteDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteDataset and TranslationServiceClient.DeleteDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteGlossaryEntrySettings

public CallSettings DeleteGlossaryEntrySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteGlossaryEntry and TranslationServiceClient.DeleteGlossaryEntryAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DeleteGlossaryOperationsSettings

public OperationsSettings DeleteGlossaryOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.DeleteGlossary and TranslationServiceClient.DeleteGlossaryAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteGlossarySettings

public CallSettings DeleteGlossarySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteGlossary and TranslationServiceClient.DeleteGlossaryAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

DeleteModelOperationsSettings

public OperationsSettings DeleteModelOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.DeleteModel and TranslationServiceClient.DeleteModelAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteModelSettings

public CallSettings DeleteModelSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DeleteModel and TranslationServiceClient.DeleteModelAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

DetectLanguageSettings

public CallSettings DetectLanguageSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.DetectLanguage and TranslationServiceClient.DetectLanguageAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

ExportDataOperationsSettings

public OperationsSettings ExportDataOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.ExportData and TranslationServiceClient.ExportDataAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

ExportDataSettings

public CallSettings ExportDataSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ExportData and TranslationServiceClient.ExportDataAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetAdaptiveMtDatasetSettings

public CallSettings GetAdaptiveMtDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetAdaptiveMtDataset and TranslationServiceClient.GetAdaptiveMtDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetAdaptiveMtFileSettings

public CallSettings GetAdaptiveMtFileSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetAdaptiveMtFile and TranslationServiceClient.GetAdaptiveMtFileAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetDatasetSettings

public CallSettings GetDatasetSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetDataset and TranslationServiceClient.GetDatasetAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetGlossaryEntrySettings

public CallSettings GetGlossaryEntrySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetGlossaryEntry and TranslationServiceClient.GetGlossaryEntryAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetGlossarySettings

public CallSettings GetGlossarySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetGlossary and TranslationServiceClient.GetGlossaryAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

GetModelSettings

public CallSettings GetModelSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetModel and TranslationServiceClient.GetModelAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

GetSupportedLanguagesSettings

public CallSettings GetSupportedLanguagesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.GetSupportedLanguages and TranslationServiceClient.GetSupportedLanguagesAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

IAMPolicySettings

public IAMPolicySettings IAMPolicySettings { get; set; }

The settings to use for the IAMPolicyClient associated with the client.

Property Value
Type Description
IAMPolicySettings

ImportAdaptiveMtFileSettings

public CallSettings ImportAdaptiveMtFileSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ImportAdaptiveMtFile and TranslationServiceClient.ImportAdaptiveMtFileAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ImportDataOperationsSettings

public OperationsSettings ImportDataOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.ImportData and TranslationServiceClient.ImportDataAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

ImportDataSettings

public CallSettings ImportDataSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ImportData and TranslationServiceClient.ImportDataAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListAdaptiveMtDatasetsSettings

public CallSettings ListAdaptiveMtDatasetsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListAdaptiveMtDatasets and TranslationServiceClient.ListAdaptiveMtDatasetsAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListAdaptiveMtFilesSettings

public CallSettings ListAdaptiveMtFilesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListAdaptiveMtFiles and TranslationServiceClient.ListAdaptiveMtFilesAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListAdaptiveMtSentencesSettings

public CallSettings ListAdaptiveMtSentencesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListAdaptiveMtSentences and TranslationServiceClient.ListAdaptiveMtSentencesAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListDatasetsSettings

public CallSettings ListDatasetsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListDatasets and TranslationServiceClient.ListDatasetsAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListExamplesSettings

public CallSettings ListExamplesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListExamples and TranslationServiceClient.ListExamplesAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListGlossariesSettings

public CallSettings ListGlossariesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListGlossaries and TranslationServiceClient.ListGlossariesAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

ListGlossaryEntriesSettings

public CallSettings ListGlossaryEntriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListGlossaryEntries and TranslationServiceClient.ListGlossaryEntriesAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

ListModelsSettings

public CallSettings ListModelsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.ListModels and TranslationServiceClient.ListModelsAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
Type Description
LocationsSettings

RomanizeTextSettings

public CallSettings RomanizeTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.RomanizeText and TranslationServiceClient.RomanizeTextAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

TranslateDocumentSettings

public CallSettings TranslateDocumentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.TranslateDocument and TranslationServiceClient.TranslateDocumentAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

TranslateTextSettings

public CallSettings TranslateTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.TranslateText and TranslationServiceClient.TranslateTextAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

UpdateGlossaryEntrySettings

public CallSettings UpdateGlossaryEntrySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.UpdateGlossaryEntry and TranslationServiceClient.UpdateGlossaryEntryAsync .

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

UpdateGlossaryOperationsSettings

public OperationsSettings UpdateGlossaryOperationsSettings { get; set; }

Long Running Operation settings for calls to TranslationServiceClient.UpdateGlossary and TranslationServiceClient.UpdateGlossaryAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

UpdateGlossarySettings

public CallSettings UpdateGlossarySettings { get; set; }

CallSettings for synchronous and asynchronous calls to TranslationServiceClient.UpdateGlossary and TranslationServiceClient.UpdateGlossaryAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

Methods

Clone()

public TranslationServiceSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
Type Description
TranslationServiceSettings

A deep clone of this TranslationServiceSettings object.

GetDefault()

public static TranslationServiceSettings GetDefault()

Get a new instance of the default TranslationServiceSettings.

Returns
Type Description
TranslationServiceSettings

A new instance of the default TranslationServiceSettings.