// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: traveler_duel_info.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 Proto {

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

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

    static TravelerDuelInfoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Chh0cmF2ZWxlcl9kdWVsX2luZm8ucHJvdG8SBXByb3RvGgxwdWJsaWMucHJv",
            "dG8i6AEKEFRyYXZlbGVyRHVlbEluZm8SEQoJRHVlbExldmVsGAEgASgNEg8K",
            "B0R1ZWxFeHAYAiABKA0SGAoQV2Vla2x5QXdhcmRUaW1lcxgDIAEoDRIsCgZM",
            "ZXZlbHMYBCADKAsyHC5wcm90by5UcmF2ZWxlckR1ZWxCb3NzTGV2ZWwSMwoJ",
            "Q2hhbGxlbmdlGAUgASgLMiAucHJvdG8uVHJhdmVsZXJEdWVsQ2hhbGxlbmdl",
            "SW5mbxIdCgZRdWVzdHMYBiABKAsyDS5wcm90by5RdWVzdHMSFAoLTmV4dFBh",
            "Y2thZ2UY/w8gASgMUABiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Proto.PublicReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Proto.TravelerDuelInfo), global::Proto.TravelerDuelInfo.Parser, new[]{ "DuelLevel", "DuelExp", "WeeklyAwardTimes", "Levels", "Challenge", "Quests", "NextPackage" }, null, null, null, null)
          }));
    }
    #endregion

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Proto.TravelerDuelInfoReflection.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 TravelerDuelInfo() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TravelerDuelInfo(TravelerDuelInfo other) : this() {
      duelLevel_ = other.duelLevel_;
      duelExp_ = other.duelExp_;
      weeklyAwardTimes_ = other.weeklyAwardTimes_;
      levels_ = other.levels_.Clone();
      challenge_ = other.challenge_ != null ? other.challenge_.Clone() : null;
      quests_ = other.quests_ != null ? other.quests_.Clone() : null;
      nextPackage_ = other.nextPackage_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

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

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

    /// <summary>Field number for the "Levels" field.</summary>
    public const int LevelsFieldNumber = 4;
    private static readonly pb::FieldCodec<global::Proto.TravelerDuelBossLevel> _repeated_levels_codec
        = pb::FieldCodec.ForMessage(34, global::Proto.TravelerDuelBossLevel.Parser);
    private readonly pbc::RepeatedField<global::Proto.TravelerDuelBossLevel> levels_ = new pbc::RepeatedField<global::Proto.TravelerDuelBossLevel>();
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::Proto.TravelerDuelBossLevel> Levels {
      get { return levels_; }
    }

    /// <summary>Field number for the "Challenge" field.</summary>
    public const int ChallengeFieldNumber = 5;
    private global::Proto.TravelerDuelChallengeInfo challenge_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Proto.TravelerDuelChallengeInfo Challenge {
      get { return challenge_; }
      set {
        challenge_ = value;
      }
    }

    /// <summary>Field number for the "Quests" field.</summary>
    public const int QuestsFieldNumber = 6;
    private global::Proto.Quests quests_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Proto.Quests Quests {
      get { return quests_; }
      set {
        quests_ = value;
      }
    }

    /// <summary>Field number for the "NextPackage" field.</summary>
    public const int NextPackageFieldNumber = 2047;
    private pb::ByteString nextPackage_ = pb::ByteString.Empty;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pb::ByteString NextPackage {
      get { return nextPackage_; }
      set {
        nextPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TravelerDuelInfo other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (DuelLevel != other.DuelLevel) return false;
      if (DuelExp != other.DuelExp) return false;
      if (WeeklyAwardTimes != other.WeeklyAwardTimes) return false;
      if(!levels_.Equals(other.levels_)) return false;
      if (!object.Equals(Challenge, other.Challenge)) return false;
      if (!object.Equals(Quests, other.Quests)) return false;
      if (NextPackage != other.NextPackage) 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 (DuelLevel != 0) hash ^= DuelLevel.GetHashCode();
      if (DuelExp != 0) hash ^= DuelExp.GetHashCode();
      if (WeeklyAwardTimes != 0) hash ^= WeeklyAwardTimes.GetHashCode();
      hash ^= levels_.GetHashCode();
      if (challenge_ != null) hash ^= Challenge.GetHashCode();
      if (quests_ != null) hash ^= Quests.GetHashCode();
      if (NextPackage.Length != 0) hash ^= NextPackage.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 (DuelLevel != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(DuelLevel);
      }
      if (DuelExp != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(DuelExp);
      }
      if (WeeklyAwardTimes != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(WeeklyAwardTimes);
      }
      levels_.WriteTo(output, _repeated_levels_codec);
      if (challenge_ != null) {
        output.WriteRawTag(42);
        output.WriteMessage(Challenge);
      }
      if (quests_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(Quests);
      }
      if (NextPackage.Length != 0) {
        output.WriteRawTag(250, 127);
        output.WriteBytes(NextPackage);
      }
      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 (DuelLevel != 0) {
        output.WriteRawTag(8);
        output.WriteUInt32(DuelLevel);
      }
      if (DuelExp != 0) {
        output.WriteRawTag(16);
        output.WriteUInt32(DuelExp);
      }
      if (WeeklyAwardTimes != 0) {
        output.WriteRawTag(24);
        output.WriteUInt32(WeeklyAwardTimes);
      }
      levels_.WriteTo(ref output, _repeated_levels_codec);
      if (challenge_ != null) {
        output.WriteRawTag(42);
        output.WriteMessage(Challenge);
      }
      if (quests_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(Quests);
      }
      if (NextPackage.Length != 0) {
        output.WriteRawTag(250, 127);
        output.WriteBytes(NextPackage);
      }
      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 (DuelLevel != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DuelLevel);
      }
      if (DuelExp != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DuelExp);
      }
      if (WeeklyAwardTimes != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WeeklyAwardTimes);
      }
      size += levels_.CalculateSize(_repeated_levels_codec);
      if (challenge_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Challenge);
      }
      if (quests_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Quests);
      }
      if (NextPackage.Length != 0) {
        size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TravelerDuelInfo other) {
      if (other == null) {
        return;
      }
      if (other.DuelLevel != 0) {
        DuelLevel = other.DuelLevel;
      }
      if (other.DuelExp != 0) {
        DuelExp = other.DuelExp;
      }
      if (other.WeeklyAwardTimes != 0) {
        WeeklyAwardTimes = other.WeeklyAwardTimes;
      }
      levels_.Add(other.levels_);
      if (other.challenge_ != null) {
        if (challenge_ == null) {
          Challenge = new global::Proto.TravelerDuelChallengeInfo();
        }
        Challenge.MergeFrom(other.Challenge);
      }
      if (other.quests_ != null) {
        if (quests_ == null) {
          Quests = new global::Proto.Quests();
        }
        Quests.MergeFrom(other.Quests);
      }
      if (other.NextPackage.Length != 0) {
        NextPackage = other.NextPackage;
      }
      _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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 8: {
            DuelLevel = input.ReadUInt32();
            break;
          }
          case 16: {
            DuelExp = input.ReadUInt32();
            break;
          }
          case 24: {
            WeeklyAwardTimes = input.ReadUInt32();
            break;
          }
          case 34: {
            levels_.AddEntriesFrom(input, _repeated_levels_codec);
            break;
          }
          case 42: {
            if (challenge_ == null) {
              Challenge = new global::Proto.TravelerDuelChallengeInfo();
            }
            input.ReadMessage(Challenge);
            break;
          }
          case 50: {
            if (quests_ == null) {
              Quests = new global::Proto.Quests();
            }
            input.ReadMessage(Quests);
            break;
          }
          case 16378: {
            NextPackage = input.ReadBytes();
            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) {
      if ((tag & 7) == 4) {
        // Abort on any end group tag.
        return;
      }
      switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 8: {
            DuelLevel = input.ReadUInt32();
            break;
          }
          case 16: {
            DuelExp = input.ReadUInt32();
            break;
          }
          case 24: {
            WeeklyAwardTimes = input.ReadUInt32();
            break;
          }
          case 34: {
            levels_.AddEntriesFrom(ref input, _repeated_levels_codec);
            break;
          }
          case 42: {
            if (challenge_ == null) {
              Challenge = new global::Proto.TravelerDuelChallengeInfo();
            }
            input.ReadMessage(Challenge);
            break;
          }
          case 50: {
            if (quests_ == null) {
              Quests = new global::Proto.Quests();
            }
            input.ReadMessage(Quests);
            break;
          }
          case 16378: {
            NextPackage = input.ReadBytes();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
