Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
mock_conversation_models_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/conversation_model.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_CONVERSATION_MODELS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_CONVERSATION_MODELS_CONNECTION_H
21
22#include "google/cloud/dialogflow_es/conversation_models_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 `ConversationModelsConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `ConversationModelsClient`. To do
35 * so, construct an object of type `ConversationModelsClient` with an instance
36 * of this class. Then use the Google Test framework functions to program the
37 * behavior 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 future<StatusOr<google::cloud::dialogflow::v2::ConversationModel>>,
52 CreateConversationModel,
53 (google::cloud::dialogflow::v2::CreateConversationModelRequest const&
54 request),
55 (override));
56
57 MOCK_METHOD(StatusOr<google::cloud::dialogflow::v2::ConversationModel>,
58 GetConversationModel,
59 (google::cloud::dialogflow::v2::GetConversationModelRequest const&
60 request),
61 (override));
62
63 MOCK_METHOD(
64 StreamRange<google::cloud::dialogflow::v2::ConversationModel>,
65 ListConversationModels,
66 (google::cloud::dialogflow::v2::ListConversationModelsRequest request),
67 (override));
68
69 MOCK_METHOD(
70 future<StatusOr<google::cloud::dialogflow::v2::
71 DeleteConversationModelOperationMetadata>>,
72 DeleteConversationModel,
73 (google::cloud::dialogflow::v2::DeleteConversationModelRequest const&
74 request),
75 (override));
76
77 MOCK_METHOD(
78 future<StatusOr<google::cloud::dialogflow::v2::
79 DeployConversationModelOperationMetadata>>,
80 DeployConversationModel,
81 (google::cloud::dialogflow::v2::DeployConversationModelRequest const&
82 request),
83 (override));
84
85 MOCK_METHOD(
86 future<StatusOr<google::cloud::dialogflow::v2::
87 UndeployConversationModelOperationMetadata>>,
88 UndeployConversationModel,
89 (google::cloud::dialogflow::v2::UndeployConversationModelRequest const&
90 request),
91 (override));
92
93 MOCK_METHOD(
94 StatusOr<google::cloud::dialogflow::v2::ConversationModelEvaluation>,
95 GetConversationModelEvaluation,
96 (google::cloud::dialogflow::v2::
97 GetConversationModelEvaluationRequest const& request),
98 (override));
99
100 MOCK_METHOD(
101 StreamRange<google::cloud::dialogflow::v2::ConversationModelEvaluation>,
102 ListConversationModelEvaluations,
103 (google::cloud::dialogflow::v2::ListConversationModelEvaluationsRequest
104 request),
105 (override));
106
107 MOCK_METHOD(
108 future<
109 StatusOr<google::cloud::dialogflow::v2::ConversationModelEvaluation>>,
110 CreateConversationModelEvaluation,
111 (google::cloud::dialogflow::v2::
112 CreateConversationModelEvaluationRequest const& request),
113 (override));
114};
115
116GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
117} // namespace dialogflow_es_mocks
118} // namespace cloud
119} // namespace google
120
121#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_ES_MOCKS_MOCK_CONVERSATION_MODELS_CONNECTION_H
The ConversationModelsConnection object for ConversationModelsClient.
Definition: conversation_models_connection.h:65
A class to mock ConversationModelsConnection.
Definition: mock_conversation_models_connection.h:46
friend friend class future
Definition: mock_agents_connection.h:27
Definition: agents_client.h:33