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.
/// Log message which notifies about expired or close to
/// expiry certificates.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CertificatesExpiry {
    /// Number of reported certificates.
    #[prost(int64, tag = "1")]
    pub count: i64,
    /// Names of reported certificates. If there are too many, the list is sampled.
    #[prost(string, repeated, tag = "2")]
    pub certificates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// State of reported certificates.
    #[prost(enumeration = "certificates_expiry::State", tag = "3")]
    pub state: i32,
    /// Approximated expire time of reported certificates.
    /// Multiple certificates with close expire time are batched together in a
    /// single log, so the timestamp is not precise.
    #[prost(message, optional, tag = "4")]
    pub expire_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Nested message and enum types in `CertificatesExpiry`.
pub mod certificates_expiry {
    /// Expiration state of the certificate.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Unspecified state, should never be reported.
        Unspecified = 0,
        /// Certificate will expire soon.
        CloseToExpiry = 1,
        /// Certificate is expired.
        Expired = 2,
    }
    impl State {
        /// 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 {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::CloseToExpiry => "CLOSE_TO_EXPIRY",
                State::Expired => "EXPIRED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "CLOSE_TO_EXPIRY" => Some(Self::CloseToExpiry),
                "EXPIRED" => Some(Self::Expired),
                _ => None,
            }
        }
    }
}