chore(health): Update generated code (#1207)

This commit is contained in:
tottoto
2022-12-21 05:06:40 +09:00
committed by GitHub
parent b45c5b5fa7
commit 204e8d05a7
@@ -44,6 +44,16 @@ pub mod health_check_response {
ServingStatus::ServiceUnknown => "SERVICE_UNKNOWN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"SERVING" => Some(Self::Serving),
"NOT_SERVING" => Some(Self::NotServing),
"SERVICE_UNKNOWN" => Some(Self::ServiceUnknown),
_ => None,
}
}
}
}
/// Generated client implementations.