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

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

    static BattleGridFightInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChlCYXR0bGVHcmlkRmlnaHRJbmZvLnByb3RvGh5CYXR0bGVHcmlkRmlnaHRU",
            "cmFpdEluZm8ucHJvdG8aHkJhdHRsZUdyaWRGaWdodFN0YWdlSW5mby5wcm90",
            "bxoSQmF0dGxlQXZhdGFyLnByb3RvGiNCYXR0bGVHcmlkRmlnaHRQb3J0YWxC",
            "dWZmSW5mby5wcm90bxocQmF0dGxlR3JpZEZpZ2h0TnBjSW5mby5wcm90bxog",
            "QmF0dGxlR3JpZEZpZ2h0QXVnbWVudEluZm8ucHJvdG8aHUJhdHRsZUdyaWRG",
            "aWdodFJvbGVJbmZvLnByb3RvIvQEChNCYXR0bGVHcmlkRmlnaHRJbmZvEi0K",
            "FmdyaWRfZmlnaHRfYXZhdGFyX2xpc3QYASADKAsyDS5CYXR0bGVBdmF0YXIS",
            "FgoOYmF0dGxlX3dhdmVfaWQYAiABKA0SHAoUZ3JpZF9maWdodF9saW5ldXBf",
            "aHAYAyABKA0SHAoUZ3JpZF9maWdodF9jdXJfbGV2ZWwYBCABKA0SOAoVZ3Jp",
            "ZF9maWdodF90cmFpdF9pbmZvGAcgAygLMhkuQmF0dGxlR3JpZEZpZ2h0VHJh",
            "aXRJbmZvEjUKE2dyaWRfZ2FtZV9yb2xlX2xpc3QYCCADKAsyGC5CYXR0bGVH",
            "cmlkRmlnaHRSb2xlSW5mbxIdChVwZW5hbHR5X2JvbnVzX3J1bGVfaWQYCSAB",
            "KA0SPAoXZ3JpZF9maWdodF9hdWdtZW50X2luZm8YCiADKAsyGy5CYXR0bGVH",
            "cmlkRmlnaHRBdWdtZW50SW5mbxI4ChVncmlkX2ZpZ2h0X3N0YWdlX2luZm8Y",
            "CyABKAsyGS5CYXR0bGVHcmlkRmlnaHRTdGFnZUluZm8SGQoRYmF0dGxlX2Rp",
            "ZmZpY3VsdHkYDCABKA0SDgoGc2Vhc29uGA0gASgNEkMKG2dyaWRfZmlnaHRf",
            "cG9ydGFsX2J1ZmZfbGlzdBgOIAMoCzIeLkJhdHRsZUdyaWRGaWdodFBvcnRh",
            "bEJ1ZmZJbmZvEhMKC2lzX292ZXJsb2NrGA8gASgIEhgKEGdhbWVfZGl2aXNp",
            "b25faWQYECABKA0SMwoSZ3JpZF9nYW1lX25wY19saXN0GBEgAygLMhcuQmF0",
            "dGxlR3JpZEZpZ2h0TnBjSW5mb0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy",
            "LlByb3RvYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleGridFightStageInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleAvatarReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleGridFightInfo), global::EggLink.DanhengServer.Proto.BattleGridFightInfo.Parser, new[]{ "GridFightAvatarList", "BattleWaveId", "GridFightLineupHp", "GridFightCurLevel", "GridFightTraitInfo", "GridGameRoleList", "PenaltyBonusRuleId", "GridFightAugmentInfo", "GridFightStageInfo", "BattleDifficulty", "Season", "GridFightPortalBuffList", "IsOverlock", "GameDivisionId", "GridGameNpcList" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public BattleGridFightInfo(BattleGridFightInfo other) : this() {
      gridFightAvatarList_ = other.gridFightAvatarList_.Clone();
      battleWaveId_ = other.battleWaveId_;
      gridFightLineupHp_ = other.gridFightLineupHp_;
      gridFightCurLevel_ = other.gridFightCurLevel_;
      gridFightTraitInfo_ = other.gridFightTraitInfo_.Clone();
      gridGameRoleList_ = other.gridGameRoleList_.Clone();
      penaltyBonusRuleId_ = other.penaltyBonusRuleId_;
      gridFightAugmentInfo_ = other.gridFightAugmentInfo_.Clone();
      gridFightStageInfo_ = other.gridFightStageInfo_ != null ? other.gridFightStageInfo_.Clone() : null;
      battleDifficulty_ = other.battleDifficulty_;
      season_ = other.season_;
      gridFightPortalBuffList_ = other.gridFightPortalBuffList_.Clone();
      isOverlock_ = other.isOverlock_;
      gameDivisionId_ = other.gameDivisionId_;
      gridGameNpcList_ = other.gridGameNpcList_.Clone();
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "grid_fight_avatar_list" field.</summary>
    public const int GridFightAvatarListFieldNumber = 1;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleAvatar> _repeated_gridFightAvatarList_codec
        = pb::FieldCodec.ForMessage(10, global::EggLink.DanhengServer.Proto.BattleAvatar.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleAvatar> gridFightAvatarList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleAvatar>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleAvatar> GridFightAvatarList {
      get { return gridFightAvatarList_; }
    }

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

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

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

    /// <summary>Field number for the "grid_fight_trait_info" field.</summary>
    public const int GridFightTraitInfoFieldNumber = 7;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfo> _repeated_gridFightTraitInfo_codec
        = pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfo> gridFightTraitInfo_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightTraitInfo> GridFightTraitInfo {
      get { return gridFightTraitInfo_; }
    }

    /// <summary>Field number for the "grid_game_role_list" field.</summary>
    public const int GridGameRoleListFieldNumber = 8;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfo> _repeated_gridGameRoleList_codec
        = pb::FieldCodec.ForMessage(66, global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfo> gridGameRoleList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightRoleInfo> GridGameRoleList {
      get { return gridGameRoleList_; }
    }

    /// <summary>Field number for the "penalty_bonus_rule_id" field.</summary>
    public const int PenaltyBonusRuleIdFieldNumber = 9;
    private uint penaltyBonusRuleId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint PenaltyBonusRuleId {
      get { return penaltyBonusRuleId_; }
      set {
        penaltyBonusRuleId_ = value;
      }
    }

    /// <summary>Field number for the "grid_fight_augment_info" field.</summary>
    public const int GridFightAugmentInfoFieldNumber = 10;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfo> _repeated_gridFightAugmentInfo_codec
        = pb::FieldCodec.ForMessage(82, global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfo> gridFightAugmentInfo_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightAugmentInfo> GridFightAugmentInfo {
      get { return gridFightAugmentInfo_; }
    }

    /// <summary>Field number for the "grid_fight_stage_info" field.</summary>
    public const int GridFightStageInfoFieldNumber = 11;
    private global::EggLink.DanhengServer.Proto.BattleGridFightStageInfo gridFightStageInfo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.BattleGridFightStageInfo GridFightStageInfo {
      get { return gridFightStageInfo_; }
      set {
        gridFightStageInfo_ = value;
      }
    }

    /// <summary>Field number for the "battle_difficulty" field.</summary>
    public const int BattleDifficultyFieldNumber = 12;
    private uint battleDifficulty_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint BattleDifficulty {
      get { return battleDifficulty_; }
      set {
        battleDifficulty_ = value;
      }
    }

    /// <summary>Field number for the "season" field.</summary>
    public const int SeasonFieldNumber = 13;
    private uint season_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint Season {
      get { return season_; }
      set {
        season_ = value;
      }
    }

    /// <summary>Field number for the "grid_fight_portal_buff_list" field.</summary>
    public const int GridFightPortalBuffListFieldNumber = 14;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfo> _repeated_gridFightPortalBuffList_codec
        = pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfo> gridFightPortalBuffList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightPortalBuffInfo> GridFightPortalBuffList {
      get { return gridFightPortalBuffList_; }
    }

    /// <summary>Field number for the "is_overlock" field.</summary>
    public const int IsOverlockFieldNumber = 15;
    private bool isOverlock_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool IsOverlock {
      get { return isOverlock_; }
      set {
        isOverlock_ = value;
      }
    }

    /// <summary>Field number for the "game_division_id" field.</summary>
    public const int GameDivisionIdFieldNumber = 16;
    private uint gameDivisionId_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint GameDivisionId {
      get { return gameDivisionId_; }
      set {
        gameDivisionId_ = value;
      }
    }

    /// <summary>Field number for the "grid_game_npc_list" field.</summary>
    public const int GridGameNpcListFieldNumber = 17;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfo> _repeated_gridGameNpcList_codec
        = pb::FieldCodec.ForMessage(138, global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfo.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfo> gridGameNpcList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfo>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleGridFightNpcInfo> GridGameNpcList {
      get { return gridGameNpcList_; }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(BattleGridFightInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if(!gridFightAvatarList_.Equals(other.gridFightAvatarList_)) return false;
      if (BattleWaveId != other.BattleWaveId) return false;
      if (GridFightLineupHp != other.GridFightLineupHp) return false;
      if (GridFightCurLevel != other.GridFightCurLevel) return false;
      if(!gridFightTraitInfo_.Equals(other.gridFightTraitInfo_)) return false;
      if(!gridGameRoleList_.Equals(other.gridGameRoleList_)) return false;
      if (PenaltyBonusRuleId != other.PenaltyBonusRuleId) return false;
      if(!gridFightAugmentInfo_.Equals(other.gridFightAugmentInfo_)) return false;
      if (!object.Equals(GridFightStageInfo, other.GridFightStageInfo)) return false;
      if (BattleDifficulty != other.BattleDifficulty) return false;
      if (Season != other.Season) return false;
      if(!gridFightPortalBuffList_.Equals(other.gridFightPortalBuffList_)) return false;
      if (IsOverlock != other.IsOverlock) return false;
      if (GameDivisionId != other.GameDivisionId) return false;
      if(!gridGameNpcList_.Equals(other.gridGameNpcList_)) 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;
      hash ^= gridFightAvatarList_.GetHashCode();
      if (BattleWaveId != 0) hash ^= BattleWaveId.GetHashCode();
      if (GridFightLineupHp != 0) hash ^= GridFightLineupHp.GetHashCode();
      if (GridFightCurLevel != 0) hash ^= GridFightCurLevel.GetHashCode();
      hash ^= gridFightTraitInfo_.GetHashCode();
      hash ^= gridGameRoleList_.GetHashCode();
      if (PenaltyBonusRuleId != 0) hash ^= PenaltyBonusRuleId.GetHashCode();
      hash ^= gridFightAugmentInfo_.GetHashCode();
      if (gridFightStageInfo_ != null) hash ^= GridFightStageInfo.GetHashCode();
      if (BattleDifficulty != 0) hash ^= BattleDifficulty.GetHashCode();
      if (Season != 0) hash ^= Season.GetHashCode();
      hash ^= gridFightPortalBuffList_.GetHashCode();
      if (IsOverlock != false) hash ^= IsOverlock.GetHashCode();
      if (GameDivisionId != 0) hash ^= GameDivisionId.GetHashCode();
      hash ^= gridGameNpcList_.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
      gridFightAvatarList_.WriteTo(output, _repeated_gridFightAvatarList_codec);
      if (BattleWaveId != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(BattleWaveId);
      }
      if (GridFightLineupHp != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(GridFightLineupHp);
      }
      if (GridFightCurLevel != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(GridFightCurLevel);
      }
      gridFightTraitInfo_.WriteTo(output, _repeated_gridFightTraitInfo_codec);
      gridGameRoleList_.WriteTo(output, _repeated_gridGameRoleList_codec);
      if (PenaltyBonusRuleId != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(PenaltyBonusRuleId);
      }
      gridFightAugmentInfo_.WriteTo(output, _repeated_gridFightAugmentInfo_codec);
      if (gridFightStageInfo_ != null) {
        output.WriteRawTag(90);
        output.WriteMessage(GridFightStageInfo);
      }
      if (BattleDifficulty != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(BattleDifficulty);
      }
      if (Season != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(Season);
      }
      gridFightPortalBuffList_.WriteTo(output, _repeated_gridFightPortalBuffList_codec);
      if (IsOverlock != false) {
        output.WriteRawTag(120);
        output.WriteBool(IsOverlock);
      }
      if (GameDivisionId != 0) {
        output.WriteRawTag(128, 1);
        output.WriteUInt32(GameDivisionId);
      }
      gridGameNpcList_.WriteTo(output, _repeated_gridGameNpcList_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) {
      gridFightAvatarList_.WriteTo(ref output, _repeated_gridFightAvatarList_codec);
      if (BattleWaveId != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(BattleWaveId);
      }
      if (GridFightLineupHp != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(GridFightLineupHp);
      }
      if (GridFightCurLevel != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(GridFightCurLevel);
      }
      gridFightTraitInfo_.WriteTo(ref output, _repeated_gridFightTraitInfo_codec);
      gridGameRoleList_.WriteTo(ref output, _repeated_gridGameRoleList_codec);
      if (PenaltyBonusRuleId != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(PenaltyBonusRuleId);
      }
      gridFightAugmentInfo_.WriteTo(ref output, _repeated_gridFightAugmentInfo_codec);
      if (gridFightStageInfo_ != null) {
        output.WriteRawTag(90);
        output.WriteMessage(GridFightStageInfo);
      }
      if (BattleDifficulty != 0) {
        output.WriteRawTag(96);
        output.WriteUInt32(BattleDifficulty);
      }
      if (Season != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(Season);
      }
      gridFightPortalBuffList_.WriteTo(ref output, _repeated_gridFightPortalBuffList_codec);
      if (IsOverlock != false) {
        output.WriteRawTag(120);
        output.WriteBool(IsOverlock);
      }
      if (GameDivisionId != 0) {
        output.WriteRawTag(128, 1);
        output.WriteUInt32(GameDivisionId);
      }
      gridGameNpcList_.WriteTo(ref output, _repeated_gridGameNpcList_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;
      size += gridFightAvatarList_.CalculateSize(_repeated_gridFightAvatarList_codec);
      if (BattleWaveId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleWaveId);
      }
      if (GridFightLineupHp != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GridFightLineupHp);
      }
      if (GridFightCurLevel != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GridFightCurLevel);
      }
      size += gridFightTraitInfo_.CalculateSize(_repeated_gridFightTraitInfo_codec);
      size += gridGameRoleList_.CalculateSize(_repeated_gridGameRoleList_codec);
      if (PenaltyBonusRuleId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PenaltyBonusRuleId);
      }
      size += gridFightAugmentInfo_.CalculateSize(_repeated_gridFightAugmentInfo_codec);
      if (gridFightStageInfo_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(GridFightStageInfo);
      }
      if (BattleDifficulty != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleDifficulty);
      }
      if (Season != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Season);
      }
      size += gridFightPortalBuffList_.CalculateSize(_repeated_gridFightPortalBuffList_codec);
      if (IsOverlock != false) {
        size += 1 + 1;
      }
      if (GameDivisionId != 0) {
        size += 2 + pb::CodedOutputStream.ComputeUInt32Size(GameDivisionId);
      }
      size += gridGameNpcList_.CalculateSize(_repeated_gridGameNpcList_codec);
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(BattleGridFightInfo other) {
      if (other == null) {
        return;
      }
      gridFightAvatarList_.Add(other.gridFightAvatarList_);
      if (other.BattleWaveId != 0) {
        BattleWaveId = other.BattleWaveId;
      }
      if (other.GridFightLineupHp != 0) {
        GridFightLineupHp = other.GridFightLineupHp;
      }
      if (other.GridFightCurLevel != 0) {
        GridFightCurLevel = other.GridFightCurLevel;
      }
      gridFightTraitInfo_.Add(other.gridFightTraitInfo_);
      gridGameRoleList_.Add(other.gridGameRoleList_);
      if (other.PenaltyBonusRuleId != 0) {
        PenaltyBonusRuleId = other.PenaltyBonusRuleId;
      }
      gridFightAugmentInfo_.Add(other.gridFightAugmentInfo_);
      if (other.gridFightStageInfo_ != null) {
        if (gridFightStageInfo_ == null) {
          GridFightStageInfo = new global::EggLink.DanhengServer.Proto.BattleGridFightStageInfo();
        }
        GridFightStageInfo.MergeFrom(other.GridFightStageInfo);
      }
      if (other.BattleDifficulty != 0) {
        BattleDifficulty = other.BattleDifficulty;
      }
      if (other.Season != 0) {
        Season = other.Season;
      }
      gridFightPortalBuffList_.Add(other.gridFightPortalBuffList_);
      if (other.IsOverlock != false) {
        IsOverlock = other.IsOverlock;
      }
      if (other.GameDivisionId != 0) {
        GameDivisionId = other.GameDivisionId;
      }
      gridGameNpcList_.Add(other.gridGameNpcList_);
      _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 10: {
            gridFightAvatarList_.AddEntriesFrom(input, _repeated_gridFightAvatarList_codec);
            break;
          }
          case 16: {
            BattleWaveId = input.ReadUInt32();
            break;
          }
          case 24: {
            GridFightLineupHp = input.ReadUInt32();
            break;
          }
          case 32: {
            GridFightCurLevel = input.ReadUInt32();
            break;
          }
          case 58: {
            gridFightTraitInfo_.AddEntriesFrom(input, _repeated_gridFightTraitInfo_codec);
            break;
          }
          case 66: {
            gridGameRoleList_.AddEntriesFrom(input, _repeated_gridGameRoleList_codec);
            break;
          }
          case 72: {
            PenaltyBonusRuleId = input.ReadUInt32();
            break;
          }
          case 82: {
            gridFightAugmentInfo_.AddEntriesFrom(input, _repeated_gridFightAugmentInfo_codec);
            break;
          }
          case 90: {
            if (gridFightStageInfo_ == null) {
              GridFightStageInfo = new global::EggLink.DanhengServer.Proto.BattleGridFightStageInfo();
            }
            input.ReadMessage(GridFightStageInfo);
            break;
          }
          case 96: {
            BattleDifficulty = input.ReadUInt32();
            break;
          }
          case 104: {
            Season = input.ReadUInt32();
            break;
          }
          case 114: {
            gridFightPortalBuffList_.AddEntriesFrom(input, _repeated_gridFightPortalBuffList_codec);
            break;
          }
          case 120: {
            IsOverlock = input.ReadBool();
            break;
          }
          case 128: {
            GameDivisionId = input.ReadUInt32();
            break;
          }
          case 138: {
            gridGameNpcList_.AddEntriesFrom(input, _repeated_gridGameNpcList_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 10: {
            gridFightAvatarList_.AddEntriesFrom(ref input, _repeated_gridFightAvatarList_codec);
            break;
          }
          case 16: {
            BattleWaveId = input.ReadUInt32();
            break;
          }
          case 24: {
            GridFightLineupHp = input.ReadUInt32();
            break;
          }
          case 32: {
            GridFightCurLevel = input.ReadUInt32();
            break;
          }
          case 58: {
            gridFightTraitInfo_.AddEntriesFrom(ref input, _repeated_gridFightTraitInfo_codec);
            break;
          }
          case 66: {
            gridGameRoleList_.AddEntriesFrom(ref input, _repeated_gridGameRoleList_codec);
            break;
          }
          case 72: {
            PenaltyBonusRuleId = input.ReadUInt32();
            break;
          }
          case 82: {
            gridFightAugmentInfo_.AddEntriesFrom(ref input, _repeated_gridFightAugmentInfo_codec);
            break;
          }
          case 90: {
            if (gridFightStageInfo_ == null) {
              GridFightStageInfo = new global::EggLink.DanhengServer.Proto.BattleGridFightStageInfo();
            }
            input.ReadMessage(GridFightStageInfo);
            break;
          }
          case 96: {
            BattleDifficulty = input.ReadUInt32();
            break;
          }
          case 104: {
            Season = input.ReadUInt32();
            break;
          }
          case 114: {
            gridFightPortalBuffList_.AddEntriesFrom(ref input, _repeated_gridFightPortalBuffList_codec);
            break;
          }
          case 120: {
            IsOverlock = input.ReadBool();
            break;
          }
          case 128: {
            GameDivisionId = input.ReadUInt32();
            break;
          }
          case 138: {
            gridGameNpcList_.AddEntriesFrom(ref input, _repeated_gridGameNpcList_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
