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_es_mocks::MockAgentsConnection Class Reference

A class to mock AgentsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Agent >, GetAgent,(google::cloud::dialogflow::v2::GetAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Agent >, SetAgent,(google::cloud::dialogflow::v2::SetAgentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteAgent,(google::cloud::dialogflow::v2::DeleteAgentRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Agent >, SearchAgents,(google::cloud::dialogflow::v2::SearchAgentsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, TrainAgent,(google::cloud::dialogflow::v2::TrainAgentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > >, ExportAgent,(google::cloud::dialogflow::v2::ExportAgentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, ImportAgent,(google::cloud::dialogflow::v2::ImportAgentRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, RestoreAgent,(google::cloud::dialogflow::v2::RestoreAgentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ValidationResult >, GetValidationResult,(google::cloud::dialogflow::v2::GetValidationResultRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::dialogflow::v2::Agent > GetAgent (google::cloud::dialogflow::v2::GetAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Agent > SetAgent (google::cloud::dialogflow::v2::SetAgentRequest const &request)
 
virtual Status DeleteAgent (google::cloud::dialogflow::v2::DeleteAgentRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::Agent > SearchAgents (google::cloud::dialogflow::v2::SearchAgentsRequest request)
 
virtual future< StatusOr< google::protobuf::Struct > > TrainAgent (google::cloud::dialogflow::v2::TrainAgentRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > ExportAgent (google::cloud::dialogflow::v2::ExportAgentRequest const &request)
 
virtual future< StatusOr< google::protobuf::Struct > > ImportAgent (google::cloud::dialogflow::v2::ImportAgentRequest const &request)
 
virtual future< StatusOr< google::protobuf::Struct > > RestoreAgent (google::cloud::dialogflow::v2::RestoreAgentRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ValidationResult > GetValidationResult (google::cloud::dialogflow::v2::GetValidationResultRequest 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

◆ DeleteAgent()

virtual Status google::cloud::dialogflow_es::AgentsConnection::DeleteAgent ( google::cloud::dialogflow::v2::DeleteAgentRequest const &  request)
virtualinherited

◆ ExportAgent()

virtual future< StatusOr< google::cloud::dialogflow::v2::ExportAgentResponse > > google::cloud::dialogflow_es::AgentsConnection::ExportAgent ( google::cloud::dialogflow::v2::ExportAgentRequest const &  request)
virtualinherited

◆ GetAgent()

virtual StatusOr< google::cloud::dialogflow::v2::Agent > google::cloud::dialogflow_es::AgentsConnection::GetAgent ( google::cloud::dialogflow::v2::GetAgentRequest const &  request)
virtualinherited

◆ GetValidationResult()

virtual StatusOr< google::cloud::dialogflow::v2::ValidationResult > google::cloud::dialogflow_es::AgentsConnection::GetValidationResult ( google::cloud::dialogflow::v2::GetValidationResultRequest const &  request)
virtualinherited

◆ ImportAgent()

virtual future< StatusOr< google::protobuf::Struct > > google::cloud::dialogflow_es::AgentsConnection::ImportAgent ( google::cloud::dialogflow::v2::ImportAgentRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

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

◆ MOCK_METHOD() [2/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( future< StatusOr< google::protobuf::Struct > >  ,
ImportAgent  ,
(google::cloud::dialogflow::v2::ImportAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

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

◆ MOCK_METHOD() [4/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( future< StatusOr< google::protobuf::Struct > >  ,
TrainAgent  ,
(google::cloud::dialogflow::v2::TrainAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

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

◆ MOCK_METHOD() [6/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( Status  ,
DeleteAgent  ,
(google::cloud::dialogflow::v2::DeleteAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Agent >  ,
GetAgent  ,
(google::cloud::dialogflow::v2::GetAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Agent >  ,
SetAgent  ,
(google::cloud::dialogflow::v2::SetAgentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ValidationResult >  ,
GetValidationResult  ,
(google::cloud::dialogflow::v2::GetValidationResultRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::dialogflow_es_mocks::MockAgentsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::Agent >  ,
SearchAgents  ,
(google::cloud::dialogflow::v2::SearchAgentsRequest request)  ,
(override)   
)

◆ options()

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

◆ RestoreAgent()

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

◆ SearchAgents()

virtual StreamRange< google::cloud::dialogflow::v2::Agent > google::cloud::dialogflow_es::AgentsConnection::SearchAgents ( google::cloud::dialogflow::v2::SearchAgentsRequest  request)
virtualinherited

◆ SetAgent()

virtual StatusOr< google::cloud::dialogflow::v2::Agent > google::cloud::dialogflow_es::AgentsConnection::SetAgent ( google::cloud::dialogflow::v2::SetAgentRequest const &  request)
virtualinherited

◆ TrainAgent()

virtual future< StatusOr< google::protobuf::Struct > > google::cloud::dialogflow_es::AgentsConnection::TrainAgent ( google::cloud::dialogflow::v2::TrainAgentRequest const &  request)
virtualinherited