envoy_types/generated/
xds.annotations.v3.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, PartialEq, Eq, Hash, ::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}
8#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
9pub struct MessageStatusAnnotation {
10    /// The entity is work-in-progress and subject to breaking changes.
11    #[prost(bool, tag = "1")]
12    pub work_in_progress: bool,
13}
14#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
15pub struct FieldStatusAnnotation {
16    /// The entity is work-in-progress and subject to breaking changes.
17    #[prost(bool, tag = "1")]
18    pub work_in_progress: bool,
19}
20#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
21pub struct StatusAnnotation {
22    /// The entity is work-in-progress and subject to breaking changes.
23    #[prost(bool, tag = "1")]
24    pub work_in_progress: bool,
25    /// The entity belongs to a package with the given version status.
26    #[prost(enumeration = "PackageVersionStatus", tag = "2")]
27    pub package_version_status: i32,
28}
29#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
30#[repr(i32)]
31pub enum PackageVersionStatus {
32    /// Unknown package version status.
33    Unknown = 0,
34    /// This version of the package is frozen.
35    Frozen = 1,
36    /// This version of the package is the active development version.
37    Active = 2,
38    /// This version of the package is the candidate for the next major version. It
39    /// is typically machine generated from the active development version.
40    NextMajorVersionCandidate = 3,
41}
42impl PackageVersionStatus {
43    /// String value of the enum field names used in the ProtoBuf definition.
44    ///
45    /// The values are not transformed in any way and thus are considered stable
46    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
47    pub fn as_str_name(&self) -> &'static str {
48        match self {
49            Self::Unknown => "UNKNOWN",
50            Self::Frozen => "FROZEN",
51            Self::Active => "ACTIVE",
52            Self::NextMajorVersionCandidate => "NEXT_MAJOR_VERSION_CANDIDATE",
53        }
54    }
55    /// Creates an enum from field names used in the ProtoBuf definition.
56    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
57        match value {
58            "UNKNOWN" => Some(Self::Unknown),
59            "FROZEN" => Some(Self::Frozen),
60            "ACTIVE" => Some(Self::Active),
61            "NEXT_MAJOR_VERSION_CANDIDATE" => Some(Self::NextMajorVersionCandidate),
62            _ => None,
63        }
64    }
65}