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

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

    static ChallengeReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Cg9DaGFsbGVuZ2UucHJvdG8aGENoYWxsZW5nZVN0YWdlSW5mby5wcm90byK7",
            "AQoJQ2hhbGxlbmdlEhEKCXNjb3JlX3R3bxgPIAEoDRIQCghzY29yZV9pZBgE",
            "IAEoDRIMCgRzdGFyGAcgASgNEhMKC0tGREFJQ0lMTk1CGAIgASgIEicKCnN0",
            "YWdlX2luZm8YCCABKAsyEy5DaGFsbGVuZ2VTdGFnZUluZm8SEQoJcmVjb3Jk",
            "X2lkGAkgASgNEhQKDHRha2VuX3Jld2FyZBgLIAEoDRIUCgxjaGFsbGVuZ2Vf",
            "aWQYDSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv",
            "dG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeStageInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Challenge), global::EggLink.DanhengServer.Proto.Challenge.Parser, new[]{ "ScoreTwo", "ScoreId", "Star", "KFDAICILNMB", "StageInfo", "RecordId", "TakenReward", "ChallengeId" }, null, null, null, null)
          }));
    }
    #endregion

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

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public Challenge(Challenge other) : this() {
      scoreTwo_ = other.scoreTwo_;
      scoreId_ = other.scoreId_;
      star_ = other.star_;
      kFDAICILNMB_ = other.kFDAICILNMB_;
      stageInfo_ = other.stageInfo_ != null ? other.stageInfo_.Clone() : null;
      recordId_ = other.recordId_;
      takenReward_ = other.takenReward_;
      challengeId_ = other.challengeId_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

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

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

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

    /// <summary>Field number for the "stage_info" field.</summary>
    public const int StageInfoFieldNumber = 8;
    private global::EggLink.DanhengServer.Proto.ChallengeStageInfo stageInfo_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::EggLink.DanhengServer.Proto.ChallengeStageInfo StageInfo {
      get { return stageInfo_; }
      set {
        stageInfo_ = value;
      }
    }

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

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

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(Challenge other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ScoreTwo != other.ScoreTwo) return false;
      if (ScoreId != other.ScoreId) return false;
      if (Star != other.Star) return false;
      if (KFDAICILNMB != other.KFDAICILNMB) return false;
      if (!object.Equals(StageInfo, other.StageInfo)) return false;
      if (RecordId != other.RecordId) return false;
      if (TakenReward != other.TakenReward) return false;
      if (ChallengeId != other.ChallengeId) 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 (ScoreTwo != 0) hash ^= ScoreTwo.GetHashCode();
      if (ScoreId != 0) hash ^= ScoreId.GetHashCode();
      if (Star != 0) hash ^= Star.GetHashCode();
      if (KFDAICILNMB != false) hash ^= KFDAICILNMB.GetHashCode();
      if (stageInfo_ != null) hash ^= StageInfo.GetHashCode();
      if (RecordId != 0) hash ^= RecordId.GetHashCode();
      if (TakenReward != 0) hash ^= TakenReward.GetHashCode();
      if (ChallengeId != 0) hash ^= ChallengeId.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 (KFDAICILNMB != false) {
        output.WriteRawTag(16);
        output.WriteBool(KFDAICILNMB);
      }
      if (ScoreId != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(ScoreId);
      }
      if (Star != 0) {
        output.WriteRawTag(56);
        output.WriteUInt32(Star);
      }
      if (stageInfo_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(StageInfo);
      }
      if (RecordId != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(RecordId);
      }
      if (TakenReward != 0) {
        output.WriteRawTag(88);
        output.WriteUInt32(TakenReward);
      }
      if (ChallengeId != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(ChallengeId);
      }
      if (ScoreTwo != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(ScoreTwo);
      }
      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 (KFDAICILNMB != false) {
        output.WriteRawTag(16);
        output.WriteBool(KFDAICILNMB);
      }
      if (ScoreId != 0) {
        output.WriteRawTag(32);
        output.WriteUInt32(ScoreId);
      }
      if (Star != 0) {
        output.WriteRawTag(56);
        output.WriteUInt32(Star);
      }
      if (stageInfo_ != null) {
        output.WriteRawTag(66);
        output.WriteMessage(StageInfo);
      }
      if (RecordId != 0) {
        output.WriteRawTag(72);
        output.WriteUInt32(RecordId);
      }
      if (TakenReward != 0) {
        output.WriteRawTag(88);
        output.WriteUInt32(TakenReward);
      }
      if (ChallengeId != 0) {
        output.WriteRawTag(104);
        output.WriteUInt32(ChallengeId);
      }
      if (ScoreTwo != 0) {
        output.WriteRawTag(120);
        output.WriteUInt32(ScoreTwo);
      }
      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 (ScoreTwo != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo);
      }
      if (ScoreId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreId);
      }
      if (Star != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Star);
      }
      if (KFDAICILNMB != false) {
        size += 1 + 1;
      }
      if (stageInfo_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(StageInfo);
      }
      if (RecordId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RecordId);
      }
      if (TakenReward != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TakenReward);
      }
      if (ChallengeId != 0) {
        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(Challenge other) {
      if (other == null) {
        return;
      }
      if (other.ScoreTwo != 0) {
        ScoreTwo = other.ScoreTwo;
      }
      if (other.ScoreId != 0) {
        ScoreId = other.ScoreId;
      }
      if (other.Star != 0) {
        Star = other.Star;
      }
      if (other.KFDAICILNMB != false) {
        KFDAICILNMB = other.KFDAICILNMB;
      }
      if (other.stageInfo_ != null) {
        if (stageInfo_ == null) {
          StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeStageInfo();
        }
        StageInfo.MergeFrom(other.StageInfo);
      }
      if (other.RecordId != 0) {
        RecordId = other.RecordId;
      }
      if (other.TakenReward != 0) {
        TakenReward = other.TakenReward;
      }
      if (other.ChallengeId != 0) {
        ChallengeId = other.ChallengeId;
      }
      _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 16: {
            KFDAICILNMB = input.ReadBool();
            break;
          }
          case 32: {
            ScoreId = input.ReadUInt32();
            break;
          }
          case 56: {
            Star = input.ReadUInt32();
            break;
          }
          case 66: {
            if (stageInfo_ == null) {
              StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeStageInfo();
            }
            input.ReadMessage(StageInfo);
            break;
          }
          case 72: {
            RecordId = input.ReadUInt32();
            break;
          }
          case 88: {
            TakenReward = input.ReadUInt32();
            break;
          }
          case 104: {
            ChallengeId = input.ReadUInt32();
            break;
          }
          case 120: {
            ScoreTwo = 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 16: {
            KFDAICILNMB = input.ReadBool();
            break;
          }
          case 32: {
            ScoreId = input.ReadUInt32();
            break;
          }
          case 56: {
            Star = input.ReadUInt32();
            break;
          }
          case 66: {
            if (stageInfo_ == null) {
              StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeStageInfo();
            }
            input.ReadMessage(StageInfo);
            break;
          }
          case 72: {
            RecordId = input.ReadUInt32();
            break;
          }
          case 88: {
            TakenReward = input.ReadUInt32();
            break;
          }
          case 104: {
            ChallengeId = input.ReadUInt32();
            break;
          }
          case 120: {
            ScoreTwo = input.ReadUInt32();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
