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_cx_mocks::MockAgentsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListAgents(google::cloud::dialogflow::cx::v3::ListAgentsRequest)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ListAgentsRequest
Returns
Type Description
StreamRange< google::cloud::dialogflow::cx::v3::Agent >

virtual GetAgent(google::cloud::dialogflow::cx::v3::GetAgentRequest const &)

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

virtual CreateAgent(google::cloud::dialogflow::cx::v3::CreateAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::CreateAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::Agent >

virtual UpdateAgent(google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::Agent >

virtual DeleteAgent(google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &)

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

virtual ExportAgent(google::cloud::dialogflow::cx::v3::ExportAgentRequest const &)

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

virtual RestoreAgent(google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &)

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

virtual ValidateAgent(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >

virtual GetAgentValidationResult(google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &)

Parameter
Name Description
request google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &
Returns
Type Description
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >