jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "java-net-StandardProtocolFamily"))]
__jni_bindgen! {
    /// public enum [StandardProtocolFamily](https://developer.android.com/reference/java/net/StandardProtocolFamily.html)
    ///
    /// Required feature: "java-net-StandardProtocolFamily"
    public enum StandardProtocolFamily ("java/net/StandardProtocolFamily") extends crate::java::lang::Enum, implements crate::java::net::ProtocolFamily {

        /// [values](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#values())
        ///
        /// Required features: "java-net-StandardProtocolFamily"
        #[cfg(any(feature = "all", all(feature = "java-net-StandardProtocolFamily")))]
        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::net::StandardProtocolFamily, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/StandardProtocolFamily", java.flags == PUBLIC | STATIC, .name == "values", .descriptor == "()[Ljava/net/StandardProtocolFamily;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/StandardProtocolFamily\0", "values\0", "()[Ljava/net/StandardProtocolFamily;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [valueOf](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#valueOf(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-net-StandardProtocolFamily"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-StandardProtocolFamily")))]
        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::net::StandardProtocolFamily>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/StandardProtocolFamily", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Ljava/net/StandardProtocolFamily;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/StandardProtocolFamily\0", "valueOf\0", "(Ljava/lang/String;)Ljava/net/StandardProtocolFamily;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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