Class PredictionServiceStub (3.38.0)

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.

Inheritance

java.lang.Object > PredictionServiceStub

Implements

BackgroundResource

Constructors

PredictionServiceStub()

public PredictionServiceStub()

Methods

close()

public abstract void close()

countTokensCallable()

public UnaryCallable<CountTokensRequest,CountTokensResponse> countTokensCallable()
Returns
TypeDescription
UnaryCallable<CountTokensRequest,CountTokensResponse>

directPredictCallable()

public UnaryCallable<DirectPredictRequest,DirectPredictResponse> directPredictCallable()
Returns
TypeDescription
UnaryCallable<DirectPredictRequest,DirectPredictResponse>

directRawPredictCallable()

public UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse> directRawPredictCallable()
Returns
TypeDescription
UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse>

explainCallable()

public UnaryCallable<ExplainRequest,ExplainResponse> explainCallable()
Returns
TypeDescription
UnaryCallable<ExplainRequest,ExplainResponse>

generateContentCallable()

public UnaryCallable<GenerateContentRequest,GenerateContentResponse> generateContentCallable()
Returns
TypeDescription
UnaryCallable<GenerateContentRequest,GenerateContentResponse>

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,PredictionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

predictCallable()

public UnaryCallable<PredictRequest,PredictResponse> predictCallable()
Returns
TypeDescription
UnaryCallable<PredictRequest,PredictResponse>

rawPredictCallable()

public UnaryCallable<RawPredictRequest,HttpBody> rawPredictCallable()
Returns
TypeDescription
UnaryCallable<RawPredictRequest,com.google.api.HttpBody>

serverStreamingPredictCallable()

public ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> serverStreamingPredictCallable()
Returns
TypeDescription
ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse>

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

streamDirectPredictCallable()

public BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredictCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse>

streamDirectRawPredictCallable()

public BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredictCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse>

streamGenerateContentCallable()

public ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> streamGenerateContentCallable()
Returns
TypeDescription
ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse>

streamingPredictCallable()

public BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> streamingPredictCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse>

streamingRawPredictCallable()

public BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse>

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>