Class AgentsConnection (2.31.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 ExportAgent(NoAwaitTag, google::cloud::dialogflow::cx::v3::ExportAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::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::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 RestoreAgent(NoAwaitTag, google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dialogflow::cx::v3::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 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 >

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

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

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

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

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status