Cloud Natural Language v2 API - Class LanguageServiceSettings (1.0.0-beta02)

public sealed class LanguageServiceSettings : ServiceSettingsBase

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

Settings for LanguageServiceClient instances.

Inheritance

object > ServiceSettingsBase > LanguageServiceSettings

Namespace

Google.Cloud.Language.V2

Assembly

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
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.

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.

ModerateTextSettings

public CallSettings ModerateTextSettings { get; set; }

CallSettings for synchronous and asynchronous calls to LanguageServiceClient.ModerateText and LanguageServiceClient.ModerateTextAsync.

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.