Files
DanhengServer-OpenSource/Common/Proto/EntityBuffChange.cs
2024-05-11 21:58:31 +08:00

371 lines
14 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EntityBuffChange.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 EntityBuffChange.proto</summary>
public static partial class EntityBuffChangeReflection {
#region Descriptor
/// <summary>File descriptor for EntityBuffChange.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static EntityBuffChangeReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChZFbnRpdHlCdWZmQ2hhbmdlLnByb3RvGg5CdWZmSW5mby5wcm90byJrChBF",
"bnRpdHlCdWZmQ2hhbmdlEhEKCWVudGl0eV9pZBgKIAEoDRIeCglidWZmX2lu",
"Zm8YByABKAsyCS5CdWZmSW5mb0gAEhUKC0RQRkpPR01PRExIGAIgASgNSABC",
"DQoLSkZNT0tNQ09IREpCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90",
"b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.BuffInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.EntityBuffChange), global::EggLink.DanhengServer.Proto.EntityBuffChange.Parser, new[]{ "EntityId", "BuffInfo", "DPFJOGMODLH" }, new[]{ "JFMOKMCOHDJ" }, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class EntityBuffChange : pb::IMessage<EntityBuffChange>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<EntityBuffChange> _parser = new pb::MessageParser<EntityBuffChange>(() => new EntityBuffChange());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<EntityBuffChange> 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.EntityBuffChangeReflection.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 EntityBuffChange() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EntityBuffChange(EntityBuffChange other) : this() {
entityId_ = other.entityId_;
switch (other.JFMOKMCOHDJCase) {
case JFMOKMCOHDJOneofCase.BuffInfo:
BuffInfo = other.BuffInfo.Clone();
break;
case JFMOKMCOHDJOneofCase.DPFJOGMODLH:
DPFJOGMODLH = other.DPFJOGMODLH;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EntityBuffChange Clone() {
return new EntityBuffChange(this);
}
/// <summary>Field number for the "entity_id" field.</summary>
public const int EntityIdFieldNumber = 10;
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 "buff_info" field.</summary>
public const int BuffInfoFieldNumber = 7;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.BuffInfo BuffInfo {
get { return jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo ? (global::EggLink.DanhengServer.Proto.BuffInfo) jFMOKMCOHDJ_ : null; }
set {
jFMOKMCOHDJ_ = value;
jFMOKMCOHDJCase_ = value == null ? JFMOKMCOHDJOneofCase.None : JFMOKMCOHDJOneofCase.BuffInfo;
}
}
/// <summary>Field number for the "DPFJOGMODLH" field.</summary>
public const int DPFJOGMODLHFieldNumber = 2;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint DPFJOGMODLH {
get { return HasDPFJOGMODLH ? (uint) jFMOKMCOHDJ_ : 0; }
set {
jFMOKMCOHDJ_ = value;
jFMOKMCOHDJCase_ = JFMOKMCOHDJOneofCase.DPFJOGMODLH;
}
}
/// <summary>Gets whether the "DPFJOGMODLH" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDPFJOGMODLH {
get { return jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.DPFJOGMODLH; }
}
/// <summary> Clears the value of the oneof if it's currently set to "DPFJOGMODLH" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDPFJOGMODLH() {
if (HasDPFJOGMODLH) {
ClearJFMOKMCOHDJ();
}
}
private object jFMOKMCOHDJ_;
/// <summary>Enum of possible cases for the "JFMOKMCOHDJ" oneof.</summary>
public enum JFMOKMCOHDJOneofCase {
None = 0,
BuffInfo = 7,
DPFJOGMODLH = 2,
}
private JFMOKMCOHDJOneofCase jFMOKMCOHDJCase_ = JFMOKMCOHDJOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public JFMOKMCOHDJOneofCase JFMOKMCOHDJCase {
get { return jFMOKMCOHDJCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearJFMOKMCOHDJ() {
jFMOKMCOHDJCase_ = JFMOKMCOHDJOneofCase.None;
jFMOKMCOHDJ_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EntityBuffChange);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EntityBuffChange other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (EntityId != other.EntityId) return false;
if (!object.Equals(BuffInfo, other.BuffInfo)) return false;
if (DPFJOGMODLH != other.DPFJOGMODLH) return false;
if (JFMOKMCOHDJCase != other.JFMOKMCOHDJCase) 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 (EntityId != 0) hash ^= EntityId.GetHashCode();
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) hash ^= BuffInfo.GetHashCode();
if (HasDPFJOGMODLH) hash ^= DPFJOGMODLH.GetHashCode();
hash ^= (int) jFMOKMCOHDJCase_;
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 (HasDPFJOGMODLH) {
output.WriteRawTag(16);
output.WriteUInt32(DPFJOGMODLH);
}
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) {
output.WriteRawTag(58);
output.WriteMessage(BuffInfo);
}
if (EntityId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(EntityId);
}
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 (HasDPFJOGMODLH) {
output.WriteRawTag(16);
output.WriteUInt32(DPFJOGMODLH);
}
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) {
output.WriteRawTag(58);
output.WriteMessage(BuffInfo);
}
if (EntityId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(EntityId);
}
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 (EntityId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId);
}
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BuffInfo);
}
if (HasDPFJOGMODLH) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DPFJOGMODLH);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EntityBuffChange other) {
if (other == null) {
return;
}
if (other.EntityId != 0) {
EntityId = other.EntityId;
}
switch (other.JFMOKMCOHDJCase) {
case JFMOKMCOHDJOneofCase.BuffInfo:
if (BuffInfo == null) {
BuffInfo = new global::EggLink.DanhengServer.Proto.BuffInfo();
}
BuffInfo.MergeFrom(other.BuffInfo);
break;
case JFMOKMCOHDJOneofCase.DPFJOGMODLH:
DPFJOGMODLH = other.DPFJOGMODLH;
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 16: {
DPFJOGMODLH = input.ReadUInt32();
break;
}
case 58: {
global::EggLink.DanhengServer.Proto.BuffInfo subBuilder = new global::EggLink.DanhengServer.Proto.BuffInfo();
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) {
subBuilder.MergeFrom(BuffInfo);
}
input.ReadMessage(subBuilder);
BuffInfo = subBuilder;
break;
}
case 80: {
EntityId = 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: {
DPFJOGMODLH = input.ReadUInt32();
break;
}
case 58: {
global::EggLink.DanhengServer.Proto.BuffInfo subBuilder = new global::EggLink.DanhengServer.Proto.BuffInfo();
if (jFMOKMCOHDJCase_ == JFMOKMCOHDJOneofCase.BuffInfo) {
subBuilder.MergeFrom(BuffInfo);
}
input.ReadMessage(subBuilder);
BuffInfo = subBuilder;
break;
}
case 80: {
EntityId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code