xds_api/generated/
udpa.annotations.rs1#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct StatusAnnotation {
4 #[prost(bool, tag = "1")]
6 pub work_in_progress: bool,
7 #[prost(enumeration = "PackageVersionStatus", tag = "2")]
9 pub package_version_status: i32,
10}
11impl ::prost::Name for StatusAnnotation {
12 const NAME: &'static str = "StatusAnnotation";
13 const PACKAGE: &'static str = "udpa.annotations";
14 fn full_name() -> ::prost::alloc::string::String {
15 "udpa.annotations.StatusAnnotation".into()
16 }
17 fn type_url() -> ::prost::alloc::string::String {
18 "/udpa.annotations.StatusAnnotation".into()
19 }
20}
21#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
22#[repr(i32)]
23pub enum PackageVersionStatus {
24 Unknown = 0,
26 Frozen = 1,
28 Active = 2,
30 NextMajorVersionCandidate = 3,
33}
34impl PackageVersionStatus {
35 pub fn as_str_name(&self) -> &'static str {
40 match self {
41 Self::Unknown => "UNKNOWN",
42 Self::Frozen => "FROZEN",
43 Self::Active => "ACTIVE",
44 Self::NextMajorVersionCandidate => "NEXT_MAJOR_VERSION_CANDIDATE",
45 }
46 }
47 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
49 match value {
50 "UNKNOWN" => Some(Self::Unknown),
51 "FROZEN" => Some(Self::Frozen),
52 "ACTIVE" => Some(Self::Active),
53 "NEXT_MAJOR_VERSION_CANDIDATE" => Some(Self::NextMajorVersionCandidate),
54 _ => None,
55 }
56 }
57}
58#[derive(Clone, PartialEq, ::prost::Message)]
59pub struct VersioningAnnotation {
60 #[prost(string, tag = "1")]
64 pub previous_message_type: ::prost::alloc::string::String,
65}
66impl ::prost::Name for VersioningAnnotation {
67 const NAME: &'static str = "VersioningAnnotation";
68 const PACKAGE: &'static str = "udpa.annotations";
69 fn full_name() -> ::prost::alloc::string::String {
70 "udpa.annotations.VersioningAnnotation".into()
71 }
72 fn type_url() -> ::prost::alloc::string::String {
73 "/udpa.annotations.VersioningAnnotation".into()
74 }
75}
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct MigrateAnnotation {
78 #[prost(string, tag = "1")]
80 pub rename: ::prost::alloc::string::String,
81}
82impl ::prost::Name for MigrateAnnotation {
83 const NAME: &'static str = "MigrateAnnotation";
84 const PACKAGE: &'static str = "udpa.annotations";
85 fn full_name() -> ::prost::alloc::string::String {
86 "udpa.annotations.MigrateAnnotation".into()
87 }
88 fn type_url() -> ::prost::alloc::string::String {
89 "/udpa.annotations.MigrateAnnotation".into()
90 }
91}
92#[derive(Clone, PartialEq, ::prost::Message)]
93pub struct FieldMigrateAnnotation {
94 #[prost(string, tag = "1")]
96 pub rename: ::prost::alloc::string::String,
97 #[prost(string, tag = "2")]
101 pub oneof_promotion: ::prost::alloc::string::String,
102}
103impl ::prost::Name for FieldMigrateAnnotation {
104 const NAME: &'static str = "FieldMigrateAnnotation";
105 const PACKAGE: &'static str = "udpa.annotations";
106 fn full_name() -> ::prost::alloc::string::String {
107 "udpa.annotations.FieldMigrateAnnotation".into()
108 }
109 fn type_url() -> ::prost::alloc::string::String {
110 "/udpa.annotations.FieldMigrateAnnotation".into()
111 }
112}
113#[derive(Clone, PartialEq, ::prost::Message)]
114pub struct FileMigrateAnnotation {
115 #[prost(string, tag = "2")]
118 pub move_to_package: ::prost::alloc::string::String,
119}
120impl ::prost::Name for FileMigrateAnnotation {
121 const NAME: &'static str = "FileMigrateAnnotation";
122 const PACKAGE: &'static str = "udpa.annotations";
123 fn full_name() -> ::prost::alloc::string::String {
124 "udpa.annotations.FileMigrateAnnotation".into()
125 }
126 fn type_url() -> ::prost::alloc::string::String {
127 "/udpa.annotations.FileMigrateAnnotation".into()
128 }
129}
130#[derive(Clone, Copy, PartialEq, ::prost::Message)]
133pub struct FieldSecurityAnnotation {
134 #[prost(bool, tag = "1")]
136 pub configure_for_untrusted_downstream: bool,
137 #[prost(bool, tag = "2")]
139 pub configure_for_untrusted_upstream: bool,
140}
141impl ::prost::Name for FieldSecurityAnnotation {
142 const NAME: &'static str = "FieldSecurityAnnotation";
143 const PACKAGE: &'static str = "udpa.annotations";
144 fn full_name() -> ::prost::alloc::string::String {
145 "udpa.annotations.FieldSecurityAnnotation".into()
146 }
147 fn type_url() -> ::prost::alloc::string::String {
148 "/udpa.annotations.FieldSecurityAnnotation".into()
149 }
150}