Dialogflow API C++ Client 2.11.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::MockEntityTypesConnection Class Reference

A class to mock EntityTypesConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::cx::v3::EntityType >, ListEntityTypes,(google::cloud::dialogflow::cx::v3::ListEntityTypesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::EntityType >, GetEntityType,(google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::EntityType >, CreateEntityType,(google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::cx::v3::EntityType >, UpdateEntityType,(google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteEntityType,(google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::cx::v3::EntityType > ListEntityTypes (google::cloud::dialogflow::cx::v3::ListEntityTypesRequest request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > GetEntityType (google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > CreateEntityType (google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > UpdateEntityType (google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const &request)
 
virtual Status DeleteEntityType (google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const &request)
 

Detailed Description

A class to mock EntityTypesConnection.

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

◆ CreateEntityType()

virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesConnection::CreateEntityType ( google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const &  request)
virtualinherited

◆ DeleteEntityType()

virtual Status google::cloud::dialogflow_cx::EntityTypesConnection::DeleteEntityType ( google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const &  request)
virtualinherited

◆ GetEntityType()

virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesConnection::GetEntityType ( google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const &  request)
virtualinherited

◆ ListEntityTypes()

virtual StreamRange< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesConnection::ListEntityTypes ( google::cloud::dialogflow::cx::v3::ListEntityTypesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/6]

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

◆ MOCK_METHOD() [2/6]

google::cloud::dialogflow_cx_mocks::MockEntityTypesConnection::MOCK_METHOD ( Status  ,
DeleteEntityType  ,
(google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/6]

google::cloud::dialogflow_cx_mocks::MockEntityTypesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::EntityType >  ,
CreateEntityType  ,
(google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/6]

google::cloud::dialogflow_cx_mocks::MockEntityTypesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::EntityType >  ,
GetEntityType  ,
(google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/6]

google::cloud::dialogflow_cx_mocks::MockEntityTypesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::cx::v3::EntityType >  ,
UpdateEntityType  ,
(google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/6]

google::cloud::dialogflow_cx_mocks::MockEntityTypesConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::cx::v3::EntityType >  ,
ListEntityTypes  ,
(google::cloud::dialogflow::cx::v3::ListEntityTypesRequest request)  ,
(override)   
)

◆ options()

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

◆ UpdateEntityType()

virtual StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesConnection::UpdateEntityType ( google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const &  request)
virtualinherited