Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
|
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) |
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.
*Client
and *Connection
.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
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) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | Options | , |
options | , | ||
() | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::AnalyzeContentResponse > | , |
AnalyzeContent | , | ||
(google::cloud::dialogflow::v2::AnalyzeContentRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::Participant > | , |
CreateParticipant | , | ||
(google::cloud::dialogflow::v2::CreateParticipantRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::Participant > | , |
GetParticipant | , | ||
(google::cloud::dialogflow::v2::GetParticipantRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::Participant > | , |
UpdateParticipant | , | ||
(google::cloud::dialogflow::v2::UpdateParticipantRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::SuggestArticlesResponse > | , |
SuggestArticles | , | ||
(google::cloud::dialogflow::v2::SuggestArticlesRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::SuggestFaqAnswersResponse > | , |
SuggestFaqAnswers | , | ||
(google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StatusOr< google::cloud::dialogflow::v2::SuggestSmartRepliesResponse > | , |
SuggestSmartReplies | , | ||
(google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const &request) | , | ||
(override) | |||
) |
google::cloud::dialogflow_es_mocks::MockParticipantsConnection::MOCK_METHOD | ( | StreamRange< google::cloud::dialogflow::v2::Participant > | , |
ListParticipants | , | ||
(google::cloud::dialogflow::v2::ListParticipantsRequest request) | , | ||
(override) | |||
) |
|
inlinevirtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |