Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::dialogflow_cx_mocks::MockAgentsConnection Class Reference

A class to mock AgentsConnection. More...

#include <google/cloud/dialogflow_cx/mocks/mock_agents_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Agent >, ListAgents,(google::cloud::dialogflow::cx::v3::ListAgentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Agent >, GetAgent,(google::cloud::dialogflow::cx::v3::GetAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Agent >, CreateAgent,(google::cloud::dialogflow::cx::v3::CreateAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Agent >, UpdateAgent,(google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteAgent,(google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > >, ExportAgent,(google::cloud::dialogflow::cx::v3::ExportAgentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, RestoreAgent,(google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >, ValidateAgent,(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >, GetAgentValidationResult,(google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Agent > ListAgents (google::cloud::dialogflow::cx::v3::ListAgentsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > GetAgent (google::cloud::dialogflow::cx::v3::GetAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > CreateAgent (google::cloud::dialogflow::cx::v3::CreateAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > UpdateAgent (google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &request)
 
virtual Status DeleteAgent (google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > > ExportAgent (google::cloud::dialogflow::cx::v3::ExportAgentRequest const &request)
 
virtual future< StatusOr< google::protobuf::Struct > > RestoreAgent (google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > ValidateAgent (google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > GetAgentValidationResult (google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &request)
 

Detailed Description

A class to mock AgentsConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type AgentsClient. To do so, construct an object of type AgentsClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Member Function Documentation

◆ CreateAgent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > google::cloud::dialogflow_cx::AgentsConnection::CreateAgent ( google::cloud::dialogflow::cx::v3::CreateAgentRequest const &  request)
virtualinherited

◆ DeleteAgent()

virtual Status google::cloud::dialogflow_cx::AgentsConnection::DeleteAgent ( google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &  request)
virtualinherited

◆ ExportAgent()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > > google::cloud::dialogflow_cx::AgentsConnection::ExportAgent ( google::cloud::dialogflow::cx::v3::ExportAgentRequest const &  request)
virtualinherited

◆ GetAgent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > google::cloud::dialogflow_cx::AgentsConnection::GetAgent ( google::cloud::dialogflow::cx::v3::GetAgentRequest const &  request)
virtualinherited

◆ GetAgentValidationResult()

virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > google::cloud::dialogflow_cx::AgentsConnection::GetAgentValidationResult ( google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &  request)
virtualinherited

◆ ListAgents()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Agent > google::cloud::dialogflow_cx::AgentsConnection::ListAgents ( google::cloud::dialogflow::cx::v3::ListAgentsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::ExportAgentResponse > >  ,
ExportAgent  ,
(google::cloud::dialogflow::cx::v3::ExportAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( future< StatusOr< google::protobuf::Struct > >  ,
RestoreAgent  ,
(google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( Status  ,
DeleteAgent  ,
(google::cloud::dialogflow::cx::v3::DeleteAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Agent >  ,
CreateAgent  ,
(google::cloud::dialogflow::cx::v3::CreateAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Agent >  ,
GetAgent  ,
(google::cloud::dialogflow::cx::v3::GetAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Agent >  ,
UpdateAgent  ,
(google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >  ,
GetAgentValidationResult  ,
(google::cloud::dialogflow::cx::v3::GetAgentValidationResultRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult >  ,
ValidateAgent  ,
(google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::dialogflow_cx_mocks::MockAgentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Agent >  ,
ListAgents  ,
(google::cloud::dialogflow::cx::v3::ListAgentsRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::dialogflow_cx::AgentsConnection::options ( )
inlinevirtualinherited

◆ RestoreAgent()

virtual future< StatusOr< google::protobuf::Struct > > google::cloud::dialogflow_cx::AgentsConnection::RestoreAgent ( google::cloud::dialogflow::cx::v3::RestoreAgentRequest const &  request)
virtualinherited

◆ UpdateAgent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Agent > google::cloud::dialogflow_cx::AgentsConnection::UpdateAgent ( google::cloud::dialogflow::cx::v3::UpdateAgentRequest const &  request)
virtualinherited

◆ ValidateAgent()

virtual StatusOr< google::cloud::dialogflow::cx::v3::AgentValidationResult > google::cloud::dialogflow_cx::AgentsConnection::ValidateAgent ( google::cloud::dialogflow::cx::v3::ValidateAgentRequest const &  request)
virtualinherited