Google AutoML v1 API - Class PredictionServiceSettings (3.4.0)

public sealed class PredictionServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Google AutoML v1 API class PredictionServiceSettings.

Settings for PredictionServiceClient instances.

Inheritance

object > ServiceSettingsBase > PredictionServiceSettings

Namespace

Google.Cloud.AutoML.V1

Assembly

Google.Cloud.AutoML.V1.dll

Constructors

PredictionServiceSettings()

public PredictionServiceSettings()

Constructs a new PredictionServiceSettings object with default settings.

Properties

BatchPredictOperationsSettings

public OperationsSettings BatchPredictOperationsSettings { get; set; }

Long Running Operation settings for calls to PredictionServiceClient.BatchPredict and PredictionServiceClient.BatchPredictAsync.

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

public CallSettings BatchPredictSettings { get; set; }

CallSettings for synchronous and asynchronous calls to PredictionServiceClient.BatchPredict and PredictionServiceClient.BatchPredictAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

PredictSettings

public CallSettings PredictSettings { get; set; }

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

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 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.