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
asyncBatchAnnotateFiles(request, callback) → {undefined}
Calls AsyncBatchAnnotateFiles.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.vision.v1p3beta1.IAsyncBatchAnnotateFilesRequest |
AsyncBatchAnnotateFilesRequest message or plain object |
callback |
google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFilesCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
asyncBatchAnnotateFiles(request) → {Promise.<google.longrunning.Operation>}
Calls AsyncBatchAnnotateFiles.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.vision.v1p3beta1.IAsyncBatchAnnotateFilesRequest |
AsyncBatchAnnotateFilesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
batchAnnotateImages(request, callback) → {undefined}
Calls BatchAnnotateImages.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.vision.v1p3beta1.IBatchAnnotateImagesRequest |
BatchAnnotateImagesRequest message or plain object |
callback |
google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImagesCallback |
Node-style callback called with the error, if any, and BatchAnnotateImagesResponse |
Returns:
Type | Description |
---|---|
undefined |
batchAnnotateImages(request) → {Promise.<google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse>}
Calls BatchAnnotateImages.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.vision.v1p3beta1.IBatchAnnotateImagesRequest |
BatchAnnotateImagesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.vision.v1p3beta1.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
AsyncBatchAnnotateFilesCallback(error, responseopt)
Callback as used by 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 batchAnnotateImages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse |
<optional> |
BatchAnnotateImagesResponse |