@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcPredictionServiceStub extends PredictionServiceStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcPredictionServiceStub(PredictionServiceStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcPredictionServiceStub, using the given settings.
|
protected |
GrpcPredictionServiceStub(PredictionServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcPredictionServiceStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.cloud.automl.v1beta1.BatchPredictRequest,Operation> |
batchPredictCallable() |
OperationCallable<com.google.cloud.automl.v1beta1.BatchPredictRequest,com.google.cloud.automl.v1beta1.BatchPredictResult,com.google.cloud.automl.v1beta1.OperationMetadata> |
batchPredictOperationCallable() |
void |
close() |
static GrpcPredictionServiceStub |
create(ClientContext clientContext) |
static GrpcPredictionServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcPredictionServiceStub |
create(PredictionServiceStubSettings settings) |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.automl.v1beta1.PredictRequest,com.google.cloud.automl.v1beta1.PredictResponse> |
predictCallable() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcPredictionServiceStub(PredictionServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcPredictionServiceStub(PredictionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcPredictionServiceStub create(PredictionServiceStubSettings settings) throws IOException
IOException
public static final GrpcPredictionServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcPredictionServiceStub 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 PredictionServiceStub
public UnaryCallable<com.google.cloud.automl.v1beta1.PredictRequest,com.google.cloud.automl.v1beta1.PredictResponse> predictCallable()
predictCallable
in class PredictionServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.automl.v1beta1.BatchPredictRequest,com.google.cloud.automl.v1beta1.BatchPredictResult,com.google.cloud.automl.v1beta1.OperationMetadata> batchPredictOperationCallable()
batchPredictOperationCallable
in class PredictionServiceStub
public UnaryCallable<com.google.cloud.automl.v1beta1.BatchPredictRequest,Operation> batchPredictCallable()
batchPredictCallable
in class PredictionServiceStub
public final void close()
close
in interface AutoCloseable
close
in class PredictionServiceStub
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.