Class ImageAnnotator.ImageAnnotatorClient (2.4.0)

public class ImageAnnotatorClient : ClientBase<ImageAnnotator.ImageAnnotatorClient>

Client for ImageAnnotator

Inheritance

Object > ClientBase > ClientBase<ImageAnnotator.ImageAnnotatorClient> > ImageAnnotator.ImageAnnotatorClient

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

ImageAnnotatorClient()

protected ImageAnnotatorClient()

Protected parameterless constructor to allow creation of test doubles.

ImageAnnotatorClient(CallInvoker)

public ImageAnnotatorClient(CallInvoker callInvoker)

Creates a new client for ImageAnnotator that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ImageAnnotatorClient(Channel)

[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public ImageAnnotatorClient(Channel channel)

Creates a new client using a channel.

Parameter
NameDescription
channelGrpc.Core.Channel

The channel to use to make remote calls.

ImageAnnotatorClient(ChannelBase)

public ImageAnnotatorClient(ChannelBase channel)

Creates a new client for ImageAnnotator

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ImageAnnotatorClient(ClientBase.ClientBaseConfiguration)

protected ImageAnnotatorClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest, CallOptions)

public virtual Operation AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> AsyncBatchAnnotateFilesAsync(AsyncBatchAnnotateFilesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest, CallOptions)

public virtual Operation AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> AsyncBatchAnnotateImagesAsync(AsyncBatchAnnotateImagesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

BatchAnnotateFiles(BatchAnnotateFilesRequest, CallOptions)

public virtual BatchAnnotateFilesResponse BatchAnnotateFiles(BatchAnnotateFilesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
BatchAnnotateFilesResponse

The response received from the server.

BatchAnnotateFiles(BatchAnnotateFilesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual BatchAnnotateFilesResponse BatchAnnotateFiles(BatchAnnotateFilesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
BatchAnnotateFilesResponse

The response received from the server.

BatchAnnotateFilesAsync(BatchAnnotateFilesRequest, CallOptions)

public virtual AsyncUnaryCall<BatchAnnotateFilesResponse> BatchAnnotateFilesAsync(BatchAnnotateFilesRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<BatchAnnotateFilesResponse>

The call object.

BatchAnnotateFilesAsync(BatchAnnotateFilesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<BatchAnnotateFilesResponse> BatchAnnotateFilesAsync(BatchAnnotateFilesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<BatchAnnotateFilesResponse>

The call object.

BatchAnnotateImages(BatchAnnotateImagesRequest, CallOptions)

public virtual BatchAnnotateImagesResponse BatchAnnotateImages(BatchAnnotateImagesRequest request, CallOptions options)

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
BatchAnnotateImagesResponse

The response received from the server.

BatchAnnotateImages(BatchAnnotateImagesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual BatchAnnotateImagesResponse BatchAnnotateImages(BatchAnnotateImagesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
BatchAnnotateImagesResponse

The response received from the server.

BatchAnnotateImagesAsync(BatchAnnotateImagesRequest, CallOptions)

public virtual AsyncUnaryCall<BatchAnnotateImagesResponse> BatchAnnotateImagesAsync(BatchAnnotateImagesRequest request, CallOptions options)

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<BatchAnnotateImagesResponse>

The call object.

BatchAnnotateImagesAsync(BatchAnnotateImagesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<BatchAnnotateImagesResponse> BatchAnnotateImagesAsync(BatchAnnotateImagesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Run image detection and annotation for a batch of images.

Parameters
NameDescription
requestBatchAnnotateImagesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<BatchAnnotateImagesResponse>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override ImageAnnotator.ImageAnnotatorClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ImageAnnotator.ImageAnnotatorClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Vision.V1.ImageAnnotator.ImageAnnotatorClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)