// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: CurChallenge.proto // #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 { /// Holder for reflection information generated from CurChallenge.proto public static partial class CurChallengeReflection { #region Descriptor /// File descriptor for CurChallenge.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CurChallengeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChJDdXJDaGFsbGVuZ2UucHJvdG8aFUNoYWxsZW5nZVN0YXR1cy5wcm90bxoR", "S2lsbE1vbnN0ZXIucHJvdG8aFUV4dHJhTGluZXVwVHlwZS5wcm90bxoYQ2hh", "bGxlbmdlU3RvcnlJbmZvLnByb3RvIpkCCgxDdXJDaGFsbGVuZ2USEAoIc2Nv", "cmVfaWQYAyABKA0SIAoGc3RhdHVzGA0gASgOMhAuQ2hhbGxlbmdlU3RhdHVz", "EigKC3BsYXllcl9pbmZvGAkgASgLMhMuQ2hhbGxlbmdlU3RvcnlJbmZvEhEK", "CXNjb3JlX3R3bxgMIAEoDRIrChFleHRyYV9saW5ldXBfdHlwZRgHIAEoDjIQ", "LkV4dHJhTGluZXVwVHlwZRIUCgxjaGFsbGVuZ2VfaWQYBSABKA0SEwoLcm91", "bmRfY291bnQYDiABKA0SJwoRa2lsbF9tb25zdGVyX2xpc3QYDyADKAsyDC5L", "aWxsTW9uc3RlchIXCg9kZWFkX2F2YXRhcl9udW0YCyABKA1CHqoCG0VnZ0xp", "bmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChallengeStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.KillMonsterReflection.Descriptor, global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeStoryInfoReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.CurChallenge), global::EggLink.DanhengServer.Proto.CurChallenge.Parser, new[]{ "ScoreId", "Status", "PlayerInfo", "ScoreTwo", "ExtraLineupType", "ChallengeId", "RoundCount", "KillMonsterList", "DeadAvatarNum" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CurChallenge : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurChallenge()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.CurChallengeReflection.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 CurChallenge() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurChallenge(CurChallenge other) : this() { scoreId_ = other.scoreId_; status_ = other.status_; playerInfo_ = other.playerInfo_ != null ? other.playerInfo_.Clone() : null; scoreTwo_ = other.scoreTwo_; extraLineupType_ = other.extraLineupType_; challengeId_ = other.challengeId_; roundCount_ = other.roundCount_; killMonsterList_ = other.killMonsterList_.Clone(); deadAvatarNum_ = other.deadAvatarNum_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurChallenge Clone() { return new CurChallenge(this); } /// Field number for the "score_id" field. public const int ScoreIdFieldNumber = 3; private uint scoreId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ScoreId { get { return scoreId_; } set { scoreId_ = value; } } /// Field number for the "status" field. public const int StatusFieldNumber = 13; private global::EggLink.DanhengServer.Proto.ChallengeStatus status_ = global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.ChallengeStatus Status { get { return status_; } set { status_ = value; } } /// Field number for the "player_info" field. public const int PlayerInfoFieldNumber = 9; private global::EggLink.DanhengServer.Proto.ChallengeStoryInfo playerInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.ChallengeStoryInfo PlayerInfo { get { return playerInfo_; } set { playerInfo_ = value; } } /// Field number for the "score_two" field. public const int ScoreTwoFieldNumber = 12; private uint scoreTwo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ScoreTwo { get { return scoreTwo_; } set { scoreTwo_ = value; } } /// Field number for the "extra_lineup_type" field. public const int ExtraLineupTypeFieldNumber = 7; private global::EggLink.DanhengServer.Proto.ExtraLineupType extraLineupType_ = global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.ExtraLineupType ExtraLineupType { get { return extraLineupType_; } set { extraLineupType_ = value; } } /// Field number for the "challenge_id" field. public const int ChallengeIdFieldNumber = 5; private uint challengeId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ChallengeId { get { return challengeId_; } set { challengeId_ = value; } } /// Field number for the "round_count" field. public const int RoundCountFieldNumber = 14; private uint roundCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint RoundCount { get { return roundCount_; } set { roundCount_ = value; } } /// Field number for the "kill_monster_list" field. public const int KillMonsterListFieldNumber = 15; private static readonly pb::FieldCodec _repeated_killMonsterList_codec = pb::FieldCodec.ForMessage(122, global::EggLink.DanhengServer.Proto.KillMonster.Parser); private readonly pbc::RepeatedField killMonsterList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField KillMonsterList { get { return killMonsterList_; } } /// Field number for the "dead_avatar_num" field. public const int DeadAvatarNumFieldNumber = 11; private uint deadAvatarNum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DeadAvatarNum { get { return deadAvatarNum_; } set { deadAvatarNum_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CurChallenge); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CurChallenge other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ScoreId != other.ScoreId) return false; if (Status != other.Status) return false; if (!object.Equals(PlayerInfo, other.PlayerInfo)) return false; if (ScoreTwo != other.ScoreTwo) return false; if (ExtraLineupType != other.ExtraLineupType) return false; if (ChallengeId != other.ChallengeId) return false; if (RoundCount != other.RoundCount) return false; if(!killMonsterList_.Equals(other.killMonsterList_)) return false; if (DeadAvatarNum != other.DeadAvatarNum) 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 (ScoreId != 0) hash ^= ScoreId.GetHashCode(); if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) hash ^= Status.GetHashCode(); if (playerInfo_ != null) hash ^= PlayerInfo.GetHashCode(); if (ScoreTwo != 0) hash ^= ScoreTwo.GetHashCode(); if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode(); if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode(); if (RoundCount != 0) hash ^= RoundCount.GetHashCode(); hash ^= killMonsterList_.GetHashCode(); if (DeadAvatarNum != 0) hash ^= DeadAvatarNum.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 (ScoreId != 0) { output.WriteRawTag(24); output.WriteUInt32(ScoreId); } if (ChallengeId != 0) { output.WriteRawTag(40); output.WriteUInt32(ChallengeId); } if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { output.WriteRawTag(56); output.WriteEnum((int) ExtraLineupType); } if (playerInfo_ != null) { output.WriteRawTag(74); output.WriteMessage(PlayerInfo); } if (DeadAvatarNum != 0) { output.WriteRawTag(88); output.WriteUInt32(DeadAvatarNum); } if (ScoreTwo != 0) { output.WriteRawTag(96); output.WriteUInt32(ScoreTwo); } if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { output.WriteRawTag(104); output.WriteEnum((int) Status); } if (RoundCount != 0) { output.WriteRawTag(112); output.WriteUInt32(RoundCount); } killMonsterList_.WriteTo(output, _repeated_killMonsterList_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 (ScoreId != 0) { output.WriteRawTag(24); output.WriteUInt32(ScoreId); } if (ChallengeId != 0) { output.WriteRawTag(40); output.WriteUInt32(ChallengeId); } if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { output.WriteRawTag(56); output.WriteEnum((int) ExtraLineupType); } if (playerInfo_ != null) { output.WriteRawTag(74); output.WriteMessage(PlayerInfo); } if (DeadAvatarNum != 0) { output.WriteRawTag(88); output.WriteUInt32(DeadAvatarNum); } if (ScoreTwo != 0) { output.WriteRawTag(96); output.WriteUInt32(ScoreTwo); } if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { output.WriteRawTag(104); output.WriteEnum((int) Status); } if (RoundCount != 0) { output.WriteRawTag(112); output.WriteUInt32(RoundCount); } killMonsterList_.WriteTo(ref output, _repeated_killMonsterList_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 (ScoreId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreId); } if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } if (playerInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerInfo); } if (ScoreTwo != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo); } if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType); } if (ChallengeId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId); } if (RoundCount != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCount); } size += killMonsterList_.CalculateSize(_repeated_killMonsterList_codec); if (DeadAvatarNum != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeadAvatarNum); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CurChallenge other) { if (other == null) { return; } if (other.ScoreId != 0) { ScoreId = other.ScoreId; } if (other.Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) { Status = other.Status; } if (other.playerInfo_ != null) { if (playerInfo_ == null) { PlayerInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); } PlayerInfo.MergeFrom(other.PlayerInfo); } if (other.ScoreTwo != 0) { ScoreTwo = other.ScoreTwo; } if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) { ExtraLineupType = other.ExtraLineupType; } if (other.ChallengeId != 0) { ChallengeId = other.ChallengeId; } if (other.RoundCount != 0) { RoundCount = other.RoundCount; } killMonsterList_.Add(other.killMonsterList_); if (other.DeadAvatarNum != 0) { DeadAvatarNum = other.DeadAvatarNum; } _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: { ScoreId = input.ReadUInt32(); break; } case 40: { ChallengeId = input.ReadUInt32(); break; } case 56: { ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); break; } case 74: { if (playerInfo_ == null) { PlayerInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); } input.ReadMessage(PlayerInfo); break; } case 88: { DeadAvatarNum = input.ReadUInt32(); break; } case 96: { ScoreTwo = input.ReadUInt32(); break; } case 104: { Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum(); break; } case 112: { RoundCount = input.ReadUInt32(); break; } case 122: { killMonsterList_.AddEntriesFrom(input, _repeated_killMonsterList_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: { ScoreId = input.ReadUInt32(); break; } case 40: { ChallengeId = input.ReadUInt32(); break; } case 56: { ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum(); break; } case 74: { if (playerInfo_ == null) { PlayerInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo(); } input.ReadMessage(PlayerInfo); break; } case 88: { DeadAvatarNum = input.ReadUInt32(); break; } case 96: { ScoreTwo = input.ReadUInt32(); break; } case 104: { Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum(); break; } case 112: { RoundCount = input.ReadUInt32(); break; } case 122: { killMonsterList_.AddEntriesFrom(ref input, _repeated_killMonsterList_codec); break; } } } } #endif } #endregion } #endregion Designer generated code