// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: RogueTournLevel.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace EggLink.DanhengServer.Proto {

  /// <summary>Holder for reflection information generated from RogueTournLevel.proto</summary>
  public static partial class RogueTournLevelReflection {

    #region Descriptor
    /// <summary>File descriptor for RogueTournLevel.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static RogueTournLevelReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChVSb2d1ZVRvdXJuTGV2ZWwucHJvdG8aG1JvZ3VlVG91cm5MYXllclN0YXR1",
            "cy5wcm90bxoYUm9ndWVUb3VyblJvb21MaXN0LnByb3RvIqYBCg9Sb2d1ZVRv",
            "dXJuTGV2ZWwSEwoLbGV2ZWxfaW5kZXgYAiABKA0SEAoIbGF5ZXJfaWQYBSAB",
            "KA0SJgoGc3RhdHVzGA4gASgOMhYuUm9ndWVUb3VybkxheWVyU3RhdHVzEhYK",
            "DmN1cl9yb29tX2luZGV4GAQgASgNEiwKD3RvdXJuX3Jvb21fbGlzdBgGIAMo",
            "CzITLlJvZ3VlVG91cm5Sb29tTGlzdEIeqgIbRWdnTGluay5EYW5oZW5nU2Vy",
            "dmVyLlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueTournLayerStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueTournRoomListReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueTournLevel), global::EggLink.DanhengServer.Proto.RogueTournLevel.Parser, new[]{ "LevelIndex", "LayerId", "Status", "CurRoomIndex", "TournRoomList" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class RogueTournLevel : pb::IMessage<RogueTournLevel>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<RogueTournLevel> _parser = new pb::MessageParser<RogueTournLevel>(() => new RogueTournLevel());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<RogueTournLevel> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::EggLink.DanhengServer.Proto.RogueTournLevelReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RogueTournLevel() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RogueTournLevel(RogueTournLevel other) : this() {
      levelIndex_ = other.levelIndex_;
      layerId_ = other.layerId_;
      status_ = other.status_;
      curRoomIndex_ = other.curRoomIndex_;
      tournRoomList_ = other.tournRoomList_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public RogueTournLevel Clone() {
      return new RogueTournLevel(this);
    }

    /// <summary>Field number for the "level_index" field.</summary>
    public const int LevelIndexFieldNumber = 2;
    private uint levelIndex_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint LevelIndex {
      get { return levelIndex_; }
      set {
        levelIndex_ = value;
      }
    }

    /// <summary>Field number for the "layer_id" field.</summary>
    public const int LayerIdFieldNumber = 5;
    private uint layerId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint LayerId {
      get { return layerId_; }
      set {
        layerId_ = value;
      }
    }

    /// <summary>Field number for the "status" field.</summary>
    public const int StatusFieldNumber = 14;
    private global::EggLink.DanhengServer.Proto.RogueTournLayerStatus status_ = global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.RogueTournLayerStatus Status {
      get { return status_; }
      set {
        status_ = value;
      }
    }

    /// <summary>Field number for the "cur_room_index" field.</summary>
    public const int CurRoomIndexFieldNumber = 4;
    private uint curRoomIndex_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint CurRoomIndex {
      get { return curRoomIndex_; }
      set {
        curRoomIndex_ = value;
      }
    }

    /// <summary>Field number for the "tourn_room_list" field.</summary>
    public const int TournRoomListFieldNumber = 6;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueTournRoomList> _repeated_tournRoomList_codec
        = pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.RogueTournRoomList.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueTournRoomList> tournRoomList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueTournRoomList>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueTournRoomList> TournRoomList {
      get { return tournRoomList_; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as RogueTournLevel);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RogueTournLevel other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (LevelIndex != other.LevelIndex) return false;
      if (LayerId != other.LayerId) return false;
      if (Status != other.Status) return false;
      if (CurRoomIndex != other.CurRoomIndex) return false;
      if(!tournRoomList_.Equals(other.tournRoomList_)) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (LevelIndex != 0) hash ^= LevelIndex.GetHashCode();
      if (LayerId != 0) hash ^= LayerId.GetHashCode();
      if (Status != global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None) hash ^= Status.GetHashCode();
      if (CurRoomIndex != 0) hash ^= CurRoomIndex.GetHashCode();
      hash ^= tournRoomList_.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (LevelIndex != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(LevelIndex);
      }
      if (CurRoomIndex != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(CurRoomIndex);
      }
      if (LayerId != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(LayerId);
      }
      tournRoomList_.WriteTo(output, _repeated_tournRoomList_codec);
      if (Status != global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None) {
        output.WriteRawTag(112);
        output.WriteEnum((int) Status);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (LevelIndex != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(LevelIndex);
      }
      if (CurRoomIndex != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(CurRoomIndex);
      }
      if (LayerId != 0) {
        output.WriteRawTag(40);
        output.WriteUInt32(LayerId);
      }
      tournRoomList_.WriteTo(ref output, _repeated_tournRoomList_codec);
      if (Status != global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None) {
        output.WriteRawTag(112);
        output.WriteEnum((int) Status);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (LevelIndex != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LevelIndex);
      }
      if (LayerId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LayerId);
      }
      if (Status != global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
      }
      if (CurRoomIndex != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurRoomIndex);
      }
      size += tournRoomList_.CalculateSize(_repeated_tournRoomList_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RogueTournLevel other) {
      if (other == null) {
        return;
      }
      if (other.LevelIndex != 0) {
        LevelIndex = other.LevelIndex;
      }
      if (other.LayerId != 0) {
        LayerId = other.LayerId;
      }
      if (other.Status != global::EggLink.DanhengServer.Proto.RogueTournLayerStatus.None) {
        Status = other.Status;
      }
      if (other.CurRoomIndex != 0) {
        CurRoomIndex = other.CurRoomIndex;
      }
      tournRoomList_.Add(other.tournRoomList_);
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 16: {
            LevelIndex = input.ReadUInt32();
            break;
          }
          case 32: {
            CurRoomIndex = input.ReadUInt32();
            break;
          }
          case 40: {
            LayerId = input.ReadUInt32();
            break;
          }
          case 50: {
            tournRoomList_.AddEntriesFrom(input, _repeated_tournRoomList_codec);
            break;
          }
          case 112: {
            Status = (global::EggLink.DanhengServer.Proto.RogueTournLayerStatus) input.ReadEnum();
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 16: {
            LevelIndex = input.ReadUInt32();
            break;
          }
          case 32: {
            CurRoomIndex = input.ReadUInt32();
            break;
          }
          case 40: {
            LayerId = input.ReadUInt32();
            break;
          }
          case 50: {
            tournRoomList_.AddEntriesFrom(ref input, _repeated_tournRoomList_codec);
            break;
          }
          case 112: {
            Status = (global::EggLink.DanhengServer.Proto.RogueTournLayerStatus) input.ReadEnum();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
