123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- // 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(
- "Cg51c2VyaW5mby5wcm90bxIGcHJvdG9zIosBCghVc2VySW5mbxIOCgZVc2Vy",
- "SUQYASABKA0SDgoGT3BlbmlkGAIgASgJEg8KB1VuaW9uaWQYAyABKAkSEAoI",
- "Tmlja25hbWUYBCABKAkSDgoGQXZhdGFyGAUgASgJEhAKCElkZW50aXR5GAYg",
- "ASgNEg0KBVJlYWR5GAcgASgIEgsKA3NpdBgIIAEoDWIGcHJvdG8z"));
- 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", "Identity", "Ready", "Sit" }, 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_;
- identity_ = other.identity_;
- ready_ = other.ready_;
- sit_ = other.sit_;
- }
- [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");
- }
- }
- /// <summary>Field number for the "Identity" field.</summary>
- public const int IdentityFieldNumber = 6;
- private uint identity_;
- /// <summary>
- /// 其他扩展属性
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint Identity {
- get { return identity_; }
- set {
- identity_ = value;
- }
- }
- /// <summary>Field number for the "Ready" field.</summary>
- public const int ReadyFieldNumber = 7;
- private bool ready_;
- /// <summary>
- /// 用户状态 0=未准备; 1=已准备
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Ready {
- get { return ready_; }
- set {
- ready_ = value;
- }
- }
- /// <summary>Field number for the "sit" field.</summary>
- public const int SitFieldNumber = 8;
- private uint sit_;
- /// <summary>
- /// 用户座位号 0 ~ n
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint Sit {
- get { return sit_; }
- set {
- sit_ = 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;
- if (Identity != other.Identity) return false;
- if (Ready != other.Ready) return false;
- if (Sit != other.Sit) 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();
- if (Identity != 0) hash ^= Identity.GetHashCode();
- if (Ready != false) hash ^= Ready.GetHashCode();
- if (Sit != 0) hash ^= Sit.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);
- }
- if (Identity != 0) {
- output.WriteRawTag(48);
- output.WriteUInt32(Identity);
- }
- if (Ready != false) {
- output.WriteRawTag(56);
- output.WriteBool(Ready);
- }
- if (Sit != 0) {
- output.WriteRawTag(64);
- output.WriteUInt32(Sit);
- }
- }
- [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);
- }
- if (Identity != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Identity);
- }
- if (Ready != false) {
- size += 1 + 1;
- }
- if (Sit != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Sit);
- }
- 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;
- }
- if (other.Identity != 0) {
- Identity = other.Identity;
- }
- if (other.Ready != false) {
- Ready = other.Ready;
- }
- if (other.Sit != 0) {
- Sit = other.Sit;
- }
- }
- [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;
- }
- case 48: {
- Identity = input.ReadUInt32();
- break;
- }
- case 56: {
- Ready = input.ReadBool();
- break;
- }
- case 64: {
- Sit = input.ReadUInt32();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|