public abstract static class SessionsGrpc.SessionsImplBase
extends java.lang.Object
implements io.grpc.BindableService
A session represents an interaction with a user. You retrieve user input and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or [StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent]) method to determine user intent and respond.
Constructor and Description |
---|
SessionsImplBase() |
Modifier and Type | Method and Description |
---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
detectIntent(DetectIntentRequest request,
io.grpc.stub.StreamObserver<DetectIntentResponse> responseObserver)
Processes a natural language query and returns structured, actionable data
as a result.
|
io.grpc.stub.StreamObserver<StreamingDetectIntentRequest> |
streamingDetectIntent(io.grpc.stub.StreamObserver<StreamingDetectIntentResponse> responseObserver)
Processes a natural language query in audio format in a streaming fashion
and returns structured, actionable data as a result.
|
public void detectIntent(DetectIntentRequest request, io.grpc.stub.StreamObserver<DetectIntentResponse> responseObserver)
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
public io.grpc.stub.StreamObserver<StreamingDetectIntentRequest> streamingDetectIntent(io.grpc.stub.StreamObserver<StreamingDetectIntentResponse> responseObserver)
Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST).
public final io.grpc.ServerServiceDefinition bindService()
bindService
in interface io.grpc.BindableService