// <auto-generated>
//   This file was generated by a tool; you should avoid making direct changes.
//   Consider using 'partial classes' to extend these types
//   Input: service_usergamenotes.proto
// </auto-generated>

#region Designer generated code
#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
namespace SteamKit2.WebUI.Internal
{

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNote : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        [global::System.ComponentModel.DefaultValue("")]
        public string id
        {
            get => __pbn__id ?? "";
            set => __pbn__id = value;
        }
        public bool ShouldSerializeid() => __pbn__id != null;
        public void Resetid() => __pbn__id = null;
        private string __pbn__id;

        [global::ProtoBuf.ProtoMember(2)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(3)]
        [global::System.ComponentModel.DefaultValue("")]
        public string shortcut_name
        {
            get => __pbn__shortcut_name ?? "";
            set => __pbn__shortcut_name = value;
        }
        public bool ShouldSerializeshortcut_name() => __pbn__shortcut_name != null;
        public void Resetshortcut_name() => __pbn__shortcut_name = null;
        private string __pbn__shortcut_name;

        [global::ProtoBuf.ProtoMember(4)]
        public uint shortcutid
        {
            get => __pbn__shortcutid.GetValueOrDefault();
            set => __pbn__shortcutid = value;
        }
        public bool ShouldSerializeshortcutid() => __pbn__shortcutid != null;
        public void Resetshortcutid() => __pbn__shortcutid = null;
        private uint? __pbn__shortcutid;

        [global::ProtoBuf.ProtoMember(5)]
        public uint ordinal
        {
            get => __pbn__ordinal.GetValueOrDefault();
            set => __pbn__ordinal = value;
        }
        public bool ShouldSerializeordinal() => __pbn__ordinal != null;
        public void Resetordinal() => __pbn__ordinal = null;
        private uint? __pbn__ordinal;

        [global::ProtoBuf.ProtoMember(6)]
        public uint time_created
        {
            get => __pbn__time_created.GetValueOrDefault();
            set => __pbn__time_created = value;
        }
        public bool ShouldSerializetime_created() => __pbn__time_created != null;
        public void Resettime_created() => __pbn__time_created = null;
        private uint? __pbn__time_created;

        [global::ProtoBuf.ProtoMember(7)]
        public uint time_modified
        {
            get => __pbn__time_modified.GetValueOrDefault();
            set => __pbn__time_modified = value;
        }
        public bool ShouldSerializetime_modified() => __pbn__time_modified != null;
        public void Resettime_modified() => __pbn__time_modified = null;
        private uint? __pbn__time_modified;

        [global::ProtoBuf.ProtoMember(8)]
        [global::System.ComponentModel.DefaultValue("")]
        public string title
        {
            get => __pbn__title ?? "";
            set => __pbn__title = value;
        }
        public bool ShouldSerializetitle() => __pbn__title != null;
        public void Resettitle() => __pbn__title = null;
        private string __pbn__title;

