// Generated by the protocol buffer compiler. DO NOT EDIT! // source: userinfo.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 Protos { /// Holder for reflection information generated from userinfo.proto public static partial class UserinfoReflection { #region Descriptor /// File descriptor for userinfo.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static UserinfoReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg51c2VyaW5mby5wcm90bxIGcHJvdG9zIl0KCFVzZXJJbmZvEg4KBlVzZXJJ", "RBgBIAEoBRIOCgZPcGVuaWQYAiABKAkSDwoHVW5pb25pZBgDIAEoCRIQCghO", "aWNrbmFtZRgEIAEoCRIOCgZBdmF0YXIYBSABKAliBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Protos.UserInfo), global::Protos.UserInfo.Parser, new[]{ "UserID", "Openid", "Unionid", "Nickname", "Avatar" }, null, null, null) })); } #endregion } #region Messages public sealed partial class UserInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInfo()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Protos.UserinfoReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UserInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UserInfo(UserInfo other) : this() { userID_ = other.userID_; openid_ = other.openid_; unionid_ = other.unionid_; nickname_ = other.nickname_; avatar_ = other.avatar_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UserInfo Clone() { return new UserInfo(this); } /// Field number for the "UserID" field. public const int UserIDFieldNumber = 1; private int userID_; /// /// 用户id /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int UserID { get { return userID_; } set { userID_ = value; } } /// Field number for the "Openid" field. public const int OpenidFieldNumber = 2; private string openid_ = ""; /// /// 平台openid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Openid { get { return openid_; } set { openid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Unionid" field. public const int UnionidFieldNumber = 3; private string unionid_ = ""; /// /// 平台unionid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Unionid { get { return unionid_; } set { unionid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Nickname" field. public const int NicknameFieldNumber = 4; private string nickname_ = ""; /// /// 用户昵称 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Nickname { get { return nickname_; } set { nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Avatar" field. public const int AvatarFieldNumber = 5; private string avatar_ = ""; /// /// 用户形象 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Avatar { get { return avatar_; } set { avatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UserInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UserInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UserID != other.UserID) return false; if (Openid != other.Openid) return false; if (Unionid != other.Unionid) return false; if (Nickname != other.Nickname) return false; if (Avatar != other.Avatar) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (UserID != 0) hash ^= UserID.GetHashCode(); if (Openid.Length != 0) hash ^= Openid.GetHashCode(); if (Unionid.Length != 0) hash ^= Unionid.GetHashCode(); if (Nickname.Length != 0) hash ^= Nickname.GetHashCode(); if (Avatar.Length != 0) hash ^= Avatar.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 (UserID != 0) { output.WriteRawTag(8); output.WriteInt32(UserID); } if (Openid.Length != 0) { output.WriteRawTag(18); output.WriteString(Openid); } if (Unionid.Length != 0) { output.WriteRawTag(26); output.WriteString(Unionid); } if (Nickname.Length != 0) { output.WriteRawTag(34); output.WriteString(Nickname); } if (Avatar.Length != 0) { output.WriteRawTag(42); output.WriteString(Avatar); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (UserID != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserID); } if (Openid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Openid); } if (Unionid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Unionid); } if (Nickname.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname); } if (Avatar.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Avatar); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UserInfo other) { if (other == null) { return; } if (other.UserID != 0) { UserID = other.UserID; } if (other.Openid.Length != 0) { Openid = other.Openid; } if (other.Unionid.Length != 0) { Unionid = other.Unionid; } if (other.Nickname.Length != 0) { Nickname = other.Nickname; } if (other.Avatar.Length != 0) { Avatar = other.Avatar; } } [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: { UserID = input.ReadInt32(); break; } case 18: { Openid = input.ReadString(); break; } case 26: { Unionid = input.ReadString(); break; } case 34: { Nickname = input.ReadString(); break; } case 42: { Avatar = input.ReadString(); break; } } } } } #endregion } #endregion Designer generated code