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 = "android-net-wifi-WifiConfiguration"))]
__jni_bindgen! {
    /// public class [WifiConfiguration](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html)
    ///
    /// Required feature: "android-net-wifi-WifiConfiguration"
    public class WifiConfiguration ("android/net/wifi/WifiConfiguration") extends crate::java::lang::Object, implements crate::android::os::Parcelable {

        /// [WifiConfiguration](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#WifiConfiguration())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::net::wifi::WifiConfiguration>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/wifi/WifiConfiguration", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/wifi/WifiConfiguration\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [toString](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#toString())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/wifi/WifiConfiguration", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/wifi/WifiConfiguration\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [describeContents](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#describeContents())
        pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/wifi/WifiConfiguration", java.flags == PUBLIC, .name == "describeContents", .descriptor == "()I"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/wifi/WifiConfiguration\0", "describeContents\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [writeToParcel](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#writeToParcel(android.os.Parcel,%20int))
        ///
        /// Required features: "android-os-Parcel"
        #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
        pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/wifi/WifiConfiguration", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/wifi/WifiConfiguration\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public [networkId](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#networkId)
        pub fn networkId<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "networkId\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [networkId](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#networkId)
        pub fn set_networkId<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "networkId\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [status](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#status)
        pub fn status<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "status\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [status](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#status)
        pub fn set_status<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "status\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [SSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#SSID)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn SSID<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "SSID\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [SSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#SSID)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_SSID<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "SSID\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [BSSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#BSSID)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn BSSID<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "BSSID\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [BSSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#BSSID)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_BSSID<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "BSSID\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [preSharedKey](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#preSharedKey)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn preSharedKey<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "preSharedKey\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [preSharedKey](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#preSharedKey)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_preSharedKey<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "preSharedKey\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [wepKeys](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#wepKeys)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn wepKeys<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "wepKeys\0", "[Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [wepKeys](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#wepKeys)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_wepKeys<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "wepKeys\0", "[Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [wepTxKeyIndex](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#wepTxKeyIndex)
        pub fn wepTxKeyIndex<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "wepTxKeyIndex\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [wepTxKeyIndex](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#wepTxKeyIndex)
        pub fn set_wepTxKeyIndex<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "wepTxKeyIndex\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [priority](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#priority)
        pub fn priority<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "priority\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [priority](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#priority)
        pub fn set_priority<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "priority\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [hiddenSSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#hiddenSSID)
        pub fn hiddenSSID<'env>(&'env self) -> bool {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "hiddenSSID\0", "Z\0");
                env.get_boolean_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [hiddenSSID](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#hiddenSSID)
        pub fn set_hiddenSSID<'env>(&'env self, value: bool) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "hiddenSSID\0", "Z\0");
                env.set_boolean_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [allowedKeyManagement](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedKeyManagement)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn allowedKeyManagement<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::BitSet>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedKeyManagement\0", "Ljava/util/BitSet;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [allowedKeyManagement](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedKeyManagement)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn set_allowedKeyManagement<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::util::BitSet>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedKeyManagement\0", "Ljava/util/BitSet;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [allowedProtocols](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedProtocols)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn allowedProtocols<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::BitSet>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedProtocols\0", "Ljava/util/BitSet;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [allowedProtocols](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedProtocols)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn set_allowedProtocols<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::util::BitSet>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedProtocols\0", "Ljava/util/BitSet;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [allowedAuthAlgorithms](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedAuthAlgorithms)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn allowedAuthAlgorithms<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::BitSet>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedAuthAlgorithms\0", "Ljava/util/BitSet;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [allowedAuthAlgorithms](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedAuthAlgorithms)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn set_allowedAuthAlgorithms<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::util::BitSet>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedAuthAlgorithms\0", "Ljava/util/BitSet;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [allowedPairwiseCiphers](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedPairwiseCiphers)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn allowedPairwiseCiphers<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::BitSet>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedPairwiseCiphers\0", "Ljava/util/BitSet;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [allowedPairwiseCiphers](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedPairwiseCiphers)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn set_allowedPairwiseCiphers<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::util::BitSet>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedPairwiseCiphers\0", "Ljava/util/BitSet;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [allowedGroupCiphers](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedGroupCiphers)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn allowedGroupCiphers<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::BitSet>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedGroupCiphers\0", "Ljava/util/BitSet;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [allowedGroupCiphers](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.html#allowedGroupCiphers)
        ///
        /// Required feature: "java-util-BitSet"
        #[cfg(any(feature = "all", feature = "java-util-BitSet"))]
        pub fn set_allowedGroupCiphers<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::util::BitSet>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/wifi/WifiConfiguration\0", "allowedGroupCiphers\0", "Ljava/util/BitSet;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }
    }
}