public static unsafe global::Com.Coinbase.Api.Entity.PaymentMethod.Type 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/coinbase/api/entity/PaymentMethod$Type;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Com.Coinbase.Api.Entity.PaymentMethod.Type __ret = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.PaymentMethod.Type> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        public virtual unsafe void SetType(global::Com.Coinbase.Api.Entity.PaymentMethod.Type p0)
        {
            if (id_setType_Lcom_coinbase_api_entity_PaymentMethod_Type_ == IntPtr.Zero)
            {
                id_setType_Lcom_coinbase_api_entity_PaymentMethod_Type_ = JNIEnv.GetMethodID(class_ref, "setType", "(Lcom/coinbase/api/entity/PaymentMethod$Type;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(Handle, id_setType_Lcom_coinbase_api_entity_PaymentMethod_Type_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setType", "(Lcom/coinbase/api/entity/PaymentMethod$Type;)V"), __args);
                }
            } finally {
            }
        }
 static void n_SetType_Lcom_coinbase_api_entity_PaymentMethod_Type_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Coinbase.Api.Entity.PaymentMethod      __this = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.PaymentMethod> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Coinbase.Api.Entity.PaymentMethod.Type p0     = global::Java.Lang.Object.GetObject <global::Com.Coinbase.Api.Entity.PaymentMethod.Type> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetType(p0);
 }