Package 

Class APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase

    • Constructor Detail

      • APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase

        APIGatewayServiceGrpcKt.APIGatewayServiceCoroutineImplBase(CoroutineContext coroutineContext)
    • Method Detail

      • 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 with Status.UNKNOWN with 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 with Status.UNKNOWN with the exception as a cause.

        Parameters:
        request - The request from the client.
      • bindService

         final ServerServiceDefinition bindService()