mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
369 lines
14 KiB
C#
369 lines
14 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",
|
|
"cm90bxoiQ2hlc3NSb2d1ZU1vZGlmaWVyU2VsZWN0SW5mby5wcm90bxodUm9n",
|
|
"dWVNb2RpZmllclNvdXJjZVR5cGUucHJvdG8iwAEKDVJvZ3VlTW9kaWZpZXIS",
|
|
"NgoUbW9kaWZpZXJfc291cmNlX3R5cGUYASABKA4yGC5Sb2d1ZU1vZGlmaWVy",
|
|
"U291cmNlVHlwZRIaChJtb2RpZmllcl91bmlxdWVfaWQYByABKAQSJgoHY29u",
|
|
"dGVudBgPIAEoCzIVLlJvZ3VlTW9kaWZpZXJDb250ZW50EjMKC3NlbGVjdF9p",
|
|
"bmZvGPAJIAEoCzIdLkNoZXNzUm9ndWVNb2RpZmllclNlbGVjdEluZm9CHqoC",
|
|
"G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueModifierContentReflection.Descriptor, global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfoReflection.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[]{ "ModifierSourceType", "ModifierUniqueId", "Content", "SelectInfo" }, null, 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() {
|
|
modifierSourceType_ = other.modifierSourceType_;
|
|
modifierUniqueId_ = other.modifierUniqueId_;
|
|
content_ = other.content_ != null ? other.content_.Clone() : null;
|
|
selectInfo_ = other.selectInfo_ != null ? other.selectInfo_.Clone() : null;
|
|
_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_source_type" field.</summary>
|
|
public const int ModifierSourceTypeFieldNumber = 1;
|
|
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_unique_id" field.</summary>
|
|
public const int ModifierUniqueIdFieldNumber = 7;
|
|
private ulong modifierUniqueId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ulong ModifierUniqueId {
|
|
get { return modifierUniqueId_; }
|
|
set {
|
|
modifierUniqueId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "content" field.</summary>
|
|
public const int ContentFieldNumber = 15;
|
|
private global::EggLink.DanhengServer.Proto.RogueModifierContent content_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueModifierContent Content {
|
|
get { return content_; }
|
|
set {
|
|
content_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "select_info" field.</summary>
|
|
public const int SelectInfoFieldNumber = 1264;
|
|
private global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfo selectInfo_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfo SelectInfo {
|
|
get { return selectInfo_; }
|
|
set {
|
|
selectInfo_ = value;
|
|
}
|
|
}
|
|
|
|
[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 (ModifierSourceType != other.ModifierSourceType) return false;
|
|
if (ModifierUniqueId != other.ModifierUniqueId) return false;
|
|
if (!object.Equals(Content, other.Content)) return false;
|
|
if (!object.Equals(SelectInfo, other.SelectInfo)) 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 (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) hash ^= ModifierSourceType.GetHashCode();
|
|
if (ModifierUniqueId != 0UL) hash ^= ModifierUniqueId.GetHashCode();
|
|
if (content_ != null) hash ^= Content.GetHashCode();
|
|
if (selectInfo_ != null) hash ^= SelectInfo.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
|
|
if (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
output.WriteRawTag(8);
|
|
output.WriteEnum((int) ModifierSourceType);
|
|
}
|
|
if (ModifierUniqueId != 0UL) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt64(ModifierUniqueId);
|
|
}
|
|
if (content_ != null) {
|
|
output.WriteRawTag(122);
|
|
output.WriteMessage(Content);
|
|
}
|
|
if (selectInfo_ != null) {
|
|
output.WriteRawTag(130, 79);
|
|
output.WriteMessage(SelectInfo);
|
|
}
|
|
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 (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
output.WriteRawTag(8);
|
|
output.WriteEnum((int) ModifierSourceType);
|
|
}
|
|
if (ModifierUniqueId != 0UL) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt64(ModifierUniqueId);
|
|
}
|
|
if (content_ != null) {
|
|
output.WriteRawTag(122);
|
|
output.WriteMessage(Content);
|
|
}
|
|
if (selectInfo_ != null) {
|
|
output.WriteRawTag(130, 79);
|
|
output.WriteMessage(SelectInfo);
|
|
}
|
|
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 (ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModifierSourceType);
|
|
}
|
|
if (ModifierUniqueId != 0UL) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ModifierUniqueId);
|
|
}
|
|
if (content_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Content);
|
|
}
|
|
if (selectInfo_ != null) {
|
|
size += 2 + pb::CodedOutputStream.ComputeMessageSize(SelectInfo);
|
|
}
|
|
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.ModifierSourceType != global::EggLink.DanhengServer.Proto.RogueModifierSourceType.RogueModifierSourceNone) {
|
|
ModifierSourceType = other.ModifierSourceType;
|
|
}
|
|
if (other.ModifierUniqueId != 0UL) {
|
|
ModifierUniqueId = other.ModifierUniqueId;
|
|
}
|
|
if (other.content_ != null) {
|
|
if (content_ == null) {
|
|
Content = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
Content.MergeFrom(other.Content);
|
|
}
|
|
if (other.selectInfo_ != null) {
|
|
if (selectInfo_ == null) {
|
|
SelectInfo = new global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfo();
|
|
}
|
|
SelectInfo.MergeFrom(other.SelectInfo);
|
|
}
|
|
_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 8: {
|
|
ModifierSourceType = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ModifierUniqueId = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 122: {
|
|
if (content_ == null) {
|
|
Content = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
input.ReadMessage(Content);
|
|
break;
|
|
}
|
|
case 10114: {
|
|
if (selectInfo_ == null) {
|
|
SelectInfo = new global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfo();
|
|
}
|
|
input.ReadMessage(SelectInfo);
|
|
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 8: {
|
|
ModifierSourceType = (global::EggLink.DanhengServer.Proto.RogueModifierSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ModifierUniqueId = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 122: {
|
|
if (content_ == null) {
|
|
Content = new global::EggLink.DanhengServer.Proto.RogueModifierContent();
|
|
}
|
|
input.ReadMessage(Content);
|
|
break;
|
|
}
|
|
case 10114: {
|
|
if (selectInfo_ == null) {
|
|
SelectInfo = new global::EggLink.DanhengServer.Proto.ChessRogueModifierSelectInfo();
|
|
}
|
|
input.ReadMessage(SelectInfo);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|