Skip to main content

megacommerce_proto/envoy/
udpa.annotations.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct StatusAnnotation {
4    /// The entity is work-in-progress and subject to breaking changes.
5    #[prost(bool, tag = "1")]
6    pub work_in_progress: bool,
7    /// The entity belongs to a package with the given version status.
8    #[prost(enumeration = "PackageVersionStatus", tag = "2")]
9    pub package_version_status: i32,
10}
11#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
12#[repr(i32)]
13pub enum PackageVersionStatus {
14    /// Unknown package version status.
15    Unknown = 0,
16    /// This version of the package is frozen.
17    Frozen = 1,
18    /// This version of the package is the active development version.
19    Active = 2,
20    /// This version of the package is the candidate for the next major version. It
21    /// is typically machine generated from the active development version.
22    NextMajorVersionCandidate = 3,
23}
24impl PackageVersionStatus {
25    /// String value of the enum field names used in the ProtoBuf definition.
26    ///
27    /// The values are not transformed in any way and thus are considered stable
28    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
29    pub fn as_str_name(&self) -> &'static str {
30        match self {
31            Self::Unknown => "UNKNOWN",
32            Self::Frozen => "FROZEN",
33            Self::Active => "ACTIVE",
34            Self::NextMajorVersionCandidate => "NEXT_MAJOR_VERSION_CANDIDATE",
35        }
36    }
37    /// Creates an enum from field names used in the ProtoBuf definition.
38    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
39        match value {
40            "UNKNOWN" => Some(Self::Unknown),
41            "FROZEN" => Some(Self::Frozen),
42            "ACTIVE" => Some(Self::Active),
43            "NEXT_MAJOR_VERSION_CANDIDATE" => Some(Self::NextMajorVersionCandidate),
44            _ => None,
45        }
46    }
47}
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct VersioningAnnotation {
50    /// Track the previous message type. E.g. this message might be
51    /// udpa.foo.v3alpha.Foo and it was previously udpa.bar.v2.Bar. This
52    /// information is consumed by UDPA via proto descriptors.
53    #[prost(string, tag = "1")]
54    pub previous_message_type: ::prost::alloc::string::String,
55}
56#[derive(Clone, PartialEq, ::prost::Message)]
57pub struct MigrateAnnotation {
58    /// Rename the message/enum/enum value in next version.
59    #[prost(string, tag = "1")]
60    pub rename: ::prost::alloc::string::String,
61}
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct FieldMigrateAnnotation {
64    /// Rename the field in next version.
65    #[prost(string, tag = "1")]
66    pub rename: ::prost::alloc::string::String,
67    /// Add the field to a named oneof in next version. If this already exists, the
68    /// field will join its siblings under the oneof, otherwise a new oneof will be
69    /// created with the given name.
70    #[prost(string, tag = "2")]
71    pub oneof_promotion: ::prost::alloc::string::String,
72}
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct FileMigrateAnnotation {
75    /// Move all types in the file to another package, this implies changing proto
76    /// file path.
77    #[prost(string, tag = "2")]
78    pub move_to_package: ::prost::alloc::string::String,
79}