This interface defines virtual methods for each of the user-facing overload sets in SessionsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SessionsClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eSessionsConnection\u003c/code\u003e object for \u003ccode\u003eSessionsClient\u003c/code\u003e in the Google Cloud Dialogflow CX library, which allows for custom behavior injection during testing.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, and the page currently pertains to version 2.26.0, but it lists numerous previous versions from 2.36.0 to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSessionsConnection\u003c/code\u003e provides virtual methods for various user-facing operations, such as \u003ccode\u003eDetectIntent\u003c/code\u003e, \u003ccode\u003eMatchIntent\u003c/code\u003e, \u003ccode\u003eFulfillIntent\u003c/code\u003e, and \u003ccode\u003eSubmitAnswerFeedback\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a concrete instance of \u003ccode\u003eSessionsConnection\u003c/code\u003e using the \u003ccode\u003eMakeSessionsConnection()\u003c/code\u003e function and can also create mock objects for testing purposes with \u003ccode\u003edialogflow_cx_mocks::MockSessionsConnection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSessionsConnection\u003c/code\u003e object manages several functions that are used to interact with Dialogflow, such as getting the available options, and functions to handle detect, match, fulfill and submit intent requests.\u003c/p\u003e\n"]]],[],null,[]]