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::MockKnowledgeBasesConnection Class Reference

A class to mock KnowledgeBasesConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::KnowledgeBase >, ListKnowledgeBases,(google::cloud::dialogflow::v2::ListKnowledgeBasesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, GetKnowledgeBase,(google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, CreateKnowledgeBase,(google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteKnowledgeBase,(google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >, UpdateKnowledgeBase,(google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::v2::KnowledgeBase > ListKnowledgeBases (google::cloud::dialogflow::v2::ListKnowledgeBasesRequest request)
 
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > GetKnowledgeBase (google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > CreateKnowledgeBase (google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &request)
 
virtual Status DeleteKnowledgeBase (google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > UpdateKnowledgeBase (google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &request)
 

Detailed Description

A class to mock KnowledgeBasesConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type KnowledgeBasesClient. To do so, construct an object of type KnowledgeBasesClient 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

◆ CreateKnowledgeBase()

virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > google::cloud::dialogflow_es::KnowledgeBasesConnection::CreateKnowledgeBase ( google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &  request)
virtualinherited

◆ DeleteKnowledgeBase()

virtual Status google::cloud::dialogflow_es::KnowledgeBasesConnection::DeleteKnowledgeBase ( google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &  request)
virtualinherited

◆ GetKnowledgeBase()

virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > google::cloud::dialogflow_es::KnowledgeBasesConnection::GetKnowledgeBase ( google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &  request)
virtualinherited

◆ ListKnowledgeBases()

virtual StreamRange< google::cloud::dialogflow::v2::KnowledgeBase > google::cloud::dialogflow_es::KnowledgeBasesConnection::ListKnowledgeBases ( google::cloud::dialogflow::v2::ListKnowledgeBasesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/6]

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

◆ MOCK_METHOD() [2/6]

google::cloud::dialogflow_es_mocks::MockKnowledgeBasesConnection::MOCK_METHOD ( Status  ,
DeleteKnowledgeBase  ,
(google::cloud::dialogflow::v2::DeleteKnowledgeBaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::dialogflow_es_mocks::MockKnowledgeBasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >  ,
CreateKnowledgeBase  ,
(google::cloud::dialogflow::v2::CreateKnowledgeBaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

google::cloud::dialogflow_es_mocks::MockKnowledgeBasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >  ,
GetKnowledgeBase  ,
(google::cloud::dialogflow::v2::GetKnowledgeBaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/6]

google::cloud::dialogflow_es_mocks::MockKnowledgeBasesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::KnowledgeBase >  ,
UpdateKnowledgeBase  ,
(google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::dialogflow_es_mocks::MockKnowledgeBasesConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::KnowledgeBase >  ,
ListKnowledgeBases  ,
(google::cloud::dialogflow::v2::ListKnowledgeBasesRequest request)  ,
(override)   
)

◆ options()

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

◆ UpdateKnowledgeBase()

virtual StatusOr< google::cloud::dialogflow::v2::KnowledgeBase > google::cloud::dialogflow_es::KnowledgeBasesConnection::UpdateKnowledgeBase ( google::cloud::dialogflow::v2::UpdateKnowledgeBaseRequest const &  request)
virtualinherited