xds_api/generated/
xds.annotations.v3.rs1#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct FileStatusAnnotation {
4 #[prost(bool, tag = "1")]
6 pub work_in_progress: bool,
7}
8impl ::prost::Name for FileStatusAnnotation {
9 const NAME: &'static str = "FileStatusAnnotation";
10 const PACKAGE: &'static str = "xds.annotations.v3";
11 fn full_name() -> ::prost::alloc::string::String {
12 "xds.annotations.v3.FileStatusAnnotation".into()
13 }
14 fn type_url() -> ::prost::alloc::string::String {
15 "/xds.annotations.v3.FileStatusAnnotation".into()
16 }
17}
18#[derive(Clone, Copy, PartialEq, ::prost::Message)]
19pub struct MessageStatusAnnotation {
20 #[prost(bool, tag = "1")]
22 pub work_in_progress: bool,
23}
24impl ::prost::Name for MessageStatusAnnotation {
25 const NAME: &'static str = "MessageStatusAnnotation";
26 const PACKAGE: &'static str = "xds.annotations.v3";
27 fn full_name() -> ::prost::alloc::string::String {
28 "xds.annotations.v3.MessageStatusAnnotation".into()
29 }
30 fn type_url() -> ::prost::alloc::string::String {
31 "/xds.annotations.v3.MessageStatusAnnotation".into()
32 }
33}
34#[derive(Clone, Copy, PartialEq, ::prost::Message)]
35pub struct FieldStatusAnnotation {
36 #[prost(bool, tag = "1")]
38 pub work_in_progress: bool,
39}
40impl ::prost::Name for FieldStatusAnnotation {
41 const NAME: &'static str = "FieldStatusAnnotation";
42 const PACKAGE: &'static str = "xds.annotations.v3";
43 fn full_name() -> ::prost::alloc::string::String {
44 "xds.annotations.v3.FieldStatusAnnotation".into()
45 }
46 fn type_url() -> ::prost::alloc::string::String {
47 "/xds.annotations.v3.FieldStatusAnnotation".into()
48 }
49}
50#[derive(Clone, Copy, PartialEq, ::prost::Message)]
51pub struct StatusAnnotation {
52 #[prost(bool, tag = "1")]
54 pub work_in_progress: bool,
55 #[prost(enumeration = "PackageVersionStatus", tag = "2")]
57 pub package_version_status: i32,
58}
59impl ::prost::Name for StatusAnnotation {
60 const NAME: &'static str = "StatusAnnotation";
61 const PACKAGE: &'static str = "xds.annotations.v3";
62 fn full_name() -> ::prost::alloc::string::String {
63 "xds.annotations.v3.StatusAnnotation".into()
64 }
65 fn type_url() -> ::prost::alloc::string::String {
66 "/xds.annotations.v3.StatusAnnotation".into()
67 }
68}
69#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
70#[repr(i32)]
71pub enum PackageVersionStatus {
72 Unknown = 0,
74 Frozen = 1,
76 Active = 2,
78 NextMajorVersionCandidate = 3,
81}
82impl PackageVersionStatus {
83 pub fn as_str_name(&self) -> &'static str {
88 match self {
89 Self::Unknown => "UNKNOWN",
90 Self::Frozen => "FROZEN",
91 Self::Active => "ACTIVE",
92 Self::NextMajorVersionCandidate => "NEXT_MAJOR_VERSION_CANDIDATE",
93 }
94 }
95 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
97 match value {
98 "UNKNOWN" => Some(Self::Unknown),
99 "FROZEN" => Some(Self::Frozen),
100 "ACTIVE" => Some(Self::Active),
101 "NEXT_MAJOR_VERSION_CANDIDATE" => Some(Self::NextMajorVersionCandidate),
102 _ => None,
103 }
104 }
105}