googleapis_tonic_google_analytics_cloud/vec_u8_hash_map/
google.analytics.cloud.rs

1// This file is @generated by prost-build.
2/// ExportStatusLog is used in a log entry to represent the status of a given
3/// BigQuery export job from Google Analytics. Typically, it is sent at the
4/// beginning of the day to indicate the completion of the previous day's export.
5#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6pub struct ExportStatusLog {
7    /// The date of the export. Usually set to the collection date (YYYYMMDD).
8    #[prost(string, tag = "1")]
9    pub export_date: ::prost::alloc::string::String,
10    /// The status of the export.
11    #[prost(enumeration = "export_status_log::Status", tag = "2")]
12    pub status: i32,
13    /// The number of events exported, may include events not eligible for SLA.
14    #[prost(int64, tag = "3")]
15    pub event_count: i64,
16    /// Additional information associated with the status.
17    #[prost(string, tag = "4")]
18    pub message: ::prost::alloc::string::String,
19}
20/// Nested message and enum types in `ExportStatusLog`.
21pub mod export_status_log {
22    /// The status of the export.
23    #[derive(
24        Clone,
25        Copy,
26        Debug,
27        PartialEq,
28        Eq,
29        Hash,
30        PartialOrd,
31        Ord,
32        ::prost::Enumeration
33    )]
34    #[repr(i32)]
35    pub enum Status {
36        /// The export status is unknown.
37        Unknown = 0,
38        /// The export completed and data is complete.
39        Complete = 1,
40        /// The export completed but data is incomplete.
41        Incomplete = 2,
42        /// The export failed.
43        Failed = 3,
44    }
45    impl Status {
46        /// String value of the enum field names used in the ProtoBuf definition.
47        ///
48        /// The values are not transformed in any way and thus are considered stable
49        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
50        pub fn as_str_name(&self) -> &'static str {
51            match self {
52                Self::Unknown => "UNKNOWN",
53                Self::Complete => "COMPLETE",
54                Self::Incomplete => "INCOMPLETE",
55                Self::Failed => "FAILED",
56            }
57        }
58        /// Creates an enum from field names used in the ProtoBuf definition.
59        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
60            match value {
61                "UNKNOWN" => Some(Self::Unknown),
62                "COMPLETE" => Some(Self::Complete),
63                "INCOMPLETE" => Some(Self::Incomplete),
64                "FAILED" => Some(Self::Failed),
65                _ => None,
66            }
67        }
68    }
69}