xds_api/generated/
xds.annotations.v3.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct FileStatusAnnotation {
4    /// The entity is work-in-progress and subject to breaking changes.
5    #[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    /// The entity is work-in-progress and subject to breaking changes.
21    #[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    /// The entity is work-in-progress and subject to breaking changes.
37    #[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    /// The entity is work-in-progress and subject to breaking changes.
53    #[prost(bool, tag = "1")]
54    pub work_in_progress: bool,
55    /// The entity belongs to a package with the given version status.
56    #[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 package version status.
73    Unknown = 0,
74    /// This version of the package is frozen.
75    Frozen = 1,
76    /// This version of the package is the active development version.
77    Active = 2,
78    /// This version of the package is the candidate for the next major version. It
79    /// is typically machine generated from the active development version.
80    NextMajorVersionCandidate = 3,
81}
82impl PackageVersionStatus {
83    /// String value of the enum field names used in the ProtoBuf definition.
84    ///
85    /// The values are not transformed in any way and thus are considered stable
86    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
87    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    /// Creates an enum from field names used in the ProtoBuf definition.
96    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}