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

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

    static BattleRogueMagicScepterReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Ch1CYXR0bGVSb2d1ZU1hZ2ljU2NlcHRlci5wcm90bxoaQmF0dGxlUm9ndWVN",
            "YWdpY1VuaXQucHJvdG8i7AEKF0JhdHRsZVJvZ3VlTWFnaWNTY2VwdGVyEhIK",
            "CnNjZXB0ZXJfaWQYASABKA0SOQoacm9ndWVfbWFnaWNfdW5pdF9pbmZvX2xp",
            "c3QYAiADKAsyFS5CYXR0bGVSb2d1ZU1hZ2ljVW5pdBINCgVsZXZlbBgDIAEo",
            "DRI/Cgx0cmVuY2hfY291bnQYBCADKAsyKS5CYXR0bGVSb2d1ZU1hZ2ljU2Nl",
            "cHRlci5UcmVuY2hDb3VudEVudHJ5GjIKEFRyZW5jaENvdW50RW50cnkSCwoD",
            "a2V5GAEgASgNEg0KBXZhbHVlGAIgASgNOgI4AUIeqgIbRWdnTGluay5EYW5o",
            "ZW5nU2VydmVyLlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleRogueMagicUnitReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleRogueMagicScepter), global::EggLink.DanhengServer.Proto.BattleRogueMagicScepter.Parser, new[]{ "ScepterId", "RogueMagicUnitInfoList", "Level", "TrenchCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public BattleRogueMagicScepter(BattleRogueMagicScepter other) : this() {
      scepterId_ = other.scepterId_;
      rogueMagicUnitInfoList_ = other.rogueMagicUnitInfoList_.Clone();
      level_ = other.level_;
      trenchCount_ = other.trenchCount_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "scepter_id" field.</summary>
    public const int ScepterIdFieldNumber = 1;
    private uint scepterId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint ScepterId {
      get { return scepterId_; }
      set {
        scepterId_ = value;
      }
    }

    /// <summary>Field number for the "rogue_magic_unit_info_list" field.</summary>
    public const int RogueMagicUnitInfoListFieldNumber = 2;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleRogueMagicUnit> _repeated_rogueMagicUnitInfoList_codec
        = pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.BattleRogueMagicUnit.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleRogueMagicUnit> rogueMagicUnitInfoList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleRogueMagicUnit>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleRogueMagicUnit> RogueMagicUnitInfoList {
      get { return rogueMagicUnitInfoList_; }
    }

    /// <summary>Field number for the "level" field.</summary>
    public const int LevelFieldNumber = 3;
    private uint level_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint Level {
      get { return level_; }
      set {
        level_ = value;
      }
    }

    /// <summary>Field number for the "trench_count" field.</summary>
    public const int TrenchCountFieldNumber = 4;
    private static readonly pbc::MapField<uint, uint>.Codec _map_trenchCount_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 34);
    private readonly pbc::MapField<uint, uint> trenchCount_ = new pbc::MapField<uint, uint>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::MapField<uint, uint> TrenchCount {
      get { return trenchCount_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(BattleRogueMagicScepter other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ScepterId != other.ScepterId) return false;
      if(!rogueMagicUnitInfoList_.Equals(other.rogueMagicUnitInfoList_)) return false;
      if (Level != other.Level) return false;
      if (!TrenchCount.Equals(other.TrenchCount)) 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 (ScepterId != 0) hash ^= ScepterId.GetHashCode();
      hash ^= rogueMagicUnitInfoList_.GetHashCode();
      if (Level != 0) hash ^= Level.GetHashCode();
      hash ^= TrenchCount.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 (ScepterId != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(ScepterId);
      }
      rogueMagicUnitInfoList_.WriteTo(output, _repeated_rogueMagicUnitInfoList_codec);
      if (Level != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(Level);
      }
      trenchCount_.WriteTo(output, _map_trenchCount_codec);
      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 (ScepterId != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(ScepterId);
      }
      rogueMagicUnitInfoList_.WriteTo(ref output, _repeated_rogueMagicUnitInfoList_codec);
      if (Level != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(Level);
      }
      trenchCount_.WriteTo(ref output, _map_trenchCount_codec);
      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 (ScepterId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScepterId);
      }
      size += rogueMagicUnitInfoList_.CalculateSize(_repeated_rogueMagicUnitInfoList_codec);
      if (Level != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level);
      }
      size += trenchCount_.CalculateSize(_map_trenchCount_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(BattleRogueMagicScepter other) {
      if (other == null) {
        return;
      }
      if (other.ScepterId != 0) {
        ScepterId = other.ScepterId;
      }
      rogueMagicUnitInfoList_.Add(other.rogueMagicUnitInfoList_);
      if (other.Level != 0) {
        Level = other.Level;
      }
      trenchCount_.MergeFrom(other.trenchCount_);
      _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 8: {
            ScepterId = input.ReadUInt32();
            break;
          }
          case 18: {
            rogueMagicUnitInfoList_.AddEntriesFrom(input, _repeated_rogueMagicUnitInfoList_codec);
            break;
          }
          case 24: {
            Level = input.ReadUInt32();
            break;
          }
          case 34: {
            trenchCount_.AddEntriesFrom(input, _map_trenchCount_codec);
            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 8: {
            ScepterId = input.ReadUInt32();
            break;
          }
          case 18: {
            rogueMagicUnitInfoList_.AddEntriesFrom(ref input, _repeated_rogueMagicUnitInfoList_codec);
            break;
          }
          case 24: {
            Level = input.ReadUInt32();
            break;
          }
          case 34: {
            trenchCount_.AddEntriesFrom(ref input, _map_trenchCount_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
