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

A class to mock ConversationDatasetsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ConversationDataset > >, CreateConversationDataset,(google::cloud::dialogflow::v2::CreateConversationDatasetRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationDataset >, GetConversationDataset,(google::cloud::dialogflow::v2::GetConversationDatasetRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::ConversationDataset >, ListConversationDatasets,(google::cloud::dialogflow::v2::ListConversationDatasetsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationDatasetOperationMetadata > >, DeleteConversationDataset,(google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ImportConversationDataOperationResponse > >, ImportConversationData,(google::cloud::dialogflow::v2::ImportConversationDataRequest const &request),(override))
 
virtual Options options ()
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationDataset > > CreateConversationDataset (google::cloud::dialogflow::v2::CreateConversationDatasetRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationDataset > GetConversationDataset (google::cloud::dialogflow::v2::GetConversationDatasetRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::ConversationDataset > ListConversationDatasets (google::cloud::dialogflow::v2::ListConversationDatasetsRequest request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationDatasetOperationMetadata > > DeleteConversationDataset (google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ImportConversationDataOperationResponse > > ImportConversationData (google::cloud::dialogflow::v2::ImportConversationDataRequest const &request)
 

Detailed Description

A class to mock ConversationDatasetsConnection.

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

◆ CreateConversationDataset()

virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationDataset > > google::cloud::dialogflow_es::ConversationDatasetsConnection::CreateConversationDataset ( google::cloud::dialogflow::v2::CreateConversationDatasetRequest const &  request)
virtualinherited

◆ DeleteConversationDataset()

virtual future< StatusOr< google::cloud::dialogflow::v2:: DeleteConversationDatasetOperationMetadata > > google::cloud::dialogflow_es::ConversationDatasetsConnection::DeleteConversationDataset ( google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const &  request)
virtualinherited

◆ GetConversationDataset()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationDataset > google::cloud::dialogflow_es::ConversationDatasetsConnection::GetConversationDataset ( google::cloud::dialogflow::v2::GetConversationDatasetRequest const &  request)
virtualinherited

◆ ImportConversationData()

virtual future< StatusOr< google::cloud::dialogflow::v2::ImportConversationDataOperationResponse > > google::cloud::dialogflow_es::ConversationDatasetsConnection::ImportConversationData ( google::cloud::dialogflow::v2::ImportConversationDataRequest const &  request)
virtualinherited

◆ ListConversationDatasets()

virtual StreamRange< google::cloud::dialogflow::v2::ConversationDataset > google::cloud::dialogflow_es::ConversationDatasetsConnection::ListConversationDatasets ( google::cloud::dialogflow::v2::ListConversationDatasetsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/6]

google::cloud::dialogflow_es_mocks::MockConversationDatasetsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ConversationDataset > >  ,
CreateConversationDataset  ,
(google::cloud::dialogflow::v2::CreateConversationDatasetRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/6]

google::cloud::dialogflow_es_mocks::MockConversationDatasetsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationDatasetOperationMetadata > >  ,
DeleteConversationDataset  ,
(google::cloud::dialogflow::v2::DeleteConversationDatasetRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::dialogflow_es_mocks::MockConversationDatasetsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ImportConversationDataOperationResponse > >  ,
ImportConversationData  ,
(google::cloud::dialogflow::v2::ImportConversationDataRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

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

◆ MOCK_METHOD() [5/6]

google::cloud::dialogflow_es_mocks::MockConversationDatasetsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationDataset >  ,
GetConversationDataset  ,
(google::cloud::dialogflow::v2::GetConversationDatasetRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::dialogflow_es_mocks::MockConversationDatasetsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::ConversationDataset >  ,
ListConversationDatasets  ,
(google::cloud::dialogflow::v2::ListConversationDatasetsRequest request)  ,
(override)   
)

◆ options()

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