@BetaApi @Generated(value="by gapic-generator-java") 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,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcPredictionServiceStub, using the given settings.
|
protected |
GrpcPredictionServiceStub(PredictionServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcPredictionServiceStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.rpc.UnaryCallable<BatchPredictRequest,com.google.longrunning.Operation> |
batchPredictCallable() |
com.google.api.gax.rpc.OperationCallable<BatchPredictRequest,BatchPredictResult,OperationMetadata> |
batchPredictOperationCallable() |
void |
close() |
static GrpcPredictionServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcPredictionServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcPredictionServiceStub |
create(PredictionServiceStubSettings settings) |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<PredictRequest,PredictResponse> |
predictCallable() |
void |
shutdown() |
void |
shutdownNow() |
getHttpJsonOperationsStubprotected GrpcPredictionServiceStub(PredictionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcPredictionServiceStub(PredictionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcPredictionServiceStub create(PredictionServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcPredictionServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcPredictionServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<PredictRequest,PredictResponse> predictCallable()
predictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<BatchPredictRequest,com.google.longrunning.Operation> batchPredictCallable()
batchPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.OperationCallable<BatchPredictRequest,BatchPredictResult,OperationMetadata> batchPredictOperationCallable()
batchPredictOperationCallable in class PredictionServiceStubpublic final void close()
close in interface AutoCloseableclose in class PredictionServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2022 Google LLC. All rights reserved.