quilkin_proto/generated/envoy/kind/matcher/
v3.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct DoubleMatcher {
4    #[prost(oneof = "double_matcher::MatchPattern", tags = "1, 2")]
5    pub match_pattern: ::core::option::Option<double_matcher::MatchPattern>,
6}
7/// Nested message and enum types in `DoubleMatcher`.
8pub mod double_matcher {
9    #[allow(clippy::derive_partial_eq_without_eq)]
10    #[derive(Clone, PartialEq, ::prost::Oneof)]
11    pub enum MatchPattern {
12        #[prost(message, tag = "1")]
13        Range(super::super::super::v3::DoubleRange),
14        #[prost(double, tag = "2")]
15        Exact(f64),
16    }
17}
18#[allow(clippy::derive_partial_eq_without_eq)]
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct RegexMatcher {
21    #[prost(string, tag = "2")]
22    pub regex: ::prost::alloc::string::String,
23    #[prost(oneof = "regex_matcher::EngineType", tags = "1")]
24    pub engine_type: ::core::option::Option<regex_matcher::EngineType>,
25}
26/// Nested message and enum types in `RegexMatcher`.
27pub mod regex_matcher {
28    #[allow(clippy::derive_partial_eq_without_eq)]
29    #[derive(Clone, PartialEq, ::prost::Message)]
30    pub struct GoogleRe2 {
31        #[deprecated]
32        #[prost(message, optional, tag = "1")]
33        pub max_program_size: ::core::option::Option<u32>,
34    }
35    #[allow(clippy::derive_partial_eq_without_eq)]
36    #[derive(Clone, PartialEq, ::prost::Oneof)]
37    pub enum EngineType {
38        #[prost(message, tag = "1")]
39        GoogleRe2(GoogleRe2),
40    }
41}
42#[allow(clippy::derive_partial_eq_without_eq)]
43#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct RegexMatchAndSubstitute {
45    #[prost(message, optional, tag = "1")]
46    pub pattern: ::core::option::Option<RegexMatcher>,
47    #[prost(string, tag = "2")]
48    pub substitution: ::prost::alloc::string::String,
49}
50#[allow(clippy::derive_partial_eq_without_eq)]
51#[derive(Clone, PartialEq, ::prost::Message)]
52pub struct StringMatcher {
53    #[prost(bool, tag = "6")]
54    pub ignore_case: bool,
55    #[prost(oneof = "string_matcher::MatchPattern", tags = "1, 2, 3, 5, 7")]
56    pub match_pattern: ::core::option::Option<string_matcher::MatchPattern>,
57}
58/// Nested message and enum types in `StringMatcher`.
59pub mod string_matcher {
60    #[allow(clippy::derive_partial_eq_without_eq)]
61    #[derive(Clone, PartialEq, ::prost::Oneof)]
62    pub enum MatchPattern {
63        #[prost(string, tag = "1")]
64        Exact(::prost::alloc::string::String),
65        #[prost(string, tag = "2")]
66        Prefix(::prost::alloc::string::String),
67        #[prost(string, tag = "3")]
68        Suffix(::prost::alloc::string::String),
69        #[prost(message, tag = "5")]
70        SafeRegex(super::RegexMatcher),
71        #[prost(string, tag = "7")]
72        Contains(::prost::alloc::string::String),
73    }
74}
75#[allow(clippy::derive_partial_eq_without_eq)]
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct ListStringMatcher {
78    #[prost(message, repeated, tag = "1")]
79    pub patterns: ::prost::alloc::vec::Vec<StringMatcher>,
80}
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct ValueMatcher {
84    #[prost(oneof = "value_matcher::MatchPattern", tags = "1, 2, 3, 4, 5, 6")]
85    pub match_pattern: ::core::option::Option<value_matcher::MatchPattern>,
86}
87/// Nested message and enum types in `ValueMatcher`.
88pub mod value_matcher {
89    #[allow(clippy::derive_partial_eq_without_eq)]
90    #[derive(Clone, PartialEq, ::prost::Message)]
91    pub struct NullMatch {}
92    #[allow(clippy::derive_partial_eq_without_eq)]
93    #[derive(Clone, PartialEq, ::prost::Oneof)]
94    pub enum MatchPattern {
95        #[prost(message, tag = "1")]
96        NullMatch(NullMatch),
97        #[prost(message, tag = "2")]
98        DoubleMatch(super::DoubleMatcher),
99        #[prost(message, tag = "3")]
100        StringMatch(super::StringMatcher),
101        #[prost(bool, tag = "4")]
102        BoolMatch(bool),
103        #[prost(bool, tag = "5")]
104        PresentMatch(bool),
105        #[prost(message, tag = "6")]
106        ListMatch(::prost::alloc::boxed::Box<super::ListMatcher>),
107    }
108}
109#[allow(clippy::derive_partial_eq_without_eq)]
110#[derive(Clone, PartialEq, ::prost::Message)]
111pub struct ListMatcher {
112    #[prost(oneof = "list_matcher::MatchPattern", tags = "1")]
113    pub match_pattern: ::core::option::Option<list_matcher::MatchPattern>,
114}
115/// Nested message and enum types in `ListMatcher`.
116pub mod list_matcher {
117    #[allow(clippy::derive_partial_eq_without_eq)]
118    #[derive(Clone, PartialEq, ::prost::Oneof)]
119    pub enum MatchPattern {
120        #[prost(message, tag = "1")]
121        OneOf(::prost::alloc::boxed::Box<super::ValueMatcher>),
122    }
123}
124#[allow(clippy::derive_partial_eq_without_eq)]
125#[derive(Clone, PartialEq, ::prost::Message)]
126pub struct MetadataMatcher {
127    #[prost(string, tag = "1")]
128    pub filter: ::prost::alloc::string::String,
129    #[prost(message, repeated, tag = "2")]
130    pub path: ::prost::alloc::vec::Vec<metadata_matcher::PathSegment>,
131    #[prost(message, optional, tag = "3")]
132    pub value: ::core::option::Option<ValueMatcher>,
133    #[prost(bool, tag = "4")]
134    pub invert: bool,
135}
136/// Nested message and enum types in `MetadataMatcher`.
137pub mod metadata_matcher {
138    #[allow(clippy::derive_partial_eq_without_eq)]
139    #[derive(Clone, PartialEq, ::prost::Message)]
140    pub struct PathSegment {
141        #[prost(oneof = "path_segment::Segment", tags = "1")]
142        pub segment: ::core::option::Option<path_segment::Segment>,
143    }
144    /// Nested message and enum types in `PathSegment`.
145    pub mod path_segment {
146        #[allow(clippy::derive_partial_eq_without_eq)]
147        #[derive(Clone, PartialEq, ::prost::Oneof)]
148        pub enum Segment {
149            #[prost(string, tag = "1")]
150            Key(::prost::alloc::string::String),
151        }
152    }
153}