Retail v2 API - Class SearchServiceSettings (2.6.0)

public sealed class SearchServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Retail v2 API class SearchServiceSettings.

Settings for SearchServiceClient instances.

Inheritance

object > ServiceSettingsBase > SearchServiceSettings

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

SearchServiceSettings()

public SearchServiceSettings()

Constructs a new SearchServiceSettings object with default settings.

Properties

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

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

Property Value
TypeDescription
LocationsSettings

SearchSettings

public CallSettings SearchSettings { get; set; }

CallSettings for synchronous and asynchronous calls to SearchServiceClient.Search and SearchServiceClient.SearchAsync.

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.

Methods

Clone()

public SearchServiceSettings Clone()

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

Returns
TypeDescription
SearchServiceSettings

A deep clone of this SearchServiceSettings object.

GetDefault()

public static SearchServiceSettings GetDefault()

Get a new instance of the default SearchServiceSettings.

Returns
TypeDescription
SearchServiceSettings

A new instance of the default SearchServiceSettings.