Files
DanhengServer-OpenSource/Common/Proto/CurChallenge.cs
2024-05-25 21:53:32 +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(
"ChJDdXJDaGFsbGVuZ2UucHJvdG8aFUtpbGxNb25zdGVySW5mby5wcm90bxoV",
"RXh0cmFMaW5ldXBUeXBlLnByb3RvGhVDaGFsbGVuZ2VTdGF0dXMucHJvdG8a",
"GENoYWxsZW5nZVN0b3J5SW5mby5wcm90byKfAgoMQ3VyQ2hhbGxlbmdlEjEK",
"F2FyY2hpdmVfbW9uc3Rlcl9pZF9saXN0GAUgAygLMhAuS2lsbE1vbnN0ZXJJ",
"bmZvEhAKCHNjb3JlX2lkGAMgASgNEhMKC3JvdW5kX2NvdW50GA0gASgNEhQK",
"DGNoYWxsZW5nZV9pZBgOIAEoDRIoCgtwbGF5ZXJfaW5mbxgJIAEoCzITLkNo",
"YWxsZW5nZVN0b3J5SW5mbxIRCglzY29yZV90d28YBCABKA0SIAoGc3RhdHVz",
"GAYgASgOMhAuQ2hhbGxlbmdlU3RhdHVzEisKEWV4dHJhX2xpbmV1cF90eXBl",
"GAwgASgOMhAuRXh0cmFMaW5ldXBUeXBlEhMKC0ZQQURDT0JJRERKGAIgASgN",
"Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.KillMonsterInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChallengeStatusReflection.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[]{ "ArchiveMonsterIdList", "ScoreId", "RoundCount", "ChallengeId", "PlayerInfo", "ScoreTwo", "Status", "ExtraLineupType", "FPADCOBIDDJ" }, 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() {
archiveMonsterIdList_ = other.archiveMonsterIdList_.Clone();
scoreId_ = other.scoreId_;
roundCount_ = other.roundCount_;
challengeId_ = other.challengeId_;
playerInfo_ = other.playerInfo_ != null ? other.playerInfo_.Clone() : null;
scoreTwo_ = other.scoreTwo_;
status_ = other.status_;
extraLineupType_ = other.extraLineupType_;
fPADCOBIDDJ_ = other.fPADCOBIDDJ_;
_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 "archive_monster_id_list" field.</summary>
public const int ArchiveMonsterIdListFieldNumber = 5;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.KillMonsterInfo> _repeated_archiveMonsterIdList_codec
= pb::FieldCodec.ForMessage(42, global::EggLink.DanhengServer.Proto.KillMonsterInfo.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonsterInfo> archiveMonsterIdList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonsterInfo>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.KillMonsterInfo> ArchiveMonsterIdList {
get { return archiveMonsterIdList_; }
}
/// <summary>Field number for the "score_id" field.</summary>
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;
}
}
/// <summary>Field number for the "round_count" field.</summary>
public const int RoundCountFieldNumber = 13;
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 "challenge_id" field.</summary>
public const int ChallengeIdFieldNumber = 14;
private uint challengeId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint ChallengeId {
get { return challengeId_; }
set {
challengeId_ = value;
}
}
/// <summary>Field number for the "player_info" field.</summary>
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;
}
}
/// <summary>Field number for the "score_two" field.</summary>
public const int ScoreTwoFieldNumber = 4;
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 "status" field.</summary>
public const int StatusFieldNumber = 6;
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 "extra_lineup_type" field.</summary>
public const int ExtraLineupTypeFieldNumber = 12;
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 "FPADCOBIDDJ" field.</summary>
public const int FPADCOBIDDJFieldNumber = 2;
private uint fPADCOBIDDJ_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint FPADCOBIDDJ {
get { return fPADCOBIDDJ_; }
set {
fPADCOBIDDJ_ = 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(!archiveMonsterIdList_.Equals(other.archiveMonsterIdList_)) return false;
if (ScoreId != other.ScoreId) return false;
if (RoundCount != other.RoundCount) return false;
if (ChallengeId != other.ChallengeId) return false;
if (!object.Equals(PlayerInfo, other.PlayerInfo)) return false;
if (ScoreTwo != other.ScoreTwo) return false;
if (Status != other.Status) return false;
if (ExtraLineupType != other.ExtraLineupType) return false;
if (FPADCOBIDDJ != other.FPADCOBIDDJ) 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 ^= archiveMonsterIdList_.GetHashCode();
if (ScoreId != 0) hash ^= ScoreId.GetHashCode();
if (RoundCount != 0) hash ^= RoundCount.GetHashCode();
if (ChallengeId != 0) hash ^= ChallengeId.GetHashCode();
if (playerInfo_ != null) hash ^= PlayerInfo.GetHashCode();
if (ScoreTwo != 0) hash ^= ScoreTwo.GetHashCode();
if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) hash ^= Status.GetHashCode();
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode();
if (FPADCOBIDDJ != 0) hash ^= FPADCOBIDDJ.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 (FPADCOBIDDJ != 0) {
output.WriteRawTag(16);
output.WriteUInt32(FPADCOBIDDJ);
}
if (ScoreId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(ScoreId);
}
if (ScoreTwo != 0) {
output.WriteRawTag(32);
output.WriteUInt32(ScoreTwo);
}
archiveMonsterIdList_.WriteTo(output, _repeated_archiveMonsterIdList_codec);
if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
output.WriteRawTag(48);
output.WriteEnum((int) Status);
}
if (playerInfo_ != null) {
output.WriteRawTag(74);
output.WriteMessage(PlayerInfo);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(96);
output.WriteEnum((int) ExtraLineupType);
}
if (RoundCount != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RoundCount);
}
if (ChallengeId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(ChallengeId);
}
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 (FPADCOBIDDJ != 0) {
output.WriteRawTag(16);
output.WriteUInt32(FPADCOBIDDJ);
}
if (ScoreId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(ScoreId);
}
if (ScoreTwo != 0) {
output.WriteRawTag(32);
output.WriteUInt32(ScoreTwo);
}
archiveMonsterIdList_.WriteTo(ref output, _repeated_archiveMonsterIdList_codec);
if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
output.WriteRawTag(48);
output.WriteEnum((int) Status);
}
if (playerInfo_ != null) {
output.WriteRawTag(74);
output.WriteMessage(PlayerInfo);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(96);
output.WriteEnum((int) ExtraLineupType);
}
if (RoundCount != 0) {
output.WriteRawTag(104);
output.WriteUInt32(RoundCount);
}
if (ChallengeId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(ChallengeId);
}
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 += archiveMonsterIdList_.CalculateSize(_repeated_archiveMonsterIdList_codec);
if (ScoreId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreId);
}
if (RoundCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCount);
}
if (ChallengeId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChallengeId);
}
if (playerInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerInfo);
}
if (ScoreTwo != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreTwo);
}
if (Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType);
}
if (FPADCOBIDDJ != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FPADCOBIDDJ);
}
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;
}
archiveMonsterIdList_.Add(other.archiveMonsterIdList_);
if (other.ScoreId != 0) {
ScoreId = other.ScoreId;
}
if (other.RoundCount != 0) {
RoundCount = other.RoundCount;
}
if (other.ChallengeId != 0) {
ChallengeId = other.ChallengeId;
}
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.Status != global::EggLink.DanhengServer.Proto.ChallengeStatus.ChallengeUnknown) {
Status = other.Status;
}
if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
ExtraLineupType = other.ExtraLineupType;
}
if (other.FPADCOBIDDJ != 0) {
FPADCOBIDDJ = other.FPADCOBIDDJ;
}
_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: {
FPADCOBIDDJ = input.ReadUInt32();
break;
}
case 24: {
ScoreId = input.ReadUInt32();
break;
}
case 32: {
ScoreTwo = input.ReadUInt32();
break;
}
case 42: {
archiveMonsterIdList_.AddEntriesFrom(input, _repeated_archiveMonsterIdList_codec);
break;
}
case 48: {
Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum();
break;
}
case 74: {
if (playerInfo_ == null) {
PlayerInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo();
}
input.ReadMessage(PlayerInfo);
break;
}
case 96: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
break;
}
case 104: {
RoundCount = input.ReadUInt32();
break;
}
case 112: {
ChallengeId = 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: {
FPADCOBIDDJ = input.ReadUInt32();
break;
}
case 24: {
ScoreId = input.ReadUInt32();
break;
}
case 32: {
ScoreTwo = input.ReadUInt32();
break;
}
case 42: {
archiveMonsterIdList_.AddEntriesFrom(ref input, _repeated_archiveMonsterIdList_codec);
break;
}
case 48: {
Status = (global::EggLink.DanhengServer.Proto.ChallengeStatus) input.ReadEnum();
break;
}
case 74: {
if (playerInfo_ == null) {
PlayerInfo = new global::EggLink.DanhengServer.Proto.ChallengeStoryInfo();
}
input.ReadMessage(PlayerInfo);
break;
}
case 96: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
break;
}
case 104: {
RoundCount = input.ReadUInt32();
break;
}
case 112: {
ChallengeId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code