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