// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "java-security-KeyRep_Type"))]
__jni_bindgen! {
    /// public enum [KeyRep.Type](https://developer.android.com/reference/java/security/KeyRep.Type.html)
    ///
    /// Required feature: java-security-KeyRep_Type
    public enum KeyRep_Type ("java/security/KeyRep$Type") extends crate::java::lang::Enum {

        /// [values](https://developer.android.com/reference/java/security/KeyRep.Type.html#values())
        ///
        /// Required features: "java-security-KeyRep_Type"
        #[cfg(any(feature = "all", all(feature = "java-security-KeyRep_Type")))]
        pub fn values<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::security::KeyRep_Type, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/KeyRep$Type", java.flags == PUBLIC | STATIC, .name == "values", .descriptor == "()[Ljava/security/KeyRep$Type;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/KeyRep$Type\0", "values\0", "()[Ljava/security/KeyRep$Type;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [valueOf](https://developer.android.com/reference/java/security/KeyRep.Type.html#valueOf(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-security-KeyRep_Type"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-KeyRep_Type")))]
        pub fn valueOf<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::KeyRep_Type>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/security/KeyRep$Type", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Ljava/security/KeyRep$Type;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/security/KeyRep$Type\0", "valueOf\0", "(Ljava/lang/String;)Ljava/security/KeyRep$Type;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        // // Not emitting: Non-public method
        // /// [Type](https://developer.android.com/reference/java/security/KeyRep.Type.html#Type(java.lang.String,%20int))
        // ///
        // /// Required features: "java-lang-String"
        // #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::KeyRep_Type>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
        //     // class.path == "java/security/KeyRep$Type", java.flags == PRIVATE, .name == "<init>", .descriptor == "(Ljava/lang/String;I)V"
        //     unsafe {
        //         let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/KeyRep$Type\0", "<init>\0", "(Ljava/lang/String;I)V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// **get** public static final [SECRET](https://developer.android.com/reference/java/security/KeyRep.Type.html#SECRET)
        ///
        /// Required feature: java-security-KeyRep_Type
        #[cfg(any(feature = "all", feature = "java-security-KeyRep_Type"))]
        pub fn SECRET<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::KeyRep_Type>> {
            unsafe {
                let (class, field) = env.require_class_static_field("java/security/KeyRep$Type\0", "SECRET\0", "Ljava/security/KeyRep$Type;\0");
                env.get_static_object_field(class, field)
            }
        }

        /// **get** public static final [PUBLIC](https://developer.android.com/reference/java/security/KeyRep.Type.html#PUBLIC)
        ///
        /// Required feature: java-security-KeyRep_Type
        #[cfg(any(feature = "all", feature = "java-security-KeyRep_Type"))]
        pub fn PUBLIC<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::KeyRep_Type>> {
            unsafe {
                let (class, field) = env.require_class_static_field("java/security/KeyRep$Type\0", "PUBLIC\0", "Ljava/security/KeyRep$Type;\0");
                env.get_static_object_field(class, field)
            }
        }

        /// **get** public static final [PRIVATE](https://developer.android.com/reference/java/security/KeyRep.Type.html#PRIVATE)
        ///
        /// Required feature: java-security-KeyRep_Type
        #[cfg(any(feature = "all", feature = "java-security-KeyRep_Type"))]
        pub fn PRIVATE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::KeyRep_Type>> {
            unsafe {
                let (class, field) = env.require_class_static_field("java/security/KeyRep$Type\0", "PRIVATE\0", "Ljava/security/KeyRep$Type;\0");
                env.get_static_object_field(class, field)
            }
        }

        // // Not emitting: Non-public field
        // // Not emitting: Failed to mangle field name: enum $VALUES
        // pub fn get_"$VALUES"<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::security::KeyRep_Type, crate::java::lang::Throwable>>> { ... }
    }
}
