#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(message, optional, tag = "1")]
pub time: ::core::option::Option<super::vttime::Time>,
#[prost(enumeration = "Level", tag = "2")]
pub level: i32,
#[prost(string, tag = "3")]
pub file: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
pub line: i64,
#[prost(string, tag = "5")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Level {
Info = 0,
Warning = 1,
Error = 2,
Console = 3,
}
impl Level {
pub fn as_str_name(&self) -> &'static str {
match self {
Level::Info => "INFO",
Level::Warning => "WARNING",
Level::Error => "ERROR",
Level::Console => "CONSOLE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INFO" => Some(Self::Info),
"WARNING" => Some(Self::Warning),
"ERROR" => Some(Self::Error),
"CONSOLE" => Some(Self::Console),
_ => None,
}
}
}