quilkin_proto/generated/envoy/kind/
v3.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct Percent {
4    #[prost(double, tag = "1")]
5    pub value: f64,
6}
7#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
8pub struct FractionalPercent {
9    #[prost(uint32, tag = "1")]
10    pub numerator: u32,
11    #[prost(enumeration = "fractional_percent::DenominatorType", tag = "2")]
12    pub denominator: i32,
13}
14/// Nested message and enum types in `FractionalPercent`.
15pub mod fractional_percent {
16    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
17    #[repr(i32)]
18    pub enum DenominatorType {
19        Hundred = 0,
20        TenThousand = 1,
21        Million = 2,
22    }
23    impl DenominatorType {
24        /// String value of the enum field names used in the ProtoBuf definition.
25        ///
26        /// The values are not transformed in any way and thus are considered stable
27        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
28        pub fn as_str_name(&self) -> &'static str {
29            match self {
30                Self::Hundred => "HUNDRED",
31                Self::TenThousand => "TEN_THOUSAND",
32                Self::Million => "MILLION",
33            }
34        }
35        /// Creates an enum from field names used in the ProtoBuf definition.
36        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
37            match value {
38                "HUNDRED" => Some(Self::Hundred),
39                "TEN_THOUSAND" => Some(Self::TenThousand),
40                "MILLION" => Some(Self::Million),
41                _ => None,
42            }
43        }
44    }
45}
46#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
47pub struct Int64Range {
48    #[prost(int64, tag = "1")]
49    pub start: i64,
50    #[prost(int64, tag = "2")]
51    pub end: i64,
52}
53#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
54pub struct Int32Range {
55    #[prost(int32, tag = "1")]
56    pub start: i32,
57    #[prost(int32, tag = "2")]
58    pub end: i32,
59}
60#[derive(Clone, Copy, PartialEq, ::prost::Message)]
61pub struct DoubleRange {
62    #[prost(double, tag = "1")]
63    pub start: f64,
64    #[prost(double, tag = "2")]
65    pub end: f64,
66}
67#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
68#[repr(i32)]
69pub enum CodecClientType {
70    Http1 = 0,
71    Http2 = 1,
72    Http3 = 2,
73}
74impl CodecClientType {
75    /// String value of the enum field names used in the ProtoBuf definition.
76    ///
77    /// The values are not transformed in any way and thus are considered stable
78    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
79    pub fn as_str_name(&self) -> &'static str {
80        match self {
81            Self::Http1 => "HTTP1",
82            Self::Http2 => "HTTP2",
83            Self::Http3 => "HTTP3",
84        }
85    }
86    /// Creates an enum from field names used in the ProtoBuf definition.
87    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
88        match value {
89            "HTTP1" => Some(Self::Http1),
90            "HTTP2" => Some(Self::Http2),
91            "HTTP3" => Some(Self::Http3),
92            _ => None,
93        }
94    }
95}