// This file is @generated by prost-build.
#[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 {
    /// 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::Unspecified => "WEAK_TIMESTAMP_TYPE_UNSPECIFIED",
            Self::Absolute => "ABSOLUTE",
            Self::Relative => "RELATIVE",
            Self::Pending => "PENDING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    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,
        }
    }
}
