Class SessionsConnection (2.23.0-rc)

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.

To create a concrete instance, see MakeSessionsConnection().

For mocking, see dialogflow_es_mocks::MockSessionsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual DetectIntent(google::cloud::dialogflow::v2::DetectIntentRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::v2::DetectIntentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::v2::DetectIntentResponse >

virtual AsyncStreamingDetectIntent()

Returns
TypeDescription
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingDetectIntentRequest, google::cloud::dialogflow::v2::StreamingDetectIntentResponse > >