123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- // 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 {
- /// <summary>Holder for reflection information generated from userinfo.proto</summary>
- public static partial class UserinfoReflection {
- #region Descriptor
- /// <summary>File descriptor for userinfo.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static UserinfoReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg51c2VyaW5mby5wcm90bxIGcHJvdG9zIl0KCFVzZXJJbmZvEg4KBlVzZXJJ",
- "RBgBIAEoDRIOCgZPcGVuaWQYAiABKAkSDwoHVW5pb25pZBgDIAEoCRIQCghO",
- "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<UserInfo> {
- private static readonly pb::MessageParser<UserInfo> _parser = new pb::MessageParser<UserInfo>(() => new UserInfo());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<UserInfo> 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);
- }
- /// <summary>Field number for the "UserID" field.</summary>
- public const int UserIDFieldNumber = 1;
- private uint userID_;
- /// <summary>
- /// 用户id
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint UserID {
- get { return userID_; }
- set {
- userID_ = value;
- }
- }
- /// <summary>Field number for the "Openid" field.</summary>
- public const int OpenidFieldNumber = 2;
- private string openid_ = "";
- /// <summary>
- /// 平台openid
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Openid {
- get { return openid_; }
- set {
- openid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "Unionid" field.</summary>
- public const int UnionidFieldNumber = 3;
- private string unionid_ = "";
- /// <summary>
- /// 平台unionid
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Unionid {
- get { return unionid_; }
- set {
- unionid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "Nickname" field.</summary>
- public const int NicknameFieldNumber = 4;
- private string nickname_ = "";
- /// <summary>
- /// 用户昵称
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Nickname {
- get { return nickname_; }
- set {
- nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "Avatar" field.</summary>
- public const int AvatarFieldNumber = 5;
- private string avatar_ = "";
- /// <summary>
- /// 用户形象
- /// </summary>
- [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.WriteUInt32(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.ComputeUInt32Size(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.ReadUInt32();
- 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
|