// This file is @generated by prost-build.
/// Enum for Execution Providers
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExecutionProvider {
    TensorRt = 0,
    Cuda = 1,
    DirectMl = 2,
    CoreMl = 3,
}
impl ExecutionProvider {
    /// 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::TensorRt => "TENSOR_RT",
            Self::Cuda => "CUDA",
            Self::DirectMl => "DIRECT_ML",
            Self::CoreMl => "CORE_ML",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "TENSOR_RT" => Some(Self::TensorRt),
            "CUDA" => Some(Self::Cuda),
            "DIRECT_ML" => Some(Self::DirectMl),
            "CORE_ML" => Some(Self::CoreMl),
            _ => None,
        }
    }
}
