Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
All Classes Namespaces Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | List of all members
google::cloud::dialogflow_es_mocks::MockParticipantsConnection Class Reference

A class to mock ParticipantsConnection. More...

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

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Participant >, CreateParticipant,(google::cloud::dialogflow::v2::CreateParticipantRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Participant >, GetParticipant,(google::cloud::dialogflow::v2::GetParticipantRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::dialogflow::v2::Participant >, ListParticipants,(google::cloud::dialogflow::v2::ListParticipantsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::Participant >, UpdateParticipant,(google::cloud::dialogflow::v2::UpdateParticipantRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::AnalyzeContentResponse >, AnalyzeContent,(google::cloud::dialogflow::v2::AnalyzeContentRequest const &request),(override))
 
 MOCK_METHOD ((std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingAnalyzeContentRequest, google::cloud::dialogflow::v2::StreamingAnalyzeContentResponse > >), AsyncStreamingAnalyzeContent,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::SuggestArticlesResponse >, SuggestArticles,(google::cloud::dialogflow::v2::SuggestArticlesRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::SuggestFaqAnswersResponse >, SuggestFaqAnswers,(google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::dialogflow::v2::SuggestSmartRepliesResponse >, SuggestSmartReplies,(google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::dialogflow::v2::Participant > CreateParticipant (google::cloud::dialogflow::v2::CreateParticipantRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Participant > GetParticipant (google::cloud::dialogflow::v2::GetParticipantRequest const &request)
 
virtual StreamRange< google::cloud::dialogflow::v2::Participant > ListParticipants (google::cloud::dialogflow::v2::ListParticipantsRequest request)
 
virtual StatusOr< google::cloud::dialogflow::v2::Participant > UpdateParticipant (google::cloud::dialogflow::v2::UpdateParticipantRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::AnalyzeContentResponse > AnalyzeContent (google::cloud::dialogflow::v2::AnalyzeContentRequest const &request)
 
virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingAnalyzeContentRequest, google::cloud::dialogflow::v2::StreamingAnalyzeContentResponse > > AsyncStreamingAnalyzeContent ()
 
virtual StatusOr< google::cloud::dialogflow::v2::SuggestArticlesResponse > SuggestArticles (google::cloud::dialogflow::v2::SuggestArticlesRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::SuggestFaqAnswersResponse > SuggestFaqAnswers (google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const &request)
 
virtual StatusOr< google::cloud::dialogflow::v2::SuggestSmartRepliesResponse > SuggestSmartReplies (google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const &request)
 

Detailed Description

A class to mock ParticipantsConnection.

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

◆ AnalyzeContent()

virtual StatusOr< google::cloud::dialogflow::v2::AnalyzeContentResponse > google::cloud::dialogflow_es::ParticipantsConnection::AnalyzeContent ( google::cloud::dialogflow::v2::AnalyzeContentRequest const &  request)
virtualinherited

◆ AsyncStreamingAnalyzeContent()

virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingAnalyzeContentRequest, google::cloud::dialogflow::v2::StreamingAnalyzeContentResponse > > google::cloud::dialogflow_es::ParticipantsConnection::AsyncStreamingAnalyzeContent ( )
virtualinherited

◆ CreateParticipant()

virtual StatusOr< google::cloud::dialogflow::v2::Participant > google::cloud::dialogflow_es::ParticipantsConnection::CreateParticipant ( google::cloud::dialogflow::v2::CreateParticipantRequest const &  request)
virtualinherited

◆ GetParticipant()

virtual StatusOr< google::cloud::dialogflow::v2::Participant > google::cloud::dialogflow_es::ParticipantsConnection::GetParticipant ( google::cloud::dialogflow::v2::GetParticipantRequest const &  request)
virtualinherited

◆ ListParticipants()

virtual StreamRange< google::cloud::dialogflow::v2::Participant > google::cloud::dialogflow_es::ParticipantsConnection::ListParticipants ( google::cloud::dialogflow::v2::ListParticipantsRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( (std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::dialogflow::v2::StreamingAnalyzeContentRequest, google::cloud::dialogflow::v2::StreamingAnalyzeContentResponse > >)  ,
AsyncStreamingAnalyzeContent  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

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

◆ MOCK_METHOD() [3/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::AnalyzeContentResponse >  ,
AnalyzeContent  ,
(google::cloud::dialogflow::v2::AnalyzeContentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Participant >  ,
CreateParticipant  ,
(google::cloud::dialogflow::v2::CreateParticipantRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Participant >  ,
GetParticipant  ,
(google::cloud::dialogflow::v2::GetParticipantRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::Participant >  ,
UpdateParticipant  ,
(google::cloud::dialogflow::v2::UpdateParticipantRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::SuggestArticlesResponse >  ,
SuggestArticles  ,
(google::cloud::dialogflow::v2::SuggestArticlesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::SuggestFaqAnswersResponse >  ,
SuggestFaqAnswers  ,
(google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StatusOr< google::cloud::dialogflow::v2::SuggestSmartRepliesResponse >  ,
SuggestSmartReplies  ,
(google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD ( StreamRange< google::cloud::dialogflow::v2::Participant >  ,
ListParticipants  ,
(google::cloud::dialogflow::v2::ListParticipantsRequest request)  ,
(override)   
)

◆ options()

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

◆ SuggestArticles()

virtual StatusOr< google::cloud::dialogflow::v2::SuggestArticlesResponse > google::cloud::dialogflow_es::ParticipantsConnection::SuggestArticles ( google::cloud::dialogflow::v2::SuggestArticlesRequest const &  request)
virtualinherited

◆ SuggestFaqAnswers()

virtual StatusOr< google::cloud::dialogflow::v2::SuggestFaqAnswersResponse > google::cloud::dialogflow_es::ParticipantsConnection::SuggestFaqAnswers ( google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const &  request)
virtualinherited

◆ SuggestSmartReplies()

virtual StatusOr< google::cloud::dialogflow::v2::SuggestSmartRepliesResponse > google::cloud::dialogflow_es::ParticipantsConnection::SuggestSmartReplies ( google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const &  request)
virtualinherited

◆ UpdateParticipant()

virtual StatusOr< google::cloud::dialogflow::v2::Participant > google::cloud::dialogflow_es::ParticipantsConnection::UpdateParticipant ( google::cloud::dialogflow::v2::UpdateParticipantRequest const &  request)
virtualinherited