Files
DanhengServer-OpenSource/Proto/BattleBuffMsg.cs
2025-04-15 16:44:46 +08:00

311 lines
12 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattleBuffMsg.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 BattleBuffMsg.proto</summary>
public static partial class BattleBuffMsgReflection {
#region Descriptor
/// <summary>File descriptor for BattleBuffMsg.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BattleBuffMsgReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNCYXR0bGVCdWZmTXNnLnByb3RvIm8KDUJhdHRsZUJ1ZmZNc2cSFAoMYnVm",
"Zl9pZF9saXN0GAEgAygNEhcKD2J1ZmZfaW5kZXhfbGlzdBgCIAMoDRIXCg9i",
"dWZmX2xldmVsX2xpc3QYAyADKA0SFgoOYnVmZl9mbGFnX2xpc3QYBCADKA1C",
"HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.BattleBuffMsg), global::EggLink.DanhengServer.Proto.BattleBuffMsg.Parser, new[]{ "BuffIdList", "BuffIndexList", "BuffLevelList", "BuffFlagList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class BattleBuffMsg : pb::IMessage<BattleBuffMsg>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BattleBuffMsg> _parser = new pb::MessageParser<BattleBuffMsg>(() => new BattleBuffMsg());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BattleBuffMsg> 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.BattleBuffMsgReflection.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 BattleBuffMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BattleBuffMsg(BattleBuffMsg other) : this() {
buffIdList_ = other.buffIdList_.Clone();
buffIndexList_ = other.buffIndexList_.Clone();
buffLevelList_ = other.buffLevelList_.Clone();
buffFlagList_ = other.buffFlagList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BattleBuffMsg Clone() {
return new BattleBuffMsg(this);
}
/// <summary>Field number for the "buff_id_list" field.</summary>
public const int BuffIdListFieldNumber = 1;
private static readonly pb::FieldCodec<uint> _repeated_buffIdList_codec
= pb::FieldCodec.ForUInt32(10);
private readonly pbc::RepeatedField<uint> buffIdList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> BuffIdList {
get { return buffIdList_; }
}
/// <summary>Field number for the "buff_index_list" field.</summary>
public const int BuffIndexListFieldNumber = 2;
private static readonly pb::FieldCodec<uint> _repeated_buffIndexList_codec
= pb::FieldCodec.ForUInt32(18);
private readonly pbc::RepeatedField<uint> buffIndexList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> BuffIndexList {
get { return buffIndexList_; }
}
/// <summary>Field number for the "buff_level_list" field.</summary>
public const int BuffLevelListFieldNumber = 3;
private static readonly pb::FieldCodec<uint> _repeated_buffLevelList_codec
= pb::FieldCodec.ForUInt32(26);
private readonly pbc::RepeatedField<uint> buffLevelList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> BuffLevelList {
get { return buffLevelList_; }
}
/// <summary>Field number for the "buff_flag_list" field.</summary>
public const int BuffFlagListFieldNumber = 4;
private static readonly pb::FieldCodec<uint> _repeated_buffFlagList_codec
= pb::FieldCodec.ForUInt32(34);
private readonly pbc::RepeatedField<uint> buffFlagList_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<uint> BuffFlagList {
get { return buffFlagList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BattleBuffMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BattleBuffMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!buffIdList_.Equals(other.buffIdList_)) return false;
if(!buffIndexList_.Equals(other.buffIndexList_)) return false;
if(!buffLevelList_.Equals(other.buffLevelList_)) return false;
if(!buffFlagList_.Equals(other.buffFlagList_)) 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 ^= buffIdList_.GetHashCode();
hash ^= buffIndexList_.GetHashCode();
hash ^= buffLevelList_.GetHashCode();
hash ^= buffFlagList_.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
buffIdList_.WriteTo(output, _repeated_buffIdList_codec);
buffIndexList_.WriteTo(output, _repeated_buffIndexList_codec);
buffLevelList_.WriteTo(output, _repeated_buffLevelList_codec);
buffFlagList_.WriteTo(output, _repeated_buffFlagList_codec);
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) {
buffIdList_.WriteTo(ref output, _repeated_buffIdList_codec);
buffIndexList_.WriteTo(ref output, _repeated_buffIndexList_codec);
buffLevelList_.WriteTo(ref output, _repeated_buffLevelList_codec);
buffFlagList_.WriteTo(ref output, _repeated_buffFlagList_codec);
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 += buffIdList_.CalculateSize(_repeated_buffIdList_codec);
size += buffIndexList_.CalculateSize(_repeated_buffIndexList_codec);
size += buffLevelList_.CalculateSize(_repeated_buffLevelList_codec);
size += buffFlagList_.CalculateSize(_repeated_buffFlagList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BattleBuffMsg other) {
if (other == null) {
return;
}
buffIdList_.Add(other.buffIdList_);
buffIndexList_.Add(other.buffIndexList_);
buffLevelList_.Add(other.buffLevelList_);
buffFlagList_.Add(other.buffFlagList_);
_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 10:
case 8: {
buffIdList_.AddEntriesFrom(input, _repeated_buffIdList_codec);
break;
}
case 18:
case 16: {
buffIndexList_.AddEntriesFrom(input, _repeated_buffIndexList_codec);
break;
}
case 26:
case 24: {
buffLevelList_.AddEntriesFrom(input, _repeated_buffLevelList_codec);
break;
}
case 34:
case 32: {
buffFlagList_.AddEntriesFrom(input, _repeated_buffFlagList_codec);
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 10:
case 8: {
buffIdList_.AddEntriesFrom(ref input, _repeated_buffIdList_codec);
break;
}
case 18:
case 16: {
buffIndexList_.AddEntriesFrom(ref input, _repeated_buffIndexList_codec);
break;
}
case 26:
case 24: {
buffLevelList_.AddEntriesFrom(ref input, _repeated_buffLevelList_codec);
break;
}
case 34:
case 32: {
buffFlagList_.AddEntriesFrom(ref input, _repeated_buffFlagList_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code