Files
DanhengServer-OpenSource/Proto/Dispatch.cs

374 lines
13 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Dispatch.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 Dispatch.proto</summary>
public static partial class DispatchReflection {
#region Descriptor
/// <summary>File descriptor for Dispatch.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DispatchReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg5EaXNwYXRjaC5wcm90bxoQUmVnaW9uSW5mby5wcm90byJ8CghEaXNwYXRj",
"aBIPCgdyZXRjb2RlGAEgASgNEgsKA21zZxgCIAEoCRIdChV0b3Bfc2V2ZXJf",
"cmVnaW9uX25hbWUYAyABKAkSIAoLcmVnaW9uX2xpc3QYBCADKAsyCy5SZWdp",
"b25JbmZvEhEKCXN0b3BfZGVzYxgFIAEoCUIeqgIbRWdnTGluay5EYW5oZW5n",
"U2VydmVyLlByb3RvYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RegionInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.Dispatch), global::EggLink.DanhengServer.Proto.Dispatch.Parser, new[]{ "Retcode", "Msg", "TopSeverRegionName", "RegionList", "StopDesc" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class Dispatch : pb::IMessage<Dispatch>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Dispatch> _parser = new pb::MessageParser<Dispatch>(() => new Dispatch());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Dispatch> 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.DispatchReflection.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 Dispatch() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Dispatch(Dispatch 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 Dispatch Clone() {
return new Dispatch(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.RegionInfo> _repeated_regionList_codec
= pb::FieldCodec.ForMessage(34, global::EggLink.DanhengServer.Proto.RegionInfo.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionInfo> regionList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionInfo>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RegionInfo> 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 Dispatch);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Dispatch 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(Dispatch 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