quilkin_proto/generated/xds/core/
v3.rs1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct TypedExtensionConfig {
4 #[prost(string, tag = "1")]
5 pub name: ::prost::alloc::string::String,
6 #[prost(message, optional, tag = "2")]
7 pub typed_config: ::core::option::Option<::prost_types::Any>,
8}
9#[allow(clippy::derive_partial_eq_without_eq)]
10#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct Authority {
12 #[prost(string, tag = "1")]
13 pub name: ::prost::alloc::string::String,
14}
15#[allow(clippy::derive_partial_eq_without_eq)]
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct ContextParams {
18 #[prost(map = "string, string", tag = "1")]
19 pub params:
20 ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
21}
22#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct ResourceLocator {
25 #[prost(enumeration = "resource_locator::Scheme", tag = "1")]
26 pub scheme: i32,
27 #[prost(string, tag = "2")]
28 pub id: ::prost::alloc::string::String,
29 #[prost(string, tag = "3")]
30 pub authority: ::prost::alloc::string::String,
31 #[prost(string, tag = "4")]
32 pub resource_type: ::prost::alloc::string::String,
33 #[prost(message, repeated, tag = "6")]
34 pub directives: ::prost::alloc::vec::Vec<resource_locator::Directive>,
35 #[prost(oneof = "resource_locator::ContextParamSpecifier", tags = "5")]
36 pub context_param_specifier: ::core::option::Option<resource_locator::ContextParamSpecifier>,
37}
38pub mod resource_locator {
40 #[allow(clippy::derive_partial_eq_without_eq)]
41 #[derive(Clone, PartialEq, ::prost::Message)]
42 pub struct Directive {
43 #[prost(oneof = "directive::Directive", tags = "1, 2")]
44 pub directive: ::core::option::Option<directive::Directive>,
45 }
46 pub mod directive {
48 #[allow(clippy::derive_partial_eq_without_eq)]
49 #[derive(Clone, PartialEq, ::prost::Oneof)]
50 pub enum Directive {
51 #[prost(message, tag = "1")]
52 Alt(super::super::ResourceLocator),
53 #[prost(string, tag = "2")]
54 Entry(::prost::alloc::string::String),
55 }
56 }
57 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
58 #[repr(i32)]
59 pub enum Scheme {
60 Xdstp = 0,
61 Http = 1,
62 File = 2,
63 }
64 impl Scheme {
65 pub fn as_str_name(&self) -> &'static str {
70 match self {
71 Scheme::Xdstp => "XDSTP",
72 Scheme::Http => "HTTP",
73 Scheme::File => "FILE",
74 }
75 }
76 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
78 match value {
79 "XDSTP" => Some(Self::Xdstp),
80 "HTTP" => Some(Self::Http),
81 "FILE" => Some(Self::File),
82 _ => None,
83 }
84 }
85 }
86 #[allow(clippy::derive_partial_eq_without_eq)]
87 #[derive(Clone, PartialEq, ::prost::Oneof)]
88 pub enum ContextParamSpecifier {
89 #[prost(message, tag = "5")]
90 ExactContext(super::ContextParams),
91 }
92}
93#[allow(clippy::derive_partial_eq_without_eq)]
94#[derive(Clone, PartialEq, ::prost::Message)]
95pub struct CollectionEntry {
96 #[prost(oneof = "collection_entry::ResourceSpecifier", tags = "1, 2")]
97 pub resource_specifier: ::core::option::Option<collection_entry::ResourceSpecifier>,
98}
99pub mod collection_entry {
101 #[allow(clippy::derive_partial_eq_without_eq)]
102 #[derive(Clone, PartialEq, ::prost::Message)]
103 pub struct InlineEntry {
104 #[prost(string, tag = "1")]
105 pub name: ::prost::alloc::string::String,
106 #[prost(string, tag = "2")]
107 pub version: ::prost::alloc::string::String,
108 #[prost(message, optional, tag = "3")]
109 pub resource: ::core::option::Option<::prost_types::Any>,
110 }
111 #[allow(clippy::derive_partial_eq_without_eq)]
112 #[derive(Clone, PartialEq, ::prost::Oneof)]
113 pub enum ResourceSpecifier {
114 #[prost(message, tag = "1")]
115 Locator(super::ResourceLocator),
116 #[prost(message, tag = "2")]
117 InlineEntry(InlineEntry),
118 }
119}
120#[allow(clippy::derive_partial_eq_without_eq)]
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct ResourceName {
123 #[prost(string, tag = "1")]
124 pub id: ::prost::alloc::string::String,
125 #[prost(string, tag = "2")]
126 pub authority: ::prost::alloc::string::String,
127 #[prost(string, tag = "3")]
128 pub resource_type: ::prost::alloc::string::String,
129 #[prost(message, optional, tag = "4")]
130 pub context: ::core::option::Option<ContextParams>,
131}