Class protos.google.cloud.vision.v1p3beta1.ImageAnnotator (4.2.1)

Represents an ImageAnnotator

Inheritance

$protobuf.rpc.Service > protos.google.cloud.vision.v1p3beta1.ImageAnnotator

Package

@google-cloud/vision

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ImageAnnotator service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

asyncBatchAnnotateFiles(request, callback)

public asyncBatchAnnotateFiles(request: google.cloud.vision.v1p3beta1.IAsyncBatchAnnotateFilesRequest, callback: google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFilesCallback): void;

Calls AsyncBatchAnnotateFiles.

Parameters
NameDescription
request IAsyncBatchAnnotateFilesRequest

AsyncBatchAnnotateFilesRequest message or plain object

callback AsyncBatchAnnotateFilesCallback

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

Returns
TypeDescription
void

asyncBatchAnnotateFiles(request)

public asyncBatchAnnotateFiles(request: google.cloud.vision.v1p3beta1.IAsyncBatchAnnotateFilesRequest): Promise<google.longrunning.Operation>;

Calls AsyncBatchAnnotateFiles.

Parameter
NameDescription
request IAsyncBatchAnnotateFilesRequest

AsyncBatchAnnotateFilesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

batchAnnotateImages(request, callback)

public batchAnnotateImages(request: google.cloud.vision.v1p3beta1.IBatchAnnotateImagesRequest, callback: google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImagesCallback): void;

Calls BatchAnnotateImages.

Parameters
NameDescription
request IBatchAnnotateImagesRequest

BatchAnnotateImagesRequest message or plain object

callback BatchAnnotateImagesCallback

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

Returns
TypeDescription
void

batchAnnotateImages(request)

public batchAnnotateImages(request: google.cloud.vision.v1p3beta1.IBatchAnnotateImagesRequest): Promise<google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>;

Calls BatchAnnotateImages.

Parameter
NameDescription
request IBatchAnnotateImagesRequest

BatchAnnotateImagesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ImageAnnotator;

Creates new ImageAnnotator service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ImageAnnotator

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