// This file is @generated by prost-build.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SeriesDataType {
    Unspecified = 0,
    Double = 1,
    String = 2,
    Log = 3,
    Int = 4,
}
impl SeriesDataType {
    /// 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 => "SERIES_DATA_TYPE_UNSPECIFIED",
            Self::Double => "DOUBLE",
            Self::String => "STRING",
            Self::Log => "LOG",
            Self::Int => "INT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SERIES_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "DOUBLE" => Some(Self::Double),
            "STRING" => Some(Self::String),
            "LOG" => Some(Self::Log),
            "INT" => Some(Self::Int),
            _ => None,
        }
    }
}
