#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Unit {
#[prost(string, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "2")]
pub symbol: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UtcTimestamp {
#[prost(int64, tag = "1")]
pub seconds_since_epoch: i64,
#[prost(int64, optional, tag = "2")]
pub offset_nanoseconds: ::core::option::Option<i64>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WeakTimestampType {
Unspecified = 0,
Absolute = 1,
Relative = 2,
Pending = 3,
}
impl WeakTimestampType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "WEAK_TIMESTAMP_TYPE_UNSPECIFIED",
Self::Absolute => "ABSOLUTE",
Self::Relative => "RELATIVE",
Self::Pending => "PENDING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"WEAK_TIMESTAMP_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ABSOLUTE" => Some(Self::Absolute),
"RELATIVE" => Some(Self::Relative),
"PENDING" => Some(Self::Pending),
_ => None,
}
}
}