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

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.

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.

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.

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.

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.