Represents an ImageAnnotator
Inheritance
$protobuf.rpc.Service > protos.google.cloud.vision.v1p4beta1.ImageAnnotatorPackage
@google-cloud/visionConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ImageAnnotator service.
| Name | Description |
| 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.v1p4beta1.IAsyncBatchAnnotateFilesRequest, callback: google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateFilesCallback): void;Calls AsyncBatchAnnotateFiles.
| Name | Description |
| request |
IAsyncBatchAnnotateFilesRequest
AsyncBatchAnnotateFilesRequest message or plain object |
| callback |
google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateFilesCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
asyncBatchAnnotateFiles(request)
public asyncBatchAnnotateFiles(request: google.cloud.vision.v1p4beta1.IAsyncBatchAnnotateFilesRequest): Promise<google.longrunning.Operation>;Calls AsyncBatchAnnotateFiles.
| Name | Description |
| request |
IAsyncBatchAnnotateFilesRequest
AsyncBatchAnnotateFilesRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |
asyncBatchAnnotateImages(request, callback)
public asyncBatchAnnotateImages(request: google.cloud.vision.v1p4beta1.IAsyncBatchAnnotateImagesRequest, callback: google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateImagesCallback): void;Calls AsyncBatchAnnotateImages.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IAsyncBatchAnnotateImagesRequest
AsyncBatchAnnotateImagesRequest message or plain object |
| callback |
google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateImagesCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
asyncBatchAnnotateImages(request)
public asyncBatchAnnotateImages(request: google.cloud.vision.v1p4beta1.IAsyncBatchAnnotateImagesRequest): Promise<google.longrunning.Operation>;Calls AsyncBatchAnnotateImages.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IAsyncBatchAnnotateImagesRequest
AsyncBatchAnnotateImagesRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |
batchAnnotateFiles(request, callback)
public batchAnnotateFiles(request: google.cloud.vision.v1p4beta1.IBatchAnnotateFilesRequest, callback: google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateFilesCallback): void;Calls BatchAnnotateFiles.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IBatchAnnotateFilesRequest
BatchAnnotateFilesRequest message or plain object |
| callback |
google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateFilesCallback
Node-style callback called with the error, if any, and BatchAnnotateFilesResponse |
| Type | Description |
| void |
batchAnnotateFiles(request)
public batchAnnotateFiles(request: google.cloud.vision.v1p4beta1.IBatchAnnotateFilesRequest): Promise<google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>;Calls BatchAnnotateFiles.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IBatchAnnotateFilesRequest
BatchAnnotateFilesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse> | Promise |
batchAnnotateImages(request, callback)
public batchAnnotateImages(request: google.cloud.vision.v1p4beta1.IBatchAnnotateImagesRequest, callback: google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateImagesCallback): void;Calls BatchAnnotateImages.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IBatchAnnotateImagesRequest
BatchAnnotateImagesRequest message or plain object |
| callback |
google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateImagesCallback
Node-style callback called with the error, if any, and BatchAnnotateImagesResponse |
| Type | Description |
| void |
batchAnnotateImages(request)
public batchAnnotateImages(request: google.cloud.vision.v1p4beta1.IBatchAnnotateImagesRequest): Promise<google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>;Calls BatchAnnotateImages.
| Name | Description |
| request |
google.cloud.vision.v1p4beta1.IBatchAnnotateImagesRequest
BatchAnnotateImagesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.vision.v1p4beta1.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.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| ImageAnnotator | RPC service. Useful where requests and/or responses are streamed. |