static IntPtr n_SetDiskCache_Lcom_bumptech_glide_load_engine_cache_DiskCache_Factory_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Bumptech.Glide.GlideBuilder __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.GlideBuilder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory p0 = (global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory)global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetDiskCache(p0));

            return(__ret);
        }
        public virtual unsafe global::Com.Bumptech.Glide.GlideBuilder SetDiskCache(global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory p0)
        {
            if (id_setDiskCache_Lcom_bumptech_glide_load_engine_cache_DiskCache_Factory_ == IntPtr.Zero)
            {
                id_setDiskCache_Lcom_bumptech_glide_load_engine_cache_DiskCache_Factory_ = JNIEnv.GetMethodID(class_ref, "setDiskCache", "(Lcom/bumptech/glide/load/engine/cache/DiskCache$Factory;)Lcom/bumptech/glide/GlideBuilder;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Bumptech.Glide.GlideBuilder __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.GlideBuilder> (JNIEnv.CallObjectMethod(Handle, id_setDiskCache_Lcom_bumptech_glide_load_engine_cache_DiskCache_Factory_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.GlideBuilder> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setDiskCache", "(Lcom/bumptech/glide/load/engine/cache/DiskCache$Factory;)Lcom/bumptech/glide/GlideBuilder;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static IntPtr n_Build(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Engine.Cache.IDiskCacheFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Build()));
 }