mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
285 lines
11 KiB
C#
285 lines
11 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RogueCommonActionResult.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 RogueCommonActionResult.proto</summary>
|
|
public static partial class RogueCommonActionResultReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RogueCommonActionResult.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RogueCommonActionResultReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Ch1Sb2d1ZUNvbW1vbkFjdGlvblJlc3VsdC5wcm90bxohUm9ndWVDb21tb25B",
|
|
"Y3Rpb25SZXN1bHREYXRhLnByb3RvGidSb2d1ZUNvbW1vbkFjdGlvblJlc3Vs",
|
|
"dFNvdXJjZVR5cGUucHJvdG8igQEKF1JvZ3VlQ29tbW9uQWN0aW9uUmVzdWx0",
|
|
"EjIKBnNvdXJjZRgHIAEoDjIiLlJvZ3VlQ29tbW9uQWN0aW9uUmVzdWx0U291",
|
|
"cmNlVHlwZRIyCgxyb2d1ZV9hY3Rpb24YCCABKAsyHC5Sb2d1ZUNvbW1vbkFj",
|
|
"dGlvblJlc3VsdERhdGFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90",
|
|
"b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueCommonActionResultDataReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueCommonActionResult), global::EggLink.DanhengServer.Proto.RogueCommonActionResult.Parser, new[]{ "Source", "RogueAction" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RogueCommonActionResult : pb::IMessage<RogueCommonActionResult>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RogueCommonActionResult> _parser = new pb::MessageParser<RogueCommonActionResult>(() => new RogueCommonActionResult());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RogueCommonActionResult> 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.RogueCommonActionResultReflection.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 RogueCommonActionResult() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueCommonActionResult(RogueCommonActionResult other) : this() {
|
|
source_ = other.source_;
|
|
rogueAction_ = other.rogueAction_ != null ? other.rogueAction_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueCommonActionResult Clone() {
|
|
return new RogueCommonActionResult(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "source" field.</summary>
|
|
public const int SourceFieldNumber = 7;
|
|
private global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType source_ = global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType Source {
|
|
get { return source_; }
|
|
set {
|
|
source_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "rogue_action" field.</summary>
|
|
public const int RogueActionFieldNumber = 8;
|
|
private global::EggLink.DanhengServer.Proto.RogueCommonActionResultData rogueAction_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueCommonActionResultData RogueAction {
|
|
get { return rogueAction_; }
|
|
set {
|
|
rogueAction_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RogueCommonActionResult);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RogueCommonActionResult other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Source != other.Source) return false;
|
|
if (!object.Equals(RogueAction, other.RogueAction)) 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 (Source != global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None) hash ^= Source.GetHashCode();
|
|
if (rogueAction_ != null) hash ^= RogueAction.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 (Source != global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None) {
|
|
output.WriteRawTag(56);
|
|
output.WriteEnum((int) Source);
|
|
}
|
|
if (rogueAction_ != null) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(RogueAction);
|
|
}
|
|
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 (Source != global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None) {
|
|
output.WriteRawTag(56);
|
|
output.WriteEnum((int) Source);
|
|
}
|
|
if (rogueAction_ != null) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(RogueAction);
|
|
}
|
|
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 (Source != global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source);
|
|
}
|
|
if (rogueAction_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(RogueAction);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RogueCommonActionResult other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Source != global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType.None) {
|
|
Source = other.Source;
|
|
}
|
|
if (other.rogueAction_ != null) {
|
|
if (rogueAction_ == null) {
|
|
RogueAction = new global::EggLink.DanhengServer.Proto.RogueCommonActionResultData();
|
|
}
|
|
RogueAction.MergeFrom(other.RogueAction);
|
|
}
|
|
_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 56: {
|
|
Source = (global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 66: {
|
|
if (rogueAction_ == null) {
|
|
RogueAction = new global::EggLink.DanhengServer.Proto.RogueCommonActionResultData();
|
|
}
|
|
input.ReadMessage(RogueAction);
|
|
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 56: {
|
|
Source = (global::EggLink.DanhengServer.Proto.RogueCommonActionResultSourceType) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 66: {
|
|
if (rogueAction_ == null) {
|
|
RogueAction = new global::EggLink.DanhengServer.Proto.RogueCommonActionResultData();
|
|
}
|
|
input.ReadMessage(RogueAction);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|