mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
403 lines
16 KiB
C#
403 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RogueModifier.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 RogueModifier.proto</summary>
|
|
public static partial class RogueModifierReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RogueModifier.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RogueModifierReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChNSb2d1ZU1vZGlmaWVyLnByb3RvGhpSb2d1ZU1vZGlmaWVyQ29udGVudC5w",
|
|
"cm90bxocQ2hlc3NSb2d1ZU1vZGlmaWVySW5mby5wcm90bxodUm9ndWVNb2Rp",
|
|
"ZmllclNvdXJjZVR5cGUucHJvdG8izwEKDVJvZ3VlTW9kaWZpZXISLwoQbW9k",
|
|
"aWZpZXJfY29udGVudBgFIAEoCzIVLlJvZ3VlTW9kaWZpZXJDb250ZW50EhMK",
|
|
"C21vZGlmaWVyX2lkGA4gASgEEjYKFG1vZGlmaWVyX3NvdXJjZV90eXBlGAwg",
|
|
"ASgOMhguUm9ndWVNb2RpZmllclNvdXJjZVR5cGUSMQoNbW9kaWZpZXJfaW5m",
|
|
"bxiUByABKAsyFy5DaGVzc1JvZ3VlTW9kaWZpZXJJbmZvSABCDQoLT0xJQ0ZE",
|
|
"UEZMT0VCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueModifierContentReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueModifierInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueModifierSourceTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueModifier), global::EggLink.DanhengServer.Proto.RogueModifier.Parser, new[]{ "ModifierContent", "ModifierId", "ModifierSourceType", "ModifierInfo" }, new[]{ "OLICFDPFLOE" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RogueModifier : pb::IMessage<RogueModifier>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RogueModifier> _parser = new pb::MessageParser<RogueModifier>(() => new RogueModifier());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RogueModifier> 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.RogueModifierReflection.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 RogueModifier() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueModifier(RogueModifier other) : this() {
|
|
modifierContent_ = other.modifierContent_ != null ? other.modifierContent_.Clone() : null;
|
|
modifierId_ = other.modifierId_;
|
|
modifierSourceType_ = other.modifierSourceType_;
|
|
switch (other.OLICFDPFLOECase) {
|
|
case OLICFDPFLOEOneofCase.ModifierInfo:
|
|
ModifierInfo = other.ModifierInfo.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueModifier Clone() {
|
|
return new RogueModifier(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "modifier_content" field.</summary>
|
|
public const int ModifierContentFieldNumber = 5;
|
|
private global::EggLink.DanhengServer.Proto.RogueModifierContent modifierContent_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueModifierContent ModifierContent {
|
|
get { return modifierContent_; }
|
|
set {
|
|
modifierContent_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "modifier_id" field.</summary>
|
|
public const int ModifierIdFieldNumber = 14;
|
|
private ulong modifierId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ulong ModifierId {
|
|
get { return modifierId_; }
|
|
set {
|
|
modifierId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "modifier_source_type" field.</summary>
|
|
public const int ModifierSourceTypeFieldNumber = 12;
|
|
private global::EggLink.DanhengServer.Proto.RogueModifierSourceType modifierSourceType_ = global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueModifierSourceType ModifierSourceType {
|
|
get { return modifierSourceType_; }
|
|
set {
|
|
modifierSourceType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "modifier_info" field.</summary>
|
|
public const int ModifierInfoFieldNumber = 916;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo ModifierInfo {
|
|
get { return oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo ? (global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo) oLICFDPFLOE_ : null; }
|
|
set {
|
|
oLICFDPFLOE_ = value;
|
|
oLICFDPFLOECase_ = value == null ? OLICFDPFLOEOneofCase.None : OLICFDPFLOEOneofCase.ModifierInfo;
|
|
}
|
|
}
|
|
|
|
private object oLICFDPFLOE_;
|
|
/// <summary>Enum of possible cases for the "OLICFDPFLOE" oneof.</summary>
|
|
public enum OLICFDPFLOEOneofCase {
|
|
None = 0,
|
|
ModifierInfo = 916,
|
|
}
|
|
private OLICFDPFLOEOneofCase oLICFDPFLOECase_ = OLICFDPFLOEOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public OLICFDPFLOEOneofCase OLICFDPFLOECase {
|
|
get { return oLICFDPFLOECase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearOLICFDPFLOE() {
|
|
oLICFDPFLOECase_ = OLICFDPFLOEOneofCase.None;
|
|
oLICFDPFLOE_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RogueModifier);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RogueModifier other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ModifierContent, other.ModifierContent)) return false;
|
|
if (ModifierId != other.ModifierId) return false;
|
|
if (ModifierSourceType != other.ModifierSourceType) return false;
|
|
if (!object.Equals(ModifierInfo, other.ModifierInfo)) return false;
|
|
if (OLICFDPFLOECase != other.OLICFDPFLOECase) 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 (modifierContent_ != null) hash ^= ModifierContent.GetHashCode();
|
|
if (ModifierId != 0UL) hash ^= ModifierId.GetHashCode();
|
|
if (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) hash ^= ModifierSourceType.GetHashCode();
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) hash ^= ModifierInfo.GetHashCode();
|
|
hash ^= (int) oLICFDPFLOECase_;
|
|
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 (modifierContent_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(ModifierContent);
|
|
}
|
|
if (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) ModifierSourceType);
|
|
}
|
|
if (ModifierId != 0UL) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt64(ModifierId);
|
|
}
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) {
|
|
output.WriteRawTag(162, 57);
|
|
output.WriteMessage(ModifierInfo);
|
|
}
|
|
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 (modifierContent_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(ModifierContent);
|
|
}
|
|
if (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
output.WriteRawTag(96);
|
|
output.WriteEnum((int) ModifierSourceType);
|
|
}
|
|
if (ModifierId != 0UL) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt64(ModifierId);
|
|
}
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) {
|
|
output.WriteRawTag(162, 57);
|
|
output.WriteMessage(ModifierInfo);
|
|
}
|
|
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 (modifierContent_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModifierContent);
|
|
}
|
|
if (ModifierId != 0UL) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ModifierId);
|
|
}
|
|
if (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModifierSourceType);
|
|
}
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) {
|
|
size += 2 + pb::CodedOutputStream.ComputeMessageSize(ModifierInfo);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RogueModifier other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.modifierContent_ != null) {
|
|
if (modifierContent_ == null) {
|
|
ModifierContent = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
ModifierContent.MergeFrom(other.ModifierContent);
|
|
}
|
|
if (other.ModifierId != 0UL) {
|
|
ModifierId = other.ModifierId;
|
|
}
|
|
if (other.ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
ModifierSourceType = other.ModifierSourceType;
|
|
}
|
|
switch (other.OLICFDPFLOECase) {
|
|
case OLICFDPFLOEOneofCase.ModifierInfo:
|
|
if (ModifierInfo == null) {
|
|
ModifierInfo = new global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo();
|
|
}
|
|
ModifierInfo.MergeFrom(other.ModifierInfo);
|
|
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 42: {
|
|
if (modifierContent_ == null) {
|
|
ModifierContent = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
input.ReadMessage(ModifierContent);
|
|
break;
|
|
}
|
|
case 96: {
|
|
ModifierSourceType = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ModifierId = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 7330: {
|
|
global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo subBuilder = new global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo();
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) {
|
|
subBuilder.MergeFrom(ModifierInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ModifierInfo = 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 42: {
|
|
if (modifierContent_ == null) {
|
|
ModifierContent = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
input.ReadMessage(ModifierContent);
|
|
break;
|
|
}
|
|
case 96: {
|
|
ModifierSourceType = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 112: {
|
|
ModifierId = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 7330: {
|
|
global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo subBuilder = new global::EggLink.DanhengServer.Proto.ChessRogueModifierInfo();
|
|
if (oLICFDPFLOECase_ == OLICFDPFLOEOneofCase.ModifierInfo) {
|
|
subBuilder.MergeFrom(ModifierInfo);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
ModifierInfo = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|