@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,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcImageAnnotatorStub, using the given settings.
|
protected |
GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcImageAnnotatorStub, using the given settings.
|
protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected GrpcImageAnnotatorStub(ImageAnnotatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(ImageAnnotatorStubSettings settings) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcImageAnnotatorStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub
in class ImageAnnotatorStub
public com.google.api.gax.rpc.UnaryCallable<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse> batchAnnotateImagesCallable()
batchAnnotateImagesCallable
in class ImageAnnotatorStub
public com.google.api.gax.rpc.UnaryCallable<BatchAnnotateFilesRequest,BatchAnnotateFilesResponse> batchAnnotateFilesCallable()
batchAnnotateFilesCallable
in class ImageAnnotatorStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<AsyncBatchAnnotateImagesRequest,AsyncBatchAnnotateImagesResponse,OperationMetadata> asyncBatchAnnotateImagesOperationCallable()
asyncBatchAnnotateImagesOperationCallable
in class ImageAnnotatorStub
public com.google.api.gax.rpc.UnaryCallable<AsyncBatchAnnotateImagesRequest,com.google.longrunning.Operation> asyncBatchAnnotateImagesCallable()
asyncBatchAnnotateImagesCallable
in class ImageAnnotatorStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata> asyncBatchAnnotateFilesOperationCallable()
asyncBatchAnnotateFilesOperationCallable
in class ImageAnnotatorStub
public com.google.api.gax.rpc.UnaryCallable<AsyncBatchAnnotateFilesRequest,com.google.longrunning.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.