mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
447 lines
17 KiB
C#
447 lines
17 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: EntityBuffChangeInfo.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 EntityBuffChangeInfo.proto</summary>
|
|
public static partial class EntityBuffChangeInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for EntityBuffChangeInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static EntityBuffChangeInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChpFbnRpdHlCdWZmQ2hhbmdlSW5mby5wcm90bxoOQnVmZkluZm8ucHJvdG8a",
|
|
"H1NjZW5lRW50aXR5QnVmZkNoYW5nZVR5cGUucHJvdG8ivQEKFEVudGl0eUJ1",
|
|
"ZmZDaGFuZ2VJbmZvEioKBnJlYXNvbhgOIAEoDjIaLlNjZW5lRW50aXR5QnVm",
|
|
"ZkNoYW5nZVR5cGUSEQoJZW50aXR5X2lkGAggASgNEhYKDmNhc3RfZW50aXR5",
|
|
"X2lkGAYgASgNEiUKEGJ1ZmZfY2hhbmdlX2luZm8YDyABKAsyCS5CdWZmSW5m",
|
|
"b0gAEhgKDnJlbW92ZV9idWZmX2lkGAUgASgNSABCDQoLYnVmZl9jaGFuZ2VC",
|
|
"HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BuffInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EntityBuffChangeInfo), global::EggLink.DanhengServer.Proto.EntityBuffChangeInfo.Parser, new[]{ "Reason", "EntityId", "CastEntityId", "BuffChangeInfo", "RemoveBuffId" }, new[]{ "BuffChange" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class EntityBuffChangeInfo : pb::IMessage<EntityBuffChangeInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<EntityBuffChangeInfo> _parser = new pb::MessageParser<EntityBuffChangeInfo>(() => new EntityBuffChangeInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<EntityBuffChangeInfo> 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.EntityBuffChangeInfoReflection.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 EntityBuffChangeInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public EntityBuffChangeInfo(EntityBuffChangeInfo other) : this() {
|
|
reason_ = other.reason_;
|
|
entityId_ = other.entityId_;
|
|
castEntityId_ = other.castEntityId_;
|
|
switch (other.BuffChangeCase) {
|
|
case BuffChangeOneofCase.BuffChangeInfo:
|
|
BuffChangeInfo = other.BuffChangeInfo.Clone();
|
|
break;
|
|
case BuffChangeOneofCase.RemoveBuffId:
|
|
RemoveBuffId = other.RemoveBuffId;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public EntityBuffChangeInfo Clone() {
|
|
return new EntityBuffChangeInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "reason" field.</summary>
|
|
public const int ReasonFieldNumber = 14;
|
|
private global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType reason_ = global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType Reason {
|
|
get { return reason_; }
|
|
set {
|
|
reason_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "entity_id" field.</summary>
|
|
public const int EntityIdFieldNumber = 8;
|
|
private uint entityId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint EntityId {
|
|
get { return entityId_; }
|
|
set {
|
|
entityId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cast_entity_id" field.</summary>
|
|
public const int CastEntityIdFieldNumber = 6;
|
|
private uint castEntityId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint CastEntityId {
|
|
get { return castEntityId_; }
|
|
set {
|
|
castEntityId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "buff_change_info" field.</summary>
|
|
public const int BuffChangeInfoFieldNumber = 15;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.BuffInfo BuffChangeInfo {
|
|
get { return buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo ? (global::EggLink.DanhengServer.Proto.BuffInfo) buffChange_ : null; }
|
|
set {
|
|
buffChange_ = value;
|
|
buffChangeCase_ = value == null ? BuffChangeOneofCase.None : BuffChangeOneofCase.BuffChangeInfo;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "remove_buff_id" field.</summary>
|
|
public const int RemoveBuffIdFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint RemoveBuffId {
|
|
get { return HasRemoveBuffId ? (uint) buffChange_ : 0; }
|
|
set {
|
|
buffChange_ = value;
|
|
buffChangeCase_ = BuffChangeOneofCase.RemoveBuffId;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "remove_buff_id" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasRemoveBuffId {
|
|
get { return buffChangeCase_ == BuffChangeOneofCase.RemoveBuffId; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "remove_buff_id" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearRemoveBuffId() {
|
|
if (HasRemoveBuffId) {
|
|
ClearBuffChange();
|
|
}
|
|
}
|
|
|
|
private object buffChange_;
|
|
/// <summary>Enum of possible cases for the "buff_change" oneof.</summary>
|
|
public enum BuffChangeOneofCase {
|
|
None = 0,
|
|
BuffChangeInfo = 15,
|
|
RemoveBuffId = 5,
|
|
}
|
|
private BuffChangeOneofCase buffChangeCase_ = BuffChangeOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BuffChangeOneofCase BuffChangeCase {
|
|
get { return buffChangeCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearBuffChange() {
|
|
buffChangeCase_ = BuffChangeOneofCase.None;
|
|
buffChange_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EntityBuffChangeInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(EntityBuffChangeInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Reason != other.Reason) return false;
|
|
if (EntityId != other.EntityId) return false;
|
|
if (CastEntityId != other.CastEntityId) return false;
|
|
if (!object.Equals(BuffChangeInfo, other.BuffChangeInfo)) return false;
|
|
if (RemoveBuffId != other.RemoveBuffId) return false;
|
|
if (BuffChangeCase != other.BuffChangeCase) 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 (Reason != global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default) hash ^= Reason.GetHashCode();
|
|
if (EntityId != 0) hash ^= EntityId.GetHashCode();
|
|
if (CastEntityId != 0) hash ^= CastEntityId.GetHashCode();
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) hash ^= BuffChangeInfo.GetHashCode();
|
|
if (HasRemoveBuffId) hash ^= RemoveBuffId.GetHashCode();
|
|
hash ^= (int) buffChangeCase_;
|
|
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 (HasRemoveBuffId) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(RemoveBuffId);
|
|
}
|
|
if (CastEntityId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(CastEntityId);
|
|
}
|
|
if (EntityId != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteUInt32(EntityId);
|
|
}
|
|
if (Reason != global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default) {
|
|
output.WriteRawTag(112);
|
|
output.WriteEnum((int) Reason);
|
|
}
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) {
|
|
output.WriteRawTag(122);
|
|
output.WriteMessage(BuffChangeInfo);
|
|
}
|
|
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 (HasRemoveBuffId) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(RemoveBuffId);
|
|
}
|
|
if (CastEntityId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(CastEntityId);
|
|
}
|
|
if (EntityId != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteUInt32(EntityId);
|
|
}
|
|
if (Reason != global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default) {
|
|
output.WriteRawTag(112);
|
|
output.WriteEnum((int) Reason);
|
|
}
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) {
|
|
output.WriteRawTag(122);
|
|
output.WriteMessage(BuffChangeInfo);
|
|
}
|
|
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 (Reason != global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
|
|
}
|
|
if (EntityId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId);
|
|
}
|
|
if (CastEntityId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CastEntityId);
|
|
}
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffChangeInfo);
|
|
}
|
|
if (HasRemoveBuffId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RemoveBuffId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(EntityBuffChangeInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Reason != global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType.Default) {
|
|
Reason = other.Reason;
|
|
}
|
|
if (other.EntityId != 0) {
|
|
EntityId = other.EntityId;
|
|
}
|
|
if (other.CastEntityId != 0) {
|
|
CastEntityId = other.CastEntityId;
|
|
}
|
|
switch (other.BuffChangeCase) {
|
|
case BuffChangeOneofCase.BuffChangeInfo:
|
|
if (BuffChangeInfo == null) {
|
|
BuffChangeInfo = new global::EggLink.DanhengServer.Proto.BuffInfo();
|
|
}
|
|
BuffChangeInfo.MergeFrom(other.BuffChangeInfo);
|
|
break;
|
|
case BuffChangeOneofCase.RemoveBuffId:
|
|
RemoveBuffId = other.RemoveBuffId;
|
|
break;
|
|
}
|
|
|
|
_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 40: {
|
|
RemoveBuffId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
CastEntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
EntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
Reason = (global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 122: {
|
|
global::EggLink.DanhengServer.Proto.BuffInfo subBuilder = new global::EggLink.DanhengServer.Proto.BuffInfo();
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) {
|
|
subBuilder.MergeFrom(BuffChangeInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
BuffChangeInfo = subBuilder;
|
|
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 40: {
|
|
RemoveBuffId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
CastEntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
EntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
Reason = (global::EggLink.DanhengServer.Proto.SceneEntityBuffChangeType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 122: {
|
|
global::EggLink.DanhengServer.Proto.BuffInfo subBuilder = new global::EggLink.DanhengServer.Proto.BuffInfo();
|
|
if (buffChangeCase_ == BuffChangeOneofCase.BuffChangeInfo) {
|
|
subBuilder.MergeFrom(BuffChangeInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
BuffChangeInfo = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|