@Generated(value="by gapic-generator") @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(ImageAnnotatorStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcImageAnnotatorStub, using the given settings.
|
protected |
GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcImageAnnotatorStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
UnaryCallable<com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,Operation> |
asyncBatchAnnotateFilesCallable() |
OperationCallable<com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse,com.google.cloud.vision.v1p3beta1.OperationMetadata> |
asyncBatchAnnotateFilesOperationCallable() |
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse> |
batchAnnotateImagesCallable() |
void |
close() |
static GrpcImageAnnotatorStub |
create(ClientContext clientContext) |
static GrpcImageAnnotatorStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcImageAnnotatorStub |
create(ImageAnnotatorStubSettings settings) |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(ImageAnnotatorStubSettings settings) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class ImageAnnotatorStub
public UnaryCallable<com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse> batchAnnotateImagesCallable()
batchAnnotateImagesCallable
in class ImageAnnotatorStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse,com.google.cloud.vision.v1p3beta1.OperationMetadata> asyncBatchAnnotateFilesOperationCallable()
asyncBatchAnnotateFilesOperationCallable
in class ImageAnnotatorStub
public UnaryCallable<com.google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesRequest,Operation> asyncBatchAnnotateFilesCallable()
asyncBatchAnnotateFilesCallable
in class ImageAnnotatorStub
public final void close()
close
in interface AutoCloseable
close
in class ImageAnnotatorStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.