Google Cloud Vision v1 API - Class ImageAnnotatorSettings (3.3.0)

public sealed class ImageAnnotatorSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Vision v1 API class ImageAnnotatorSettings.

Settings for ImageAnnotatorClient instances.

Inheritance

Object > ServiceSettingsBase > ImageAnnotatorSettings

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

ImageAnnotatorSettings()

public ImageAnnotatorSettings()

Constructs a new ImageAnnotatorSettings object with default settings.

Properties

AsyncBatchAnnotateFilesOperationsSettings

public OperationsSettings AsyncBatchAnnotateFilesOperationsSettings { get; set; }

Long Running Operation settings for calls to ImageAnnotatorClient.AsyncBatchAnnotateFiles and ImageAnnotatorClient.AsyncBatchAnnotateFilesAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

AsyncBatchAnnotateFilesSettings

public CallSettings AsyncBatchAnnotateFilesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ImageAnnotatorClient.AsyncBatchAnnotateFiles and ImageAnnotatorClient.AsyncBatchAnnotateFilesAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

AsyncBatchAnnotateImagesOperationsSettings

public OperationsSettings AsyncBatchAnnotateImagesOperationsSettings { get; set; }

Long Running Operation settings for calls to ImageAnnotatorClient.AsyncBatchAnnotateImages and ImageAnnotatorClient.AsyncBatchAnnotateImagesAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

AsyncBatchAnnotateImagesSettings

public CallSettings AsyncBatchAnnotateImagesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ImageAnnotatorClient.AsyncBatchAnnotateImages and ImageAnnotatorClient.AsyncBatchAnnotateImagesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

BatchAnnotateFilesSettings

public CallSettings BatchAnnotateFilesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ImageAnnotatorClient.BatchAnnotateFiles and ImageAnnotatorClient.BatchAnnotateFilesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

BatchAnnotateImagesSettings

public CallSettings BatchAnnotateImagesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ImageAnnotatorClient.BatchAnnotateImages and ImageAnnotatorClient.BatchAnnotateImagesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

Methods

Clone()

public ImageAnnotatorSettings Clone()

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

Returns
TypeDescription
ImageAnnotatorSettings

A deep clone of this ImageAnnotatorSettings object.

GetDefault()

public static ImageAnnotatorSettings GetDefault()

Get a new instance of the default ImageAnnotatorSettings.

Returns
TypeDescription
ImageAnnotatorSettings

A new instance of the default ImageAnnotatorSettings.