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

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

    static GridFightEncounterInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "ChxHcmlkRmlnaHRFbmNvdW50ZXJJbmZvLnByb3RvGh5HcmlkRW5jb3VudGVy",
            "TW9uc3RlcldhdmUucHJvdG8aF0dyaWRGaWdodERyb3BJbmZvLnByb3RvIsIB",
            "ChZHcmlkRmlnaHRFbmNvdW50ZXJJbmZvEjQKEW1vbnN0ZXJfd2F2ZV9saXN0",
            "GAkgAygLMhkuR3JpZEVuY291bnRlck1vbnN0ZXJXYXZlEigKIGVuY291bnRl",
            "cl9leHRyYV9kaWZmaWN1bHR5X2xldmVsGAggASgNEhcKD2VuY291bnRlcl9p",
            "bmRleBgDIAEoDRIvChNlbmNvdW50ZXJfZHJvcF9pbmZvGAcgASgLMhIuR3Jp",
            "ZEZpZ2h0RHJvcEluZm9CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90",
            "b2IGcHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GridEncounterMonsterWaveReflection.Descriptor, global::EggLink.DanhengServer.Proto.GridFightDropInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GridFightEncounterInfo), global::EggLink.DanhengServer.Proto.GridFightEncounterInfo.Parser, new[]{ "MonsterWaveList", "EncounterExtraDifficultyLevel", "EncounterIndex", "EncounterDropInfo" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public GridFightEncounterInfo(GridFightEncounterInfo other) : this() {
      monsterWaveList_ = other.monsterWaveList_.Clone();
      encounterExtraDifficultyLevel_ = other.encounterExtraDifficultyLevel_;
      encounterIndex_ = other.encounterIndex_;
      encounterDropInfo_ = other.encounterDropInfo_ != null ? other.encounterDropInfo_.Clone() : null;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// <summary>Field number for the "monster_wave_list" field.</summary>
    public const int MonsterWaveListFieldNumber = 9;
    private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.GridEncounterMonsterWave> _repeated_monsterWaveList_codec
        = pb::FieldCodec.ForMessage(74, global::EggLink.DanhengServer.Proto.GridEncounterMonsterWave.Parser);
    private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridEncounterMonsterWave> monsterWaveList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridEncounterMonsterWave>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.GridEncounterMonsterWave> MonsterWaveList {
      get { return monsterWaveList_; }
    }

    /// <summary>Field number for the "encounter_extra_difficulty_level" field.</summary>
    public const int EncounterExtraDifficultyLevelFieldNumber = 8;
    private uint encounterExtraDifficultyLevel_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public uint EncounterExtraDifficultyLevel {
      get { return encounterExtraDifficultyLevel_; }
      set {
        encounterExtraDifficultyLevel_ = value;
      }
    }

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

    /// <summary>Field number for the "encounter_drop_info" field.</summary>
    public const int EncounterDropInfoFieldNumber = 7;
    private global::EggLink.DanhengServer.Proto.GridFightDropInfo encounterDropInfo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.GridFightDropInfo EncounterDropInfo {
      get { return encounterDropInfo_; }
      set {
        encounterDropInfo_ = value;
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(GridFightEncounterInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if(!monsterWaveList_.Equals(other.monsterWaveList_)) return false;
      if (EncounterExtraDifficultyLevel != other.EncounterExtraDifficultyLevel) return false;
      if (EncounterIndex != other.EncounterIndex) return false;
      if (!object.Equals(EncounterDropInfo, other.EncounterDropInfo)) 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 ^= monsterWaveList_.GetHashCode();
      if (EncounterExtraDifficultyLevel != 0) hash ^= EncounterExtraDifficultyLevel.GetHashCode();
      if (EncounterIndex != 0) hash ^= EncounterIndex.GetHashCode();
      if (encounterDropInfo_ != null) hash ^= EncounterDropInfo.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 (EncounterIndex != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(EncounterIndex);
      }
      if (encounterDropInfo_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(EncounterDropInfo);
      }
      if (EncounterExtraDifficultyLevel != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(EncounterExtraDifficultyLevel);
      }
      monsterWaveList_.WriteTo(output, _repeated_monsterWaveList_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 (EncounterIndex != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(EncounterIndex);
      }
      if (encounterDropInfo_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(EncounterDropInfo);
      }
      if (EncounterExtraDifficultyLevel != 0) {
        output.WriteRawTag(64);
        output.WriteUInt32(EncounterExtraDifficultyLevel);
      }
      monsterWaveList_.WriteTo(ref output, _repeated_monsterWaveList_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 += monsterWaveList_.CalculateSize(_repeated_monsterWaveList_codec);
      if (EncounterExtraDifficultyLevel != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EncounterExtraDifficultyLevel);
      }
      if (EncounterIndex != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EncounterIndex);
      }
      if (encounterDropInfo_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncounterDropInfo);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(GridFightEncounterInfo other) {
      if (other == null) {
        return;
      }
      monsterWaveList_.Add(other.monsterWaveList_);
      if (other.EncounterExtraDifficultyLevel != 0) {
        EncounterExtraDifficultyLevel = other.EncounterExtraDifficultyLevel;
      }
      if (other.EncounterIndex != 0) {
        EncounterIndex = other.EncounterIndex;
      }
      if (other.encounterDropInfo_ != null) {
        if (encounterDropInfo_ == null) {
          EncounterDropInfo = new global::EggLink.DanhengServer.Proto.GridFightDropInfo();
        }
        EncounterDropInfo.MergeFrom(other.EncounterDropInfo);
      }
      _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 24: {
            EncounterIndex = input.ReadUInt32();
            break;
          }
          case 58: {
            if (encounterDropInfo_ == null) {
              EncounterDropInfo = new global::EggLink.DanhengServer.Proto.GridFightDropInfo();
            }
            input.ReadMessage(EncounterDropInfo);
            break;
          }
          case 64: {
            EncounterExtraDifficultyLevel = input.ReadUInt32();
            break;
          }
          case 74: {
            monsterWaveList_.AddEntriesFrom(input, _repeated_monsterWaveList_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 24: {
            EncounterIndex = input.ReadUInt32();
            break;
          }
          case 58: {
            if (encounterDropInfo_ == null) {
              EncounterDropInfo = new global::EggLink.DanhengServer.Proto.GridFightDropInfo();
            }
            input.ReadMessage(EncounterDropInfo);
            break;
          }
          case 64: {
            EncounterExtraDifficultyLevel = input.ReadUInt32();
            break;
          }
          case 74: {
            monsterWaveList_.AddEntriesFrom(ref input, _repeated_monsterWaveList_codec);
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
