Google Cloud Translation v3 API - Class TranslationServiceSettings (3.4.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

DeleteAdaptiveMtDatasetSettings

public CallSettings DeleteAdaptiveMtDatasetSettings { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.

DetectLanguageSettings

public CallSettings DetectLanguageSettings { get; set; }

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

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

GetAdaptiveMtDatasetSettings

public CallSettings GetAdaptiveMtDatasetSettings { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
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.

GetSupportedLanguagesSettings

public CallSettings GetSupportedLanguagesSettings { get; set; }

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

Property Value
TypeDescription
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.

ImportAdaptiveMtFileSettings

public CallSettings ImportAdaptiveMtFileSettings { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.

TranslateDocumentSettings

public CallSettings TranslateDocumentSettings { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

Methods

Clone()

public TranslationServiceSettings Clone()

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

Returns
TypeDescription
TranslationServiceSettings

A deep clone of this TranslationServiceSettings object.

GetDefault()

public static TranslationServiceSettings GetDefault()

Get a new instance of the default TranslationServiceSettings.

Returns
TypeDescription
TranslationServiceSettings

A new instance of the default TranslationServiceSettings.