Class GrpcImageAnnotatorStub

public class GrpcImageAnnotatorStub extends ImageAnnotatorStub

gRPC stub implementation for the ImageAnnotator service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ImageAnnotatorStub > GrpcImageAnnotatorStub

Constructors

GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext)

protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcImageAnnotatorStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsImageAnnotatorStubSettings
clientContextClientContext

GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcImageAnnotatorStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsImageAnnotatorStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

asyncBatchAnnotateFilesCallable()

public UnaryCallable<AsyncBatchAnnotateFilesRequest,Operation> asyncBatchAnnotateFilesCallable()
Returns
TypeDescription
UnaryCallable<AsyncBatchAnnotateFilesRequest,Operation>
Overrides

asyncBatchAnnotateFilesOperationCallable()

public OperationCallable<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata> asyncBatchAnnotateFilesOperationCallable()
Returns
TypeDescription
OperationCallable<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata>
Overrides

asyncBatchAnnotateImagesCallable()

public UnaryCallable<AsyncBatchAnnotateImagesRequest,Operation> asyncBatchAnnotateImagesCallable()
Returns
TypeDescription
UnaryCallable<AsyncBatchAnnotateImagesRequest,Operation>
Overrides

asyncBatchAnnotateImagesOperationCallable()

public OperationCallable<AsyncBatchAnnotateImagesRequest,AsyncBatchAnnotateImagesResponse,OperationMetadata> asyncBatchAnnotateImagesOperationCallable()
Returns
TypeDescription
OperationCallable<AsyncBatchAnnotateImagesRequest,AsyncBatchAnnotateImagesResponse,OperationMetadata>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchAnnotateFilesCallable()

public UnaryCallable<BatchAnnotateFilesRequest,BatchAnnotateFilesResponse> batchAnnotateFilesCallable()
Returns
TypeDescription
UnaryCallable<BatchAnnotateFilesRequest,BatchAnnotateFilesResponse>
Overrides

batchAnnotateImagesCallable()

public UnaryCallable<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse> batchAnnotateImagesCallable()
Returns
TypeDescription
UnaryCallable<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse>
Overrides

close()

public final void close()
Overrides

create(ClientContext clientContext)

public static final GrpcImageAnnotatorStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcImageAnnotatorStub
Exceptions
TypeDescription
IOException

create(Client