Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
mock_participants_connection.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/dialogflow/v2/participant.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_PARTICIPANTS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_PARTICIPANTS_CONNECTION_H
21
22#include "google/cloud/dialogflow_es/participants_connection.h"
23#include <gmock/gmock.h>
24
25namespace google {
26namespace cloud {
27namespace dialogflow_es_mocks {
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30/**
31 * A class to mock `ParticipantsConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `ParticipantsClient`. To do so,
35 * construct an object of type `ParticipantsClient` with an instance of this
36 * class. Then use the Google Test framework functions to program the behavior
37 * of this mock.
38 *
39 * @see [This example][bq-mock] for how to test your application with GoogleTest.
40 * While the example showcases types from the BigQuery library, the underlying
41 * principles apply for any pair of `*Client` and `*Connection`.
42 *
43 * [bq-mock]: @cloud_cpp_docs_link{bigquery,bigquery-read-mock}
44 */
47 public:
48 MOCK_METHOD(Options, options, (), (override));
49
50 MOCK_METHOD(
51 StatusOr<google::cloud::dialogflow::v2::Participant>, CreateParticipant,
52 (google::cloud::dialogflow::v2::CreateParticipantRequest const& request),
53 (override));
54
55 MOCK_METHOD(
56 StatusOr<google::cloud::dialogflow::v2::Participant>, GetParticipant,
57 (google::cloud::dialogflow::v2::GetParticipantRequest const& request),
58 (override));
59
60 MOCK_METHOD(StreamRange<google::cloud::dialogflow::v2::Participant>,
61 ListParticipants,
62 (google::cloud::dialogflow::v2::ListParticipantsRequest request),
63 (override));
64
65 MOCK_METHOD(
66 StatusOr<google::cloud::dialogflow::v2::Participant>, UpdateParticipant,
67 (google::cloud::dialogflow::v2::UpdateParticipantRequest const& request),
68 (override));
69
70 MOCK_METHOD(
71 StatusOr<google::cloud::dialogflow::v2::AnalyzeContentResponse>,
72 AnalyzeContent,
73 (google::cloud::dialogflow::v2::AnalyzeContentRequest const& request),
74 (override));
75
76 MOCK_METHOD(
77 (std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
78 google::cloud::dialogflow::v2::StreamingAnalyzeContentRequest,
79 google::cloud::dialogflow::v2::StreamingAnalyzeContentResponse>>),
80 AsyncStreamingAnalyzeContent, (), (override));
81
82 MOCK_METHOD(
83 StatusOr<google::cloud::dialogflow::v2::SuggestArticlesResponse>,
84 SuggestArticles,
85 (google::cloud::dialogflow::v2::SuggestArticlesRequest const& request),
86 (override));
87
88 MOCK_METHOD(
89 StatusOr<google::cloud::dialogflow::v2::SuggestFaqAnswersResponse>,
90 SuggestFaqAnswers,
91 (google::cloud::dialogflow::v2::SuggestFaqAnswersRequest const& request),
92 (override));
93
94 MOCK_METHOD(
95 StatusOr<google::cloud::dialogflow::v2::SuggestSmartRepliesResponse>,
96 SuggestSmartReplies,
97 (google::cloud::dialogflow::v2::SuggestSmartRepliesRequest const&
98 request),
99 (override));
100};
101
102GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
103} // namespace dialogflow_es_mocks
104} // namespace cloud
105} // namespace google
106
107#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_PARTICIPANTS_CONNECTION_H
The ParticipantsConnection object for ParticipantsClient.
Definition: participants_connection.h:63
A class to mock ParticipantsConnection.
Definition: mock_participants_connection.h:46
Definition: mock_agents_connection.h:27
Definition: agents_client.h:33