Google Cloud Vision v1 API - Class ImageAnnotatorClientImpl (3.3.0)

public sealed class ImageAnnotatorClientImpl : ImageAnnotatorClient

Reference documentation and code samples for the Google Cloud Vision v1 API class ImageAnnotatorClientImpl.

ImageAnnotator client wrapper implementation, for convenient use.

Inheritance

Object > ImageAnnotatorClient > ImageAnnotatorClientImpl

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Remarks

Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.

Constructors

ImageAnnotatorClientImpl(ImageAnnotator.ImageAnnotatorClient, ImageAnnotatorSettings, ILogger)

public ImageAnnotatorClientImpl(ImageAnnotator.ImageAnnotatorClient grpcClient, ImageAnnotatorSettings settings, ILogger logger)

Constructs a client wrapper for the ImageAnnotator service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientImageAnnotator.ImageAnnotatorClient

The underlying gRPC client.

settingsImageAnnotatorSettings

The base ImageAnnotatorSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

AsyncBatchAnnotateFilesOperationsClient

public override OperationsClient AsyncBatchAnnotateFilesOperationsClient { get; }

The long-running operations client for AsyncBatchAnnotateFiles.

Property Value
TypeDescription
OperationsClient
Overrides

AsyncBatchAnnotateImagesOperationsClient

public override OperationsClient AsyncBatchAnnotateImagesOperationsClient { get; }

The long-running operations client for AsyncBatchAnnotateImages.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override ImageAnnotator.ImageAnnotatorClient GrpcClient { get; }

The underlying gRPC ImageAnnotator client

Property Value
TypeDescription
ImageAnnotator.ImageAnnotatorClient
Overrides

Methods

AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest, CallSettings)

public override Operation<AsyncBatchAnnotateFilesResponse, OperationMetadata> AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest request, CallSettings callSettings = null)

Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateFilesResponse (results).

Parameters
NameDescription
requestAsyncBatchAnnotateFilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AsyncBatchAnnotateFilesResponse, OperationMetadata>

The RPC response.

Overrides

AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest, CallSettings)

public override async Task<Operation<AsyncBatchAnnotateFilesResponse, OperationMetadata>> AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request, CallSettings callSettings = null)

Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateFilesResponse (results).

Parameters
NameDescription
requestAsyncBatchAnnotateFilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AsyncBatchAnnotateFilesResponse, OperationMetadata>>

A Task containing the RPC response.

Overrides

AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest, CallSettings)

public override Operation<AsyncBatchAnnotateImagesResponse, OperationMetadata> AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest request, CallSettings callSettings = null)

Run asynchronous image detection and annotation for a list of images.

Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateImagesResponse (results).

This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.

Parameters
NameDescription
requestAsyncBatchAnnotateImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AsyncBatchAnnotateImagesResponse, OperationMetadata>

The RPC response.

Overrides

AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest, CallSettings)

public override async Task<Operation<AsyncBatchAnnotateImagesResponse, OperationMetadata>> AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest request, CallSettings callSettings = null)

Run asynchronous image detection and annotation for a list of images.

Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateImagesResponse (results).

This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.

Parameters
NameDescription
requestAsyncBatchAnnotateImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AsyncBatchAnnotateImagesResponse, OperationMetadata>>

A Task containing the RPC response.

Overrides

BatchAnnotateFiles(BatchAnnotateFilesRequest, CallSettings)

public override BatchAnnotateFilesResponse BatchAnnotateFiles(BatchAnnotateFilesRequest request, CallSettings callSettings = null)

Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported.

This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.

Parameters
NameDescription
requestBatchAnnotateFilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchAnnotateFilesResponse

The RPC response.

Overrides

BatchAnnotateFilesAsync(BatchAnnotateFilesRequest, CallSettings)

public override Task<BatchAnnotateFilesResponse> BatchAnnotateFilesAsync(BatchAnnotateFilesRequest request, CallSettings callSettings = null)

Service that performs image detection and annotation for a batch of files. Now only "application/pdf", "image/tiff" and "image/gif" are supported.

This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.

Parameters
NameDescription
requestBatchAnnotateFilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<BatchAnnotateFilesResponse>

A Task containing the RPC response.

Overrides

BatchAnnotateImages(BatchAnnotateImagesRequest, CallSettings)

public override BatchAnnotateImagesResponse BatchAnnotateImages(BatchAnnotateImagesRequest request, CallSettings callSettings = null)

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchAnnotateImagesResponse

The RPC response.

Overrides

BatchAnnotateImagesAsync(BatchAnnotateImagesRequest, CallSettings)

public override Task<BatchAnnotateImagesResponse> BatchAnnotateImagesAsync(BatchAnnotateImagesRequest request, CallSettings callSettings = null)

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<BatchAnnotateImagesResponse>

A Task containing the RPC response.

Overrides