@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) |
void |
close() |
com.google.api.gax.rpc.UnaryCallable<CountTokensRequest,CountTokensResponse> |
countTokensCallable() |
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.api.gax.rpc.UnaryCallable<DirectPredictRequest,DirectPredictResponse> |
directPredictCallable() |
com.google.api.gax.rpc.UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse> |
directRawPredictCallable() |
com.google.api.gax.rpc.UnaryCallable<ExplainRequest,ExplainResponse> |
explainCallable() |
com.google.api.gax.rpc.UnaryCallable<GenerateContentRequest,GenerateContentResponse> |
generateContentCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicyCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationCallable() |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,PredictionServiceClient.ListLocationsPagedResponse> |
listLocationsPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<PredictRequest,PredictResponse> |
predictCallable() |
com.google.api.gax.rpc.UnaryCallable<RawPredictRequest,com.google.api.HttpBody> |
rawPredictCallable() |
com.google.api.gax.rpc.ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> |
serverStreamingPredictCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicyCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse> |
streamDirectPredictCallable() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> |
streamDirectRawPredictCallable() |
com.google.api.gax.rpc.ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> |
streamGenerateContentCallable() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> |
streamingPredictCallable() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> |
streamingRawPredictCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsCallable() |
protected 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()
public com.google.api.gax.rpc.UnaryCallable<PredictRequest,PredictResponse> predictCallable()
predictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<RawPredictRequest,com.google.api.HttpBody> rawPredictCallable()
rawPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DirectPredictRequest,DirectPredictResponse> directPredictCallable()
directPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse> directRawPredictCallable()
directRawPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredictCallable()
streamDirectPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredictCallable()
streamDirectRawPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> streamingPredictCallable()
streamingPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> serverStreamingPredictCallable()
serverStreamingPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictCallable()
streamingRawPredictCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ExplainRequest,ExplainResponse> explainCallable()
explainCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CountTokensRequest,CountTokensResponse> countTokensCallable()
countTokensCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GenerateContentRequest,GenerateContentResponse> generateContentCallable()
generateContentCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> streamGenerateContentCallable()
streamGenerateContentCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,PredictionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
setIamPolicyCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
getIamPolicyCallable in class PredictionServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
testIamPermissionsCallable 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 © 2024 Google LLC. All rights reserved.