public class DialogFlowSession extends XatkitSession
XatkitSession implementation that relies on DialogFlow internal sessions.
This class computes the unique identifier of the session by using the internal DialogFlow API. The raw session can
be accessed by calling getSessionName().
| Constructor and Description |
|---|
DialogFlowSession(com.google.cloud.dialogflow.v2.SessionName sessionName)
Constructs a new
DialogFlowSession from the provided sessionName. |
DialogFlowSession(com.google.cloud.dialogflow.v2.SessionName sessionName,
Configuration configuration)
|
| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.dialogflow.v2.SessionName |
getSessionName()
Returns the raw DialogFlow session.
|
get, getConfiguration, getRuntimeContexts, getSessionId, getSessionVariables, merge, store, storeList, toStringpublic DialogFlowSession(com.google.cloud.dialogflow.v2.SessionName sessionName)
DialogFlowSession from the provided sessionName.
This constructor sets the sessionId value by calling SessionName.toString(), that may not be
unique in some rare cases. Use getSessionName() to compare DialogFlowSessions.
See DialogFlowSession(SessionName, Configuration) to construct a DialogFlowSession with a
given Configuration.
sessionName - the raw DialogFlow sessionpublic DialogFlowSession(com.google.cloud.dialogflow.v2.SessionName sessionName,
Configuration configuration)
DialogFlowSession from the provided sessionName and configuration.
This constructor sets the sessionId value by calling SessionName.toString(), that may not be
unique in some rare cases? Use getSessionName() to compare DialogFlowSessions.
sessionName - the raw DialogFlow sessionconfiguration - the Configuration parameterizing the DialogFlowSessionXatkitSession.XatkitSession(String, Configuration)Copyright © 2020 SOM Research Lab. All rights reserved.