ImageAnnotator

google.cloud.vision.v1p2beta1. ImageAnnotator

Represents an ImageAnnotator

Constructor

new ImageAnnotator(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ImageAnnotator service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ImageAnnotator}

Creates new ImageAnnotator service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

asyncBatchAnnotateFiles(request, callback) → {undefined}

Calls AsyncBatchAnnotateFiles.

Parameters:
Name Type Description
request google.cloud.vision.v1p2beta1.IAsyncBatchAnnotateFilesRequest

AsyncBatchAnnotateFilesRequest message or plain object

callback google.cloud.vision.v1p2beta1.ImageAnnotator.AsyncBatchAnnotateFilesCallback

Node-style callback called with the error, if any, and Operation

asyncBatchAnnotateFiles(request) → {Promise.<google.longrunning.Operation>}

Calls AsyncBatchAnnotateFiles.

Parameters:
Name Type Description
request google.cloud.vision.v1p2beta1.IAsyncBatchAnnotateFilesRequest

AsyncBatchAnnotateFilesRequest message or plain object

batchAnnotateImages(request, callback) → {undefined}

Calls BatchAnnotateImages.

Parameters:
Name Type Description
request google.cloud.vision.v1p2beta1.IBatchAnnotateImagesRequest

BatchAnnotateImagesRequest message or plain object

callback google.cloud.vision.v1p2beta1.ImageAnnotator.BatchAnnotateImagesCallback

Node-style callback called with the error, if any, and BatchAnnotateImagesResponse

batchAnnotateImages(request) → {Promise.<google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse>}

Calls BatchAnnotateImages.

Parameters:
Name Type Description
request google.cloud.vision.v1p2beta1.IBatchAnnotateImagesRequest

BatchAnnotateImagesRequest message or plain object

Type Definitions

AsyncBatchAnnotateFilesCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p2beta1.ImageAnnotator#asyncBatchAnnotateFiles.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

BatchAnnotateImagesCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p2beta1.ImageAnnotator#batchAnnotateImages.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse <optional>

BatchAnnotateImagesResponse