Class PredictionServiceSettings
Settings for PredictionServiceClient instances.
Inherited Members
Namespace: Google.Cloud.AutoML.V1
Assembly: Google.Cloud.AutoML.V1.dll
Syntax
public sealed class PredictionServiceSettings : ServiceSettingsBase
Constructors
PredictionServiceSettings()
Constructs a new PredictionServiceSettings object with default settings.
Declaration
public PredictionServiceSettings()
Properties
BatchPredictOperationsSettings
Long Running Operation settings for calls to PredictionServiceClient.BatchPredict
and
PredictionServiceClient.BatchPredictAsync
.
Declaration
public OperationsSettings BatchPredictOperationsSettings { get; set; }
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.
BatchPredictSettings
CallSettings for synchronous and asynchronous calls to
PredictionServiceClient.BatchPredict
and PredictionServiceClient.BatchPredictAsync
.
Declaration
public CallSettings BatchPredictSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- This call will not be retried.
- Timeout: 60 seconds.
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
- This call will not be retried.
- 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. |