#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeatureSpec {
#[prost(string, tag = "1")]
pub config_membership: ::prost::alloc::string::String,
#[prost(enumeration = "Billing", tag = "2")]
pub billing: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Billing {
Unspecified = 0,
PayAsYouGo = 1,
AnthosLicense = 2,
}
impl Billing {
pub fn as_str_name(&self) -> &'static str {
match self {
Billing::Unspecified => "BILLING_UNSPECIFIED",
Billing::PayAsYouGo => "PAY_AS_YOU_GO",
Billing::AnthosLicense => "ANTHOS_LICENSE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"BILLING_UNSPECIFIED" => Some(Self::Unspecified),
"PAY_AS_YOU_GO" => Some(Self::PayAsYouGo),
"ANTHOS_LICENSE" => Some(Self::AnthosLicense),
_ => None,
}
}
}