summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.data.core.v3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/envoy.data.core.v3.rs')
-rw-r--r--src/rpc/envoy.data.core.v3.rs176
1 files changed, 0 insertions, 176 deletions
diff --git a/src/rpc/envoy.data.core.v3.rs b/src/rpc/envoy.data.core.v3.rs
deleted file mode 100644
index 496b8bb1..00000000
--- a/src/rpc/envoy.data.core.v3.rs
+++ /dev/null
@@ -1,176 +0,0 @@
-// @generated
-// This file is @generated by prost-build.
-/// \[#next-free-field: 13\]
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Message)]
-pub struct HealthCheckEvent {
- #[prost(enumeration="HealthCheckerType", tag="1")]
- pub health_checker_type: i32,
- #[prost(message, optional, tag="2")]
- pub host: ::core::option::Option<super::super::super::config::core::v3::Address>,
- #[prost(string, tag="3")]
- pub cluster_name: ::prost::alloc::string::String,
- /// Timestamp for event.
- #[prost(message, optional, tag="6")]
- pub timestamp: ::core::option::Option<super::super::super::super::google::protobuf::Timestamp>,
- /// Host metadata
- #[prost(message, optional, tag="10")]
- pub metadata: ::core::option::Option<super::super::super::config::core::v3::Metadata>,
- /// Host locality
- #[prost(message, optional, tag="11")]
- pub locality: ::core::option::Option<super::super::super::config::core::v3::Locality>,
- #[prost(oneof="health_check_event::Event", tags="4, 5, 12, 7, 8, 9")]
- pub event: ::core::option::Option<health_check_event::Event>,
-}
-/// Nested message and enum types in `HealthCheckEvent`.
-pub mod health_check_event {
- #[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
- pub enum Event {
- /// Host ejection.
- #[prost(message, tag="4")]
- EjectUnhealthyEvent(super::HealthCheckEjectUnhealthy),
- /// Host addition.
- #[prost(message, tag="5")]
- AddHealthyEvent(super::HealthCheckAddHealthy),
- /// A health check was successful. Note: a host will be considered healthy either if it is
- /// the first ever health check, or if the healthy threshold is reached. This kind of event
- /// indicate that a health check was successful, but does not indicates that the host is
- /// considered healthy. A host is considered healthy if HealthCheckAddHealthy kind of event is sent.
- #[prost(message, tag="12")]
- SuccessfulHealthCheckEvent(super::HealthCheckSuccessful),
- /// Host failure.
- #[prost(message, tag="7")]
- HealthCheckFailureEvent(super::HealthCheckFailure),
- /// Healthy host became degraded.
- #[prost(message, tag="8")]
- DegradedHealthyHost(super::DegradedHealthyHost),
- /// A degraded host returned to being healthy.
- #[prost(message, tag="9")]
- NoLongerDegradedHost(super::NoLongerDegradedHost),
- }
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct HealthCheckEjectUnhealthy {
- /// The type of failure that caused this ejection.
- #[prost(enumeration="HealthCheckFailureType", tag="1")]
- pub failure_type: i32,
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct HealthCheckAddHealthy {
- /// Whether this addition is the result of the first ever health check on a host, in which case
- /// the configured :ref:`healthy threshold <envoy_v3_api_field_config.core.v3.HealthCheck.healthy_threshold>`
- /// is bypassed and the host is immediately added.
- #[prost(bool, tag="1")]
- pub first_check: bool,
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct HealthCheckSuccessful {
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct HealthCheckFailure {
- /// The type of failure that caused this event.
- #[prost(enumeration="HealthCheckFailureType", tag="1")]
- pub failure_type: i32,
- /// Whether this event is the result of the first ever health check on a host.
- #[prost(bool, tag="2")]
- pub first_check: bool,
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct DegradedHealthyHost {
-}
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct NoLongerDegradedHost {
-}
-// \[#protodoc-title: Health check logging events\]
-// :ref:`Health check logging <arch_overview_health_check_logging>`.
-
-#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
-#[repr(i32)]
-pub enum HealthCheckFailureType {
- Active = 0,
- Passive = 1,
- Network = 2,
- NetworkTimeout = 3,
-}
-impl HealthCheckFailureType {
- /// String value of the enum field names used in the ProtoBuf definition.
- ///
- /// The values are not transformed in any way and thus are considered stable
- /// (if the ProtoBuf definition does not change) and safe for programmatic use.
- pub fn as_str_name(&self) -> &'static str {
- match self {
- HealthCheckFailureType::Active => "ACTIVE",
- HealthCheckFailureType::Passive => "PASSIVE",
- HealthCheckFailureType::Network => "NETWORK",
- HealthCheckFailureType::NetworkTimeout => "NETWORK_TIMEOUT",
- }
- }
- /// Creates an enum from field names used in the ProtoBuf definition.
- pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
- match value {
- "ACTIVE" => Some(Self::Active),
- "PASSIVE" => Some(Self::Passive),
- "NETWORK" => Some(Self::Network),
- "NETWORK_TIMEOUT" => Some(Self::NetworkTimeout),
- _ => None,
- }
- }
-}
-#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
-#[repr(i32)]
-pub enum HealthCheckerType {
- Http = 0,
- Tcp = 1,
- Grpc = 2,
- Redis = 3,
- Thrift = 4,
-}
-impl HealthCheckerType {
- /// String value of the enum field names used in the ProtoBuf definition.
- ///
- /// The values are not transformed in any way and thus are considered stable
- /// (if the ProtoBuf definition does not change) and safe for programmatic use.
- pub fn as_str_name(&self) -> &'static str {
- match self {
- HealthCheckerType::Http => "HTTP",
- HealthCheckerType::Tcp => "TCP",
- HealthCheckerType::Grpc => "GRPC",
- HealthCheckerType::Redis => "REDIS",
- HealthCheckerType::Thrift => "THRIFT",
- }
- }
- /// Creates an enum from field names used in the ProtoBuf definition.
- pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
- match value {
- "HTTP" => Some(Self::Http),
- "TCP" => Some(Self::Tcp),
- "GRPC" => Some(Self::Grpc),
- "REDIS" => Some(Self::Redis),
- "THRIFT" => Some(Self::Thrift),
- _ => None,
- }
- }
-}
-// \[#protodoc-title: Proxy Protocol Filter Typed Metadata\]
-// PROXY protocol filter typed metadata.
-
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, PartialEq, ::prost::Message)]
-pub struct TlvsMetadata {
- /// Typed metadata for :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`, that represents a map of TLVs.
- /// Each entry in the map consists of a key which corresponds to a configured
- /// :ref:`rule key <envoy_v3_api_field_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol.KeyValuePair.key>` and a value (TLV value in bytes).
- /// When runtime flag ``envoy.reloadable_features.use_typed_metadata_in_proxy_protocol_listener`` is enabled,
- /// :ref:`Proxy protocol filter <envoy_v3_api_msg_extensions.filters.listener.proxy_protocol.v3.ProxyProtocol>`
- /// will populate typed metadata and regular metadata. By default filter will populate typed and untyped metadata.
- #[prost(map="string, bytes", tag="1")]
- pub typed_metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec<u8>>,
-}
-// @@protoc_insertion_point(module)