google_cloud_dialogflow_cx_v3/lib.rs
1// Copyright 2025 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// Code generated by sidekick. DO NOT EDIT.
16
17//! Google Cloud Client Libraries for Rust - Dialogflow API
18//!
19//! **WARNING:** some RPCs have no corresponding Rust function to call them.
20//! Typically these are streaming RPCs. We expect adding these RPCs in a
21//! way that does not break the existing APIs or changes their behavior in a
22//! significant way. We do anticipate a number of new crate dependencies
23//! will be required. If you need these RPCs please open an issue in our
24//! GitHub repository.
25//!
26//! This crate contains traits, types, and functions to interact with Dialogflow API
27//! Most applications will use the structs defined in the [client] module.
28//!
29//! The client library types and functions are stable and not expected to change.
30//! Please note that Google Cloud services do change from time to time. The client
31//! libraries are designed to preserve backwards compatibility when the service
32//! changes in compatible ways. For example, adding RPCs, or fields to messages
33//! should not introduce breaking changes to the client libraries.
34//!
35//! # Available Clients
36//!
37//! * [Agents](client/struct.Agents.html)
38//! * [Changelogs](client/struct.Changelogs.html)
39//! * [Deployments](client/struct.Deployments.html)
40//! * [EntityTypes](client/struct.EntityTypes.html)
41//! * [Environments](client/struct.Environments.html)
42//! * [Experiments](client/struct.Experiments.html)
43//! * [Flows](client/struct.Flows.html)
44//! * [Generators](client/struct.Generators.html)
45//! * [Intents](client/struct.Intents.html)
46//! * [Pages](client/struct.Pages.html)
47//! * [SecuritySettingsService](client/struct.SecuritySettingsService.html)
48//! * [Sessions](client/struct.Sessions.html)
49//! * [SessionEntityTypes](client/struct.SessionEntityTypes.html)
50//! * [TestCases](client/struct.TestCases.html)
51//! * [TransitionRouteGroups](client/struct.TransitionRouteGroups.html)
52//! * [Versions](client/struct.Versions.html)
53//! * [Webhooks](client/struct.Webhooks.html)
54
55#![cfg_attr(docsrs, feature(doc_cfg))]
56#![allow(deprecated)]
57
58/// The messages and enums that are part of this client library.
59#[allow(clippy::module_inception)]
60pub mod model;
61
62pub use gax::Result;
63pub use gax::error::Error;
64
65#[allow(rustdoc::invalid_html_tags)]
66#[allow(rustdoc::redundant_explicit_links)]
67pub mod stub;
68
69/// Concrete implementations of this client library traits.
70pub mod client;
71
72/// Request builders.
73pub mod builder;
74
75#[doc(hidden)]
76pub(crate) mod tracing;
77
78#[doc(hidden)]
79pub(crate) mod transport;
80
81/// The default host used by the service.
82#[cfg(any(
83 feature = "agents",
84 feature = "changelogs",
85 feature = "deployments",
86 feature = "entity-types",
87 feature = "environments",
88 feature = "experiments",
89 feature = "flows",
90 feature = "generators",
91 feature = "intents",
92 feature = "pages",
93 feature = "security-settings-service",
94 feature = "sessions",
95 feature = "session-entity-types",
96 feature = "test-cases",
97 feature = "transition-route-groups",
98 feature = "versions",
99 feature = "webhooks",
100))]
101const DEFAULT_HOST: &str = "https://dialogflow.googleapis.com/";
102
103#[cfg(any(
104 feature = "agents",
105 feature = "changelogs",
106 feature = "deployments",
107 feature = "entity-types",
108 feature = "environments",
109 feature = "experiments",
110 feature = "flows",
111 feature = "generators",
112 feature = "intents",
113 feature = "pages",
114 feature = "security-settings-service",
115 feature = "sessions",
116 feature = "session-entity-types",
117 feature = "test-cases",
118 feature = "transition-route-groups",
119 feature = "versions",
120 feature = "webhooks",
121))]
122pub(crate) mod info {
123 const NAME: &str = env!("CARGO_PKG_NAME");
124 const VERSION: &str = env!("CARGO_PKG_VERSION");
125 lazy_static::lazy_static! {
126 pub(crate) static ref X_GOOG_API_CLIENT_HEADER: String = {
127 let ac = gaxi::api_header::XGoogApiClient{
128 name: NAME,
129 version: VERSION,
130 library_type: gaxi::api_header::GAPIC,
131 };
132 ac.rest_header_value()
133 };
134 }
135}