Google Cloud Natural Language v1 API - Class LanguageServiceSettings (3.1.0)

public sealed class LanguageServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Natural Language v1 API class LanguageServiceSettings.

Settings for LanguageServiceClient instances.

Inheritance

Object > ServiceSettingsBase > LanguageServiceSettings

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.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
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.

AnalyzeEntitySentimentSettings

public CallSettings AnalyzeEntitySentimentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.AnalyzeEntitySentiment and LanguageServiceClient.AnalyzeEntitySentimentAsync .

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.

AnalyzeSentimentSettings

public CallSettings AnalyzeSentimentSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.AnalyzeSentiment and LanguageServiceClient.AnalyzeSentimentAsync.

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.

AnalyzeSyntaxSettings

public CallSettings AnalyzeSyntaxSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.AnalyzeSyntax and LanguageServiceClient.AnalyzeSyntaxAsync.

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.

AnnotateTextSettings

public CallSettings AnnotateTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.AnnotateText and LanguageServiceClient.AnnotateTextAsync.

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.

ClassifyTextSettings

public CallSettings ClassifyTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.ClassifyText and LanguageServiceClient.ClassifyTextAsync.

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.

Methods

Clone()

public LanguageServiceSettings Clone()

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

Returns
TypeDescription
LanguageServiceSettings

A deep clone of this LanguageServiceSettings object.

GetDefault()

public static LanguageServiceSettings GetDefault()

Get a new instance of the default LanguageServiceSettings.

Returns
TypeDescription
LanguageServiceSettings

A new instance of the default LanguageServiceSettings.