        [global::ProtoBuf.ProtoMember(9)]
        [global::System.ComponentModel.DefaultValue("")]
        public string content
        {
            get => __pbn__content ?? "";
            set => __pbn__content = value;
        }
        public bool ShouldSerializecontent() => __pbn__content != null;
        public void Resetcontent() => __pbn__content = null;
        private string __pbn__content;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_DeleteNote_Request : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(2)]
        [global::System.ComponentModel.DefaultValue("")]
        public string shortcut_name
        {
            get => __pbn__shortcut_name ?? "";
            set => __pbn__shortcut_name = value;
        }
        public bool ShouldSerializeshortcut_name() => __pbn__shortcut_name != null;
        public void Resetshortcut_name() => __pbn__shortcut_name = null;
        private string __pbn__shortcut_name;

        [global::ProtoBuf.ProtoMember(3)]
        public uint shortcutid
        {
            get => __pbn__shortcutid.GetValueOrDefault();
            set => __pbn__shortcutid = value;
        }
        public bool ShouldSerializeshortcutid() => __pbn__shortcutid != null;
        public void Resetshortcutid() => __pbn__shortcutid = null;
        private uint? __pbn__shortcutid;

        [global::ProtoBuf.ProtoMember(4)]
        [global::System.ComponentModel.DefaultValue("")]
        public string note_id
        {
            get => __pbn__note_id ?? "";
            set => __pbn__note_id = value;
        }
        public bool ShouldSerializenote_id() => __pbn__note_id != null;
        public void Resetnote_id() => __pbn__note_id = null;
        private string __pbn__note_id;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_DeleteNote_Response : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_GetGamesWithNotes_Request : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_GetGamesWithNotes_Response : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public global::System.Collections.Generic.List<CUserGameNotes_GetGamesWithNotes_Response_GameWithNotes> games_with_notes { get; } = new global::System.Collections.Generic.List<CUserGameNotes_GetGamesWithNotes_Response_GameWithNotes>();

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_GetGamesWithNotes_Response_GameWithNotes : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(2)]
        public uint shortcutid
        {
            get => __pbn__shortcutid.GetValueOrDefault();
            set => __pbn__shortcutid = value;
        }
        public bool ShouldSerializeshortcutid() => __pbn__shortcutid != null;
        public void Resetshortcutid() => __pbn__shortcutid = null;
        private uint? __pbn__shortcutid;

        [global::ProtoBuf.ProtoMember(3)]
        [global::System.ComponentModel.DefaultValue("")]
        public string shortcut_name
        {
            get => __pbn__shortcut_name ?? "";
            set => __pbn__shortcut_name = value;
        }
        public bool ShouldSerializeshortcut_name() => __pbn__shortcut_name != null;
        public void Resetshortcut_name() => __pbn__shortcut_name = null;
        private string __pbn__shortcut_name;

        [global::ProtoBuf.ProtoMember(4)]
        public uint last_modified
        {
            get => __pbn__last_modified.GetValueOrDefault();
            set => __pbn__last_modified = value;
        }
        public bool ShouldSerializelast_modified() => __pbn__last_modified != null;
        public void Resetlast_modified() => __pbn__last_modified = null;
        private uint? __pbn__last_modified;

        [global::ProtoBuf.ProtoMember(5)]
        public uint note_count
        {
            get => __pbn__note_count.GetValueOrDefault();
            set => __pbn__note_count = value;
        }
        public bool ShouldSerializenote_count() => __pbn__note_count != null;
        public void Resetnote_count() => __pbn__note_count = null;
        private uint? __pbn__note_count;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_GetNotesForGame_Request : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(2)]
        [global::System.ComponentModel.DefaultValue("")]
        public string shortcut_name
        {
            get => __pbn__shortcut_name ?? "";
            set => __pbn__shortcut_name = value;
        }
        public bool ShouldSerializeshortcut_name() => __pbn__shortcut_name != null;
        public void Resetshortcut_name() => __pbn__shortcut_name = null;
        private string __pbn__shortcut_name;

        [global::ProtoBuf.ProtoMember(3)]
        public uint shortcutid
        {
            get => __pbn__shortcutid.GetValueOrDefault();
            set => __pbn__shortcutid = value;
        }
        public bool ShouldSerializeshortcutid() => __pbn__shortcutid != null;
        public void Resetshortcutid() => __pbn__shortcutid = null;
        private uint? __pbn__shortcutid;

        [global::ProtoBuf.ProtoMember(4)]
        public bool include_content
        {
            get => __pbn__include_content.GetValueOrDefault();
            set => __pbn__include_content = value;
        }
        public bool ShouldSerializeinclude_content() => __pbn__include_content != null;
        public void Resetinclude_content() => __pbn__include_content = null;
        private bool? __pbn__include_content;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_GetNotesForGame_Response : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public global::System.Collections.Generic.List<CUserGameNote> notes { get; } = new global::System.Collections.Generic.List<CUserGameNote>();

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_SaveNote_Request : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(2)]
        [global::System.ComponentModel.DefaultValue("")]
        public string shortcut_name
        {
            get => __pbn__shortcut_name ?? "";
            set => __pbn__shortcut_name = value;
        }
        public bool ShouldSerializeshortcut_name() => __pbn__shortcut_name != null;
        public void Resetshortcut_name() => __pbn__shortcut_name = null;
        private string __pbn__shortcut_name;

        [global::ProtoBuf.ProtoMember(3)]
        public uint shortcutid
        {
            get => __pbn__shortcutid.GetValueOrDefault();
            set => __pbn__shortcutid = value;
        }
        public bool ShouldSerializeshortcutid() => __pbn__shortcutid != null;
        public void Resetshortcutid() => __pbn__shortcutid = null;
        private uint? __pbn__shortcutid;

        [global::ProtoBuf.ProtoMember(4)]
        [global::System.ComponentModel.DefaultValue("")]
        public string note_id
        {
            get => __pbn__note_id ?? "";
            set => __pbn__note_id = value;
        }
        public bool ShouldSerializenote_id() => __pbn__note_id != null;
        public void Resetnote_id() => __pbn__note_id = null;
        private string __pbn__note_id;

        [global::ProtoBuf.ProtoMember(5)]
        public bool create_new
        {
            get => __pbn__create_new.GetValueOrDefault();
            set => __pbn__create_new = value;
        }
        public bool ShouldSerializecreate_new() => __pbn__create_new != null;
        public void Resetcreate_new() => __pbn__create_new = null;
        private bool? __pbn__create_new;

        [global::ProtoBuf.ProtoMember(6)]
        [global::System.ComponentModel.DefaultValue("")]
        public string title
        {
            get => __pbn__title ?? "";
            set => __pbn__title = value;
        }
        public bool ShouldSerializetitle() => __pbn__title != null;
        public void Resettitle() => __pbn__title = null;
        private string __pbn__title;

        [global::ProtoBuf.ProtoMember(7)]
        [global::System.ComponentModel.DefaultValue("")]
        public string content
        {
            get => __pbn__content ?? "";
            set => __pbn__content = value;
        }
        public bool ShouldSerializecontent() => __pbn__content != null;
        public void Resetcontent() => __pbn__content = null;
        private string __pbn__content;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameNotes_SaveNote_Response : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1)]
        [global::System.ComponentModel.DefaultValue("")]
        public string note_id
        {
            get => __pbn__note_id ?? "";
            set => __pbn__note_id = value;
        }
        public bool ShouldSerializenote_id() => __pbn__note_id != null;
        public void Resetnote_id() => __pbn__note_id = null;
        private string __pbn__note_id;

    }

    public class UserGameNotes : SteamUnifiedMessages.UnifiedService
    {
        public override string ServiceName { get; } = "UserGameNotes";

        public AsyncJob<SteamUnifiedMessages.ServiceMethodResponse<CUserGameNotes_DeleteNote_Response>> DeleteNote( CUserGameNotes_DeleteNote_Request request )
        {
            return UnifiedMessages.SendMessage<CUserGameNotes_DeleteNote_Request, CUserGameNotes_DeleteNote_Response>( "UserGameNotes.DeleteNote#1", request );
        }

        public AsyncJob<SteamUnifiedMessages.ServiceMethodResponse<CUserGameNotes_GetGamesWithNotes_Response>> GetGamesWithNotes( CUserGameNotes_GetGamesWithNotes_Request request )
        {
            return UnifiedMessages.SendMessage<CUserGameNotes_GetGamesWithNotes_Request, CUserGameNotes_GetGamesWithNotes_Response>( "UserGameNotes.GetGamesWithNotes#1", request );
        }

        public AsyncJob<SteamUnifiedMessages.ServiceMethodResponse<CUserGameNotes_GetNotesForGame_Response>> GetNotesForGame( CUserGameNotes_GetNotesForGame_Request request )
        {
            return UnifiedMessages.SendMessage<CUserGameNotes_GetNotesForGame_Request, CUserGameNotes_GetNotesForGame_Response>( "UserGameNotes.GetNotesForGame#1", request );
        }

        public AsyncJob<SteamUnifiedMessages.ServiceMethodResponse<CUserGameNotes_SaveNote_Response>> SaveNote( CUserGameNotes_SaveNote_Request request )
        {
            return UnifiedMessages.SendMessage<CUserGameNotes_SaveNote_Request, CUserGameNotes_SaveNote_Response>( "UserGameNotes.SaveNote#1", request );
        }

        public override void HandleResponseMsg( string methodName, PacketClientMsgProtobuf packetMsg )
        {
            switch ( methodName )
            {
                case "DeleteNote":
                    PostResponseMsg<CUserGameNotes_DeleteNote_Response>( packetMsg );
                    break;
                case "GetGamesWithNotes":
                    PostResponseMsg<CUserGameNotes_GetGamesWithNotes_Response>( packetMsg );
                    break;
                case "GetNotesForGame":
                    PostResponseMsg<CUserGameNotes_GetNotesForGame_Response>( packetMsg );
                    break;
                case "SaveNote":
                    PostResponseMsg<CUserGameNotes_SaveNote_Response>( packetMsg );
                    break;
            }
        }

        public override void HandleNotificationMsg( string methodName, PacketClientMsgProtobuf packetMsg )
        {
        }
    }

}

#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
#endregion
