Retail v2 API - Class PredictionServiceSettings (2.12.0)

public sealed class PredictionServiceSettings : ServiceSettingsBase

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

Settings for PredictionServiceClient instances.

Inheritance

object > ServiceSettingsBase > PredictionServiceSettings

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

PredictionServiceSettings()

public PredictionServiceSettings()

Constructs a new PredictionServiceSettings object with default settings.

Properties

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

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

Property Value
Type Description
LocationsSettings

PredictSettings

public CallSettings PredictSettings { get; set; }

CallSettings for synchronous and asynchronous calls to PredictionServiceClient.Predict and PredictionServiceClient.PredictAsync.

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, DeadlineExceeded.
  • Timeout: 5 seconds.

Methods

Clone()

public PredictionServiceSettings Clone()

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

Returns
Type Description
PredictionServiceSettings

A deep clone of this PredictionServiceSettings object.

GetDefault()

public static PredictionServiceSettings GetDefault()

Get a new instance of the default PredictionServiceSettings.

Returns
Type Description
PredictionServiceSettings

A new instance of the default PredictionServiceSettings.