Lobby.cs 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: lobby.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Protos {
  10. /// <summary>Holder for reflection information generated from lobby.proto</summary>
  11. public static partial class LobbyReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for lobby.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static LobbyReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "Cgtsb2JieS5wcm90bxIGcHJvdG9zGg51c2VyaW5mby5wcm90byIzCg1Mb2Ji",
  22. "eUpvaW5QdXNoEiIKCFVzZXJJbmZvGAEgASgLMhAucHJvdG9zLlVzZXJJbmZv",
  23. "IiAKDkxvYmJ5TGVhdmVQdXNoEg4KBlVzZXJJRBgBIAEoDWIGcHJvdG8z"));
  24. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  25. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, },
  26. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  27. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyJoinPush), global::Protos.LobbyJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
  28. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyLeavePush), global::Protos.LobbyLeavePush.Parser, new[]{ "UserID" }, null, null, null)
  29. }));
  30. }
  31. #endregion
  32. }
  33. #region Messages
  34. /// <summary>
  35. /// 用户加入大厅
  36. /// </summary>
  37. public sealed partial class LobbyJoinPush : pb::IMessage<LobbyJoinPush> {
  38. private static readonly pb::MessageParser<LobbyJoinPush> _parser = new pb::MessageParser<LobbyJoinPush>(() => new LobbyJoinPush());
  39. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  40. public static pb::MessageParser<LobbyJoinPush> Parser { get { return _parser; } }
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  42. public static pbr::MessageDescriptor Descriptor {
  43. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[0]; }
  44. }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  46. pbr::MessageDescriptor pb::IMessage.Descriptor {
  47. get { return Descriptor; }
  48. }
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public LobbyJoinPush() {
  51. OnConstruction();
  52. }
  53. partial void OnConstruction();
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  55. public LobbyJoinPush(LobbyJoinPush other) : this() {
  56. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. public LobbyJoinPush Clone() {
  60. return new LobbyJoinPush(this);
  61. }
  62. /// <summary>Field number for the "UserInfo" field.</summary>
  63. public const int UserInfoFieldNumber = 1;
  64. private global::Protos.UserInfo userInfo_;
  65. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  66. public global::Protos.UserInfo UserInfo {
  67. get { return userInfo_; }
  68. set {
  69. userInfo_ = value;
  70. }
  71. }
  72. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  73. public override bool Equals(object other) {
  74. return Equals(other as LobbyJoinPush);
  75. }
  76. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  77. public bool Equals(LobbyJoinPush other) {
  78. if (ReferenceEquals(other, null)) {
  79. return false;
  80. }
  81. if (ReferenceEquals(other, this)) {
  82. return true;
  83. }
  84. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  85. return true;
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public override int GetHashCode() {
  89. int hash = 1;
  90. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  91. return hash;
  92. }
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  94. public override string ToString() {
  95. return pb::JsonFormatter.ToDiagnosticString(this);
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public void WriteTo(pb::CodedOutputStream output) {
  99. if (userInfo_ != null) {
  100. output.WriteRawTag(10);
  101. output.WriteMessage(UserInfo);
  102. }
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  105. public int CalculateSize() {
  106. int size = 0;
  107. if (userInfo_ != null) {
  108. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  109. }
  110. return size;
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. public void MergeFrom(LobbyJoinPush other) {
  114. if (other == null) {
  115. return;
  116. }
  117. if (other.userInfo_ != null) {
  118. if (userInfo_ == null) {
  119. userInfo_ = new global::Protos.UserInfo();
  120. }
  121. UserInfo.MergeFrom(other.UserInfo);
  122. }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public void MergeFrom(pb::CodedInputStream input) {
  126. uint tag;
  127. while ((tag = input.ReadTag()) != 0) {
  128. switch(tag) {
  129. default:
  130. input.SkipLastField();
  131. break;
  132. case 10: {
  133. if (userInfo_ == null) {
  134. userInfo_ = new global::Protos.UserInfo();
  135. }
  136. input.ReadMessage(userInfo_);
  137. break;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. /// <summary>
  144. /// 用户离开大厅
  145. /// </summary>
  146. public sealed partial class LobbyLeavePush : pb::IMessage<LobbyLeavePush> {
  147. private static readonly pb::MessageParser<LobbyLeavePush> _parser = new pb::MessageParser<LobbyLeavePush>(() => new LobbyLeavePush());
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  149. public static pb::MessageParser<LobbyLeavePush> Parser { get { return _parser; } }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  151. public static pbr::MessageDescriptor Descriptor {
  152. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[1]; }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  155. pbr::MessageDescriptor pb::IMessage.Descriptor {
  156. get { return Descriptor; }
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  159. public LobbyLeavePush() {
  160. OnConstruction();
  161. }
  162. partial void OnConstruction();
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  164. public LobbyLeavePush(LobbyLeavePush other) : this() {
  165. userID_ = other.userID_;
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. public LobbyLeavePush Clone() {
  169. return new LobbyLeavePush(this);
  170. }
  171. /// <summary>Field number for the "UserID" field.</summary>
  172. public const int UserIDFieldNumber = 1;
  173. private uint userID_;
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  175. public uint UserID {
  176. get { return userID_; }
  177. set {
  178. userID_ = value;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. public override bool Equals(object other) {
  183. return Equals(other as LobbyLeavePush);
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  186. public bool Equals(LobbyLeavePush other) {
  187. if (ReferenceEquals(other, null)) {
  188. return false;
  189. }
  190. if (ReferenceEquals(other, this)) {
  191. return true;
  192. }
  193. if (UserID != other.UserID) return false;
  194. return true;
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  197. public override int GetHashCode() {
  198. int hash = 1;
  199. if (UserID != 0) hash ^= UserID.GetHashCode();
  200. return hash;
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  203. public override string ToString() {
  204. return pb::JsonFormatter.ToDiagnosticString(this);
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public void WriteTo(pb::CodedOutputStream output) {
  208. if (UserID != 0) {
  209. output.WriteRawTag(8);
  210. output.WriteUInt32(UserID);
  211. }
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public int CalculateSize() {
  215. int size = 0;
  216. if (UserID != 0) {
  217. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
  218. }
  219. return size;
  220. }
  221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  222. public void MergeFrom(LobbyLeavePush other) {
  223. if (other == null) {
  224. return;
  225. }
  226. if (other.UserID != 0) {
  227. UserID = other.UserID;
  228. }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  231. public void MergeFrom(pb::CodedInputStream input) {
  232. uint tag;
  233. while ((tag = input.ReadTag()) != 0) {
  234. switch(tag) {
  235. default:
  236. input.SkipLastField();
  237. break;
  238. case 8: {
  239. UserID = input.ReadUInt32();
  240. break;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. #endregion
  247. }
  248. #endregion Designer generated code