-
- All Implemented Interfaces:
-
io.grpc.BindableService
public abstract class APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase extends AbstractCoroutineServerImplSkeletal implementation of the gateway.v1.APIGatewayService service based on Kotlin coroutines.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContextcontext
-
Constructor Summary
Constructors Constructor Description APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase(CoroutineContext coroutineContext)
-
Method Summary
Modifier and Type Method Description CoroutineContextgetContext()PromptResponserequestPrompt(PromptRequest request)Returns the response to an RPC for gateway.v1.APIGatewayService.RequestPrompt. Flow<StreamingPromptResponse>requestStreamingPrompt(PromptRequest request)Returns a Flow of responses to an RPC for gateway.v1.APIGatewayService.RequestStreamingPrompt. final ServerServiceDefinitionbindService()-
-
Constructor Detail
-
APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase
APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase(CoroutineContext coroutineContext)
-
-
Method Detail
-
getContext
CoroutineContext getContext()
-
requestPrompt
PromptResponse requestPrompt(PromptRequest request)
Returns the response to an RPC for gateway.v1.APIGatewayService.RequestPrompt.
If this method fails with a StatusException, the RPC will fail with the corresponding io.grpc.Status. If this method fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If this method fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
requestStreamingPrompt
Flow<StreamingPromptResponse> requestStreamingPrompt(PromptRequest request)
Returns a Flow of responses to an RPC for gateway.v1.APIGatewayService.RequestStreamingPrompt.
If creating or collecting the returned flow fails with a StatusException, the RPC will fail with the corresponding io.grpc.Status. If it fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If creating or collecting the returned flow fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
bindService
final ServerServiceDefinition bindService()
-
-
-
-