public override unsafe void SetBody(global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody p0)
        {
            if (id_setBody_Lcom_liveperson_infra_network_http_body_HttpRequestBody_ == IntPtr.Zero)
            {
                id_setBody_Lcom_liveperson_infra_network_http_body_HttpRequestBody_ = JNIEnv.GetMethodID(class_ref, "setBody", "(Lcom/liveperson/infra/network/http/body/HttpRequestBody;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setBody_Lcom_liveperson_infra_network_http_body_HttpRequestBody_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setBody", "(Lcom/liveperson/infra/network/http/body/HttpRequestBody;)V"), __args);
                }
            } finally {
            }
        }
 static IntPtr n_GetContentType(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ContentType));
 }
 static bool n_IsString(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsString);
 }
 static void n_SetBody_Lcom_liveperson_infra_network_http_body_HttpRequestBody_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Infra.Network.Http.Request.HttpPutRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Http.Request.HttpPutRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody  p0     = (global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Http.Body.IHttpRequestBody> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetBody(p0);
 }