Represents an ImageAnnotator
Inheritance
$protobuf.rpc.Service > protos.google.cloud.vision.v1p1beta1.ImageAnnotatorPackage
@google-cloud/visionConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ImageAnnotator service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
batchAnnotateImages(request, callback)
public batchAnnotateImages(request: google.cloud.vision.v1p1beta1.IBatchAnnotateImagesRequest, callback: google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImagesCallback): void;
Calls BatchAnnotateImages.
Parameters | |
---|---|
Name | Description |
request |
IBatchAnnotateImagesRequest
BatchAnnotateImagesRequest message or plain object |
callback |
BatchAnnotateImagesCallback
Node-style callback called with the error, if any, and BatchAnnotateImagesResponse |
Returns | |
---|---|
Type | Description |
void |
batchAnnotateImages(request)
public batchAnnotateImages(request: google.cloud.vision.v1p1beta1.IBatchAnnotateImagesRequest): Promise<google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse>;
Calls BatchAnnotateImages.
Parameter | |
---|---|
Name | Description |
request |
IBatchAnnotateImagesRequest
BatchAnnotateImagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.vision.v1p1beta1.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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
ImageAnnotator |
RPC service. Useful where requests and/or responses are streamed. |