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

A class to mock ConversationProfilesConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::ConversationProfile >, ListConversationProfiles,(google::cloud::dialogflow::v2::ListConversationProfilesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationProfile >, GetConversationProfile,(google::cloud::dialogflow::v2::GetConversationProfileRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationProfile >, CreateConversationProfile,(google::cloud::dialogflow::v2::CreateConversationProfileRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::ConversationProfile >, UpdateConversationProfile,(google::cloud::dialogflow::v2::UpdateConversationProfileRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteConversationProfile,(google::cloud::dialogflow::v2::DeleteConversationProfileRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > >, SetSuggestionFeatureConfig,(google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const &request),(override))
 
 MOCK_METHOD (future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > >, ClearSuggestionFeatureConfig,(google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const &request),(override))
 
virtual Options options ()
 
virtual StreamRange< google::cloud::dialogflow::v2::ConversationProfile > ListConversationProfiles (google::cloud::dialogflow::v2::ListConversationProfilesRequest request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > GetConversationProfile (google::cloud::dialogflow::v2::GetConversationProfileRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > CreateConversationProfile (google::cloud::dialogflow::v2::CreateConversationProfileRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > UpdateConversationProfile (google::cloud::dialogflow::v2::UpdateConversationProfileRequest const &request)
 
virtual Status DeleteConversationProfile (google::cloud::dialogflow::v2::DeleteConversationProfileRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > > SetSuggestionFeatureConfig (google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const &request)
 
virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > > ClearSuggestionFeatureConfig (google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const &request)
 

Detailed Description

A class to mock ConversationProfilesConnection.

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

◆ ClearSuggestionFeatureConfig()

virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > > google::cloud::dialogflow_es::ConversationProfilesConnection::ClearSuggestionFeatureConfig ( google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const &  request)
virtualinherited

◆ CreateConversationProfile()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > google::cloud::dialogflow_es::ConversationProfilesConnection::CreateConversationProfile ( google::cloud::dialogflow::v2::CreateConversationProfileRequest const &  request)
virtualinherited

◆ DeleteConversationProfile()

virtual Status google::cloud::dialogflow_es::ConversationProfilesConnection::DeleteConversationProfile ( google::cloud::dialogflow::v2::DeleteConversationProfileRequest const &  request)
virtualinherited

◆ GetConversationProfile()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > google::cloud::dialogflow_es::ConversationProfilesConnection::GetConversationProfile ( google::cloud::dialogflow::v2::GetConversationProfileRequest const &  request)
virtualinherited

◆ ListConversationProfiles()

virtual StreamRange< google::cloud::dialogflow::v2::ConversationProfile > google::cloud::dialogflow_es::ConversationProfilesConnection::ListConversationProfiles ( google::cloud::dialogflow::v2::ListConversationProfilesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > >  ,
ClearSuggestionFeatureConfig  ,
(google::cloud::dialogflow::v2::ClearSuggestionFeatureConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [2/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > >  ,
SetSuggestionFeatureConfig  ,
(google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/8]

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

◆ MOCK_METHOD() [4/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( Status  ,
DeleteConversationProfile  ,
(google::cloud::dialogflow::v2::DeleteConversationProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationProfile >  ,
CreateConversationProfile  ,
(google::cloud::dialogflow::v2::CreateConversationProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationProfile >  ,
GetConversationProfile  ,
(google::cloud::dialogflow::v2::GetConversationProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::ConversationProfile >  ,
UpdateConversationProfile  ,
(google::cloud::dialogflow::v2::UpdateConversationProfileRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/8]

google::cloud::dialogflow_es_mocks::MockConversationProfilesConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::ConversationProfile >  ,
ListConversationProfiles  ,
(google::cloud::dialogflow::v2::ListConversationProfilesRequest request)  ,
(override)   
)

◆ options()

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

◆ SetSuggestionFeatureConfig()

virtual future< StatusOr< google::cloud::dialogflow::v2::ConversationProfile > > google::cloud::dialogflow_es::ConversationProfilesConnection::SetSuggestionFeatureConfig ( google::cloud::dialogflow::v2::SetSuggestionFeatureConfigRequest const &  request)
virtualinherited

◆ UpdateConversationProfile()

virtual StatusOr< google::cloud::dialogflow::v2::ConversationProfile > google::cloud::dialogflow_es::ConversationProfilesConnection::UpdateConversationProfile ( google::cloud::dialogflow::v2::UpdateConversationProfileRequest const &  request)
virtualinherited