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

A class to mock ConversationModelsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ConversationModel > >, CreateConversationModel,(google::cloud::dialogflow::v2::CreateConversationModelRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationModel >, GetConversationModel,(google::cloud::dialogflow::v2::GetConversationModelRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::ConversationModel >, ListConversationModels,(google::cloud::dialogflow::v2::ListConversationModelsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationModelOperationMetadata > >, DeleteConversationModel,(google::cloud::dialogflow::v2::DeleteConversationModelRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::DeployConversationModelOperationMetadata > >, DeployConversationModel,(google::cloud::dialogflow::v2::DeployConversationModelRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::UndeployConversationModelOperationMetadata > >, UndeployConversationModel,(google::cloud::dialogflow::v2::UndeployConversationModelRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation >, GetConversationModelEvaluation,(google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::ConversationModelEvaluation >, ListConversationModelEvaluations,(google::cloud::dialogflow::v2::ListConversationModelEvaluationsRequest request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > >, CreateConversationModelEvaluation,(google::cloud::dialogflow::v2::CreateConversationModelEvaluationRequest const &request),(override))
 
virtual Options options ()
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationModel > > CreateConversationModel (google::cloud::dialogflow::v2::CreateConversationModelRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationModel > GetConversationModel (google::cloud::dialogflow::v2::GetConversationModelRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::ConversationModel > ListConversationModels (google::cloud::dialogflow::v2::ListConversationModelsRequest request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationModelOperationMetadata > > DeleteConversationModel (google::cloud::dialogflow::v2::DeleteConversationModelRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::DeployConversationModelOperationMetadata > > DeployConversationModel (google::cloud::dialogflow::v2::DeployConversationModelRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::UndeployConversationModelOperationMetadata > > UndeployConversationModel (google::cloud::dialogflow::v2::UndeployConversationModelRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > GetConversationModelEvaluation (google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::ConversationModelEvaluation > ListConversationModelEvaluations (google::cloud::dialogflow::v2::ListConversationModelEvaluationsRequest request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > > CreateConversationModelEvaluation (google::cloud::dialogflow::v2::CreateConversationModelEvaluationRequest const &request)
 

Detailed Description

A class to mock ConversationModelsConnection.

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

◆ CreateConversationModel()

virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationModel > > google::cloud::dialogflow_es::ConversationModelsConnection::CreateConversationModel ( google::cloud::dialogflow::v2::CreateConversationModelRequest const &  request)
virtualinherited

◆ CreateConversationModelEvaluation()

virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > > google::cloud::dialogflow_es::ConversationModelsConnection::CreateConversationModelEvaluation ( google::cloud::dialogflow::v2::CreateConversationModelEvaluationRequest const &  request)
virtualinherited

◆ DeleteConversationModel()

virtual future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationModelOperationMetadata > > google::cloud::dialogflow_es::ConversationModelsConnection::DeleteConversationModel ( google::cloud::dialogflow::v2::DeleteConversationModelRequest const &  request)
virtualinherited

◆ DeployConversationModel()

virtual future< StatusOr< google::cloud::dialogflow::v2::DeployConversationModelOperationMetadata > > google::cloud::dialogflow_es::ConversationModelsConnection::DeployConversationModel ( google::cloud::dialogflow::v2::DeployConversationModelRequest const &  request)
virtualinherited

◆ GetConversationModel()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationModel > google::cloud::dialogflow_es::ConversationModelsConnection::GetConversationModel ( google::cloud::dialogflow::v2::GetConversationModelRequest const &  request)
virtualinherited

◆ GetConversationModelEvaluation()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > google::cloud::dialogflow_es::ConversationModelsConnection::GetConversationModelEvaluation ( google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const &  request)
virtualinherited

◆ ListConversationModelEvaluations()

virtual StreamRange< google::cloud::dialogflow::v2::ConversationModelEvaluation > google::cloud::dialogflow_es::ConversationModelsConnection::ListConversationModelEvaluations ( google::cloud::dialogflow::v2::ListConversationModelEvaluationsRequest  request)
virtualinherited

◆ ListConversationModels()

virtual StreamRange< google::cloud::dialogflow::v2::ConversationModel > google::cloud::dialogflow_es::ConversationModelsConnection::ListConversationModels ( google::cloud::dialogflow::v2::ListConversationModelsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ConversationModel > >  ,
CreateConversationModel  ,
(google::cloud::dialogflow::v2::CreateConversationModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation > >  ,
CreateConversationModelEvaluation  ,
(google::cloud::dialogflow::v2::CreateConversationModelEvaluationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::DeleteConversationModelOperationMetadata > >  ,
DeleteConversationModel  ,
(google::cloud::dialogflow::v2::DeleteConversationModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::DeployConversationModelOperationMetadata > >  ,
DeployConversationModel  ,
(google::cloud::dialogflow::v2::DeployConversationModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::UndeployConversationModelOperationMetadata > >  ,
UndeployConversationModel  ,
(google::cloud::dialogflow::v2::UndeployConversationModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/10]

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

◆ MOCK_METHOD() [7/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationModel >  ,
GetConversationModel  ,
(google::cloud::dialogflow::v2::GetConversationModelRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationModelEvaluation >  ,
GetConversationModelEvaluation  ,
(google::cloud::dialogflow::v2::GetConversationModelEvaluationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::ConversationModel >  ,
ListConversationModels  ,
(google::cloud::dialogflow::v2::ListConversationModelsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::dialogflow_es_mocks::MockConversationModelsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::ConversationModelEvaluation >  ,
ListConversationModelEvaluations  ,
(google::cloud::dialogflow::v2::ListConversationModelEvaluationsRequest request)  ,
(override)   
)

◆ options()

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

◆ UndeployConversationModel()

virtual future< StatusOr< google::cloud::dialogflow::v2:: UndeployConversationModelOperationMetadata > > google::cloud::dialogflow_es::ConversationModelsConnection::UndeployConversationModel ( google::cloud::dialogflow::v2::UndeployConversationModelRequest const &  request)
virtualinherited