1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This file is @generated by prost-build.
/// An event signifying a Compute Engine resource is impacted by the disaster
/// recovery.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisasterRecoveryEvent {
    /// The severity level.
    #[prost(enumeration = "disaster_recovery_event::Severity", optional, tag = "1")]
    pub severity: ::core::option::Option<i32>,
    /// Details about the impact on the Compute Engine resource, e.g. "the resource
    /// is deleted during the disaster recovery".
    #[prost(string, optional, tag = "2")]
    pub details: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `DisasterRecoveryEvent`.
pub mod disaster_recovery_event {
    /// The severity of the disaster recovery event.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Severity {
        /// Unspecified.
        Unspecified = 0,
        /// The Compute Engine resource is broken. A person must take an action.
        ActionRequired = 1,
        /// The Compute Engine resource is functioning. A change was applied to the
        /// resource during disaster recovery. Please take action to review
        /// the change to avoid unexpected problems.
        ActionSuggested = 2,
        /// Normal maintenance opeartions during disaster recovery, such as start up,
        /// shut down.
        Notice = 3,
    }
    impl Severity {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Severity::Unspecified => "SEVERITY_UNSPECIFIED",
                Severity::ActionRequired => "ACTION_REQUIRED",
                Severity::ActionSuggested => "ACTION_SUGGESTED",
                Severity::Notice => "NOTICE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SEVERITY_UNSPECIFIED" => Some(Self::Unspecified),
                "ACTION_REQUIRED" => Some(Self::ActionRequired),
                "ACTION_SUGGESTED" => Some(Self::ActionSuggested),
                "NOTICE" => Some(Self::Notice),
                _ => None,
            }
        }
    }
}