mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
374 lines
13 KiB
C#
374 lines
13 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: DispatchRegionData.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 DispatchRegionData.proto</summary>
|
|
public static partial class DispatchRegionDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for DispatchRegionData.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static DispatchRegionDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChhEaXNwYXRjaFJlZ2lvbkRhdGEucHJvdG8aEVJlZ2lvbkVudHJ5LnByb3Rv",
|
|
"IocBChJEaXNwYXRjaFJlZ2lvbkRhdGESDwoHcmV0Y29kZRgBIAEoDRILCgNt",
|
|
"c2cYAiABKAkSHQoVdG9wX3NldmVyX3JlZ2lvbl9uYW1lGAMgASgJEiEKC3Jl",
|
|
"Z2lvbl9saXN0GAQgAygLMgwuUmVnaW9uRW50cnkSEQoJc3RvcF9kZXNjGAUg",
|
|
"ASgJQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RegionEntryReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.DispatchRegionData), global::EggLink.DanhengServer.Proto.DispatchRegionData.Parser, new[]{ "Retcode", "Msg", "TopSeverRegionName", "RegionList", "StopDesc" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class DispatchRegionData : pb::IMessage<DispatchRegionData>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<DispatchRegionData> _parser = new pb::MessageParser<DispatchRegionData>(() => new DispatchRegionData());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<DispatchRegionData> 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.DispatchRegionDataReflection.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 DispatchRegionData() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DispatchRegionData(DispatchRegionData other) : this() {
|
|
retcode_ = other.retcode_;
|
|
msg_ = other.msg_;
|
|
topSeverRegionName_ = other.topSeverRegionName_;
|
|
regionList_ = other.regionList_.Clone();
|
|
stopDesc_ = other.stopDesc_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DispatchRegionData Clone() {
|
|
return new DispatchRegionData(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "retcode" field.</summary>
|
|
public const int RetcodeFieldNumber = 1;
|
|
private uint retcode_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Retcode {
|
|
get { return retcode_; }
|
|
set {
|
|
retcode_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "msg" field.</summary>
|
|
public const int MsgFieldNumber = 2;
|
|
private string msg_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Msg {
|
|
get { return msg_; }
|
|
set {
|
|
msg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "top_sever_region_name" field.</summary>
|
|
public const int TopSeverRegionNameFieldNumber = 3;
|
|
private string topSeverRegionName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string TopSeverRegionName {
|
|
get { return topSeverRegionName_; }
|
|
set {
|
|
topSeverRegionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "region_list" field.</summary>
|
|
public const int RegionListFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RegionEntry> _repeated_regionList_codec
|
|
= pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RegionEntry.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionEntry> regionList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionEntry>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionEntry> RegionList {
|
|
get { return regionList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "stop_desc" field.</summary>
|
|
public const int StopDescFieldNumber = 5;
|
|
private string stopDesc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string StopDesc {
|
|
get { return stopDesc_; }
|
|
set {
|
|
stopDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as DispatchRegionData);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(DispatchRegionData other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Retcode != other.Retcode) return false;
|
|
if (Msg != other.Msg) return false;
|
|
if (TopSeverRegionName != other.TopSeverRegionName) return false;
|
|
if(!regionList_.Equals(other.regionList_)) return false;
|
|
if (StopDesc != other.StopDesc) 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 (Retcode != 0) hash ^= Retcode.GetHashCode();
|
|
if (Msg.Length != 0) hash ^= Msg.GetHashCode();
|
|
if (TopSeverRegionName.Length != 0) hash ^= TopSeverRegionName.GetHashCode();
|
|
hash ^= regionList_.GetHashCode();
|
|
if (StopDesc.Length != 0) hash ^= StopDesc.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 (Retcode != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Retcode);
|
|
}
|
|
if (Msg.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Msg);
|
|
}
|
|
if (TopSeverRegionName.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(TopSeverRegionName);
|
|
}
|
|
regionList_.WriteTo(output, _repeated_regionList_codec);
|
|
if (StopDesc.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(StopDesc);
|
|
}
|
|
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 (Retcode != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Retcode);
|
|
}
|
|
if (Msg.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Msg);
|
|
}
|
|
if (TopSeverRegionName.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(TopSeverRegionName);
|
|
}
|
|
regionList_.WriteTo(ref output, _repeated_regionList_codec);
|
|
if (StopDesc.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(StopDesc);
|
|
}
|
|
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 (Retcode != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode);
|
|
}
|
|
if (Msg.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Msg);
|
|
}
|
|
if (TopSeverRegionName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TopSeverRegionName);
|
|
}
|
|
size += regionList_.CalculateSize(_repeated_regionList_codec);
|
|
if (StopDesc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(StopDesc);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(DispatchRegionData other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Retcode != 0) {
|
|
Retcode = other.Retcode;
|
|
}
|
|
if (other.Msg.Length != 0) {
|
|
Msg = other.Msg;
|
|
}
|
|
if (other.TopSeverRegionName.Length != 0) {
|
|
TopSeverRegionName = other.TopSeverRegionName;
|
|
}
|
|
regionList_.Add(other.regionList_);
|
|
if (other.StopDesc.Length != 0) {
|
|
StopDesc = other.StopDesc;
|
|
}
|
|
_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: {
|
|
Retcode = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Msg = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
TopSeverRegionName = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
regionList_.AddEntriesFrom(input, _repeated_regionList_codec);
|
|
break;
|
|
}
|
|
case 42: {
|
|
StopDesc = input.ReadString();
|
|
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: {
|
|
Retcode = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Msg = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
TopSeverRegionName = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
regionList_.AddEntriesFrom(ref input, _repeated_regionList_codec);
|
|
break;
|
|
}
|
|
case 42: {
|
|
StopDesc = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|