Discovery Engine v1 API - Class CompletionServiceSettings (1.5.0)

public sealed class CompletionServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Discovery Engine v1 API class CompletionServiceSettings.

Settings for CompletionServiceClient instances.

Inheritance

object > ServiceSettingsBase > CompletionServiceSettings

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.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
Type Description
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 5000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: Unavailable.
  • Timeout: 5 seconds.

ImportCompletionSuggestionsOperationsSettings

public OperationsSettings ImportCompletionSuggestionsOperationsSettings { get; set; }

Long Running Operation settings for calls to CompletionServiceClient.ImportCompletionSuggestions and CompletionServiceClient.ImportCompletionSuggestionsAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

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

ImportCompletionSuggestionsSettings

public CallSettings ImportCompletionSuggestionsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.ImportCompletionSuggestions and CompletionServiceClient.ImportCompletionSuggestionsAsync.

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

ImportSuggestionDenyListEntriesOperationsSettings

public OperationsSettings ImportSuggestionDenyListEntriesOperationsSettings { get; set; }

Long Running Operation settings for calls to CompletionServiceClient.ImportSuggestionDenyListEntries and CompletionServiceClient.ImportSuggestionDenyListEntriesAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

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

ImportSuggestionDenyListEntriesSettings

public CallSettings ImportSuggestionDenyListEntriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.ImportSuggestionDenyListEntries and CompletionServiceClient.ImportSuggestionDenyListEntriesAsync.

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

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

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

Property Value
Type Description
LocationsSettings

PurgeCompletionSuggestionsOperationsSettings

public OperationsSettings PurgeCompletionSuggestionsOperationsSettings { get; set; }

Long Running Operation settings for calls to CompletionServiceClient.PurgeCompletionSuggestions and CompletionServiceClient.PurgeCompletionSuggestionsAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

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

PurgeCompletionSuggestionsSettings

public CallSettings PurgeCompletionSuggestionsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.PurgeCompletionSuggestions and CompletionServiceClient.PurgeCompletionSuggestionsAsync.

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

PurgeSuggestionDenyListEntriesOperationsSettings

public OperationsSettings PurgeSuggestionDenyListEntriesOperationsSettings { get; set; }

Long Running Operation settings for calls to CompletionServiceClient.PurgeSuggestionDenyListEntries and CompletionServiceClient.PurgeSuggestionDenyListEntriesAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

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

PurgeSuggestionDenyListEntriesSettings

public CallSettings PurgeSuggestionDenyListEntriesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to CompletionServiceClient.PurgeSuggestionDenyListEntries and CompletionServiceClient.PurgeSuggestionDenyListEntriesAsync.

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

Methods

Clone()

public CompletionServiceSettings Clone()

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

Returns
Type Description
CompletionServiceSettings

A deep clone of this CompletionServiceSettings object.

GetDefault()

public static CompletionServiceSettings GetDefault()

Get a new instance of the default CompletionServiceSettings.

Returns
Type Description
CompletionServiceSettings

A new instance of the default CompletionServiceSettings.