Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
mock_transition_route_groups_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/cx/v3/transition_route_group.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_TRANSITION_ROUTE_GROUPS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_TRANSITION_ROUTE_GROUPS_CONNECTION_H
21
22#include "google/cloud/dialogflow_cx/transition_route_groups_connection.h"
23#include <gmock/gmock.h>
24
25namespace google {
26namespace cloud {
27namespace dialogflow_cx_mocks {
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30/**
31 * A class to mock `TransitionRouteGroupsConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `TransitionRouteGroupsClient`. To do
35 * so, construct an object of type `TransitionRouteGroupsClient` with an
36 * instance of this class. Then use the Google Test framework functions to
37 * program the 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 StreamRange<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>,
52 ListTransitionRouteGroups,
53 (google::cloud::dialogflow::cx::v3::ListTransitionRouteGroupsRequest
54 request),
55 (override));
56
57 MOCK_METHOD(
58 StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>,
59 GetTransitionRouteGroup,
60 (google::cloud::dialogflow::cx::v3::GetTransitionRouteGroupRequest const&
61 request),
62 (override));
63
64 MOCK_METHOD(StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>,
65 CreateTransitionRouteGroup,
66 (google::cloud::dialogflow::cx::v3::
67 CreateTransitionRouteGroupRequest const& request),
68 (override));
69
70 MOCK_METHOD(StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>,
71 UpdateTransitionRouteGroup,
72 (google::cloud::dialogflow::cx::v3::
73 UpdateTransitionRouteGroupRequest const& request),
74 (override));
75
76 MOCK_METHOD(Status, DeleteTransitionRouteGroup,
77 (google::cloud::dialogflow::cx::v3::
78 DeleteTransitionRouteGroupRequest const& request),
79 (override));
80};
81
82GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
83} // namespace dialogflow_cx_mocks
84} // namespace cloud
85} // namespace google
86
87#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_MOCKS_MOCK_TRANSITION_ROUTE_GROUPS_CONNECTION_H
The TransitionRouteGroupsConnection object for TransitionRouteGroupsClient.
Definition: transition_route_groups_connection.h:63
A class to mock TransitionRouteGroupsConnection.
Definition: mock_transition_route_groups_connection.h:46
Definition: mock_agents_connection.h:27
Definition: agents_client.h:33