Class GrpcImageAnnotatorStub (3.21.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

awaitTermination(long duration, TimeUnit unit)

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

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()