Class SessionsGrpc.SessionsBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<SessionsGrpc.SessionsBlockingStub>
-
- com.google.cloud.dialogflow.cx.v3beta1.SessionsGrpc.SessionsBlockingStub
-
- Enclosing class:
- SessionsGrpc
public static final class SessionsGrpc.SessionsBlockingStub extends io.grpc.stub.AbstractBlockingStub<SessionsGrpc.SessionsBlockingStub>
A stub to allow clients to do synchronous rpc calls to service Sessions.A session represents an interaction with a user. You retrieve user input and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine user intent and respond.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SessionsGrpc.SessionsBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
DetectIntentResponse
detectIntent(DetectIntentRequest request)
Processes a natural language query and returns structured, actionable data as a result.FulfillIntentResponse
fulfillIntent(FulfillIntentRequest request)
Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].MatchIntentResponse
matchIntent(MatchIntentRequest request)
Returns preliminary intent match results, doesn't change the session status.
-
-
-
Method Detail
-
build
protected SessionsGrpc.SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<SessionsGrpc.SessionsBlockingStub>
-
detectIntent
public 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).
-
matchIntent
public MatchIntentResponse matchIntent(MatchIntentRequest request)
Returns preliminary intent match results, doesn't change the session status.
-
fulfillIntent
public FulfillIntentResponse fulfillIntent(FulfillIntentRequest request)
Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.
-
-