public static interface SessionsGrpc.AsyncService
A session represents an interaction with a user. You retrieve user input and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine user intent and respond.
| Modifier and Type | Method and Description |
|---|---|
default void |
detectIntent(DetectIntentRequest request,
io.grpc.stub.StreamObserver<DetectIntentResponse> responseObserver)
Processes a natural language query and returns structured, actionable data
as a result.
|
default void |
fulfillIntent(FulfillIntentRequest request,
io.grpc.stub.StreamObserver<FulfillIntentResponse> responseObserver)
Fulfills a matched intent returned by
[MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
|
default void |
matchIntent(MatchIntentRequest request,
io.grpc.stub.StreamObserver<MatchIntentResponse> responseObserver)
Returns preliminary intent match results, doesn't change the session
status.
|
default 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.
|
default 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 session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
default 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). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
default void matchIntent(MatchIntentRequest request, io.grpc.stub.StreamObserver<MatchIntentResponse> responseObserver)
Returns preliminary intent match results, doesn't change the session status.
default void fulfillIntent(FulfillIntentRequest request, io.grpc.stub.StreamObserver<FulfillIntentResponse> responseObserver)
Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
Copyright © 2023 Google LLC. All rights reserved.