public sealed class TranslationServiceSettings : ServiceSettingsBase
Settings for TranslationServiceClient instances.
Namespace
Google.Cloud.Translate.V3Assembly
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 | |
---|---|
Type | Description |
OperationsSettings |
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 |
- 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 |
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 |
- 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 | |
---|---|
Type | Description |
OperationsSettings |
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 |
- 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 | |
---|---|
Type | Description |
OperationsSettings |
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 |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 600 seconds.
DetectLanguageSettings
public CallSettings DetectLanguageSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TranslationServiceClient.DetectLanguage
and TranslationServiceClient.DetectLanguageAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 600 seconds.
GetSupportedLanguagesSettings
public CallSettings GetSupportedLanguagesSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TranslationServiceClient.GetSupportedLanguages
and
TranslationServiceClient.GetSupportedLanguagesAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 600 seconds.
ListGlossariesSettings
public CallSettings ListGlossariesSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TranslationServiceClient.ListGlossaries
and TranslationServiceClient.ListGlossariesAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 600 seconds.
TranslateDocumentSettings
public CallSettings TranslateDocumentSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TranslationServiceClient.TranslateDocument
and TranslationServiceClient.TranslateDocumentAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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 |
- 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 | |
---|---|
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. |