Files
DanhengServer-OpenSource/Proto/CurChallenge.cs
2025-08-16 21:13:05 +08:00

536 lines
20 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CurChallenge.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 CurChallenge.proto</summary>
public static partial class CurChallengeReflection {
#region Descriptor
/// <summary>File descriptor for CurChallenge.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CurChallengeReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJDdXJDaGFsbGVuZ2UucHJvdG8aEUtpbGxNb25zdGVyLnByb3RvGhVFeHRy",
"YUxpbmV1cFR5cGUucHJvdG8aGkNoYWxsZW5nZUN1ckJ1ZmZJbmZvLnByb3Rv",
"GhVDaGFsbGVuZ2VTdGF0dXMucHJvdG8imgIKDEN1ckNoYWxsZW5nZRIrChFl",
"eHRyYV9saW5ldXBfdHlwZRgPIAEoDjIQLkV4dHJhTGluZXVwVHlwZRInChFr",
"aWxsX21vbnN0ZXJfbGlzdBgLIAMoCzIMLktpbGxNb25zdGVyEhMKC3JvdW5k",
"X2NvdW50GAUgASgNEikKCnN0YWdlX2luZm8YBiABKAsyFS5DaGFsbGVuZ2VD",
"dXJCdWZmSW5mbxIQCghzY29yZV9pZBgCIAEoDRIgCgZzdGF0dXMYASABKA4y",
"EC5DaGFsbGVuZ2VTdGF0dXMSFwoPZGVhZF9hdmF0YXJfbnVtGAkgASgNEhEK",
"CXNjb3JlX3R3bxgOIAEoDRIUCgxjaGFsbGVuZ2VfaWQYCiABKA1CHqoCG0Vn",
"Z0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.KillMonsterReflection.Descriptor, global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeStatusReflection.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[]{ "ExtraLineupType", "KillMonsterList", "RoundCount", "StageInfo", "ScoreId", "Status", "DeadAvatarNum", "ScoreTwo", "ChallengeId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class CurChallenge : pb::IMessage<CurChallenge>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CurChallenge> _parser = new pb::MessageParser<CurChallenge>(() => new CurChallenge());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<CurChallenge> 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() {
extraLineupType_ = other.extraLineupType_;
killMonsterList_ = other.killMonsterList_.Clone();
roundCount_ = other.roundCount_;
stageInfo_ = other.stageInfo_ != null ? other.stageInfo_.Clone() : null;
scoreId_ = other.scoreId_;
status_ = other.status_;
deadAvatarNum_ = other.deadAvatarNum_;
scoreTwo_ = other.scoreTwo_;
challengeId_ = other.challengeId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CurChallenge Clone() {
return new CurChallenge(this);
}
/// <summary>Field number for the "extra_lineup_type" field.</summary>
public const int ExtraLineupTypeFieldNumber = 15;
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;
}
}
/// <summary>Field number for the "kill_monster_list" field.</summary>
public const int KillMonsterListFieldNumber = 11;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.KillMonster> _repeated_killMonsterList_codec
= pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.KillMonster.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonster> killMonsterList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonster>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonster> KillMonsterList {
get { return killMonsterList_; }
}
/// <summary>Field number for the "round_count" field.</summary>
public const int RoundCountFieldNumber = 5;
private uint roundCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RoundCount {
get { return roundCount_; }
set {
roundCount_ = value;
}
}
/// <summary>Field number for the "stage_info" field.</summary>
public const int StageInfoFieldNumber = 6;
private global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfo stageInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfo StageInfo {
get { return stageInfo_; }
set {
stageInfo_ = value;
}
}
/// <summary>Field number for the "score_id" field.</summary>
public const int ScoreIdFieldNumber = 2;
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 "status" field.</summary>
public const int StatusFieldNumber = 1;
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;
}
}
/// <summary>Field number for the "dead_avatar_num" field.</summary>
public const int DeadAvatarNumFieldNumber = 9;
private uint deadAvatarNum_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint DeadAvatarNum {
get { return deadAvatarNum_; }
set {
deadAvatarNum_ = value;
}
}
/// <summary>Field number for the "score_two" field.</summary>
public const int ScoreTwoFieldNumber = 14;
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 "challenge_id" field.</summary>
public const int ChallengeIdFieldNumber = 10;
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 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 (ExtraLineupType != other.ExtraLineupType) return false;
if(!killMonsterList_.Equals(other.killMonsterList_)) return false;
if (RoundCount != other.RoundCount) return false;
if (!object.Equals(StageInfo, other.StageInfo)) return false;
if (ScoreId != other.ScoreId) return false;
if (Status != other.Status) return false;
if (DeadAvatarNum != other.DeadAvatarNum) return false;
if (ScoreTwo != other.ScoreTwo) 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 (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode();
hash ^= killMonsterList_.GetHashCode();
if (RoundCount != 0) hash ^= RoundCount.GetHashCode();
if (stageInfo_ != null) hash ^= StageInfo.GetHashCode();
if (ScoreId != 0) hash ^= ScoreId.GetHashCode();
if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) hash ^= Status.GetHashCode();
if (DeadAvatarNum != 0) hash ^= DeadAvatarNum.GetHashCode();
if (ScoreTwo != 0) hash ^= ScoreTwo.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 (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Status);
}
if (ScoreId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(ScoreId);
}
if (RoundCount != 0) {
output.WriteRawTag(40);
output.WriteUInt32(RoundCount);
}
if (stageInfo_ != null) {
output.WriteRawTag(50);
output.WriteMessage(StageInfo);
}
if (DeadAvatarNum != 0) {
output.WriteRawTag(72);
output.WriteUInt32(DeadAvatarNum);
}
if (ChallengeId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(ChallengeId);
}
killMonsterList_.WriteTo(output, _repeated_killMonsterList_codec);
if (ScoreTwo != 0) {
output.WriteRawTag(112);
output.WriteUInt32(ScoreTwo);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(120);
output.WriteEnum((int) ExtraLineupType);
}
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 (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Status);
}
if (ScoreId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(ScoreId);
}
if (RoundCount != 0) {
output.WriteRawTag(40);
output.WriteUInt32(RoundCount);
}
if (stageInfo_ != null) {
output.WriteRawTag(50);
output.WriteMessage(StageInfo);
}
if (DeadAvatarNum != 0) {
output.WriteRawTag(72);
output.WriteUInt32(DeadAvatarNum);
}
if (ChallengeId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(ChallengeId);
}
killMonsterList_.WriteTo(ref output, _repeated_killMonsterList_codec);
if (ScoreTwo != 0) {
output.WriteRawTag(112);
output.WriteUInt32(ScoreTwo);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(120);
output.WriteEnum((int) ExtraLineupType);
}
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 (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType);
}
size += killMonsterList_.CalculateSize(_repeated_killMonsterList_codec);
if (RoundCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCount);
}
if (stageInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StageInfo);
}
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 (DeadAvatarNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeadAvatarNum);
}
if (ScoreTwo != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo);
}
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(CurChallenge other) {
if (other == null) {
return;
}
if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
ExtraLineupType = other.ExtraLineupType;
}
killMonsterList_.Add(other.killMonsterList_);
if (other.RoundCount != 0) {
RoundCount = other.RoundCount;
}
if (other.stageInfo_ != null) {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfo();
}
StageInfo.MergeFrom(other.StageInfo);
}
if (other.ScoreId != 0) {
ScoreId = other.ScoreId;
}
if (other.Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
Status = other.Status;
}
if (other.DeadAvatarNum != 0) {
DeadAvatarNum = other.DeadAvatarNum;
}
if (other.ScoreTwo != 0) {
ScoreTwo = other.ScoreTwo;
}
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 8: {
Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum();
break;
}
case 16: {
ScoreId = input.ReadUInt32();
break;
}
case 40: {
RoundCount = input.ReadUInt32();
break;
}
case 50: {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfo();
}
input.ReadMessage(StageInfo);
break;
}
case 72: {
DeadAvatarNum = input.ReadUInt32();
break;
}
case 80: {
ChallengeId = input.ReadUInt32();
break;
}
case 90: {
killMonsterList_.AddEntriesFrom(input, _repeated_killMonsterList_codec);
break;
}
case 112: {
ScoreTwo = input.ReadUInt32();
break;
}
case 120: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
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 8: {
Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum();
break;
}
case 16: {
ScoreId = input.ReadUInt32();
break;
}
case 40: {
RoundCount = input.ReadUInt32();
break;
}
case 50: {
if (stageInfo_ == null) {
StageInfo = new global::EggLink.DanhengServer.Proto.ChallengeCurBuffInfo();
}
input.ReadMessage(StageInfo);
break;
}
case 72: {
DeadAvatarNum = input.ReadUInt32();
break;
}
case 80: {
ChallengeId = input.ReadUInt32();
break;
}
case 90: {
killMonsterList_.AddEntriesFrom(ref input, _repeated_killMonsterList_codec);
break;
}
case 112: {
ScoreTwo = input.ReadUInt32();
break;
}
case 120: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code