static IntPtr n_Policy_Lcom_baidu_mapapi_search_route_TransitRoutePlanOption_TransitPolicy_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption __this           = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy p0 = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Policy(p0));

            return(__ret);
        }
        public virtual unsafe global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption Policy(global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy p0)
        {
            if (id_policy_Lcom_baidu_mapapi_search_route_TransitRoutePlanOption_TransitPolicy_ == IntPtr.Zero)
            {
                id_policy_Lcom_baidu_mapapi_search_route_TransitRoutePlanOption_TransitPolicy_ = JNIEnv.GetMethodID(class_ref, "policy", "(Lcom/baidu/mapapi/search/route/TransitRoutePlanOption$TransitPolicy;)Lcom/baidu/mapapi/search/route/TransitRoutePlanOption;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption> (JNIEnv.CallObjectMethod(Handle, id_policy_Lcom_baidu_mapapi_search_route_TransitRoutePlanOption_TransitPolicy_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "policy", "(Lcom/baidu/mapapi/search/route/TransitRoutePlanOption$TransitPolicy;)Lcom/baidu/mapapi/search/route/TransitRoutePlanOption;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
            public static unsafe global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy 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/baidu/mapapi/search/route/TransitRoutePlanOption$TransitPolicy;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Search.Route.TransitRoutePlanOption.TransitPolicy> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }