public static final class SessionsGrpc.SessionsFutureStub extends io.grpc.stub.AbstractFutureStub<SessionsGrpc.SessionsFutureStub>
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 |
|---|---|
protected SessionsGrpc.SessionsFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<DetectIntentResponse> |
detectIntent(DetectIntentRequest request)
Processes a natural language query and returns structured, actionable data
as a result.
|
com.google.common.util.concurrent.ListenableFuture<FulfillIntentResponse> |
fulfillIntent(FulfillIntentRequest request)
Fulfills a matched intent returned by
[MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
|
com.google.common.util.concurrent.ListenableFuture<MatchIntentResponse> |
matchIntent(MatchIntentRequest request)
Returns preliminary intent match results, doesn't change the session
status.
|
protected SessionsGrpc.SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<SessionsGrpc.SessionsFutureStub>public com.google.common.util.concurrent.ListenableFuture<DetectIntentResponse> detectIntent(DetectIntentRequest request)
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).
public com.google.common.util.concurrent.ListenableFuture<MatchIntentResponse> matchIntent(MatchIntentRequest request)
Returns preliminary intent match results, doesn't change the session status.
public com.google.common.util.concurrent.ListenableFuture<FulfillIntentResponse> fulfillIntent(FulfillIntentRequest request)
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.