Class GrpcImageAnnotatorStub (3.38.0)

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

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcImageAnnotatorStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcImageAnnotatorStub
Exceptions
TypeDescription
IOException

create(ImageAnnotatorStubSettings settings)

public static final GrpcImageAnnotatorStub create(ImageAnnotatorStubSettings settings)
Parameter
NameDescription
settingsImageAnnotatorStubSettings
Returns
TypeDescription
GrpcImageAnnotatorStub
Exceptions
TypeDescription
IOException

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()