Class PredictionServiceStub (3.52.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

chatCompletionsCallable()

public ServerStreamingCallable<ChatCompletionsRequest,HttpBody> chatCompletionsCallable()
Returns
Type Description
ServerStreamingCallable<ChatCompletionsRequest,com.google.api.HttpBody>

close()

public abstract void close()

countTokensCallable()

public UnaryCallable<CountTokensRequest,CountTokensResponse> countTokensCallable()
Returns
Type Description
UnaryCallable<CountTokensRequest,CountTokensResponse>

directPredictCallable()

public UnaryCallable<DirectPredictRequest,DirectPredictResponse> directPredictCallable()
Returns
Type Description
UnaryCallable<DirectPredictRequest,DirectPredictResponse>

directRawPredictCallable()

public UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse> directRawPredictCallable()
Returns
Type Description
UnaryCallable<DirectRawPredictRequest,DirectRawPredictResponse>

explainCallable()

public UnaryCallable<ExplainRequest,ExplainResponse> explainCallable()
Returns
Type Description
UnaryCallable<ExplainRequest,ExplainResponse>

generateContentCallable()

public UnaryCallable<GenerateContentRequest,GenerateContentResponse> generateContentCallable()
Returns
Type Description
UnaryCallable<GenerateContentRequest,GenerateContentResponse>

getIamPolicyCallable()

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

getLocationCallable()

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

listLocationsCallable()

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()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

predictCallable()

public UnaryCallable<PredictRequest,PredictResponse> predictCallable()
Returns
Type Description
UnaryCallable<PredictRequest,PredictResponse>

rawPredictCallable()

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

serverStreamingPredictCallable()

public ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> serverStreamingPredictCallable()
Returns
Type Description
ServerStreamingCallable<StreamingPredictRequest,StreamingPredictResponse>

setIamPolicyCallable()

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

streamDirectPredictCallable()

public BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredictCallable()
Returns
Type Description
BidiStreamingCallable<StreamDirectPredictRequest,StreamDirectPredictResponse>

streamDirectRawPredictCallable()

public BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredictCallable()
Returns
Type Description
BidiStreamingCallable<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse>

streamGenerateContentCallable()

public ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse> streamGenerateContentCallable()
Returns
Type Description
ServerStreamingCallable<GenerateContentRequest,GenerateContentResponse>

streamRawPredictCallable()

public ServerStreamingCallable<StreamRawPredictRequest,HttpBody> streamRawPredictCallable()
Returns
Type Description
ServerStreamingCallable<StreamRawPredictRequest,com.google.api.HttpBody>

streamingPredictCallable()

public BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse> streamingPredictCallable()
Returns
Type Description
BidiStreamingCallable<StreamingPredictRequest,StreamingPredictResponse>

streamingRawPredictCallable()

public BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictCallable()
Returns
Type Description
BidiStreamingCallable<StreamingRawPredictRequest,StreamingRawPredictResponse>

testIamPermissionsCallable()

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