// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WechatProto.proto #pragma warning disable 1591, 0612, 3021 #region Designer generated code using System; using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace WechatProto { /// Holder for reflection information generated from WechatProto.proto public static partial class WechatProtoReflection { #region Descriptor /// File descriptor for WechatProto.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static WechatProtoReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChFXZWNoYXRQcm90by5wcm90bxILV2VjaGF0UHJvdG8icQoJV2VjaGF0TXNn", "EiUKB2Jhc2VNc2cYASABKAsyFC5XZWNoYXRQcm90by5CYXNlTXNnEg0KBXRv", "a2VuGAIgASgJEg8KB3ZlcnNpb24YAyABKAkSEQoJdGltZVN0YW1wGAQgASgF", "EgoKAmlQGAUgASgJIrUBCgdCYXNlTXNnEgsKA3JldBgBIAEoBRILCgNjbWQY", "AiABKAUSDgoGY21kVXJsGAMgASgJEhEKCXNob3J0SG9zdBgEIAEoCRIQCghs", "b25nSG9zdBgFIAEoCRIfCgR1c2VyGAYgASgLMhEuV2VjaGF0UHJvdG8uVXNl", "chIQCghsb25nSGVhZBgHIAEoDBIQCghwYXlsb2FkcxgIIAEoDBIWCg5wbGF5", "bG9hZGV4dGVuZBgJIAEoDCLnAQoEVXNlchILCgN1aW4YASABKAMSDwoHY29v", "a2llcxgCIAEoDBISCgpzZXNzaW9uS2V5GAMgASgMEhAKCGRldmljZUlkGAQg", "ASgJEhIKCmRldmljZVR5cGUYBSABKAkSEgoKZGV2aWNlTmFtZRgGIAEoCRIW", "Cg5jdXJyZW50c3luY0tleRgHIAEoDBISCgptYXhTeW5jS2V5GAggASgMEhMK", "C2F1dG9BdXRoS2V5GAkgASgMEg8KB3VzZXJhbWUYCiABKAkSEAoIbmlja25h", "bWUYCyABKAwSDwoHdXNlckV4dBgMIAEoDDJJCgZXZWNoYXQSPwoLSGVsbG9X", "ZWNoYXQSFi5XZWNoYXRQcm90by5XZWNoYXRNc2caFi5XZWNoYXRQcm90by5X", "ZWNoYXRNc2ciAGIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::WechatProto.WechatMsg), global::WechatProto.WechatMsg.Parser, new[]{ "BaseMsg", "Token", "Version", "TimeStamp", "IP" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::WechatProto.BaseMsg), global::WechatProto.BaseMsg.Parser, new[]{ "Ret", "Cmd", "CmdUrl", "ShortHost", "LongHost", "User", "LongHead", "Payloads", "Playloadextend" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::WechatProto.User), global::WechatProto.User.Parser, new[]{ "Uin", "Cookies", "SessionKey", "DeviceId", "DeviceType", "DeviceName", "CurrentsyncKey", "MaxSyncKey", "AutoAuthKey", "Userame", "Nickname", "UserExt" }, null, null, null) })); } #endregion } #region Messages public sealed partial class WechatMsg : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WechatMsg()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::WechatProto.WechatProtoReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WechatMsg() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WechatMsg(WechatMsg other) : this() { BaseMsg = other.baseMsg_ != null ? other.BaseMsg.Clone() : null; token_ = other.token_; version_ = other.version_; timeStamp_ = other.timeStamp_; iP_ = other.iP_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public WechatMsg Clone() { return new WechatMsg(this); } /// Field number for the "baseMsg" field. public const int BaseMsgFieldNumber = 1; private global::WechatProto.BaseMsg baseMsg_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::WechatProto.BaseMsg BaseMsg { get { return baseMsg_; } set { baseMsg_ = value; } } /// Field number for the "token" field. public const int TokenFieldNumber = 2; private string token_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Token { get { return token_; } set { token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "version" field. public const int VersionFieldNumber = 3; private string version_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Version { get { return version_; } set { version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "timeStamp" field. public const int TimeStampFieldNumber = 4; private int timeStamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int TimeStamp { get { return timeStamp_; } set { timeStamp_ = value; } } /// Field number for the "iP" field. public const int IPFieldNumber = 5; private string iP_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string IP { get { return iP_; } set { iP_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as WechatMsg); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(WechatMsg other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(BaseMsg, other.BaseMsg)) return false; if (Token != other.Token) return false; if (Version != other.Version) return false; if (TimeStamp != other.TimeStamp) return false; if (IP != other.IP) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (baseMsg_ != null) hash ^= BaseMsg.GetHashCode(); if (Token.Length != 0) hash ^= Token.GetHashCode(); if (Version.Length != 0) hash ^= Version.GetHashCode(); if (TimeStamp != 0) hash ^= TimeStamp.GetHashCode(); if (IP.Length != 0) hash ^= IP.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 (baseMsg_ != null) { output.WriteRawTag(10); output.WriteMessage(BaseMsg); } if (Token.Length != 0) { output.WriteRawTag(18); output.WriteString(Token); } if (Version.Length != 0) { output.WriteRawTag(26); output.WriteString(Version); } if (TimeStamp != 0) { output.WriteRawTag(32); output.WriteInt32(TimeStamp); } if (IP.Length != 0) { output.WriteRawTag(42); output.WriteString(IP); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (baseMsg_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaseMsg); } if (Token.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); } if (Version.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); } if (TimeStamp != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeStamp); } if (IP.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IP); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(WechatMsg other) { if (other == null) { return; } if (other.baseMsg_ != null) { if (baseMsg_ == null) { baseMsg_ = new global::WechatProto.BaseMsg(); } BaseMsg.MergeFrom(other.BaseMsg); } if (other.Token.Length != 0) { Token = other.Token; } if (other.Version.Length != 0) { Version = other.Version; } if (other.TimeStamp != 0) { TimeStamp = other.TimeStamp; } if (other.IP.Length != 0) { IP = other.IP; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (baseMsg_ == null) { baseMsg_ = new global::WechatProto.BaseMsg(); } input.ReadMessage(baseMsg_); break; } case 18: { Token = input.ReadString(); break; } case 26: { Version = input.ReadString(); break; } case 32: { TimeStamp = input.ReadInt32(); break; } case 42: { IP = input.ReadString(); break; } } } } } public sealed partial class BaseMsg : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BaseMsg()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::WechatProto.WechatProtoReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BaseMsg() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BaseMsg(BaseMsg other) : this() { ret_ = other.ret_; cmd_ = other.cmd_; cmdUrl_ = other.cmdUrl_; shortHost_ = other.shortHost_; longHost_ = other.longHost_; User = other.user_ != null ? other.User.Clone() : null; longHead_ = other.longHead_; payloads_ = other.payloads_; playloadextend_ = other.playloadextend_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BaseMsg Clone() { return new BaseMsg(this); } /// Field number for the "ret" field. public const int RetFieldNumber = 1; private int ret_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Ret { get { return ret_; } set { ret_ = value; } } /// Field number for the "cmd" field. public const int CmdFieldNumber = 2; private int cmd_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Cmd { get { return cmd_; } set { cmd_ = value; } } /// Field number for the "cmdUrl" field. public const int CmdUrlFieldNumber = 3; private string cmdUrl_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string CmdUrl { get { return cmdUrl_; } set { cmdUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "shortHost" field. public const int ShortHostFieldNumber = 4; private string shortHost_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ShortHost { get { return shortHost_; } set { shortHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "longHost" field. public const int LongHostFieldNumber = 5; private string longHost_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string LongHost { get { return longHost_; } set { longHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user" field. public const int UserFieldNumber = 6; private global::WechatProto.User user_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::WechatProto.User User { get { return user_; } set { user_ = value; } } /// Field number for the "longHead" field. public const int LongHeadFieldNumber = 7; private pb::ByteString longHead_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString LongHead { get { return longHead_; } set { longHead_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "payloads" field. public const int PayloadsFieldNumber = 8; private pb::ByteString payloads_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Payloads { get { return payloads_; } set { payloads_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "playloadextend" field. public const int PlayloadextendFieldNumber = 9; private pb::ByteString playloadextend_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Playloadextend { get { return playloadextend_; } set { playloadextend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BaseMsg); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BaseMsg other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Ret != other.Ret) return false; if (Cmd != other.Cmd) return false; if (CmdUrl != other.CmdUrl) return false; if (ShortHost != other.ShortHost) return false; if (LongHost != other.LongHost) return false; if (!object.Equals(User, other.User)) return false; if (LongHead != other.LongHead) return false; if (Payloads != other.Payloads) return false; if (Playloadextend != other.Playloadextend) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Ret != 0) hash ^= Ret.GetHashCode(); if (Cmd != 0) hash ^= Cmd.GetHashCode(); if (CmdUrl.Length != 0) hash ^= CmdUrl.GetHashCode(); if (ShortHost.Length != 0) hash ^= ShortHost.GetHashCode(); if (LongHost.Length != 0) hash ^= LongHost.GetHashCode(); if (user_ != null) hash ^= User.GetHashCode(); if (LongHead.Length != 0) hash ^= LongHead.GetHashCode(); if (Payloads.Length != 0) hash ^= Payloads.GetHashCode(); if (Playloadextend.Length != 0) hash ^= Playloadextend.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 (Ret != 0) { output.WriteRawTag(8); output.WriteInt32(Ret); } if (Cmd != 0) { output.WriteRawTag(16); output.WriteInt32(Cmd); } if (CmdUrl.Length != 0) { output.WriteRawTag(26); output.WriteString(CmdUrl); } if (ShortHost.Length != 0) { output.WriteRawTag(34); output.WriteString(ShortHost); } if (LongHost.Length != 0) { output.WriteRawTag(42); output.WriteString(LongHost); } if (user_ != null) { output.WriteRawTag(50); output.WriteMessage(User); } if (LongHead.Length != 0) { output.WriteRawTag(58); output.WriteBytes(LongHead); } if (Payloads.Length != 0) { output.WriteRawTag(66); output.WriteBytes(Payloads); } if (Playloadextend.Length != 0) { output.WriteRawTag(74); output.WriteBytes(Playloadextend); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Ret != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Ret); } if (Cmd != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cmd); } if (CmdUrl.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CmdUrl); } if (ShortHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ShortHost); } if (LongHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LongHost); } if (user_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); } if (LongHead.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(LongHead); } if (Payloads.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payloads); } if (Playloadextend.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Playloadextend); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BaseMsg other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.Cmd != 0) { Cmd = other.Cmd; } if (other.CmdUrl.Length != 0) { CmdUrl = other.CmdUrl; } if (other.ShortHost.Length != 0) { ShortHost = other.ShortHost; } if (other.LongHost.Length != 0) { LongHost = other.LongHost; } if (other.user_ != null) { if (user_ == null) { user_ = new global::WechatProto.User(); } User.MergeFrom(other.User); } if (other.LongHead.Length != 0) { LongHead = other.LongHead; } if (other.Payloads.Length != 0) { Payloads = other.Payloads; } if (other.Playloadextend.Length != 0) { Playloadextend = other.Playloadextend; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Ret = input.ReadInt32(); break; } case 16: { Cmd = input.ReadInt32(); break; } case 26: { CmdUrl = input.ReadString(); break; } case 34: { ShortHost = input.ReadString(); break; } case 42: { LongHost = input.ReadString(); break; } case 50: { if (user_ == null) { user_ = new global::WechatProto.User(); } input.ReadMessage(user_); break; } case 58: { LongHead = input.ReadBytes(); break; } case 66: { Payloads = input.ReadBytes(); break; } case 74: { Playloadextend = input.ReadBytes(); break; } } } } } [Serializable] public sealed partial class User : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::WechatProto.WechatProtoReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public User() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public User(User other) : this() { uin_ = other.uin_; cookies_ = other.cookies_; sessionKey_ = other.sessionKey_; deviceId_ = other.deviceId_; deviceType_ = other.deviceType_; deviceName_ = other.deviceName_; currentsyncKey_ = other.currentsyncKey_; maxSyncKey_ = other.maxSyncKey_; autoAuthKey_ = other.autoAuthKey_; userame_ = other.userame_; nickname_ = other.nickname_; userExt_ = other.userExt_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public User Clone() { return new User(this); } /// Field number for the "uin" field. public const int UinFieldNumber = 1; private long uin_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long Uin { get { return uin_; } set { uin_ = value; } } /// Field number for the "cookies" field. public const int CookiesFieldNumber = 2; private pb::ByteString cookies_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Cookies { get { return cookies_; } set { cookies_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sessionKey" field. public const int SessionKeyFieldNumber = 3; private pb::ByteString sessionKey_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString SessionKey { get { return sessionKey_; } set { sessionKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "deviceId" field. public const int DeviceIdFieldNumber = 4; private string deviceId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string DeviceId { get { return deviceId_; } set { deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "deviceType" field. public const int DeviceTypeFieldNumber = 5; private string deviceType_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string DeviceType { get { return deviceType_; } set { deviceType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "deviceName" field. public const int DeviceNameFieldNumber = 6; private string deviceName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string DeviceName { get { return deviceName_; } set { deviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "currentsyncKey" field. public const int CurrentsyncKeyFieldNumber = 7; private pb::ByteString currentsyncKey_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString CurrentsyncKey { get { return currentsyncKey_; } set { currentsyncKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "maxSyncKey" field. public const int MaxSyncKeyFieldNumber = 8; private pb::ByteString maxSyncKey_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString MaxSyncKey { get { return maxSyncKey_; } set { maxSyncKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "autoAuthKey" field. public const int AutoAuthKeyFieldNumber = 9; private pb::ByteString autoAuthKey_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString AutoAuthKey { get { return autoAuthKey_; } set { autoAuthKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "userame" field. public const int UserameFieldNumber = 10; private string userame_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Userame { get { return userame_; } set { userame_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "nickname" field. public const int NicknameFieldNumber = 11; private pb::ByteString nickname_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString Nickname { get { return nickname_; } set { nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "userExt" field. public const int UserExtFieldNumber = 12; private pb::ByteString userExt_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pb::ByteString UserExt { get { return userExt_; } set { userExt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as User); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(User other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Uin != other.Uin) return false; if (Cookies != other.Cookies) return false; if (SessionKey != other.SessionKey) return false; if (DeviceId != other.DeviceId) return false; if (DeviceType != other.DeviceType) return false; if (DeviceName != other.DeviceName) return false; if (CurrentsyncKey != other.CurrentsyncKey) return false; if (MaxSyncKey != other.MaxSyncKey) return false; if (AutoAuthKey != other.AutoAuthKey) return false; if (Userame != other.Userame) return false; if (Nickname != other.Nickname) return false; if (UserExt != other.UserExt) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Uin != 0L) hash ^= Uin.GetHashCode(); if (Cookies.Length != 0) hash ^= Cookies.GetHashCode(); if (SessionKey.Length != 0) hash ^= SessionKey.GetHashCode(); if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); if (DeviceType.Length != 0) hash ^= DeviceType.GetHashCode(); if (DeviceName.Length != 0) hash ^= DeviceName.GetHashCode(); if (CurrentsyncKey.Length != 0) hash ^= CurrentsyncKey.GetHashCode(); if (MaxSyncKey.Length != 0) hash ^= MaxSyncKey.GetHashCode(); if (AutoAuthKey.Length != 0) hash ^= AutoAuthKey.GetHashCode(); if (Userame.Length != 0) hash ^= Userame.GetHashCode(); if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); if (UserExt.Length != 0) hash ^= UserExt.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 (Uin != 0L) { output.WriteRawTag(8); output.WriteInt64(Uin); } if (Cookies.Length != 0) { output.WriteRawTag(18); output.WriteBytes(Cookies); } if (SessionKey.Length != 0) { output.WriteRawTag(26); output.WriteBytes(SessionKey); } if (DeviceId.Length != 0) { output.WriteRawTag(34); output.WriteString(DeviceId); } if (DeviceType.Length != 0) { output.WriteRawTag(42); output.WriteString(DeviceType); } if (DeviceName.Length != 0) { output.WriteRawTag(50); output.WriteString(DeviceName); } if (CurrentsyncKey.Length != 0) { output.WriteRawTag(58); output.WriteBytes(CurrentsyncKey); } if (MaxSyncKey.Length != 0) { output.WriteRawTag(66); output.WriteBytes(MaxSyncKey); } if (AutoAuthKey.Length != 0) { output.WriteRawTag(74); output.WriteBytes(AutoAuthKey); } if (Userame.Length != 0) { output.WriteRawTag(82); output.WriteString(Userame); } if (Nickname.Length != 0) { output.WriteRawTag(90); output.WriteBytes(Nickname); } if (UserExt.Length != 0) { output.WriteRawTag(98); output.WriteBytes(UserExt); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Uin != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Uin); } if (Cookies.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Cookies); } if (SessionKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(SessionKey); } if (DeviceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); } if (DeviceType.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceType); } if (DeviceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceName); } if (CurrentsyncKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(CurrentsyncKey); } if (MaxSyncKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(MaxSyncKey); } if (AutoAuthKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(AutoAuthKey); } if (Userame.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Userame); } if (Nickname.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Nickname); } if (UserExt.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(UserExt); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(User other) { if (other == null) { return; } if (other.Uin != 0L) { Uin = other.Uin; } if (other.Cookies.Length != 0) { Cookies = other.Cookies; } if (other.SessionKey.Length != 0) { SessionKey = other.SessionKey; } if (other.DeviceId.Length != 0) { DeviceId = other.DeviceId; } if (other.DeviceType.Length != 0) { DeviceType = other.DeviceType; } if (other.DeviceName.Length != 0) { DeviceName = other.DeviceName; } if (other.CurrentsyncKey.Length != 0) { CurrentsyncKey = other.CurrentsyncKey; } if (other.MaxSyncKey.Length != 0) { MaxSyncKey = other.MaxSyncKey; } if (other.AutoAuthKey.Length != 0) { AutoAuthKey = other.AutoAuthKey; } if (other.Userame.Length != 0) { Userame = other.Userame; } if (other.Nickname.Length != 0) { Nickname = other.Nickname; } if (other.UserExt.Length != 0) { UserExt = other.UserExt; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Uin = input.ReadInt64(); break; } case 18: { Cookies = input.ReadBytes(); break; } case 26: { SessionKey = input.ReadBytes(); break; } case 34: { DeviceId = input.ReadString(); break; } case 42: { DeviceType = input.ReadString(); break; } case 50: { DeviceName = input.ReadString(); break; } case 58: { CurrentsyncKey = input.ReadBytes(); break; } case 66: { MaxSyncKey = input.ReadBytes(); break; } case 74: { AutoAuthKey = input.ReadBytes(); break; } case 82: { Userame = input.ReadString(); break; } case 90: { Nickname = input.ReadBytes(); break; } case 98: { UserExt = input.ReadBytes(); break; } } } } } #endregion } #endregion Designer generated code