//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protobuf_NoSugar.proto
//
#pragma warning disable 1591, 0612, 3021
#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 AxibugProtobuf {
/// Holder for reflection information generated from protobuf_NoSugar.proto
public static partial class ProtobufNoSugarReflection {
#region Descriptor
/// File descriptor for protobuf_NoSugar.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ProtobufNoSugarReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChZwcm90b2J1Zl9Ob1N1Z2FyLnByb3RvEg5BeGlidWdQcm90b2J1ZiKRAQoO",
"UHJvdG9idWZfTG9naW4SLAoJbG9naW5UeXBlGAEgASgOMhkuQXhpYnVnUHJv",
"dG9idWYuTG9naW5UeXBlEi4KCmRldmljZVR5cGUYAiABKA4yGi5BeGlidWdQ",
"cm90b2J1Zi5EZXZpY2VUeXBlEg8KB0FjY291bnQYAyABKAkSEAoIUGFzc3dv",
"cmQYBCABKAkijAEKE1Byb3RvYnVmX0xvZ2luX1JFU1ASDQoFVG9rZW4YASAB",
"KAkSFQoNTGFzdExvZ2luRGF0ZRgCIAEoCRIPCgdSZWdEYXRlGAMgASgJEjEK",
"BlN0YXR1cxgEIAEoDjIhLkF4aWJ1Z1Byb3RvYnVmLkxvZ2luUmVzdWx0U3Rh",
"dHVzEgsKA1VJRBgFIAEoAyJgCg1Qcm90b2J1Zl9DZmdzEhsKE0NvbXByZXNz",
"QWRhcHRlclR5cGUYASABKAUSMgoEY2ZncxgCIAMoCzIkLkF4aWJ1Z1Byb3Rv",
"YnVmLlByb3RvYnVmX0NmZ3NfU2luZ2xlIjYKFFByb3RvYnVmX0NmZ3NfU2lu",
"Z2xlEhAKCFR1bm5lbElEGAEgASgNEgwKBFBvcnQYAiABKAUiIwoQUHJvdG9i",
"dWZfQ2hhdE1zZxIPCgdDaGF0TXNnGAEgASgJIkgKFVByb3RvYnVmX0NoYXRN",
"c2dfUkVTUBIQCghOaWNrTmFtZRgBIAEoCRIPCgdDaGF0TXNnGAIgASgJEgwK",
"BERhdGUYAyABKAMiSwoXUHJvdG9idWZfVHVubmVsX0Nvbm5lY3QSEAoIVHVu",
"bmVsSUQYASABKA0SCwoDSWR4GAIgASgNEhEKCUNvbm5lY3RlZBgDIAEoDSI7",
"ChpQcm90b2J1Zl9UdW5uZWxfRGlzY29ubmVjdBIQCghUdW5uZWxJRBgBIAEo",
"DRILCgNJZHgYAiABKA0iUQoUUHJvdG9idWZfVHVubmVsX0RBVEESEAoIVHVu",
"bmVsSUQYASABKA0SCwoDSWR4GAIgASgNEhoKEkh1bnRlck5ldENvcmVfRGF0",
"YRgDIAEoDCqlBAoJQ29tbWFuZElEEg4KCkNNRF9ERUZBVUwQABIOCglDTURf",
"TE9HSU4Q0Q8SFAoPQ01EX1NFUlZFUl9DRkdTELkXEhQKD0NNRF9DTElFTlRf",
"Q0ZHUxC6FxIQCgtDTURfQ0hBVE1TRxChHxIjCh5DTURfVFVOTkVMX0MyU19G",
"T1JXQVJEX0NPTk5FQ1QQiCcSIwoeQ01EX1RVTk5FTF9TMkNfRk9SV0FSRF9D",
"T05ORUNUEIknEiYKIUNNRF9UVU5ORUxfQzJTX0ZPUldBUkRfRElTQ09OTkVD",
"VBCKJxImCiFDTURfVFVOTkVMX1MyQ19GT1JXQVJEX0RJU0NPTk5FQ1QQiycS",
"IAobQ01EX1RVTk5FTF9DMlNfRk9SV0FSRF9EQVRBEIwnEiAKG0NNRF9UVU5O",
"RUxfUzJDX0ZPUldBUkRfREFUQRCNJxIjCh5DTURfVFVOTkVMX0MyU19SRVZF",
"UlNFX0NPTk5FQ1QQ8C4SIwoeQ01EX1RVTk5FTF9TMkNfUkVWRVJTRV9DT05O",
"RUNUEPEuEiYKIUNNRF9UVU5ORUxfQzJTX1JFVkVSU0VfRElTQ09OTkVDVBDy",
"LhImCiFDTURfVFVOTkVMX1MyQ19SRVZFUlNFX0RJU0NPTk5FQ1QQ8y4SIAob",
"Q01EX1RVTk5FTF9DMlNfUkVWRVJTRV9EQVRBEPQuEiAKG0NNRF9UVU5ORUxf",
"UzJDX1JFVkVSU0VfREFUQRD1LiorCglFcnJvckNvZGUSEAoMRVJST1JfREVG",
"QVVMEAASDAoIRVJST1JfT0sQASo+CglMb2dpblR5cGUSDwoLQmFzZURlZmF1",
"bHQQABIOCgpIYW9ZdWVBdXRoEAESBwoDQkYzEAMSBwoDQkY0EAQqSwoKRGV2",
"aWNlVHlwZRIWChJEZXZpY2VUeXBlX0RlZmF1bHQQABIGCgJQQxABEgsKB0Fu",
"ZHJvaWQQAhIHCgNJT1MQAxIHCgNQU1YQBCpOChFMb2dpblJlc3VsdFN0YXR1",
"cxIhCh1Mb2dpblJlc3VsdFN0YXR1c19CYXNlRGVmYXVsdBAAEgYKAk9LEAES",
"DgoKQWNjb3VudEVychACQgJIAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login), global::AxibugProtobuf.Protobuf_Login.Parser, new[]{ "LoginType", "DeviceType", "Account", "Password" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Login_RESP), global::AxibugProtobuf.Protobuf_Login_RESP.Parser, new[]{ "Token", "LastLoginDate", "RegDate", "Status", "UID" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Cfgs), global::AxibugProtobuf.Protobuf_Cfgs.Parser, new[]{ "CompressAdapterType", "Cfgs" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Cfgs_Single), global::AxibugProtobuf.Protobuf_Cfgs_Single.Parser, new[]{ "TunnelID", "Port" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg), global::AxibugProtobuf.Protobuf_ChatMsg.Parser, new[]{ "ChatMsg" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_ChatMsg_RESP), global::AxibugProtobuf.Protobuf_ChatMsg_RESP.Parser, new[]{ "NickName", "ChatMsg", "Date" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Tunnel_Connect), global::AxibugProtobuf.Protobuf_Tunnel_Connect.Parser, new[]{ "TunnelID", "Idx", "Connected" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Tunnel_Disconnect), global::AxibugProtobuf.Protobuf_Tunnel_Disconnect.Parser, new[]{ "TunnelID", "Idx" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Tunnel_DATA), global::AxibugProtobuf.Protobuf_Tunnel_DATA.Parser, new[]{ "TunnelID", "Idx", "HunterNetCoreData" }, null, null, null, null)
}));
}
#endregion
}
#region Enums
public enum CommandID {
///
///缺省不使用
///
[pbr::OriginalName("CMD_DEFAUL")] CmdDefaul = 0,
///
///自动登录上行 | 下行 对应 Protobuf_Login | Protobuf_Login_RESP
///
[pbr::OriginalName("CMD_LOGIN")] CmdLogin = 2001,
///
///配置信息 下行 对应 Protobuf_Cfgs
///
[pbr::OriginalName("CMD_SERVER_CFGS")] CmdServerCfgs = 3001,
///
///配置信息 上行 对应 Protobuf_Cfgs
///
[pbr::OriginalName("CMD_CLIENT_CFGS")] CmdClientCfgs = 3002,
///
///广播信息上行 | 下行 对应 Protobuf_ChatMsg | Protobuf_ChatMsg_RESP
///
[pbr::OriginalName("CMD_CHATMSG")] CmdChatmsg = 4001,
///
///正向代理,客户端告知服务端 客户端本地连接建立 上行 Protobuf_Tunnel_Connect
///
[pbr::OriginalName("CMD_TUNNEL_C2S_FORWARD_CONNECT")] CmdTunnelC2SForwardConnect = 5000,
///
///正向代理,服务端告知客户端 服务端本地连接建立 下行 Protobuf_Tunnel_Connect
///
[pbr::OriginalName("CMD_TUNNEL_S2C_FORWARD_CONNECT")] CmdTunnelS2CForwardConnect = 5001,
///
///正向代理,客户端告知服务端 客户端本地连接断开 上行 Protobuf_Tunnel_Disconnect
///
[pbr::OriginalName("CMD_TUNNEL_C2S_FORWARD_DISCONNECT")] CmdTunnelC2SForwardDisconnect = 5002,
///
///正向代理,服务端告知客户端 服务端本地连接断开 下行 Protobuf_Tunnel_Disconnect
///
[pbr::OriginalName("CMD_TUNNEL_S2C_FORWARD_DISCONNECT")] CmdTunnelS2CForwardDisconnect = 5003,
///
///正向代理,客户端投递本地TCP通讯数据包 上行 Protobuf_Tunnel_DATA
///
[pbr::OriginalName("CMD_TUNNEL_C2S_FORWARD_DATA")] CmdTunnelC2SForwardData = 5004,
///
///正向代理,服务端投递本地TCP通讯数据包 下行 Protobuf_Tunnel_DATA
///
[pbr::OriginalName("CMD_TUNNEL_S2C_FORWARD_DATA")] CmdTunnelS2CForwardData = 5005,
///
///反向代理,客户端告知服务端 客户端本地连接建立 上行 Protobuf_Tunnel_Connect
///
[pbr::OriginalName("CMD_TUNNEL_C2S_REVERSE_CONNECT")] CmdTunnelC2SReverseConnect = 6000,
///
///反向代理,服务端告知客户端 服务端本地连接建立 下行 Protobuf_Tunnel_Connect
///
[pbr::OriginalName("CMD_TUNNEL_S2C_REVERSE_CONNECT")] CmdTunnelS2CReverseConnect = 6001,
///
///反向代理,客户端告知服务端 客户端本地连接断开 上行 Protobuf_Tunnel_Disconnect
///
[pbr::OriginalName("CMD_TUNNEL_C2S_REVERSE_DISCONNECT")] CmdTunnelC2SReverseDisconnect = 6002,
///
///反向代理,服务端告知客户端 服务端本地连接断开 下行 Protobuf_Tunnel_Disconnect
///
[pbr::OriginalName("CMD_TUNNEL_S2C_REVERSE_DISCONNECT")] CmdTunnelS2CReverseDisconnect = 6003,
///
///反向代理,客户端投递本地TCP通讯数据包 上行 Protobuf_Tunnel_DATA
///
[pbr::OriginalName("CMD_TUNNEL_C2S_REVERSE_DATA")] CmdTunnelC2SReverseData = 6004,
///
///反向代理,服务端投递本地TCP通讯数据包 下行 Protobuf_Tunnel_DATA
///
[pbr::OriginalName("CMD_TUNNEL_S2C_REVERSE_DATA")] CmdTunnelS2CReverseData = 6005,
}
public enum ErrorCode {
///
///缺省不使用
///
[pbr::OriginalName("ERROR_DEFAUL")] ErrorDefaul = 0,
///
///成功
///
[pbr::OriginalName("ERROR_OK")] ErrorOk = 1,
}
public enum LoginType {
///
///缺省不使用
///
[pbr::OriginalName("BaseDefault")] BaseDefault = 0,
[pbr::OriginalName("HaoYueAuth")] HaoYueAuth = 1,
[pbr::OriginalName("BF3")] Bf3 = 3,
[pbr::OriginalName("BF4")] Bf4 = 4,
}
public enum DeviceType {
///
///缺省不使用
///
[pbr::OriginalName("DeviceType_Default")] Default = 0,
[pbr::OriginalName("PC")] Pc = 1,
[pbr::OriginalName("Android")] Android = 2,
[pbr::OriginalName("IOS")] Ios = 3,
[pbr::OriginalName("PSV")] Psv = 4,
}
public enum LoginResultStatus {
///
///缺省不使用
///
[pbr::OriginalName("LoginResultStatus_BaseDefault")] BaseDefault = 0,
[pbr::OriginalName("OK")] Ok = 1,
[pbr::OriginalName("AccountErr")] AccountErr = 2,
}
#endregion
#region Messages
///
///登录数据上行
///
public sealed partial class Protobuf_Login : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Login());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login(Protobuf_Login other) : this() {
loginType_ = other.loginType_;
deviceType_ = other.deviceType_;
account_ = other.account_;
password_ = other.password_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login Clone() {
return new Protobuf_Login(this);
}
/// Field number for the "loginType" field.
public const int LoginTypeFieldNumber = 1;
private global::AxibugProtobuf.LoginType loginType_ = global::AxibugProtobuf.LoginType.BaseDefault;
///
///登录操作类型 [0]皓月通行证 [3] 皓月BF3 [4] 皓月BF4
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.LoginType LoginType {
get { return loginType_; }
set {
loginType_ = value;
}
}
/// Field number for the "deviceType" field.
public const int DeviceTypeFieldNumber = 2;
private global::AxibugProtobuf.DeviceType deviceType_ = global::AxibugProtobuf.DeviceType.Default;
///
///设备类型 [0]PC [1]AndroidPad预留 [3]IPad预留
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.DeviceType DeviceType {
get { return deviceType_; }
set {
deviceType_ = value;
}
}
/// Field number for the "Account" field.
public const int AccountFieldNumber = 3;
private string account_ = "";
///
///用户名
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Account {
get { return account_; }
set {
account_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "Password" field.
public const int PasswordFieldNumber = 4;
private string password_ = "";
///
///密码
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Password {
get { return password_; }
set {
password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Login);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Login other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (LoginType != other.LoginType) return false;
if (DeviceType != other.DeviceType) return false;
if (Account != other.Account) return false;
if (Password != other.Password) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (LoginType != global::AxibugProtobuf.LoginType.BaseDefault) hash ^= LoginType.GetHashCode();
if (DeviceType != global::AxibugProtobuf.DeviceType.Default) hash ^= DeviceType.GetHashCode();
if (Account.Length != 0) hash ^= Account.GetHashCode();
if (Password.Length != 0) hash ^= Password.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (LoginType != global::AxibugProtobuf.LoginType.BaseDefault) {
output.WriteRawTag(8);
output.WriteEnum((int) LoginType);
}
if (DeviceType != global::AxibugProtobuf.DeviceType.Default) {
output.WriteRawTag(16);
output.WriteEnum((int) DeviceType);
}
if (Account.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Account);
}
if (Password.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Password);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (LoginType != global::AxibugProtobuf.LoginType.BaseDefault) {
output.WriteRawTag(8);
output.WriteEnum((int) LoginType);
}
if (DeviceType != global::AxibugProtobuf.DeviceType.Default) {
output.WriteRawTag(16);
output.WriteEnum((int) DeviceType);
}
if (Account.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Account);
}
if (Password.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Password);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (LoginType != global::AxibugProtobuf.LoginType.BaseDefault) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LoginType);
}
if (DeviceType != global::AxibugProtobuf.DeviceType.Default) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType);
}
if (Account.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Account);
}
if (Password.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Login other) {
if (other == null) {
return;
}
if (other.LoginType != global::AxibugProtobuf.LoginType.BaseDefault) {
LoginType = other.LoginType;
}
if (other.DeviceType != global::AxibugProtobuf.DeviceType.Default) {
DeviceType = other.DeviceType;
}
if (other.Account.Length != 0) {
Account = other.Account;
}
if (other.Password.Length != 0) {
Password = other.Password;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
LoginType = (global::AxibugProtobuf.LoginType) input.ReadEnum();
break;
}
case 16: {
DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum();
break;
}
case 26: {
Account = input.ReadString();
break;
}
case 34: {
Password = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
LoginType = (global::AxibugProtobuf.LoginType) input.ReadEnum();
break;
}
case 16: {
DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum();
break;
}
case 26: {
Account = input.ReadString();
break;
}
case 34: {
Password = input.ReadString();
break;
}
}
}
}
#endif
}
///
///登录数据下行
///
public sealed partial class Protobuf_Login_RESP : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Login_RESP());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login_RESP() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login_RESP(Protobuf_Login_RESP other) : this() {
token_ = other.token_;
lastLoginDate_ = other.lastLoginDate_;
regDate_ = other.regDate_;
status_ = other.status_;
uID_ = other.uID_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Login_RESP Clone() {
return new Protobuf_Login_RESP(this);
}
/// Field number for the "Token" field.
public const int TokenFieldNumber = 1;
private string token_ = "";
///
///登录凭据 (本次登录之后,所有业务请求凭据,需要存储在内存中)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Token {
get { return token_; }
set {
token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "LastLoginDate" field.
public const int LastLoginDateFieldNumber = 2;
private string lastLoginDate_ = "";
///
///上次登录时间(只用于呈现的字符串,若界面需求需要)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string LastLoginDate {
get { return lastLoginDate_; }
set {
lastLoginDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "RegDate" field.
public const int RegDateFieldNumber = 3;
private string regDate_ = "";
///
///注册时间(只用于呈现的字符串,若界面需求需要)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string RegDate {
get { return regDate_; }
set {
regDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "Status" field.
public const int StatusFieldNumber = 4;
private global::AxibugProtobuf.LoginResultStatus status_ = global::AxibugProtobuf.LoginResultStatus.BaseDefault;
///
///账号状态 (预留) [1]正常[0]被禁封
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::AxibugProtobuf.LoginResultStatus Status {
get { return status_; }
set {
status_ = value;
}
}
/// Field number for the "UID" field.
public const int UIDFieldNumber = 5;
private long uID_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long UID {
get { return uID_; }
set {
uID_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Login_RESP);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Login_RESP other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Token != other.Token) return false;
if (LastLoginDate != other.LastLoginDate) return false;
if (RegDate != other.RegDate) return false;
if (Status != other.Status) return false;
if (UID != other.UID) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Token.Length != 0) hash ^= Token.GetHashCode();
if (LastLoginDate.Length != 0) hash ^= LastLoginDate.GetHashCode();
if (RegDate.Length != 0) hash ^= RegDate.GetHashCode();
if (Status != global::AxibugProtobuf.LoginResultStatus.BaseDefault) hash ^= Status.GetHashCode();
if (UID != 0L) hash ^= UID.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Token.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Token);
}
if (LastLoginDate.Length != 0) {
output.WriteRawTag(18);
output.WriteString(LastLoginDate);
}
if (RegDate.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RegDate);
}
if (Status != global::AxibugProtobuf.LoginResultStatus.BaseDefault) {
output.WriteRawTag(32);
output.WriteEnum((int) Status);
}
if (UID != 0L) {
output.WriteRawTag(40);
output.WriteInt64(UID);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Token.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Token);
}
if (LastLoginDate.Length != 0) {
output.WriteRawTag(18);
output.WriteString(LastLoginDate);
}
if (RegDate.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RegDate);
}
if (Status != global::AxibugProtobuf.LoginResultStatus.BaseDefault) {
output.WriteRawTag(32);
output.WriteEnum((int) Status);
}
if (UID != 0L) {
output.WriteRawTag(40);
output.WriteInt64(UID);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Token.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
}
if (LastLoginDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LastLoginDate);
}
if (RegDate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RegDate);
}
if (Status != global::AxibugProtobuf.LoginResultStatus.BaseDefault) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (UID != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(UID);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Login_RESP other) {
if (other == null) {
return;
}
if (other.Token.Length != 0) {
Token = other.Token;
}
if (other.LastLoginDate.Length != 0) {
LastLoginDate = other.LastLoginDate;
}
if (other.RegDate.Length != 0) {
RegDate = other.RegDate;
}
if (other.Status != global::AxibugProtobuf.LoginResultStatus.BaseDefault) {
Status = other.Status;
}
if (other.UID != 0L) {
UID = other.UID;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
Token = input.ReadString();
break;
}
case 18: {
LastLoginDate = input.ReadString();
break;
}
case 26: {
RegDate = input.ReadString();
break;
}
case 32: {
Status = (global::AxibugProtobuf.LoginResultStatus) input.ReadEnum();
break;
}
case 40: {
UID = input.ReadInt64();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
Token = input.ReadString();
break;
}
case 18: {
LastLoginDate = input.ReadString();
break;
}
case 26: {
RegDate = input.ReadString();
break;
}
case 32: {
Status = (global::AxibugProtobuf.LoginResultStatus) input.ReadEnum();
break;
}
case 40: {
UID = input.ReadInt64();
break;
}
}
}
}
#endif
}
///
///配置下行
///
public sealed partial class Protobuf_Cfgs : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Cfgs());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs(Protobuf_Cfgs other) : this() {
compressAdapterType_ = other.compressAdapterType_;
cfgs_ = other.cfgs_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs Clone() {
return new Protobuf_Cfgs(this);
}
/// Field number for the "CompressAdapterType" field.
public const int CompressAdapterTypeFieldNumber = 1;
private int compressAdapterType_;
///
///压缩类型
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CompressAdapterType {
get { return compressAdapterType_; }
set {
compressAdapterType_ = value;
}
}
/// Field number for the "cfgs" field.
public const int CfgsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_cfgs_codec
= pb::FieldCodec.ForMessage(18, global::AxibugProtobuf.Protobuf_Cfgs_Single.Parser);
private readonly pbc::RepeatedField cfgs_ = new pbc::RepeatedField();
///
///配置
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Cfgs {
get { return cfgs_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Cfgs);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Cfgs other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CompressAdapterType != other.CompressAdapterType) return false;
if(!cfgs_.Equals(other.cfgs_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (CompressAdapterType != 0) hash ^= CompressAdapterType.GetHashCode();
hash ^= cfgs_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (CompressAdapterType != 0) {
output.WriteRawTag(8);
output.WriteInt32(CompressAdapterType);
}
cfgs_.WriteTo(output, _repeated_cfgs_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (CompressAdapterType != 0) {
output.WriteRawTag(8);
output.WriteInt32(CompressAdapterType);
}
cfgs_.WriteTo(ref output, _repeated_cfgs_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (CompressAdapterType != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompressAdapterType);
}
size += cfgs_.CalculateSize(_repeated_cfgs_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Cfgs other) {
if (other == null) {
return;
}
if (other.CompressAdapterType != 0) {
CompressAdapterType = other.CompressAdapterType;
}
cfgs_.Add(other.cfgs_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
CompressAdapterType = input.ReadInt32();
break;
}
case 18: {
cfgs_.AddEntriesFrom(input, _repeated_cfgs_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
CompressAdapterType = input.ReadInt32();
break;
}
case 18: {
cfgs_.AddEntriesFrom(ref input, _repeated_cfgs_codec);
break;
}
}
}
}
#endif
}
public sealed partial class Protobuf_Cfgs_Single : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Cfgs_Single());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs_Single() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs_Single(Protobuf_Cfgs_Single other) : this() {
tunnelID_ = other.tunnelID_;
port_ = other.port_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Cfgs_Single Clone() {
return new Protobuf_Cfgs_Single(this);
}
/// Field number for the "TunnelID" field.
public const int TunnelIDFieldNumber = 1;
private uint tunnelID_;
///
///TunnelID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint TunnelID {
get { return tunnelID_; }
set {
tunnelID_ = value;
}
}
/// Field number for the "Port" field.
public const int PortFieldNumber = 2;
private int port_;
///
///端口
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Port {
get { return port_; }
set {
port_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Cfgs_Single);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Cfgs_Single other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (TunnelID != other.TunnelID) return false;
if (Port != other.Port) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (TunnelID != 0) hash ^= TunnelID.GetHashCode();
if (Port != 0) hash ^= Port.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Port != 0) {
output.WriteRawTag(16);
output.WriteInt32(Port);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Port != 0) {
output.WriteRawTag(16);
output.WriteInt32(Port);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (TunnelID != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TunnelID);
}
if (Port != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Cfgs_Single other) {
if (other == null) {
return;
}
if (other.TunnelID != 0) {
TunnelID = other.TunnelID;
}
if (other.Port != 0) {
Port = other.Port;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Port = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Port = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
///聊天 上行
///
public sealed partial class Protobuf_ChatMsg : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_ChatMsg());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg(Protobuf_ChatMsg other) : this() {
chatMsg_ = other.chatMsg_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg Clone() {
return new Protobuf_ChatMsg(this);
}
/// Field number for the "ChatMsg" field.
public const int ChatMsgFieldNumber = 1;
private string chatMsg_ = "";
///
///消息
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ChatMsg {
get { return chatMsg_; }
set {
chatMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_ChatMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_ChatMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ChatMsg != other.ChatMsg) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ChatMsg.Length != 0) hash ^= ChatMsg.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (ChatMsg.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ChatMsg);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (ChatMsg.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ChatMsg);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ChatMsg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChatMsg);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_ChatMsg other) {
if (other == null) {
return;
}
if (other.ChatMsg.Length != 0) {
ChatMsg = other.ChatMsg;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
ChatMsg = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
ChatMsg = input.ReadString();
break;
}
}
}
}
#endif
}
///
///聊天 下行
///
public sealed partial class Protobuf_ChatMsg_RESP : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_ChatMsg_RESP());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg_RESP() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg_RESP(Protobuf_ChatMsg_RESP other) : this() {
nickName_ = other.nickName_;
chatMsg_ = other.chatMsg_;
date_ = other.date_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_ChatMsg_RESP Clone() {
return new Protobuf_ChatMsg_RESP(this);
}
/// Field number for the "NickName" field.
public const int NickNameFieldNumber = 1;
private string nickName_ = "";
///
///昵称
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string NickName {
get { return nickName_; }
set {
nickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "ChatMsg" field.
public const int ChatMsgFieldNumber = 2;
private string chatMsg_ = "";
///
///消息
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ChatMsg {
get { return chatMsg_; }
set {
chatMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "Date" field.
public const int DateFieldNumber = 3;
private long date_;
///
///时间
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Date {
get { return date_; }
set {
date_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_ChatMsg_RESP);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_ChatMsg_RESP other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (NickName != other.NickName) return false;
if (ChatMsg != other.ChatMsg) return false;
if (Date != other.Date) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (NickName.Length != 0) hash ^= NickName.GetHashCode();
if (ChatMsg.Length != 0) hash ^= ChatMsg.GetHashCode();
if (Date != 0L) hash ^= Date.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (NickName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(NickName);
}
if (ChatMsg.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChatMsg);
}
if (Date != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Date);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (NickName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(NickName);
}
if (ChatMsg.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ChatMsg);
}
if (Date != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Date);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (NickName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NickName);
}
if (ChatMsg.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ChatMsg);
}
if (Date != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Date);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_ChatMsg_RESP other) {
if (other == null) {
return;
}
if (other.NickName.Length != 0) {
NickName = other.NickName;
}
if (other.ChatMsg.Length != 0) {
ChatMsg = other.ChatMsg;
}
if (other.Date != 0L) {
Date = other.Date;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
NickName = input.ReadString();
break;
}
case 18: {
ChatMsg = input.ReadString();
break;
}
case 24: {
Date = input.ReadInt64();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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 10: {
NickName = input.ReadString();
break;
}
case 18: {
ChatMsg = input.ReadString();
break;
}
case 24: {
Date = input.ReadInt64();
break;
}
}
}
}
#endif
}
public sealed partial class Protobuf_Tunnel_Connect : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Tunnel_Connect());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Connect() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Connect(Protobuf_Tunnel_Connect other) : this() {
tunnelID_ = other.tunnelID_;
idx_ = other.idx_;
connected_ = other.connected_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Connect Clone() {
return new Protobuf_Tunnel_Connect(this);
}
/// Field number for the "TunnelID" field.
public const int TunnelIDFieldNumber = 1;
private uint tunnelID_;
///
///TunnelID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint TunnelID {
get { return tunnelID_; }
set {
tunnelID_ = value;
}
}
/// Field number for the "Idx" field.
public const int IdxFieldNumber = 2;
private uint idx_;
///
///单个隧道连接下标
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Idx {
get { return idx_; }
set {
idx_ = value;
}
}
/// Field number for the "Connected" field.
public const int ConnectedFieldNumber = 3;
private uint connected_;
///
///[0]连接失败 [1]连接成功
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Connected {
get { return connected_; }
set {
connected_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Tunnel_Connect);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Tunnel_Connect other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (TunnelID != other.TunnelID) return false;
if (Idx != other.Idx) return false;
if (Connected != other.Connected) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (TunnelID != 0) hash ^= TunnelID.GetHashCode();
if (Idx != 0) hash ^= Idx.GetHashCode();
if (Connected != 0) hash ^= Connected.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (Connected != 0) {
output.WriteRawTag(24);
output.WriteUInt32(Connected);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (Connected != 0) {
output.WriteRawTag(24);
output.WriteUInt32(Connected);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (TunnelID != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TunnelID);
}
if (Idx != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Idx);
}
if (Connected != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Connected);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Tunnel_Connect other) {
if (other == null) {
return;
}
if (other.TunnelID != 0) {
TunnelID = other.TunnelID;
}
if (other.Idx != 0) {
Idx = other.Idx;
}
if (other.Connected != 0) {
Connected = other.Connected;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
case 24: {
Connected = input.ReadUInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
case 24: {
Connected = input.ReadUInt32();
break;
}
}
}
}
#endif
}
public sealed partial class Protobuf_Tunnel_Disconnect : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Tunnel_Disconnect());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Disconnect() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Disconnect(Protobuf_Tunnel_Disconnect other) : this() {
tunnelID_ = other.tunnelID_;
idx_ = other.idx_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_Disconnect Clone() {
return new Protobuf_Tunnel_Disconnect(this);
}
/// Field number for the "TunnelID" field.
public const int TunnelIDFieldNumber = 1;
private uint tunnelID_;
///
///TunnelID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint TunnelID {
get { return tunnelID_; }
set {
tunnelID_ = value;
}
}
/// Field number for the "Idx" field.
public const int IdxFieldNumber = 2;
private uint idx_;
///
///单个隧道连接下标
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Idx {
get { return idx_; }
set {
idx_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Tunnel_Disconnect);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Tunnel_Disconnect other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (TunnelID != other.TunnelID) return false;
if (Idx != other.Idx) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (TunnelID != 0) hash ^= TunnelID.GetHashCode();
if (Idx != 0) hash ^= Idx.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (TunnelID != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TunnelID);
}
if (Idx != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Idx);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Tunnel_Disconnect other) {
if (other == null) {
return;
}
if (other.TunnelID != 0) {
TunnelID = other.TunnelID;
}
if (other.Idx != 0) {
Idx = other.Idx;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
}
}
}
#endif
}
public sealed partial class Protobuf_Tunnel_DATA : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Protobuf_Tunnel_DATA());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::AxibugProtobuf.ProtobufNoSugarReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_DATA() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_DATA(Protobuf_Tunnel_DATA other) : this() {
tunnelID_ = other.tunnelID_;
idx_ = other.idx_;
hunterNetCoreData_ = other.hunterNetCoreData_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Protobuf_Tunnel_DATA Clone() {
return new Protobuf_Tunnel_DATA(this);
}
/// Field number for the "TunnelID" field.
public const int TunnelIDFieldNumber = 1;
private uint tunnelID_;
///
///TunnelID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint TunnelID {
get { return tunnelID_; }
set {
tunnelID_ = value;
}
}
/// Field number for the "Idx" field.
public const int IdxFieldNumber = 2;
private uint idx_;
///
///单个隧道连接下标
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Idx {
get { return idx_; }
set {
idx_ = value;
}
}
/// Field number for the "HunterNetCore_Data" field.
public const int HunterNetCoreDataFieldNumber = 3;
private pb::ByteString hunterNetCoreData_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString HunterNetCoreData {
get { return hunterNetCoreData_; }
set {
hunterNetCoreData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Protobuf_Tunnel_DATA);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Protobuf_Tunnel_DATA other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (TunnelID != other.TunnelID) return false;
if (Idx != other.Idx) return false;
if (HunterNetCoreData != other.HunterNetCoreData) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (TunnelID != 0) hash ^= TunnelID.GetHashCode();
if (Idx != 0) hash ^= Idx.GetHashCode();
if (HunterNetCoreData.Length != 0) hash ^= HunterNetCoreData.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (HunterNetCoreData.Length != 0) {
output.WriteRawTag(26);
output.WriteBytes(HunterNetCoreData);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (TunnelID != 0) {
output.WriteRawTag(8);
output.WriteUInt32(TunnelID);
}
if (Idx != 0) {
output.WriteRawTag(16);
output.WriteUInt32(Idx);
}
if (HunterNetCoreData.Length != 0) {
output.WriteRawTag(26);
output.WriteBytes(HunterNetCoreData);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (TunnelID != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TunnelID);
}
if (Idx != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Idx);
}
if (HunterNetCoreData.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(HunterNetCoreData);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Protobuf_Tunnel_DATA other) {
if (other == null) {
return;
}
if (other.TunnelID != 0) {
TunnelID = other.TunnelID;
}
if (other.Idx != 0) {
Idx = other.Idx;
}
if (other.HunterNetCoreData.Length != 0) {
HunterNetCoreData = other.HunterNetCoreData;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
case 26: {
HunterNetCoreData = input.ReadBytes();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
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: {
TunnelID = input.ReadUInt32();
break;
}
case 16: {
Idx = input.ReadUInt32();
break;
}
case 26: {
HunterNetCoreData = input.ReadBytes();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code