public sealed class LanguageServiceSettings : ServiceSettingsBase
Reference documentation and code samples for the Cloud Natural Language v2 API class LanguageServiceSettings.
Settings for LanguageServiceClient instances.
Namespace
Google.Cloud.Language.V2Assembly
Google.Cloud.Language.V2.dll
Constructors
LanguageServiceSettings()
public LanguageServiceSettings()
Constructs a new LanguageServiceSettings object with default settings.
Properties
AnalyzeEntitiesSettings
public CallSettings AnalyzeEntitiesSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
LanguageServiceClient.AnalyzeEntities
and LanguageServiceClient.AnalyzeEntitiesAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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.
AnalyzeSentimentSettings
public CallSettings AnalyzeSentimentSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
LanguageServiceClient.AnalyzeSentiment
and LanguageServiceClient.AnalyzeSentimentAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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.
AnnotateTextSettings
public CallSettings AnnotateTextSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
LanguageServiceClient.AnnotateText
and LanguageServiceClient.AnnotateTextAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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.
ClassifyTextSettings
public CallSettings ClassifyTextSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
LanguageServiceClient.ClassifyText
and LanguageServiceClient.ClassifyTextAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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.
ModerateTextSettings
public CallSettings ModerateTextSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
LanguageServiceClient.ModerateText
and LanguageServiceClient.ModerateTextAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- 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.
Methods
Clone()
public LanguageServiceSettings Clone()
Creates a deep clone of this object, with all the same property values.
Returns | |
---|---|
Type | Description |
LanguageServiceSettings |
A deep clone of this LanguageServiceSettings object. |
GetDefault()
public static LanguageServiceSettings GetDefault()
Get a new instance of the default LanguageServiceSettings.
Returns | |
---|---|
Type | Description |
LanguageServiceSettings |
A new instance of the default LanguageServiceSettings. |