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

A class to mock VersionsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::Version >, ListVersions,(google::cloud::dialogflow::cx::v3::ListVersionsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Version >, GetVersion,(google::cloud::dialogflow::cx::v3::GetVersionRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::cx::v3::Version > >, CreateVersion,(google::cloud::dialogflow::cx::v3::CreateVersionRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::Version >, UpdateVersion,(google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteVersion,(google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::protobuf::Struct > >, LoadVersion,(google::cloud::dialogflow::cx::v3::LoadVersionRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse >, CompareVersions,(google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::Version > ListVersions (google::cloud::dialogflow::cx::v3::ListVersionsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > GetVersion (google::cloud::dialogflow::cx::v3::GetVersionRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Version > > CreateVersion (google::cloud::dialogflow::cx::v3::CreateVersionRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > UpdateVersion (google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &request)
 
virtual Status DeleteVersion (google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &request)
 
virtual future< StatusOr< google::protobuf::Struct > > LoadVersion (google::cloud::dialogflow::cx::v3::LoadVersionRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse > CompareVersions (google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &request)
 

Detailed Description

A class to mock VersionsConnection.

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

◆ CompareVersions()

virtual StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse > google::cloud::dialogflow_cx::VersionsConnection::CompareVersions ( google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &  request)
virtualinherited

◆ CreateVersion()

virtual future< StatusOr< google::cloud::dialogflow::cx::v3::Version > > google::cloud::dialogflow_cx::VersionsConnection::CreateVersion ( google::cloud::dialogflow::cx::v3::CreateVersionRequest const &  request)
virtualinherited

◆ DeleteVersion()

virtual Status google::cloud::dialogflow_cx::VersionsConnection::DeleteVersion ( google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &  request)
virtualinherited

◆ GetVersion()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > google::cloud::dialogflow_cx::VersionsConnection::GetVersion ( google::cloud::dialogflow::cx::v3::GetVersionRequest const &  request)
virtualinherited

◆ ListVersions()

virtual StreamRange< google::cloud::dialogflow::cx::v3::Version > google::cloud::dialogflow_cx::VersionsConnection::ListVersions ( google::cloud::dialogflow::cx::v3::ListVersionsRequest  request)
virtualinherited

◆ LoadVersion()

virtual future< StatusOr< google::protobuf::Struct > > google::cloud::dialogflow_cx::VersionsConnection::LoadVersion ( google::cloud::dialogflow::cx::v3::LoadVersionRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::cx::v3::Version > >  ,
CreateVersion  ,
(google::cloud::dialogflow::cx::v3::CreateVersionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( future< StatusOr< google::protobuf::Struct > >  ,
LoadVersion  ,
(google::cloud::dialogflow::cx::v3::LoadVersionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/8]

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

◆ MOCK_METHOD() [4/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( Status  ,
DeleteVersion  ,
(google::cloud::dialogflow::cx::v3::DeleteVersionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::CompareVersionsResponse >  ,
CompareVersions  ,
(google::cloud::dialogflow::cx::v3::CompareVersionsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Version >  ,
GetVersion  ,
(google::cloud::dialogflow::cx::v3::GetVersionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::Version >  ,
UpdateVersion  ,
(google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/8]

google::cloud::dialogflow_cx_mocks::MockVersionsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::Version >  ,
ListVersions  ,
(google::cloud::dialogflow::cx::v3::ListVersionsRequest request)  ,
(override)   
)

◆ options()

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

◆ UpdateVersion()

virtual StatusOr< google::cloud::dialogflow::cx::v3::Version > google::cloud::dialogflow_cx::VersionsConnection::UpdateVersion ( google::cloud::dialogflow::cx::v3::UpdateVersionRequest const &  request)
virtualinherited