@Generated(value="by GAPIC v0.0.5") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcImageAnnotatorStub extends ImageAnnotatorStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcImageAnnotatorStub(ImageAnnotatorSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcImageAnnotatorStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.vision.v1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1.BatchAnnotateImagesResponse> |
batchAnnotateImagesCallable() |
void |
close() |
static GrpcImageAnnotatorStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcImageAnnotatorStub |
create(ImageAnnotatorSettings settings) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcImageAnnotatorStub(ImageAnnotatorSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcImageAnnotatorStub create(ImageAnnotatorSettings settings) throws IOException
IOExceptionpublic static final GrpcImageAnnotatorStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.vision.v1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1.BatchAnnotateImagesResponse> batchAnnotateImagesCallable()
batchAnnotateImagesCallable in class ImageAnnotatorStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2017 Google. All rights reserved.