Files
DanhengServer-OpenSource/Proto/BuffInfo.cs
2025-08-15 12:52:47 +08:00

488 lines
16 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BuffInfo.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 BuffInfo.proto</summary>
public static partial class BuffInfoReflection {
#region Descriptor
/// <summary>File descriptor for BuffInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BuffInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg5CdWZmSW5mby5wcm90byKEAgoIQnVmZkluZm8SFgoOYmFzZV9hdmF0YXJf",
"aWQYDCABKA0SDQoFbGV2ZWwYCCABKA0SDQoFY291bnQYDSABKA0SDwoHYnVm",
"Zl9pZBgCIAEoDRITCgthZGRfdGltZV9tcxgHIAEoBBIdChVidWZmX3N1bW1v",
"bl9lbnRpdHlfaWQYDiABKA0SNAoOZHluYW1pY192YWx1ZXMYCiADKAsyHC5C",
"dWZmSW5mby5EeW5hbWljVmFsdWVzRW50cnkSEQoJbGlmZV90aW1lGAUgASgC",
"GjQKEkR5bmFtaWNWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY",
"AiABKAI6AjgBQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy",
"b3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BuffInfo), global::EggLink.DanhengServer.Proto.BuffInfo.Parser, new[]{ "BaseAvatarId", "Level", "Count", "BuffId", "AddTimeMs", "BuffSummonEntityId", "DynamicValues", "LifeTime" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class BuffInfo : pb::IMessage<BuffInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BuffInfo> _parser = new pb::MessageParser<BuffInfo>(() => new BuffInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BuffInfo> 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.BuffInfoReflection.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 BuffInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BuffInfo(BuffInfo other) : this() {
baseAvatarId_ = other.baseAvatarId_;
level_ = other.level_;
count_ = other.count_;
buffId_ = other.buffId_;
addTimeMs_ = other.addTimeMs_;
buffSummonEntityId_ = other.buffSummonEntityId_;
dynamicValues_ = other.dynamicValues_.Clone();
lifeTime_ = other.lifeTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BuffInfo Clone() {
return new BuffInfo(this);
}
/// <summary>Field number for the "base_avatar_id" field.</summary>
public const int BaseAvatarIdFieldNumber = 12;
private uint baseAvatarId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BaseAvatarId {
get { return baseAvatarId_; }
set {
baseAvatarId_ = value;
}
}
/// <summary>Field number for the "level" field.</summary>
public const int LevelFieldNumber = 8;
private uint level_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Level {
get { return level_; }
set {
level_ = value;
}
}
/// <summary>Field number for the "count" field.</summary>
public const int CountFieldNumber = 13;
private uint count_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint Count {
get { return count_; }
set {
count_ = value;
}
}
/// <summary>Field number for the "buff_id" field.</summary>
public const int BuffIdFieldNumber = 2;
private uint buffId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BuffId {
get { return buffId_; }
set {
buffId_ = value;
}
}
/// <summary>Field number for the "add_time_ms" field.</summary>
public const int AddTimeMsFieldNumber = 7;
private ulong addTimeMs_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ulong AddTimeMs {
get { return addTimeMs_; }
set {
addTimeMs_ = value;
}
}
/// <summary>Field number for the "buff_summon_entity_id" field.</summary>
public const int BuffSummonEntityIdFieldNumber = 14;
private uint buffSummonEntityId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BuffSummonEntityId {
get { return buffSummonEntityId_; }
set {
buffSummonEntityId_ = value;
}
}
/// <summary>Field number for the "dynamic_values" field.</summary>
public const int DynamicValuesFieldNumber = 10;
private static readonly pbc::MapField<string, float>.Codec _map_dynamicValues_codec
= new pbc::MapField<string, float>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForFloat(21, 0F), 82);
private readonly pbc::MapField<string, float> dynamicValues_ = new pbc::MapField<string, float>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, float> DynamicValues {
get { return dynamicValues_; }
}
/// <summary>Field number for the "life_time" field.</summary>
public const int LifeTimeFieldNumber = 5;
private float lifeTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float LifeTime {
get { return lifeTime_; }
set {
lifeTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BuffInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BuffInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (BaseAvatarId != other.BaseAvatarId) return false;
if (Level != other.Level) return false;
if (Count != other.Count) return false;
if (BuffId != other.BuffId) return false;
if (AddTimeMs != other.AddTimeMs) return false;
if (BuffSummonEntityId != other.BuffSummonEntityId) return false;
if (!DynamicValues.Equals(other.DynamicValues)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LifeTime, other.LifeTime)) 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 (BaseAvatarId != 0) hash ^= BaseAvatarId.GetHashCode();
if (Level != 0) hash ^= Level.GetHashCode();
if (Count != 0) hash ^= Count.GetHashCode();
if (BuffId != 0) hash ^= BuffId.GetHashCode();
if (AddTimeMs != 0UL) hash ^= AddTimeMs.GetHashCode();
if (BuffSummonEntityId != 0) hash ^= BuffSummonEntityId.GetHashCode();
hash ^= DynamicValues.GetHashCode();
if (LifeTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LifeTime);
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 (BuffId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BuffId);
}
if (LifeTime != 0F) {
output.WriteRawTag(45);
output.WriteFloat(LifeTime);
}
if (AddTimeMs != 0UL) {
output.WriteRawTag(56);
output.WriteUInt64(AddTimeMs);
}
if (Level != 0) {
output.WriteRawTag(64);
output.WriteUInt32(Level);
}
dynamicValues_.WriteTo(output, _map_dynamicValues_codec);
if (BaseAvatarId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(BaseAvatarId);
}
if (Count != 0) {
output.WriteRawTag(104);
output.WriteUInt32(Count);
}
if (BuffSummonEntityId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(BuffSummonEntityId);
}
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 (BuffId != 0) {
output.WriteRawTag(16);
output.WriteUInt32(BuffId);
}
if (LifeTime != 0F) {
output.WriteRawTag(45);
output.WriteFloat(LifeTime);
}
if (AddTimeMs != 0UL) {
output.WriteRawTag(56);
output.WriteUInt64(AddTimeMs);
}
if (Level != 0) {
output.WriteRawTag(64);
output.WriteUInt32(Level);
}
dynamicValues_.WriteTo(ref output, _map_dynamicValues_codec);
if (BaseAvatarId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(BaseAvatarId);
}
if (Count != 0) {
output.WriteRawTag(104);
output.WriteUInt32(Count);
}
if (BuffSummonEntityId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(BuffSummonEntityId);
}
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 (BaseAvatarId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BaseAvatarId);
}
if (Level != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level);
}
if (Count != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Count);
}
if (BuffId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffId);
}
if (AddTimeMs != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AddTimeMs);
}
if (BuffSummonEntityId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuffSummonEntityId);
}
size += dynamicValues_.CalculateSize(_map_dynamicValues_codec);
if (LifeTime != 0F) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BuffInfo other) {
if (other == null) {
return;
}
if (other.BaseAvatarId != 0) {
BaseAvatarId = other.BaseAvatarId;
}
if (other.Level != 0) {
Level = other.Level;
}
if (other.Count != 0) {
Count = other.Count;
}
if (other.BuffId != 0) {
BuffId = other.BuffId;
}
if (other.AddTimeMs != 0UL) {
AddTimeMs = other.AddTimeMs;
}
if (other.BuffSummonEntityId != 0) {
BuffSummonEntityId = other.BuffSummonEntityId;
}
dynamicValues_.MergeFrom(other.dynamicValues_);
if (other.LifeTime != 0F) {
LifeTime = other.LifeTime;
}
_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: {
BuffId = input.ReadUInt32();
break;
}
case 45: {
LifeTime = input.ReadFloat();
break;
}
case 56: {
AddTimeMs = input.ReadUInt64();
break;
}
case 64: {
Level = input.ReadUInt32();
break;
}
case 82: {
dynamicValues_.AddEntriesFrom(input, _map_dynamicValues_codec);
break;
}
case 96: {
BaseAvatarId = input.ReadUInt32();
break;
}
case 104: {
Count = input.ReadUInt32();
break;
}
case 112: {
BuffSummonEntityId = 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: {
BuffId = input.ReadUInt32();
break;
}
case 45: {
LifeTime = input.ReadFloat();
break;
}
case 56: {
AddTimeMs = input.ReadUInt64();
break;
}
case 64: {
Level = input.ReadUInt32();
break;
}
case 82: {
dynamicValues_.AddEntriesFrom(ref input, _map_dynamicValues_codec);
break;
}
case 96: {
BaseAvatarId = input.ReadUInt32();
break;
}
case 104: {
Count = input.ReadUInt32();
break;
}
case 112: {
BuffSummonEntityId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code