public virtual unsafe global::Com.Spotify.Android.Appremote.Api.ConnectionParams.Builder SetAuthMethod(global::Com.Spotify.Android.Appremote.Api.ConnectionParams.AuthMethod authMethod)
            {
                const string __id = "setAuthMethod.(Lcom/spotify/android/appremote/api/ConnectionParams$AuthMethod;)Lcom/spotify/android/appremote/api/ConnectionParams$Builder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((authMethod == null) ? IntPtr.Zero : ((global::Java.Lang.Object)authMethod).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
            static IntPtr n_SetAuthMethod_Lcom_spotify_android_appremote_api_ConnectionParams_AuthMethod_(IntPtr jnienv, IntPtr native__this, IntPtr native_authMethod)
            {
                global::Com.Spotify.Android.Appremote.Api.ConnectionParams.Builder    __this     = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Com.Spotify.Android.Appremote.Api.ConnectionParams.AuthMethod authMethod = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams.AuthMethod> (native_authMethod, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetAuthMethod(authMethod));

                return(__ret);
            }