Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public abstract class PredictionServiceStub implements BackgroundResource
Base stub class for the PredictionService service API.
This class is for advanced usage and reflects the underlying API directly.
Constructors
public PredictionServiceStub()
Methods
public abstract void close()
public UnaryCallable<CountTokensRequest,CountTokensResponse> countTokensCallable()
public UnaryCallable<DirectPredictRequest,DirectPredictResponse> directPredictCallable()
public UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse> directRawPredictCallable()
public UnaryCallable<ExplainRequest,ExplainResponse> explainCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns Type Description UnaryCallable <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy >
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns Type Description UnaryCallable <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns Type Description UnaryCallable <com.google.cloud.location.ListLocationsRequest ,com.google.cloud.location.ListLocationsResponse >
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,PredictionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
public UnaryCallable<PredictRequest,PredictResponse> predictCallable()
public UnaryCallable<RawPredictRequest,HttpBody> rawPredictCallable()
public ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> serverStreamingPredictCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns Type Description UnaryCallable <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy >
streamGenerateContentCallable()
public ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> streamGenerateContentCallable()
public BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> streamingPredictCallable()
public BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns Type Description UnaryCallable <com.google.iam.v1.TestIamPermissionsRequest ,com.google.iam.v1.TestIamPermissionsResponse >