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-renderscript-Mesh_AllocationBuilder"))]
__jni_bindgen! {
    /// public class [Mesh.AllocationBuilder](https://developer.android.com/reference/android/renderscript/Mesh.AllocationBuilder.html)
    ///
    /// Required feature: "android-renderscript-Mesh_AllocationBuilder"
    public class Mesh_AllocationBuilder ("android/renderscript/Mesh$AllocationBuilder") extends crate::java::lang::Object {

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

        /// [getCurrentVertexTypeIndex](https://developer.android.com/reference/android/renderscript/Mesh.AllocationBuilder.html#getCurrentVertexTypeIndex())
        pub fn getCurrentVertexTypeIndex<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/Mesh$AllocationBuilder", java.flags == PUBLIC, .name == "getCurrentVertexTypeIndex", .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/renderscript/Mesh$AllocationBuilder\0", "getCurrentVertexTypeIndex\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCurrentIndexSetIndex](https://developer.android.com/reference/android/renderscript/Mesh.AllocationBuilder.html#getCurrentIndexSetIndex())
        pub fn getCurrentIndexSetIndex<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/Mesh$AllocationBuilder", java.flags == PUBLIC, .name == "getCurrentIndexSetIndex", .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/renderscript/Mesh$AllocationBuilder\0", "getCurrentIndexSetIndex\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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