// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Starpoles {
    #[prost(enumeration = "MessageType", tag = "1")]
    pub r#type: i32,
    #[prost(string, tag = "2")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MessageType {
    Trace = 0,
    Debug = 1,
    Info = 2,
    Warning = 3,
    Error = 4,
}
impl MessageType {
    /// 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::Trace => "MESSAGE_TYPE_TRACE",
            Self::Debug => "MESSAGE_TYPE_DEBUG",
            Self::Info => "MESSAGE_TYPE_INFO",
            Self::Warning => "MESSAGE_TYPE_WARNING",
            Self::Error => "MESSAGE_TYPE_ERROR",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "MESSAGE_TYPE_TRACE" => Some(Self::Trace),
            "MESSAGE_TYPE_DEBUG" => Some(Self::Debug),
            "MESSAGE_TYPE_INFO" => Some(Self::Info),
            "MESSAGE_TYPE_WARNING" => Some(Self::Warning),
            "MESSAGE_TYPE_ERROR" => Some(Self::Error),
            _ => None,
        }
    }
}
