Data QnA v1alpha API - Class QuestionServiceSettings (2.0.0-alpha02)

public sealed class QuestionServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Data QnA v1alpha API class QuestionServiceSettings.

Settings for QuestionServiceClient instances.

Inheritance

object > ServiceSettingsBase > QuestionServiceSettings

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

QuestionServiceSettings()

public QuestionServiceSettings()

Constructs a new QuestionServiceSettings object with default settings.

Properties

CreateQuestionSettings

public CallSettings CreateQuestionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to QuestionServiceClient.CreateQuestion and QuestionServiceClient.CreateQuestionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

ExecuteQuestionSettings

public CallSettings ExecuteQuestionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to QuestionServiceClient.ExecuteQuestion and QuestionServiceClient.ExecuteQuestionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

GetQuestionSettings

public CallSettings GetQuestionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to QuestionServiceClient.GetQuestion and QuestionServiceClient.GetQuestionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

GetUserFeedbackSettings

public CallSettings GetUserFeedbackSettings { get; set; }

CallSettings for synchronous and asynchronous calls to QuestionServiceClient.GetUserFeedback and QuestionServiceClient.GetUserFeedbackAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

UpdateUserFeedbackSettings

public CallSettings UpdateUserFeedbackSettings { get; set; }

CallSettings for synchronous and asynchronous calls to QuestionServiceClient.UpdateUserFeedback and QuestionServiceClient.UpdateUserFeedbackAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

Methods

Clone()

public QuestionServiceSettings Clone()

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

Returns
TypeDescription
QuestionServiceSettings

A deep clone of this QuestionServiceSettings object.

GetDefault()

public static QuestionServiceSettings GetDefault()

Get a new instance of the default QuestionServiceSettings.

Returns
TypeDescription
QuestionServiceSettings

A new instance of the default QuestionServiceSettings.