// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: RogueMagicLayerInfo.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 RogueMagicLayerInfo.proto</summary>
  public static partial class RogueMagicLayerInfoReflection {

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

    static RogueMagicLayerInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChlSb2d1ZU1hZ2ljTGF5ZXJJbmZvLnByb3RvGhhSb2d1ZU1hZ2ljUm9vbUlu",
            "Zm8ucHJvdG8aG1JvZ3VlTWFnaWNMYXllclN0YXR1cy5wcm90byKqAQoTUm9n",
            "dWVNYWdpY0xheWVySW5mbxITCgtsZXZlbF9pbmRleBgIIAEoDRIsCg90b3Vy",
            "bl9yb29tX2xpc3QYCyADKAsyEy5Sb2d1ZU1hZ2ljUm9vbUluZm8SFgoOY3Vy",
            "X3Jvb21faW5kZXgYBiABKA0SEAoIbGF5ZXJfaWQYDyABKA0SJgoGc3RhdHVz",
            "GAkgASgOMhYuUm9ndWVNYWdpY0xheWVyU3RhdHVzQh6qAhtFZ2dMaW5rLkRh",
            "bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMagicRoomInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMagicLayerStatusReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMagicLayerInfo), global::EggLink.DanhengServer.Proto.RogueMagicLayerInfo.Parser, new[]{ "LevelIndex", "TournRoomList", "CurRoomIndex", "LayerId", "Status" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
  public sealed partial class RogueMagicLayerInfo : pb::IMessage<RogueMagicLayerInfo>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<RogueMagicLayerInfo> _parser = new pb::MessageParser<RogueMagicLayerInfo>(() => new RogueMagicLayerInfo());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<RogueMagicLayerInfo> 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.RogueMagicLayerInfoReflection.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 RogueMagicLayerInfo() {
      OnConstruction();
    }

    partial void OnConstruction();

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

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

    /// <summary>Field number for the "level_index" field.</summary>
    public const int LevelIndexFieldNumber = 8;
    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 "tourn_room_list" field.</summary>
    public const int TournRoomListFieldNumber = 11;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> _repeated_tournRoomList_codec
        = pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> tournRoomList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> TournRoomList {
      get { return tournRoomList_; }
    }

    /// <summary>Field number for the "cur_room_index" field.</summary>
    public const int CurRoomIndexFieldNumber = 6;
    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 "layer_id" field.</summary>
    public const int LayerIdFieldNumber = 15;
    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 = 9;
    private global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus status_ = global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus Status {
      get { return status_; }
      set {
        status_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(RogueMagicLayerInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (LevelIndex != other.LevelIndex) return false;
      if(!tournRoomList_.Equals(other.tournRoomList_)) return false;
      if (CurRoomIndex != other.CurRoomIndex) return false;
      if (LayerId != other.LayerId) return false;
      if (Status != other.Status) 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();
      hash ^= tournRoomList_.GetHashCode();
      if (CurRoomIndex != 0) hash ^= CurRoomIndex.GetHashCode();
      if (LayerId != 0) hash ^= LayerId.GetHashCode();
      if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) hash ^= Status.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 (CurRoomIndex != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(CurRoomIndex);
      }
      if (LevelIndex != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(LevelIndex);
      }
      if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
        output.WriteRawTag(72);
        output.WriteEnum((int) Status);
      }
      tournRoomList_.WriteTo(output, _repeated_tournRoomList_codec);
      if (LayerId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(LayerId);
      }
      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 (CurRoomIndex != 0) {
        output.WriteRawTag(48);
        output.WriteUInt32(CurRoomIndex);
      }
      if (LevelIndex != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(LevelIndex);
      }
      if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
        output.WriteRawTag(72);
        output.WriteEnum((int) Status);
      }
      tournRoomList_.WriteTo(ref output, _repeated_tournRoomList_codec);
      if (LayerId != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(LayerId);
      }
      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);
      }
      size += tournRoomList_.CalculateSize(_repeated_tournRoomList_codec);
      if (CurRoomIndex != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurRoomIndex);
      }
      if (LayerId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LayerId);
      }
      if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(RogueMagicLayerInfo other) {
      if (other == null) {
        return;
      }
      if (other.LevelIndex != 0) {
        LevelIndex = other.LevelIndex;
      }
      tournRoomList_.Add(other.tournRoomList_);
      if (other.CurRoomIndex != 0) {
        CurRoomIndex = other.CurRoomIndex;
      }
      if (other.LayerId != 0) {
        LayerId = other.LayerId;
      }
      if (other.Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
        Status = other.Status;
      }
      _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 48: {
            CurRoomIndex = input.ReadUInt32();
            break;
          }
          case 64: {
            LevelIndex = input.ReadUInt32();
            break;
          }
          case 72: {
            Status = (global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus) input.ReadEnum();
            break;
          }
          case 90: {
            tournRoomList_.AddEntriesFrom(input, _repeated_tournRoomList_codec);
            break;
          }
          case 120: {
            LayerId = input.ReadUInt32();
            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 48: {
            CurRoomIndex = input.ReadUInt32();
            break;
          }
          case 64: {
            LevelIndex = input.ReadUInt32();
            break;
          }
          case 72: {
            Status = (global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus) input.ReadEnum();
            break;
          }
          case 90: {
            tournRoomList_.AddEntriesFrom(ref input, _repeated_tournRoomList_codec);
            break;
          }
          case 120: {
            LayerId = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
