Files
DanhengServer-OpenSource/Common/Proto/LineupInfo.cs
2024-05-02 15:27:57 +08:00

628 lines
22 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: LineupInfo.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 LineupInfo.proto</summary>
public static partial class LineupInfoReflection {
#region Descriptor
/// <summary>File descriptor for LineupInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static LineupInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBMaW5ldXBJbmZvLnByb3RvGhJMaW5ldXBBdmF0YXIucHJvdG8aFUV4dHJh",
"TGluZXVwVHlwZS5wcm90byKRAgoKTGluZXVwSW5mbxILCgNzdXMYDCABKA0S",
"EwoLbGVhZGVyX3Nsb3QYAyABKA0SEAoIcGxhbmVfaWQYASABKA0SEwoLRUJG",
"S0NNQkJMUEwYBCABKAgSEgoKaXNfdmlydHVhbBgCIAEoCBIOCgZtYXhfbXAY",
"CSABKA0SIgoLYXZhdGFyX2xpc3QYCyADKAsyDS5MaW5ldXBBdmF0YXISKwoR",
"ZXh0cmFfbGluZXVwX3R5cGUYBiABKA4yEC5FeHRyYUxpbmV1cFR5cGUSDQoF",
"aW5kZXgYByABKA0SHAoUdHJpYWxfYXZhdGFyX2lkX2xpc3QYDSADKA0SCgoC",
"bXAYCCABKA0SDAoEbmFtZRgPIAEoCUIeqgIbRWdnTGluay5EYW5oZW5nU2Vy",
"dmVyLlByb3RvYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.LineupAvatarReflection.Descriptor, global::EggLink.DanhengServer.Proto.ExtraLineupTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.LineupInfo), global::EggLink.DanhengServer.Proto.LineupInfo.Parser, new[]{ "Sus", "LeaderSlot", "PlaneId", "EBFKCMBBLPL", "IsVirtual", "MaxMp", "AvatarList", "ExtraLineupType", "Index", "TrialAvatarIdList", "Mp", "Name" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class LineupInfo : pb::IMessage<LineupInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LineupInfo> _parser = new pb::MessageParser<LineupInfo>(() => new LineupInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<LineupInfo> 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.LineupInfoReflection.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 LineupInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LineupInfo(LineupInfo other) : this() {
sus_ = other.sus_;
leaderSlot_ = other.leaderSlot_;
planeId_ = other.planeId_;
eBFKCMBBLPL_ = other.eBFKCMBBLPL_;
isVirtual_ = other.isVirtual_;
maxMp_ = other.maxMp_;
avatarList_ = other.avatarList_.Clone();
extraLineupType_ = other.extraLineupType_;
index_ = other.index_;
trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
mp_ = other.mp_;
name_ = other.name_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LineupInfo Clone() {
return new LineupInfo(this);
}
/// <summary>Field number for the "sus" field.</summary>
public const int SusFieldNumber = 12;
private uint sus_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Sus {
get { return sus_; }
set {
sus_ = value;
}
}
/// <summary>Field number for the "leader_slot" field.</summary>
public const int LeaderSlotFieldNumber = 3;
private uint leaderSlot_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint LeaderSlot {
get { return leaderSlot_; }
set {
leaderSlot_ = value;
}
}
/// <summary>Field number for the "plane_id" field.</summary>
public const int PlaneIdFieldNumber = 1;
private uint planeId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint PlaneId {
get { return planeId_; }
set {
planeId_ = value;
}
}
/// <summary>Field number for the "EBFKCMBBLPL" field.</summary>
public const int EBFKCMBBLPLFieldNumber = 4;
private bool eBFKCMBBLPL_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool EBFKCMBBLPL {
get { return eBFKCMBBLPL_; }
set {
eBFKCMBBLPL_ = value;
}
}
/// <summary>Field number for the "is_virtual" field.</summary>
public const int IsVirtualFieldNumber = 2;
private bool isVirtual_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsVirtual {
get { return isVirtual_; }
set {
isVirtual_ = value;
}
}
/// <summary>Field number for the "max_mp" field.</summary>
public const int MaxMpFieldNumber = 9;
private uint maxMp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint MaxMp {
get { return maxMp_; }
set {
maxMp_ = value;
}
}
/// <summary>Field number for the "avatar_list" field.</summary>
public const int AvatarListFieldNumber = 11;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.LineupAvatar> _repeated_avatarList_codec
= pb::FieldCodec.ForMessage(90, global::EggLink.DanhengServer.Proto.LineupAvatar.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LineupAvatar> avatarList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LineupAvatar>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.LineupAvatar> AvatarList {
get { return avatarList_; }
}
/// <summary>Field number for the "extra_lineup_type" field.</summary>
public const int ExtraLineupTypeFieldNumber = 6;
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 "index" field.</summary>
public const int IndexFieldNumber = 7;
private uint index_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Index {
get { return index_; }
set {
index_ = value;
}
}
/// <summary>Field number for the "trial_avatar_id_list" field.</summary>
public const int TrialAvatarIdListFieldNumber = 13;
private static readonly pb::FieldCodec<uint> _repeated_trialAvatarIdList_codec
= pb::FieldCodec.ForUInt32(106);
private readonly pbc::RepeatedField<uint> trialAvatarIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> TrialAvatarIdList {
get { return trialAvatarIdList_; }
}
/// <summary>Field number for the "mp" field.</summary>
public const int MpFieldNumber = 8;
private uint mp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Mp {
get { return mp_; }
set {
mp_ = value;
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 15;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LineupInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LineupInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Sus != other.Sus) return false;
if (LeaderSlot != other.LeaderSlot) return false;
if (PlaneId != other.PlaneId) return false;
if (EBFKCMBBLPL != other.EBFKCMBBLPL) return false;
if (IsVirtual != other.IsVirtual) return false;
if (MaxMp != other.MaxMp) return false;
if(!avatarList_.Equals(other.avatarList_)) return false;
if (ExtraLineupType != other.ExtraLineupType) return false;
if (Index != other.Index) return false;
if(!trialAvatarIdList_.Equals(other.trialAvatarIdList_)) return false;
if (Mp != other.Mp) return false;
if (Name != other.Name) 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 (Sus != 0) hash ^= Sus.GetHashCode();
if (LeaderSlot != 0) hash ^= LeaderSlot.GetHashCode();
if (PlaneId != 0) hash ^= PlaneId.GetHashCode();
if (EBFKCMBBLPL != false) hash ^= EBFKCMBBLPL.GetHashCode();
if (IsVirtual != false) hash ^= IsVirtual.GetHashCode();
if (MaxMp != 0) hash ^= MaxMp.GetHashCode();
hash ^= avatarList_.GetHashCode();
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) hash ^= ExtraLineupType.GetHashCode();
if (Index != 0) hash ^= Index.GetHashCode();
hash ^= trialAvatarIdList_.GetHashCode();
if (Mp != 0) hash ^= Mp.GetHashCode();
if (Name.Length != 0) hash ^= Name.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 (PlaneId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(PlaneId);
}
if (IsVirtual != false) {
output.WriteRawTag(16);
output.WriteBool(IsVirtual);
}
if (LeaderSlot != 0) {
output.WriteRawTag(24);
output.WriteUInt32(LeaderSlot);
}
if (EBFKCMBBLPL != false) {
output.WriteRawTag(32);
output.WriteBool(EBFKCMBBLPL);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(48);
output.WriteEnum((int) ExtraLineupType);
}
if (Index != 0) {
output.WriteRawTag(56);
output.WriteUInt32(Index);
}
if (Mp != 0) {
output.WriteRawTag(64);
output.WriteUInt32(Mp);
}
if (MaxMp != 0) {
output.WriteRawTag(72);
output.WriteUInt32(MaxMp);
}
avatarList_.WriteTo(output, _repeated_avatarList_codec);
if (Sus != 0) {
output.WriteRawTag(96);
output.WriteUInt32(Sus);
}
trialAvatarIdList_.WriteTo(output, _repeated_trialAvatarIdList_codec);
if (Name.Length != 0) {
output.WriteRawTag(122);
output.WriteString(Name);
}
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 (PlaneId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(PlaneId);
}
if (IsVirtual != false) {
output.WriteRawTag(16);
output.WriteBool(IsVirtual);
}
if (LeaderSlot != 0) {
output.WriteRawTag(24);
output.WriteUInt32(LeaderSlot);
}
if (EBFKCMBBLPL != false) {
output.WriteRawTag(32);
output.WriteBool(EBFKCMBBLPL);
}
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
output.WriteRawTag(48);
output.WriteEnum((int) ExtraLineupType);
}
if (Index != 0) {
output.WriteRawTag(56);
output.WriteUInt32(Index);
}
if (Mp != 0) {
output.WriteRawTag(64);
output.WriteUInt32(Mp);
}
if (MaxMp != 0) {
output.WriteRawTag(72);
output.WriteUInt32(MaxMp);
}
avatarList_.WriteTo(ref output, _repeated_avatarList_codec);
if (Sus != 0) {
output.WriteRawTag(96);
output.WriteUInt32(Sus);
}
trialAvatarIdList_.WriteTo(ref output, _repeated_trialAvatarIdList_codec);
if (Name.Length != 0) {
output.WriteRawTag(122);
output.WriteString(Name);
}
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 (Sus != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Sus);
}
if (LeaderSlot != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LeaderSlot);
}
if (PlaneId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlaneId);
}
if (EBFKCMBBLPL != false) {
size += 1 + 1;
}
if (IsVirtual != false) {
size += 1 + 1;
}
if (MaxMp != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxMp);
}
size += avatarList_.CalculateSize(_repeated_avatarList_codec);
if (ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtraLineupType);
}
if (Index != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Index);
}
size += trialAvatarIdList_.CalculateSize(_repeated_trialAvatarIdList_codec);
if (Mp != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Mp);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LineupInfo other) {
if (other == null) {
return;
}
if (other.Sus != 0) {
Sus = other.Sus;
}
if (other.LeaderSlot != 0) {
LeaderSlot = other.LeaderSlot;
}
if (other.PlaneId != 0) {
PlaneId = other.PlaneId;
}
if (other.EBFKCMBBLPL != false) {
EBFKCMBBLPL = other.EBFKCMBBLPL;
}
if (other.IsVirtual != false) {
IsVirtual = other.IsVirtual;
}
if (other.MaxMp != 0) {
MaxMp = other.MaxMp;
}
avatarList_.Add(other.avatarList_);
if (other.ExtraLineupType != global::EggLink.DanhengServer.Proto.ExtraLineupType.LineupNone) {
ExtraLineupType = other.ExtraLineupType;
}
if (other.Index != 0) {
Index = other.Index;
}
trialAvatarIdList_.Add(other.trialAvatarIdList_);
if (other.Mp != 0) {
Mp = other.Mp;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
_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: {
PlaneId = input.ReadUInt32();
break;
}
case 16: {
IsVirtual = input.ReadBool();
break;
}
case 24: {
LeaderSlot = input.ReadUInt32();
break;
}
case 32: {
EBFKCMBBLPL = input.ReadBool();
break;
}
case 48: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
break;
}
case 56: {
Index = input.ReadUInt32();
break;
}
case 64: {
Mp = input.ReadUInt32();
break;
}
case 72: {
MaxMp = input.ReadUInt32();
break;
}
case 90: {
avatarList_.AddEntriesFrom(input, _repeated_avatarList_codec);
break;
}
case 96: {
Sus = input.ReadUInt32();
break;
}
case 106:
case 104: {
trialAvatarIdList_.AddEntriesFrom(input, _repeated_trialAvatarIdList_codec);
break;
}
case 122: {
Name = input.ReadString();
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: {
PlaneId = input.ReadUInt32();
break;
}
case 16: {
IsVirtual = input.ReadBool();
break;
}
case 24: {
LeaderSlot = input.ReadUInt32();
break;
}
case 32: {
EBFKCMBBLPL = input.ReadBool();
break;
}
case 48: {
ExtraLineupType = (global::EggLink.DanhengServer.Proto.ExtraLineupType) input.ReadEnum();
break;
}
case 56: {
Index = input.ReadUInt32();
break;
}
case 64: {
Mp = input.ReadUInt32();
break;
}
case 72: {
MaxMp = input.ReadUInt32();
break;
}
case 90: {
avatarList_.AddEntriesFrom(ref input, _repeated_avatarList_codec);
break;
}
case 96: {
Sus = input.ReadUInt32();
break;
}
case 106:
case 104: {
trialAvatarIdList_.AddEntriesFrom(ref input, _repeated_trialAvatarIdList_codec);
break;
}
case 122: {
Name = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code