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-print-PrinterInfo_Builder"))]
__jni_bindgen! {
    /// public final class [PrinterInfo.Builder](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html)
    ///
    /// Required feature: "android-print-PrinterInfo_Builder"
    public final class PrinterInfo_Builder ("android/print/PrinterInfo$Builder") extends crate::java::lang::Object {

        /// [Builder](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#Builder(android.print.PrinterId,%20java.lang.String,%20int))
        ///
        /// Required features: "android-print-PrinterId", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterId", feature = "java-lang-String")))]
        pub fn new_PrinterId_String_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::print::PrinterId>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::print::PrinterInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/print/PrinterId;Ljava/lang/String;I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/print/PrinterInfo$Builder\0", "<init>\0", "(Landroid/print/PrinterId;Ljava/lang/String;I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [Builder](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#Builder(android.print.PrinterInfo))
        ///
        /// Required features: "android-print-PrinterInfo"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo")))]
        pub fn new_PrinterInfo<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::print::PrinterInfo>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::print::PrinterInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/print/PrinterInfo;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/print/PrinterInfo$Builder\0", "<init>\0", "(Landroid/print/PrinterInfo;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setStatus](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setStatus(int))
        ///
        /// Required features: "android-print-PrinterInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo_Builder")))]
        pub fn setStatus<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::print::PrinterInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "setStatus", .descriptor == "(I)Landroid/print/PrinterInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/print/PrinterInfo$Builder\0", "setStatus\0", "(I)Landroid/print/PrinterInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setName](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setName(java.lang.String))
        ///
        /// Required features: "android-print-PrinterInfo_Builder", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo_Builder", feature = "java-lang-String")))]
        pub fn setName<'env>(&'env self, 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::android::print::PrinterInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "setName", .descriptor == "(Ljava/lang/String;)Landroid/print/PrinterInfo$Builder;"
            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("android/print/PrinterInfo$Builder\0", "setName\0", "(Ljava/lang/String;)Landroid/print/PrinterInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setDescription](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setDescription(java.lang.String))
        ///
        /// Required features: "android-print-PrinterInfo_Builder", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo_Builder", feature = "java-lang-String")))]
        pub fn setDescription<'env>(&'env self, 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::android::print::PrinterInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "setDescription", .descriptor == "(Ljava/lang/String;)Landroid/print/PrinterInfo$Builder;"
            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("android/print/PrinterInfo$Builder\0", "setDescription\0", "(Ljava/lang/String;)Landroid/print/PrinterInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCapabilities](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setCapabilities(android.print.PrinterCapabilitiesInfo))
        ///
        /// Required features: "android-print-PrinterCapabilitiesInfo", "android-print-PrinterInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterCapabilitiesInfo", feature = "android-print-PrinterInfo_Builder")))]
        pub fn setCapabilities<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::print::PrinterCapabilitiesInfo>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::print::PrinterInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/print/PrinterInfo$Builder", java.flags == PUBLIC, .name == "setCapabilities", .descriptor == "(Landroid/print/PrinterCapabilitiesInfo;)Landroid/print/PrinterInfo$Builder;"
            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("android/print/PrinterInfo$Builder\0", "setCapabilities\0", "(Landroid/print/PrinterCapabilitiesInfo;)Landroid/print/PrinterInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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