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
68
69
// This file is @generated by prost-build.
/// ExportStatusLog is used in a log entry to represent the status of a given
/// BigQuery export job from Google Analytics. Typically, it is sent at the
/// beginning of the day to indicate the completion of the previous day's export.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ExportStatusLog {
/// The date of the export. Usually set to the collection date (YYYYMMDD).
#[prost(string, tag = "1")]
pub export_date: ::prost::alloc::string::String,
/// The status of the export.
#[prost(enumeration = "export_status_log::Status", tag = "2")]
pub status: i32,
/// The number of events exported, may include events not eligible for SLA.
#[prost(int64, tag = "3")]
pub event_count: i64,
/// Additional information associated with the status.
#[prost(string, tag = "4")]
pub message: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ExportStatusLog`.
pub mod export_status_log {
/// The status of the export.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// The export status is unknown.
Unknown = 0,
/// The export completed and data is complete.
Complete = 1,
/// The export completed but data is incomplete.
Incomplete = 2,
/// The export failed.
Failed = 3,
}
impl Status {
/// 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 {
Self::Unknown => "UNKNOWN",
Self::Complete => "COMPLETE",
Self::Incomplete => "INCOMPLETE",
Self::Failed => "FAILED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"COMPLETE" => Some(Self::Complete),
"INCOMPLETE" => Some(Self::Incomplete),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}