Dialogflow API C++ Client 2.13.0
A C++ Client Library for the Dialogflow API
Loading...
Searching...
No Matches
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_TRANSITION_ROUTE_GROUPS_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TRANSITION_ROUTE_GROUPS_CONNECTION_H
21
22#include "google/cloud/dialogflow_cx/internal/transition_route_groups_retry_traits.h"
23#include "google/cloud/dialogflow_cx/transition_route_groups_connection_idempotency_policy.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/options.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/stream_range.h"
28#include "google/cloud/version.h"
29#include <google/cloud/dialogflow/cx/v3/transition_route_group.pb.h>
30#include <memory>
31#include <string>
32
33namespace google {
34namespace cloud {
35namespace dialogflow_cx {
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
37
38using TransitionRouteGroupsRetryPolicy =
39 ::google::cloud::internal::TraitBasedRetryPolicy<
40 dialogflow_cx_internal::TransitionRouteGroupsRetryTraits>;
41
42using TransitionRouteGroupsLimitedTimeRetryPolicy =
43 ::google::cloud::internal::LimitedTimeRetryPolicy<
44 dialogflow_cx_internal::TransitionRouteGroupsRetryTraits>;
45
46using TransitionRouteGroupsLimitedErrorCountRetryPolicy =
47 ::google::cloud::internal::LimitedErrorCountRetryPolicy<
48 dialogflow_cx_internal::TransitionRouteGroupsRetryTraits>;
49
50/**
51 * The `TransitionRouteGroupsConnection` object for
52 * `TransitionRouteGroupsClient`.
53 *
54 * This interface defines virtual methods for each of the user-facing overload
55 * sets in `TransitionRouteGroupsClient`. This allows users to inject custom
56 * behavior (e.g., with a Google Mock object) when writing tests that use
57 * objects of type `TransitionRouteGroupsClient`.
58 *
59 * To create a concrete instance, see `MakeTransitionRouteGroupsConnection()`.
60 *
61 * For mocking, see `dialogflow_cx_mocks::MockTransitionRouteGroupsConnection`.
62 */
64 public:
66
67 virtual Options options() { return Options{}; }
68
69 virtual StreamRange<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>
71 google::cloud::dialogflow::cx::v3::ListTransitionRouteGroupsRequest
72 request);
73
74 virtual StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>
76 google::cloud::dialogflow::cx::v3::GetTransitionRouteGroupRequest const&
77 request);
78
79 virtual StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>
81 google::cloud::dialogflow::cx::v3::
82 CreateTransitionRouteGroupRequest const& request);
83
84 virtual StatusOr<google::cloud::dialogflow::cx::v3::TransitionRouteGroup>
86 google::cloud::dialogflow::cx::v3::
87 UpdateTransitionRouteGroupRequest const& request);
88
90 google::cloud::dialogflow::cx::v3::
91 DeleteTransitionRouteGroupRequest const& request);
92};
93
94/**
95 * A factory function to construct an object of type
96 * `TransitionRouteGroupsConnection`.
97 *
98 * The returned connection object should not be used directly; instead it
99 * should be passed as an argument to the constructor of
100 * TransitionRouteGroupsClient.
101 *
102 * The optional @p options argument may be used to configure aspects of the
103 * returned `TransitionRouteGroupsConnection`. Expected options are any of the
104 * types in the following option lists:
105 *
106 * - `google::cloud::CommonOptionList`
107 * - `google::cloud::GrpcOptionList`
108 * - `google::cloud::UnifiedCredentialsOptionList`
109 * - `google::cloud::dialogflow_cx::TransitionRouteGroupsPolicyOptionList`
110 *
111 * @note Unexpected options will be ignored. To log unexpected options instead,
112 * set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.
113 *
114 * @param location Sets the prefix for the default `EndpointOption` value.
115 * @param options (optional) Configure the `TransitionRouteGroupsConnection`
116 * created by this function.
117 */
118std::shared_ptr<TransitionRouteGroupsConnection>
119MakeTransitionRouteGroupsConnection(std::string const& location,
120 Options options = {});
121
122/**
123 * A backwards-compatible version of the previous factory function. Unless
124 * the service also offers a global endpoint, the default value of the
125 * `EndpointOption` may be useless, in which case it must be overridden.
126 *
127 * @deprecated Please use the `location` overload instead.
128 */
129std::shared_ptr<TransitionRouteGroupsConnection>
131
132GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
133} // namespace dialogflow_cx
134} // namespace cloud
135} // namespace google
136
137#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_DIALOGFLOW_CX_TRANSITION_ROUTE_GROUPS_CONNECTION_H
The TransitionRouteGroupsConnection object for TransitionRouteGroupsClient.
Definition: transition_route_groups_connection.h:63
virtual StreamRange< google::cloud::dialogflow::cx::v3::TransitionRouteGroup > ListTransitionRouteGroups(google::cloud::dialogflow::cx::v3::ListTransitionRouteGroupsRequest request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TransitionRouteGroup > GetTransitionRouteGroup(google::cloud::dialogflow::cx::v3::GetTransitionRouteGroupRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TransitionRouteGroup > UpdateTransitionRouteGroup(google::cloud::dialogflow::cx::v3::UpdateTransitionRouteGroupRequest const &request)
virtual StatusOr< google::cloud::dialogflow::cx::v3::TransitionRouteGroup > CreateTransitionRouteGroup(google::cloud::dialogflow::cx::v3::CreateTransitionRouteGroupRequest const &request)
virtual Status DeleteTransitionRouteGroup(google::cloud::dialogflow::cx::v3::DeleteTransitionRouteGroupRequest const &request)
virtual Options options()
Definition: transition_route_groups_connection.h:67
Definition: agents_client.h:33
std::shared_ptr< TransitionRouteGroupsConnection > MakeTransitionRouteGroupsConnection(Options options={})
A backwards-compatible version of the previous factory function.
std::shared_ptr< TransitionRouteGroupsConnection > MakeTransitionRouteGroupsConnection(std::string const &location, Options options={})
A factory function to construct an object of type TransitionRouteGroupsConnection.