static IntPtr n_SetShouldInvokedWithMode_Lcom_instabug_library_invocation_InstabugInvocationMode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Instabug.Library.Invocation.InvocationParams       __this = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.Invocation.InvocationParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Instabug.Library.Invocation.InstabugInvocationMode p0     = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.Invocation.InstabugInvocationMode> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetShouldInvokedWithMode(p0));

            return(__ret);
        }
        public static unsafe global::Com.Instabug.Library.Invocation.InstabugInvocationMode ValueOf(string p0)
        {
            if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/instabug/library/invocation/InstabugInvocationMode;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Instabug.Library.Invocation.InstabugInvocationMode __ret = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.Invocation.InstabugInvocationMode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
        public virtual unsafe global::Com.Instabug.Library.Invocation.InvocationParams SetShouldInvokedWithMode(global::Com.Instabug.Library.Invocation.InstabugInvocationMode p0)
        {
            if (id_setShouldInvokedWithMode_Lcom_instabug_library_invocation_InstabugInvocationMode_ == IntPtr.Zero)
            {
                id_setShouldInvokedWithMode_Lcom_instabug_library_invocation_InstabugInvocationMode_ = JNIEnv.GetMethodID(class_ref, "setShouldInvokedWithMode", "(Lcom/instabug/library/invocation/InstabugInvocationMode;)Lcom/instabug/library/invocation/InvocationParams;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Instabug.Library.Invocation.InvocationParams __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.Invocation.InvocationParams> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_setShouldInvokedWithMode_Lcom_instabug_library_invocation_InstabugInvocationMode_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Instabug.Library.Invocation.InvocationParams> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setShouldInvokedWithMode", "(Lcom/instabug/library/invocation/InstabugInvocationMode;)Lcom/instabug/library/invocation/InvocationParams;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }