#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterfaceDescriptor {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScalarDescriptor {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "ScalarType", repeated, tag = "3")]
pub field_type: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScalarType {
Unspecified = 0,
String = 1,
Bytes = 2,
}
impl ScalarType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCALAR_TYPE_UNSPECIFIED",
Self::String => "SCALAR_TYPE_STRING",
Self::Bytes => "SCALAR_TYPE_BYTES",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCALAR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SCALAR_TYPE_STRING" => Some(Self::String),
"SCALAR_TYPE_BYTES" => Some(Self::Bytes),
_ => None,
}
}
}