public unsafe PublishEvent(string p0, global::Com.Liveperson.Api.Request.Message.IPublishMessage p1, global::Com.Liveperson.Api.Request.PublishEvent.Type p2, global::Com.Liveperson.Api.Response.Model.ContentType p3, string p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p4 = JNIEnv.NewString(p4);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                if (((object)this).GetType() != typeof(PublishEvent))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Lcom/liveperson/api/request/message/PublishMessage;Lcom/liveperson/api/request/PublishEvent$Type;Lcom/liveperson/api/response/model/ContentType;Ljava/lang/String;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Lcom/liveperson/api/request/message/PublishMessage;Lcom/liveperson/api/request/PublishEvent$Type;Lcom/liveperson/api/response/model/ContentType;Ljava/lang/String;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_message_PublishMessage_Lcom_liveperson_api_request_PublishEvent_Type_Lcom_liveperson_api_response_model_ContentType_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_message_PublishMessage_Lcom_liveperson_api_request_PublishEvent_Type_Lcom_liveperson_api_response_model_ContentType_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Lcom/liveperson/api/request/message/PublishMessage;Lcom/liveperson/api/request/PublishEvent$Type;Lcom/liveperson/api/response/model/ContentType;Ljava/lang/String;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_message_PublishMessage_Lcom_liveperson_api_request_PublishEvent_Type_Lcom_liveperson_api_response_model_ContentType_Ljava_lang_String_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Lcom_liveperson_api_request_message_PublishMessage_Lcom_liveperson_api_request_PublishEvent_Type_Lcom_liveperson_api_response_model_ContentType_Ljava_lang_String_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
 static IntPtr n_GetMessage(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Api.Request.Message.IPublishMessage __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Request.Message.IPublishMessage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Message));
 }