Class AgentsConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ListAgentsRequest
Returns
TypeDescription
StreamRange< google::cloud::dialogflow::cx::v3::Agent >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::GetAgentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::Agent >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::CreateAgentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::Agent >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::Agent >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ExportAgentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &
Returns
TypeDescription
future< StatusOr< google::protobuf::Struct > >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >

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

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >

virtual GetGenerativeSettings(google::cloud::dialogflow::cx::v3::GetGenerativeSettingsRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::GetGenerativeSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::GenerativeSettings >

virtual UpdateGenerativeSettings(google::cloud::dialogflow::cx::v3::UpdateGenerativeSettingsRequest const &)

Parameter
NameDescription
request google::cloud::dialogflow::cx::v3::UpdateGenerativeSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dialogflow::cx::v3::GenerativeSettings >