Class AgentsConnection (2.28.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 TrainAgent(NoAwaitTag, google::cloud::dialogflow::v2::TrainAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::v2::TrainAgentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual TrainAgent(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ExportAgent(NoAwaitTag, google::cloud::dialogflow::v2::ExportAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::v2::ExportAgentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportAgent(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ImportAgent(NoAwaitTag, google::cloud::dialogflow::v2::ImportAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::v2::ImportAgentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportAgent(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 RestoreAgent(NoAwaitTag, google::cloud::dialogflow::v2::RestoreAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::v2::RestoreAgentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RestoreAgent(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 >