#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Quantiles {
#[prost(double, tag = "1")]
pub q50: f64,
#[prost(double, tag = "2")]
pub q75: f64,
#[prost(double, tag = "3")]
pub q80: f64,
#[prost(double, tag = "4")]
pub q85: f64,
#[prost(double, tag = "5")]
pub q90: f64,
#[prost(double, tag = "6")]
pub q95: f64,
#[prost(double, tag = "7")]
pub q98: f64,
#[prost(double, tag = "8")]
pub q99: f64,
#[prost(double, tag = "9")]
pub q100: f64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum QuantileType {
Unspecified = 0,
QuantileType50 = 1,
QuantileType75 = 2,
QuantileType80 = 3,
QuantileType85 = 4,
QuantileType90 = 5,
QuantileType95 = 6,
QuantileType98 = 7,
QuantileType99 = 8,
QuantileType100 = 9,
}
impl QuantileType {
pub fn as_str_name(&self) -> &'static str {
match self {
QuantileType::Unspecified => "QUANTILE_TYPE_UNSPECIFIED",
QuantileType::QuantileType50 => "QUANTILE_TYPE_50",
QuantileType::QuantileType75 => "QUANTILE_TYPE_75",
QuantileType::QuantileType80 => "QUANTILE_TYPE_80",
QuantileType::QuantileType85 => "QUANTILE_TYPE_85",
QuantileType::QuantileType90 => "QUANTILE_TYPE_90",
QuantileType::QuantileType95 => "QUANTILE_TYPE_95",
QuantileType::QuantileType98 => "QUANTILE_TYPE_98",
QuantileType::QuantileType99 => "QUANTILE_TYPE_99",
QuantileType::QuantileType100 => "QUANTILE_TYPE_100",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"QUANTILE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"QUANTILE_TYPE_50" => Some(Self::QuantileType50),
"QUANTILE_TYPE_75" => Some(Self::QuantileType75),
"QUANTILE_TYPE_80" => Some(Self::QuantileType80),
"QUANTILE_TYPE_85" => Some(Self::QuantileType85),
"QUANTILE_TYPE_90" => Some(Self::QuantileType90),
"QUANTILE_TYPE_95" => Some(Self::QuantileType95),
"QUANTILE_TYPE_98" => Some(Self::QuantileType98),
"QUANTILE_TYPE_99" => Some(Self::QuantileType99),
"QUANTILE_TYPE_100" => Some(Self::QuantileType100),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Tag {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}