nominal-api-proto 0.1484.0

Protobuf/gRPC API bindings for the Nominal platform
Documentation
// This file is @generated by prost-build.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SeriesDataType {
    Unspecified = 0,
    Double = 1,
    String = 2,
    Log = 3,
    Int = 4,
    Uint = 5,
    DoubleArray = 6,
    StringArray = 7,
    Struct = 8,
    Video = 9,
    Spatial = 10,
}
impl SeriesDataType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SERIES_DATA_TYPE_UNSPECIFIED",
            Self::Double => "DOUBLE",
            Self::String => "STRING",
            Self::Log => "LOG",
            Self::Int => "INT",
            Self::Uint => "UINT",
            Self::DoubleArray => "DOUBLE_ARRAY",
            Self::StringArray => "STRING_ARRAY",
            Self::Struct => "STRUCT",
            Self::Video => "VIDEO",
            Self::Spatial => "SPATIAL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SERIES_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "DOUBLE" => Some(Self::Double),
            "STRING" => Some(Self::String),
            "LOG" => Some(Self::Log),
            "INT" => Some(Self::Int),
            "UINT" => Some(Self::Uint),
            "DOUBLE_ARRAY" => Some(Self::DoubleArray),
            "STRING_ARRAY" => Some(Self::StringArray),
            "STRUCT" => Some(Self::Struct),
            "VIDEO" => Some(Self::Video),
            "SPATIAL" => Some(Self::Spatial),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChannelKind {
    Unspecified = 0,
    Standard = 1,
    Command = 2,
}
impl ChannelKind {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "CHANNEL_KIND_UNSPECIFIED",
            Self::Standard => "CHANNEL_KIND_STANDARD",
            Self::Command => "CHANNEL_KIND_COMMAND",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CHANNEL_KIND_UNSPECIFIED" => Some(Self::Unspecified),
            "CHANNEL_KIND_STANDARD" => Some(Self::Standard),
            "CHANNEL_KIND_COMMAND" => Some(Self::Command),
            _ => None,
        }
    }
}