Class CompletionServiceSettings (2.2.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class CompletionServiceSettings : ServiceSettingsBase

Settings for CompletionServiceClient instances.

Inheritance

Object > ServiceSettingsBase > CompletionServiceSettings

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

CompletionServiceSettings()

public CompletionServiceSettings()

Constructs a new CompletionServiceSettings object with default settings.

Properties

CompleteQuerySettings

public CallSettings CompleteQuerySettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.CompleteQuery and CompletionServiceClient.CompleteQueryAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 5000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 5 seconds.

ImportCompletionDataOperationsSettings

public OperationsSettings ImportCompletionDataOperationsSettings { get; set; }

Long Running Operation settings for calls to CompletionServiceClient.ImportCompletionData and CompletionServiceClient.ImportCompletionDataAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

ImportCompletionDataSettings

public CallSettings ImportCompletionDataSettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.ImportCompletionData and CompletionServiceClient.ImportCompletionDataAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 5000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable, DeadlineExceeded.
  • Timeout: 5 seconds.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
TypeDescription
LocationsSettings

Methods

Clone()

public CompletionServiceSettings Clone()

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

Returns
TypeDescription
CompletionServiceSettings

A deep clone of this CompletionServiceSettings object.

GetDefault()

public static CompletionServiceSettings GetDefault()

Get a new instance of the default CompletionServiceSettings.

Returns
TypeDescription
CompletionServiceSettings

A new instance of the default CompletionServiceSettings.