- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public final class PredictionServiceGrpc
A service for online predictions and explanations.
Static Fields
SERVICE_NAME
public static final String SERVICE_NAME
Field Value | |
---|---|
Type | Description |
String |
Static Methods
bindService(PredictionServiceGrpc.AsyncService service)
public static final ServerServiceDefinition bindService(PredictionServiceGrpc.AsyncService service)
Parameter | |
---|---|
Name | Description |
service |
PredictionServiceGrpc.AsyncService |
Returns | |
---|---|
Type | Description |
io.grpc.ServerServiceDefinition |
getChatCompletionsMethod()
public static MethodDescriptor<ChatCompletionsRequest,HttpBody> getChatCompletionsMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<ChatCompletionsRequest,com.google.api.HttpBody> |
getCountTokensMethod()
public static MethodDescriptor<CountTokensRequest,CountTokensResponse> getCountTokensMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<CountTokensRequest,CountTokensResponse> |
getDirectPredictMethod()
public static MethodDescriptor<DirectPredictRequest,DirectPredictResponse> getDirectPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<DirectPredictRequest,DirectPredictResponse> |
getDirectRawPredictMethod()
public static MethodDescriptor<DirectRawPredictRequest,DirectRawPredictResponse> getDirectRawPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<DirectRawPredictRequest,DirectRawPredictResponse> |
getExplainMethod()
public static MethodDescriptor<ExplainRequest,ExplainResponse> getExplainMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<ExplainRequest,ExplainResponse> |
getGenerateContentMethod()
public static MethodDescriptor<GenerateContentRequest,GenerateContentResponse> getGenerateContentMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<GenerateContentRequest,GenerateContentResponse> |
getPredictMethod()
public static MethodDescriptor<PredictRequest,PredictResponse> getPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<PredictRequest,PredictResponse> |
getRawPredictMethod()
public static MethodDescriptor<RawPredictRequest,HttpBody> getRawPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<RawPredictRequest,com.google.api.HttpBody> |
getServerStreamingPredictMethod()
public static MethodDescriptor<StreamingPredictRequest,StreamingPredictResponse> getServerStreamingPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<StreamingPredictRequest,StreamingPredictResponse> |
getServiceDescriptor()
public static ServiceDescriptor getServiceDescriptor()
Returns | |
---|---|
Type | Description |
io.grpc.ServiceDescriptor |
getStreamDirectPredictMethod()
public static MethodDescriptor<StreamDirectPredictRequest,StreamDirectPredictResponse> getStreamDirectPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<StreamDirectPredictRequest,StreamDirectPredictResponse> |
getStreamDirectRawPredictMethod()
public static MethodDescriptor<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> getStreamDirectRawPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> |
getStreamGenerateContentMethod()
public static MethodDescriptor<GenerateContentRequest,GenerateContentResponse> getStreamGenerateContentMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<GenerateContentRequest,GenerateContentResponse> |
getStreamingPredictMethod()
public static MethodDescriptor<StreamingPredictRequest,StreamingPredictResponse> getStreamingPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<StreamingPredictRequest,StreamingPredictResponse> |
getStreamingRawPredictMethod()
public static MethodDescriptor<StreamingRawPredictRequest,StreamingRawPredictResponse> getStreamingRawPredictMethod()
Returns | |
---|---|
Type | Description |
io.grpc.MethodDescriptor<StreamingRawPredictRequest,StreamingRawPredictResponse> |
newBlockingStub(Channel channel)
public static PredictionServiceGrpc.PredictionServiceBlockingStub newBlockingStub(Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
Parameter | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
Returns | |
---|---|
Type | Description |
PredictionServiceGrpc.PredictionServiceBlockingStub |
newFutureStub(Channel channel)
public static PredictionServiceGrpc.PredictionServiceFutureStub newFutureStub(Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
Parameter | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
Returns | |
---|---|
Type | Description |
PredictionServiceGrpc.PredictionServiceFutureStub |
newStub(Channel channel)
public static PredictionServiceGrpc.PredictionServiceStub newStub(Channel channel)
Creates a new async stub that supports all call types for the service
Parameter | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
Returns | |
---|---|
Type | Description |
PredictionServiceGrpc.PredictionServiceStub |