704 lines
22 KiB
C#
704 lines
22 KiB
C#
|
// <auto-generated>
|
||
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: head.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 RPG.Network.Proto {
|
||
|
|
||
|
/// <summary>Holder for reflection information generated from head.proto</summary>
|
||
|
public static partial class HeadReflection {
|
||
|
|
||
|
#region Descriptor
|
||
|
/// <summary>File descriptor for head.proto</summary>
|
||
|
public static pbr::FileDescriptor Descriptor {
|
||
|
get { return descriptor; }
|
||
|
}
|
||
|
private static pbr::FileDescriptor descriptor;
|
||
|
|
||
|
static HeadReflection() {
|
||
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
|
string.Concat(
|
||
|
"CgpoZWFkLnByb3RvEgVwcm90byKGAwoKUGFja2V0SGVhZBIbCglwYWNrZXRf",
|
||
|
"aWQYASABKA1SCHBhY2tldElkEhsKCXNpZ25fdHlwZRgCIAEoDVIIc2lnblR5",
|
||
|
"cGUSEgoEc2lnbhgDIAEoDVIEc2lnbhIXCgd1c2VyX2lkGAQgASgNUgZ1c2Vy",
|
||
|
"SWQSGQoIc3JjX2FkZHIYBSABKA1SB3NyY0FkZHISGQoIZHN0X2FkZHIYBiAB",
|
||
|
"KA1SB2RzdEFkZHISIwoNZGlzcGF0Y2hfdHlwZRgHIAEoDVIMZGlzcGF0Y2hU",
|
||
|
"eXBlEh8KC3NlcnZlcl90eXBlGAggASgNUgpzZXJ2ZXJUeXBlEiEKDGRpc3Bh",
|
||
|
"dGNoX2tleRgJIAEoDVILZGlzcGF0Y2hLZXkSJgoPdXNlcl9zZXNzaW9uX2lk",
|
||
|
"GAogASgNUg11c2VyU2Vzc2lvbklkEg4KAmlkGAsgASgNUgJpZBIhCgxjb3Jv",
|
||
|
"dXRpbmVfaWQYDCABKA1SC2Nvcm91dGluZUlkEhcKB2hvcF9jbnQYDSABKA1S",
|
||
|
"BmhvcENudCrUAQoMRGlzcGF0Y2hUeXBlEhYKEkRJU1BBVENIX1RZUEVfTk9O",
|
||
|
"RRAAEhkKFURJU1BBVENIX1RZUEVfQllfQUREUhABEhgKFERJU1BBVENIX1RZ",
|
||
|
"UEVfQllfTU9EEAISGQoVRElTUEFUQ0hfVFlQRV9CWV9SQU5EEAMSGgoWRElT",
|
||
|
"UEFUQ0hfVFlQRV9CWV9DSEFTSBAEEiMKH0RJU1BBVENIX1RZUEVfQllfU1RJ",
|
||
|
"Q0tZX1NFU1NJT04QBRIbChdESVNQQVRDSF9UWVBFX0JZX09CSkVDVBAGYgZw",
|
||
|
"cm90bzM="));
|
||
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
|
new pbr::FileDescriptor[] { },
|
||
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::RPG.Network.Proto.DispatchType), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::RPG.Network.Proto.PacketHead), global::RPG.Network.Proto.PacketHead.Parser, new[]{ "PacketId", "SignType", "Sign", "UserId", "SrcAddr", "DstAddr", "DispatchType", "ServerType", "DispatchKey", "UserSessionId", "Id", "CoroutineId", "HopCnt" }, null, null, null, null)
|
||
|
}));
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
#region Enums
|
||
|
public enum DispatchType {
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_NONE")] None = 0,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_ADDR")] ByAddr = 1,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_MOD")] ByMod = 2,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_RAND")] ByRand = 3,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_CHASH")] ByChash = 4,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_STICKY_SESSION")] ByStickySession = 5,
|
||
|
[pbr::OriginalName("DISPATCH_TYPE_BY_OBJECT")] ByObject = 6,
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
#region Messages
|
||
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
|
public sealed partial class PacketHead : pb::IMessage<PacketHead>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<PacketHead> _parser = new pb::MessageParser<PacketHead>(() => new PacketHead());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<PacketHead> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::RPG.Network.Proto.HeadReflection.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 PacketHead() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public PacketHead(PacketHead other) : this() {
|
||
|
packetId_ = other.packetId_;
|
||
|
signType_ = other.signType_;
|
||
|
sign_ = other.sign_;
|
||
|
userId_ = other.userId_;
|
||
|
srcAddr_ = other.srcAddr_;
|
||
|
dstAddr_ = other.dstAddr_;
|
||
|
dispatchType_ = other.dispatchType_;
|
||
|
serverType_ = other.serverType_;
|
||
|
dispatchKey_ = other.dispatchKey_;
|
||
|
userSessionId_ = other.userSessionId_;
|
||
|
id_ = other.id_;
|
||
|
coroutineId_ = other.coroutineId_;
|
||
|
hopCnt_ = other.hopCnt_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public PacketHead Clone() {
|
||
|
return new PacketHead(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "packet_id" field.</summary>
|
||
|
public const int PacketIdFieldNumber = 1;
|
||
|
private uint packetId_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint PacketId {
|
||
|
get { return packetId_; }
|
||
|
set {
|
||
|
packetId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "sign_type" field.</summary>
|
||
|
public const int SignTypeFieldNumber = 2;
|
||
|
private uint signType_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint SignType {
|
||
|
get { return signType_; }
|
||
|
set {
|
||
|
signType_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "sign" field.</summary>
|
||
|
public const int SignFieldNumber = 3;
|
||
|
private uint sign_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint Sign {
|
||
|
get { return sign_; }
|
||
|
set {
|
||
|
sign_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "user_id" field.</summary>
|
||
|
public const int UserIdFieldNumber = 4;
|
||
|
private uint userId_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint UserId {
|
||
|
get { return userId_; }
|
||
|
set {
|
||
|
userId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "src_addr" field.</summary>
|
||
|
public const int SrcAddrFieldNumber = 5;
|
||
|
private uint srcAddr_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint SrcAddr {
|
||
|
get { return srcAddr_; }
|
||
|
set {
|
||
|
srcAddr_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "dst_addr" field.</summary>
|
||
|
public const int DstAddrFieldNumber = 6;
|
||
|
private uint dstAddr_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint DstAddr {
|
||
|
get { return dstAddr_; }
|
||
|
set {
|
||
|
dstAddr_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "dispatch_type" field.</summary>
|
||
|
public const int DispatchTypeFieldNumber = 7;
|
||
|
private uint dispatchType_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint DispatchType {
|
||
|
get { return dispatchType_; }
|
||
|
set {
|
||
|
dispatchType_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "server_type" field.</summary>
|
||
|
public const int ServerTypeFieldNumber = 8;
|
||
|
private uint serverType_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint ServerType {
|
||
|
get { return serverType_; }
|
||
|
set {
|
||
|
serverType_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "dispatch_key" field.</summary>
|
||
|
public const int DispatchKeyFieldNumber = 9;
|
||
|
private uint dispatchKey_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint DispatchKey {
|
||
|
get { return dispatchKey_; }
|
||
|
set {
|
||
|
dispatchKey_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "user_session_id" field.</summary>
|
||
|
public const int UserSessionIdFieldNumber = 10;
|
||
|
private uint userSessionId_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint UserSessionId {
|
||
|
get { return userSessionId_; }
|
||
|
set {
|
||
|
userSessionId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "id" field.</summary>
|
||
|
public const int IdFieldNumber = 11;
|
||
|
private uint id_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint Id {
|
||
|
get { return id_; }
|
||
|
set {
|
||
|
id_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "coroutine_id" field.</summary>
|
||
|
public const int CoroutineIdFieldNumber = 12;
|
||
|
private uint coroutineId_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint CoroutineId {
|
||
|
get { return coroutineId_; }
|
||
|
set {
|
||
|
coroutineId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "hop_cnt" field.</summary>
|
||
|
public const int HopCntFieldNumber = 13;
|
||
|
private uint hopCnt_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public uint HopCnt {
|
||
|
get { return hopCnt_; }
|
||
|
set {
|
||
|
hopCnt_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as PacketHead);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(PacketHead other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (PacketId != other.PacketId) return false;
|
||
|
if (SignType != other.SignType) return false;
|
||
|
if (Sign != other.Sign) return false;
|
||
|
if (UserId != other.UserId) return false;
|
||
|
if (SrcAddr != other.SrcAddr) return false;
|
||
|
if (DstAddr != other.DstAddr) return false;
|
||
|
if (DispatchType != other.DispatchType) return false;
|
||
|
if (ServerType != other.ServerType) return false;
|
||
|
if (DispatchKey != other.DispatchKey) return false;
|
||
|
if (UserSessionId != other.UserSessionId) return false;
|
||
|
if (Id != other.Id) return false;
|
||
|
if (CoroutineId != other.CoroutineId) return false;
|
||
|
if (HopCnt != other.HopCnt) 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 (PacketId != 0) hash ^= PacketId.GetHashCode();
|
||
|
if (SignType != 0) hash ^= SignType.GetHashCode();
|
||
|
if (Sign != 0) hash ^= Sign.GetHashCode();
|
||
|
if (UserId != 0) hash ^= UserId.GetHashCode();
|
||
|
if (SrcAddr != 0) hash ^= SrcAddr.GetHashCode();
|
||
|
if (DstAddr != 0) hash ^= DstAddr.GetHashCode();
|
||
|
if (DispatchType != 0) hash ^= DispatchType.GetHashCode();
|
||
|
if (ServerType != 0) hash ^= ServerType.GetHashCode();
|
||
|
if (DispatchKey != 0) hash ^= DispatchKey.GetHashCode();
|
||
|
if (UserSessionId != 0) hash ^= UserSessionId.GetHashCode();
|
||
|
if (Id != 0) hash ^= Id.GetHashCode();
|
||
|
if (CoroutineId != 0) hash ^= CoroutineId.GetHashCode();
|
||
|
if (HopCnt != 0) hash ^= HopCnt.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 (PacketId != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(PacketId);
|
||
|
}
|
||
|
if (SignType != 0) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteUInt32(SignType);
|
||
|
}
|
||
|
if (Sign != 0) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteUInt32(Sign);
|
||
|
}
|
||
|
if (UserId != 0) {
|
||
|
output.WriteRawTag(32);
|
||
|
output.WriteUInt32(UserId);
|
||
|
}
|
||
|
if (SrcAddr != 0) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteUInt32(SrcAddr);
|
||
|
}
|
||
|
if (DstAddr != 0) {
|
||
|
output.WriteRawTag(48);
|
||
|
output.WriteUInt32(DstAddr);
|
||
|
}
|
||
|
if (DispatchType != 0) {
|
||
|
output.WriteRawTag(56);
|
||
|
output.WriteUInt32(DispatchType);
|
||
|
}
|
||
|
if (ServerType != 0) {
|
||
|
output.WriteRawTag(64);
|
||
|
output.WriteUInt32(ServerType);
|
||
|
}
|
||
|
if (DispatchKey != 0) {
|
||
|
output.WriteRawTag(72);
|
||
|
output.WriteUInt32(DispatchKey);
|
||
|
}
|
||
|
if (UserSessionId != 0) {
|
||
|
output.WriteRawTag(80);
|
||
|
output.WriteUInt32(UserSessionId);
|
||
|
}
|
||
|
if (Id != 0) {
|
||
|
output.WriteRawTag(88);
|
||
|
output.WriteUInt32(Id);
|
||
|
}
|
||
|
if (CoroutineId != 0) {
|
||
|
output.WriteRawTag(96);
|
||
|
output.WriteUInt32(CoroutineId);
|
||
|
}
|
||
|
if (HopCnt != 0) {
|
||
|
output.WriteRawTag(104);
|
||
|
output.WriteUInt32(HopCnt);
|
||
|
}
|
||
|
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 (PacketId != 0) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteUInt32(PacketId);
|
||
|
}
|
||
|
if (SignType != 0) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteUInt32(SignType);
|
||
|
}
|
||
|
if (Sign != 0) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteUInt32(Sign);
|
||
|
}
|
||
|
if (UserId != 0) {
|
||
|
output.WriteRawTag(32);
|
||
|
output.WriteUInt32(UserId);
|
||
|
}
|
||
|
if (SrcAddr != 0) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteUInt32(SrcAddr);
|
||
|
}
|
||
|
if (DstAddr != 0) {
|
||
|
output.WriteRawTag(48);
|
||
|
output.WriteUInt32(DstAddr);
|
||
|
}
|
||
|
if (DispatchType != 0) {
|
||
|
output.WriteRawTag(56);
|
||
|
output.WriteUInt32(DispatchType);
|
||
|
}
|
||
|
if (ServerType != 0) {
|
||
|
output.WriteRawTag(64);
|
||
|
output.WriteUInt32(ServerType);
|
||
|
}
|
||
|
if (DispatchKey != 0) {
|
||
|
output.WriteRawTag(72);
|
||
|
output.WriteUInt32(DispatchKey);
|
||
|
}
|
||
|
if (UserSessionId != 0) {
|
||
|
output.WriteRawTag(80);
|
||
|
output.WriteUInt32(UserSessionId);
|
||
|
}
|
||
|
if (Id != 0) {
|
||
|
output.WriteRawTag(88);
|
||
|
output.WriteUInt32(Id);
|
||
|
}
|
||
|
if (CoroutineId != 0) {
|
||
|
output.WriteRawTag(96);
|
||
|
output.WriteUInt32(CoroutineId);
|
||
|
}
|
||
|
if (HopCnt != 0) {
|
||
|
output.WriteRawTag(104);
|
||
|
output.WriteUInt32(HopCnt);
|
||
|
}
|
||
|
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 (PacketId != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PacketId);
|
||
|
}
|
||
|
if (SignType != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SignType);
|
||
|
}
|
||
|
if (Sign != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Sign);
|
||
|
}
|
||
|
if (UserId != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserId);
|
||
|
}
|
||
|
if (SrcAddr != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SrcAddr);
|
||
|
}
|
||
|
if (DstAddr != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DstAddr);
|
||
|
}
|
||
|
if (DispatchType != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DispatchType);
|
||
|
}
|
||
|
if (ServerType != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServerType);
|
||
|
}
|
||
|
if (DispatchKey != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DispatchKey);
|
||
|
}
|
||
|
if (UserSessionId != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserSessionId);
|
||
|
}
|
||
|
if (Id != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||
|
}
|
||
|
if (CoroutineId != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CoroutineId);
|
||
|
}
|
||
|
if (HopCnt != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HopCnt);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(PacketHead other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.PacketId != 0) {
|
||
|
PacketId = other.PacketId;
|
||
|
}
|
||
|
if (other.SignType != 0) {
|
||
|
SignType = other.SignType;
|
||
|
}
|
||
|
if (other.Sign != 0) {
|
||
|
Sign = other.Sign;
|
||
|
}
|
||
|
if (other.UserId != 0) {
|
||
|
UserId = other.UserId;
|
||
|
}
|
||
|
if (other.SrcAddr != 0) {
|
||
|
SrcAddr = other.SrcAddr;
|
||
|
}
|
||
|
if (other.DstAddr != 0) {
|
||
|
DstAddr = other.DstAddr;
|
||
|
}
|
||
|
if (other.DispatchType != 0) {
|
||
|
DispatchType = other.DispatchType;
|
||
|
}
|
||
|
if (other.ServerType != 0) {
|
||
|
ServerType = other.ServerType;
|
||
|
}
|
||
|
if (other.DispatchKey != 0) {
|
||
|
DispatchKey = other.DispatchKey;
|
||
|
}
|
||
|
if (other.UserSessionId != 0) {
|
||
|
UserSessionId = other.UserSessionId;
|
||
|
}
|
||
|
if (other.Id != 0) {
|
||
|
Id = other.Id;
|
||
|
}
|
||
|
if (other.CoroutineId != 0) {
|
||
|
CoroutineId = other.CoroutineId;
|
||
|
}
|
||
|
if (other.HopCnt != 0) {
|
||
|
HopCnt = other.HopCnt;
|
||
|
}
|
||
|
_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: {
|
||
|
PacketId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
SignType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Sign = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 32: {
|
||
|
UserId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
SrcAddr = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 48: {
|
||
|
DstAddr = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 56: {
|
||
|
DispatchType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 64: {
|
||
|
ServerType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 72: {
|
||
|
DispatchKey = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 80: {
|
||
|
UserSessionId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 88: {
|
||
|
Id = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 96: {
|
||
|
CoroutineId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 104: {
|
||
|
HopCnt = input.ReadUInt32();
|
||
|
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: {
|
||
|
PacketId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
SignType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Sign = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 32: {
|
||
|
UserId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
SrcAddr = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 48: {
|
||
|
DstAddr = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 56: {
|
||
|
DispatchType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 64: {
|
||
|
ServerType = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 72: {
|
||
|
DispatchKey = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 80: {
|
||
|
UserSessionId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 88: {
|
||
|
Id = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 96: {
|
||
|
CoroutineId = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 104: {
|
||
|
HopCnt = input.ReadUInt32();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion Designer generated code
|