Class PredictionServiceSettings
Settings for PredictionServiceClient instances.
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class PredictionServiceSettings : ServiceSettingsBase
Constructors
PredictionServiceSettings()
Constructs a new PredictionServiceSettings object with default settings.
Declaration
public PredictionServiceSettings()
Properties
PredictSettings
CallSettings for synchronous and asynchronous calls to
PredictionServiceClient.Predict
and PredictionServiceClient.PredictAsync
.
Declaration
public CallSettings PredictSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 60000 milliseconds.
- Maximum attempts: Unlimited
- Timeout: 60 seconds.
Methods
Clone()
Creates a deep clone of this object, with all the same property values.
Declaration
public PredictionServiceSettings Clone()
Returns
Type | Description |
---|---|
PredictionServiceSettings | A deep clone of this PredictionServiceSettings object. |
GetDefault()
Get a new instance of the default PredictionServiceSettings.
Declaration
public static PredictionServiceSettings GetDefault()
Returns
Type | Description |
---|---|
PredictionServiceSettings | A new instance of the default PredictionServiceSettings. |