Class AgentsConnection (2.14.0)

This interface defines virtual methods for each of the user-facing overload sets in AgentsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AgentsClient.

To create a concrete instance, see MakeAgentsConnection().

For mocking, see dialogflow_es_mocks::MockAgentsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetAgent(google::cloud::dialogflow::v2::GetAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::GetAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Agent >

virtual SetAgent(google::cloud::dialogflow::v2::SetAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::SetAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Agent >

virtual DeleteAgent(google::cloud::dialogflow::v2::DeleteAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::DeleteAgentRequest const &
Returns
Type Description
Status

virtual SearchAgents(google::cloud::dialogflow::v2::SearchAgentsRequest)

Parameter
Name Description
request google::cloud::dialogflow::v2::SearchAgentsRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::v2::Agent >

virtual TrainAgent(google::cloud::dialogflow::v2::TrainAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::TrainAgentRequest const &
Returns
Type Description
future< StatusOr< google::protobuf::Struct > >

virtual ExportAgent(google::cloud::dialogflow::v2::ExportAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::ExportAgentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > >

virtual ImportAgent(google::cloud::dialogflow::v2::ImportAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::ImportAgentRequest const &
Returns
Type Description
future< StatusOr< google::protobuf::Struct > >

virtual RestoreAgent(google::cloud::dialogflow::v2::RestoreAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::RestoreAgentRequest const &
Returns
Type Description
future< StatusOr< google::protobuf::Struct > >

virtual GetValidationResult(google::cloud::dialogflow::v2::GetValidationResultRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::v2::GetValidationResultRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::ValidationResult >