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
150
151
152
153
154
155
156
157
158
159
160
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-service-autofill-SaveInfo_Builder"))]
__jni_bindgen! {
    /// public final class [SaveInfo.Builder](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder.html)
    ///
    /// Required feature: "android-service-autofill-SaveInfo_Builder"
    public final class SaveInfo_Builder ("android/service/autofill/SaveInfo$Builder") extends crate::java::lang::Object {

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

        /// [Builder](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder.html#Builder(int))
        pub fn new_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::service::autofill::SaveInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/autofill/SaveInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/SaveInfo$Builder\0", "<init>\0", "(I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// [setNegativeAction](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder.html#setNegativeAction(int,%20android.content.IntentSender))
        ///
        /// Required features: "android-content-IntentSender", "android-service-autofill-SaveInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-content-IntentSender", feature = "android-service-autofill-SaveInfo_Builder")))]
        pub fn setNegativeAction<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::IntentSender>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::autofill::SaveInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/autofill/SaveInfo$Builder", java.flags == PUBLIC, .name == "setNegativeAction", .descriptor == "(ILandroid/content/IntentSender;)Landroid/service/autofill/SaveInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/SaveInfo$Builder\0", "setNegativeAction\0", "(ILandroid/content/IntentSender;)Landroid/service/autofill/SaveInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [addSanitizer](https://developer.android.com/reference/android/service/autofill/SaveInfo.Builder.html#addSanitizer(android.service.autofill.Sanitizer,%20android.view.autofill.AutofillId...))
        ///
        /// Required features: "android-service-autofill-Sanitizer", "android-service-autofill-SaveInfo_Builder", "android-view-autofill-AutofillId"
        #[cfg(any(feature = "all", all(feature = "android-service-autofill-Sanitizer", feature = "android-service-autofill-SaveInfo_Builder", feature = "android-view-autofill-AutofillId")))]
        pub fn addSanitizer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::service::autofill::Sanitizer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::android::view::autofill::AutofillId, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::autofill::SaveInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/autofill/SaveInfo$Builder", java.flags == PUBLIC | VARARGS, .name == "addSanitizer", .descriptor == "(Landroid/service/autofill/Sanitizer;[Landroid/view/autofill/AutofillId;)Landroid/service/autofill/SaveInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/SaveInfo$Builder\0", "addSanitizer\0", "(Landroid/service/autofill/Sanitizer;[Landroid/view/autofill/AutofillId;)Landroid/service/autofill/SaveInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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