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.
Static Methods
create(ClientContext clientContext)
public static final GrpcImageAnnotatorStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcImageAnnotatorStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(ImageAnnotatorStubSettings settings)
public static final GrpcImageAnnotatorStub create(ImageAnnotatorStubSettings settings)
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.
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.
Methods
asyncBatchAnnotateFilesCallable()
public UnaryCallable<AsyncBatchAnnotateFilesRequest,Operation> asyncBatchAnnotateFilesCallable()
Overrides
asyncBatchAnnotateFilesOperationCallable()
public OperationCallable<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata> asyncBatchAnnotateFilesOperationCallable()
Overrides
asyncBatchAnnotateImagesCallable()
public UnaryCallable<AsyncBatchAnnotateImagesRequest,Operation> asyncBatchAnnotateImagesCallable()
Overrides
asyncBatchAnnotateImagesOperationCallable()
public OperationCallable<AsyncBatchAnnotateImagesRequest,AsyncBatchAnnotateImagesResponse,OperationMetadata> asyncBatchAnnotateImagesOperationCallable()
Overrides
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
batchAnnotateFilesCallable()
public UnaryCallable<BatchAnnotateFilesRequest,BatchAnnotateFilesResponse> batchAnnotateFilesCallable()
Overrides
batchAnnotateImagesCallable()
public UnaryCallable<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse> batchAnnotateImagesCallable()
Overrides
close()
public final void close()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
shutdown()
shutdownNow()
public void shutdownNow()