1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// 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())
            }
        }

        /// [setIconResourceId](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setIconResourceId(int))
        ///
        /// Required features: "android-print-PrinterInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo_Builder")))]
        pub fn setIconResourceId<'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 == "setIconResourceId", .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", "setIconResourceId\0", "(I)Landroid/print/PrinterInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setHasCustomPrinterIcon](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setHasCustomPrinterIcon(boolean))
        ///
        /// Required features: "android-print-PrinterInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterInfo_Builder")))]
        pub fn setHasCustomPrinterIcon<'env>(&'env self, arg0: bool) -> __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 == "setHasCustomPrinterIcon", .descriptor == "(Z)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", "setHasCustomPrinterIcon\0", "(Z)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())
            }
        }

        /// [setInfoIntent](https://developer.android.com/reference/android/print/PrinterInfo.Builder.html#setInfoIntent(android.app.PendingIntent))
        ///
        /// Required features: "android-app-PendingIntent", "android-print-PrinterInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-app-PendingIntent", feature = "android-print-PrinterInfo_Builder")))]
        pub fn setInfoIntent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::PendingIntent>>) -> __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 == "setInfoIntent", .descriptor == "(Landroid/app/PendingIntent;)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", "setInfoIntent\0", "(Landroid/app/PendingIntent;)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())
            }
        }
    }
}