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 = "org-apache-http-auth-AuthState"))]
__jni_bindgen! {
    /// public class [AuthState](https://developer.android.com/reference/org/apache/http/auth/AuthState.html)
    ///
    /// Required feature: "org-apache-http-auth-AuthState"
    #[deprecated] public class AuthState ("org/apache/http/auth/AuthState") extends crate::java::lang::Object {

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

        /// [invalidate](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#invalidate())
        pub fn invalidate<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "invalidate", .descriptor == "()V"
            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("org/apache/http/auth/AuthState\0", "invalidate\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isValid](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#isValid())
        pub fn isValid<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "isValid", .descriptor == "()Z"
            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("org/apache/http/auth/AuthState\0", "isValid\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setAuthScheme](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#setAuthScheme(org.apache.http.auth.AuthScheme))
        ///
        /// Required features: "org-apache-http-auth-AuthScheme"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScheme")))]
        pub fn setAuthScheme<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::AuthScheme>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "setAuthScheme", .descriptor == "(Lorg/apache/http/auth/AuthScheme;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/auth/AuthState\0", "setAuthScheme\0", "(Lorg/apache/http/auth/AuthScheme;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAuthScheme](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#getAuthScheme())
        ///
        /// Required features: "org-apache-http-auth-AuthScheme"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScheme")))]
        pub fn getAuthScheme<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::auth::AuthScheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "getAuthScheme", .descriptor == "()Lorg/apache/http/auth/AuthScheme;"
            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("org/apache/http/auth/AuthState\0", "getAuthScheme\0", "()Lorg/apache/http/auth/AuthScheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCredentials](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#getCredentials())
        ///
        /// Required features: "org-apache-http-auth-Credentials"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-Credentials")))]
        pub fn getCredentials<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::auth::Credentials>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "getCredentials", .descriptor == "()Lorg/apache/http/auth/Credentials;"
            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("org/apache/http/auth/AuthState\0", "getCredentials\0", "()Lorg/apache/http/auth/Credentials;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCredentials](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#setCredentials(org.apache.http.auth.Credentials))
        ///
        /// Required features: "org-apache-http-auth-Credentials"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-Credentials")))]
        pub fn setCredentials<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::Credentials>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "setCredentials", .descriptor == "(Lorg/apache/http/auth/Credentials;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/auth/AuthState\0", "setCredentials\0", "(Lorg/apache/http/auth/Credentials;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAuthScope](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#getAuthScope())
        ///
        /// Required features: "org-apache-http-auth-AuthScope"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScope")))]
        pub fn getAuthScope<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::auth::AuthScope>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "getAuthScope", .descriptor == "()Lorg/apache/http/auth/AuthScope;"
            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("org/apache/http/auth/AuthState\0", "getAuthScope\0", "()Lorg/apache/http/auth/AuthScope;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setAuthScope](https://developer.android.com/reference/org/apache/http/auth/AuthState.html#setAuthScope(org.apache.http.auth.AuthScope))
        ///
        /// Required features: "org-apache-http-auth-AuthScope"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-auth-AuthScope")))]
        pub fn setAuthScope<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::AuthScope>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthState", java.flags == PUBLIC, .name == "setAuthScope", .descriptor == "(Lorg/apache/http/auth/AuthScope;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/auth/AuthState\0", "setAuthScope\0", "(Lorg/apache/http/auth/AuthScope;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [toString](https://developer.android.com/reference/org/apache/http/auth/AuthState.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 == "org/apache/http/auth/AuthState", 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("org/apache/http/auth/AuthState\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}