Files
DanhengServer-OpenSource/Proto/EvolveBuildLevelInfo.cs
2024-11-03 14:14:49 +08:00

404 lines
16 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EvolveBuildLevelInfo.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 EvolveBuildLevelInfo.proto</summary>
public static partial class EvolveBuildLevelInfoReflection {
#region Descriptor
/// <summary>File descriptor for EvolveBuildLevelInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EvolveBuildLevelInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChpFdm9sdmVCdWlsZExldmVsSW5mby5wcm90bxobRXZvbHZlQnVpbGRCYXR0",
"bGVJbmZvLnByb3RvGhJCYXR0bGVUYXJnZXQucHJvdG8aF0V2b2x2ZUJ1aWxk",
"QXZhdGFyLnByb3RvItgBChRFdm9sdmVCdWlsZExldmVsSW5mbxIWCg5wZXJp",
"b2RfaWRfbGlzdBgIIAMoDRIUCgxjdXJfZ2FtZV9leHAYASABKA0SJwoLYXZh",
"dGFyX2xpc3QYAyADKAsyEi5Fdm9sdmVCdWlsZEF2YXRhchIRCglyb3VuZF9j",
"bnQYCSABKA0SKwoLYmF0dGxlX2luZm8YBCABKAsyFi5Fdm9sdmVCdWlsZEJh",
"dHRsZUluZm8SKQoSYmF0dGxlX3RhcmdldF9saXN0GAYgAygLMg0uQmF0dGxl",
"VGFyZ2V0Qh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3Rv",
"Mw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.BattleTargetReflection.Descriptor, global::EggLink.DanhengServer.Proto.EvolveBuildAvatarReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EvolveBuildLevelInfo), global::EggLink.DanhengServer.Proto.EvolveBuildLevelInfo.Parser, new[]{ "PeriodIdList", "CurGameExp", "AvatarList", "RoundCnt", "BattleInfo", "BattleTargetList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class EvolveBuildLevelInfo : pb::IMessage<EvolveBuildLevelInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<EvolveBuildLevelInfo> _parser = new pb::MessageParser<EvolveBuildLevelInfo>(() => new EvolveBuildLevelInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<EvolveBuildLevelInfo> 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.EvolveBuildLevelInfoReflection.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 EvolveBuildLevelInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EvolveBuildLevelInfo(EvolveBuildLevelInfo other) : this() {
periodIdList_ = other.periodIdList_.Clone();
curGameExp_ = other.curGameExp_;
avatarList_ = other.avatarList_.Clone();
roundCnt_ = other.roundCnt_;
battleInfo_ = other.battleInfo_ != null ? other.battleInfo_.Clone() : null;
battleTargetList_ = other.battleTargetList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EvolveBuildLevelInfo Clone() {
return new EvolveBuildLevelInfo(this);
}
/// <summary>Field number for the "period_id_list" field.</summary>
public const int PeriodIdListFieldNumber = 8;
private static readonly pb::FieldCodec<uint> _repeated_periodIdList_codec
= pb::FieldCodec.ForUInt32(66);
private readonly pbc::RepeatedField<uint> periodIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> PeriodIdList {
get { return periodIdList_; }
}
/// <summary>Field number for the "cur_game_exp" field.</summary>
public const int CurGameExpFieldNumber = 1;
private uint curGameExp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CurGameExp {
get { return curGameExp_; }
set {
curGameExp_ = value;
}
}
/// <summary>Field number for the "avatar_list" field.</summary>
public const int AvatarListFieldNumber = 3;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.EvolveBuildAvatar> _repeated_avatarList_codec
= pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.EvolveBuildAvatar.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.EvolveBuildAvatar> avatarList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.EvolveBuildAvatar>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.EvolveBuildAvatar> AvatarList {
get { return avatarList_; }
}
/// <summary>Field number for the "round_cnt" field.</summary>
public const int RoundCntFieldNumber = 9;
private uint roundCnt_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RoundCnt {
get { return roundCnt_; }
set {
roundCnt_ = value;
}
}
/// <summary>Field number for the "battle_info" field.</summary>
public const int BattleInfoFieldNumber = 4;
private global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfo battleInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfo BattleInfo {
get { return battleInfo_; }
set {
battleInfo_ = value;
}
}
/// <summary>Field number for the "battle_target_list" field.</summary>
public const int BattleTargetListFieldNumber = 6;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.BattleTarget> _repeated_battleTargetList_codec
= pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.BattleTarget.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleTarget> battleTargetList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleTarget>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.BattleTarget> BattleTargetList {
get { return battleTargetList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EvolveBuildLevelInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EvolveBuildLevelInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!periodIdList_.Equals(other.periodIdList_)) return false;
if (CurGameExp != other.CurGameExp) return false;
if(!avatarList_.Equals(other.avatarList_)) return false;
if (RoundCnt != other.RoundCnt) return false;
if (!object.Equals(BattleInfo, other.BattleInfo)) return false;
if(!battleTargetList_.Equals(other.battleTargetList_)) 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 ^= periodIdList_.GetHashCode();
if (CurGameExp != 0) hash ^= CurGameExp.GetHashCode();
hash ^= avatarList_.GetHashCode();
if (RoundCnt != 0) hash ^= RoundCnt.GetHashCode();
if (battleInfo_ != null) hash ^= BattleInfo.GetHashCode();
hash ^= battleTargetList_.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 (CurGameExp != 0) {
output.WriteRawTag(8);
output.WriteUInt32(CurGameExp);
}
avatarList_.WriteTo(output, _repeated_avatarList_codec);
if (battleInfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(BattleInfo);
}
battleTargetList_.WriteTo(output, _repeated_battleTargetList_codec);
periodIdList_.WriteTo(output, _repeated_periodIdList_codec);
if (RoundCnt != 0) {
output.WriteRawTag(72);
output.WriteUInt32(RoundCnt);
}
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 (CurGameExp != 0) {
output.WriteRawTag(8);
output.WriteUInt32(CurGameExp);
}
avatarList_.WriteTo(ref output, _repeated_avatarList_codec);
if (battleInfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(BattleInfo);
}
battleTargetList_.WriteTo(ref output, _repeated_battleTargetList_codec);
periodIdList_.WriteTo(ref output, _repeated_periodIdList_codec);
if (RoundCnt != 0) {
output.WriteRawTag(72);
output.WriteUInt32(RoundCnt);
}
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 += periodIdList_.CalculateSize(_repeated_periodIdList_codec);
if (CurGameExp != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurGameExp);
}
size += avatarList_.CalculateSize(_repeated_avatarList_codec);
if (RoundCnt != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoundCnt);
}
if (battleInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleInfo);
}
size += battleTargetList_.CalculateSize(_repeated_battleTargetList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EvolveBuildLevelInfo other) {
if (other == null) {
return;
}
periodIdList_.Add(other.periodIdList_);
if (other.CurGameExp != 0) {
CurGameExp = other.CurGameExp;
}
avatarList_.Add(other.avatarList_);
if (other.RoundCnt != 0) {
RoundCnt = other.RoundCnt;
}
if (other.battleInfo_ != null) {
if (battleInfo_ == null) {
BattleInfo = new global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfo();
}
BattleInfo.MergeFrom(other.BattleInfo);
}
battleTargetList_.Add(other.battleTargetList_);
_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: {
CurGameExp = input.ReadUInt32();
break;
}
case 26: {
avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec);
break;
}
case 34: {
if (battleInfo_ == null) {
BattleInfo = new global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfo();
}
input.ReadMessage(BattleInfo);
break;
}
case 50: {
battleTargetList_.AddEntriesFrom(input, _repeated_battleTargetList_codec);
break;
}
case 66:
case 64: {
periodIdList_.AddEntriesFrom(input, _repeated_periodIdList_codec);
break;
}
case 72: {
RoundCnt = 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 8: {
CurGameExp = input.ReadUInt32();
break;
}
case 26: {
avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec);
break;
}
case 34: {
if (battleInfo_ == null) {
BattleInfo = new global::EggLink.DanhengServer.Proto.EvolveBuildBattleInfo();
}
input.ReadMessage(BattleInfo);
break;
}
case 50: {
battleTargetList_.AddEntriesFrom(ref input, _repeated_battleTargetList_codec);
break;
}
case 66:
case 64: {
periodIdList_.AddEntriesFrom(ref input, _repeated_periodIdList_codec);
break;
}
case 72: {
RoundCnt = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code