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

A class to mock FlowsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Flow >, CreateFlow,(google::cloud::dialogflow::cx::v3::CreateFlowRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteFlow,(google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Flow >, ListFlows,(google::cloud::dialogflow::cx::v3::ListFlowsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Flow >, GetFlow,(google::cloud::dialogflow::cx::v3::GetFlowRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Flow >, UpdateFlow,(google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, TrainFlow,(google::cloud::dialogflow::cx::v3::TrainFlowRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult >, ValidateFlow,(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult >, GetFlowValidationResult,(google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > >, ImportFlow,(google::cloud::dialogflow::cx::v3::ImportFlowRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > >, ExportFlow,(google::cloud::dialogflow::cx::v3::ExportFlowRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > CreateFlow (google::cloud::dialogflow::cx::v3::CreateFlowRequest const &request)
 
virtual Status DeleteFlow (google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Flow > ListFlows (google::cloud::dialogflow::cx::v3::ListFlowsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > GetFlow (google::cloud::dialogflow::cx::v3::GetFlowRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > UpdateFlow (google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &request)
 
virtual future< StatusOr< google::protobuf::Struct > > TrainFlow (google::cloud::dialogflow::cx::v3::TrainFlowRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > ValidateFlow (google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > GetFlowValidationResult (google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > > ImportFlow (google::cloud::dialogflow::cx::v3::ImportFlowRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > > ExportFlow (google::cloud::dialogflow::cx::v3::ExportFlowRequest const &request)
 

Detailed Description

A class to mock FlowsConnection.

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

◆ CreateFlow()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > google::cloud::dialogflow_cx::FlowsConnection::CreateFlow ( google::cloud::dialogflow::cx::v3::CreateFlowRequest const &  request)
virtualinherited

◆ DeleteFlow()

virtual Status google::cloud::dialogflow_cx::FlowsConnection::DeleteFlow ( google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &  request)
virtualinherited

◆ ExportFlow()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > > google::cloud::dialogflow_cx::FlowsConnection::ExportFlow ( google::cloud::dialogflow::cx::v3::ExportFlowRequest const &  request)
virtualinherited

◆ GetFlow()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > google::cloud::dialogflow_cx::FlowsConnection::GetFlow ( google::cloud::dialogflow::cx::v3::GetFlowRequest const &  request)
virtualinherited

◆ GetFlowValidationResult()

virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > google::cloud::dialogflow_cx::FlowsConnection::GetFlowValidationResult ( google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &  request)
virtualinherited

◆ ImportFlow()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > > google::cloud::dialogflow_cx::FlowsConnection::ImportFlow ( google::cloud::dialogflow::cx::v3::ImportFlowRequest const &  request)
virtualinherited

◆ ListFlows()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Flow > google::cloud::dialogflow_cx::FlowsConnection::ListFlows ( google::cloud::dialogflow::cx::v3::ListFlowsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::ExportFlowResponse > >  ,
ExportFlow  ,
(google::cloud::dialogflow::cx::v3::ExportFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::ImportFlowResponse > >  ,
ImportFlow  ,
(google::cloud::dialogflow::cx::v3::ImportFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( future< StatusOr< google::protobuf::Struct > >  ,
TrainFlow  ,
(google::cloud::dialogflow::cx::v3::TrainFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/11]

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

◆ MOCK_METHOD() [5/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( Status  ,
DeleteFlow  ,
(google::cloud::dialogflow::cx::v3::DeleteFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Flow >  ,
CreateFlow  ,
(google::cloud::dialogflow::cx::v3::CreateFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Flow >  ,
GetFlow  ,
(google::cloud::dialogflow::cx::v3::GetFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Flow >  ,
UpdateFlow  ,
(google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult >  ,
GetFlowValidationResult  ,
(google::cloud::dialogflow::cx::v3::GetFlowValidationResultRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult >  ,
ValidateFlow  ,
(google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/11]

google::cloud::dialogflow_cx_mocks::MockFlowsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Flow >  ,
ListFlows  ,
(google::cloud::dialogflow::cx::v3::ListFlowsRequest request)  ,
(override)   
)

◆ options()

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

◆ TrainFlow()

virtual future< StatusOr< google::protobuf::Struct > > google::cloud::dialogflow_cx::FlowsConnection::TrainFlow ( google::cloud::dialogflow::cx::v3::TrainFlowRequest const &  request)
virtualinherited

◆ UpdateFlow()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Flow > google::cloud::dialogflow_cx::FlowsConnection::UpdateFlow ( google::cloud::dialogflow::cx::v3::UpdateFlowRequest const &  request)
virtualinherited

◆ ValidateFlow()

virtual StatusOr< google::cloud::dialogflow::cx::v3::FlowValidationResult > google::cloud::dialogflow_cx::FlowsConnection::ValidateFlow ( google::cloud::dialogflow::cx::v3::ValidateFlowRequest const &  request)
virtualinherited