ImageAnnotator

google.cloud.vision.v1p1beta1. 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

batchAnnotateImages(request, callback) → {undefined}

Calls BatchAnnotateImages.

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

BatchAnnotateImagesRequest message or plain object

callback google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImagesCallback

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

Returns:
Type Description
undefined

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

Calls BatchAnnotateImages.

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

BatchAnnotateImagesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>

Promise

(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

Returns:
Type Description
ImageAnnotator

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

BatchAnnotateImagesCallback(error, responseopt)

Callback as used by batchAnnotateImages.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

BatchAnnotateImagesResponse