Lobby.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  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. "Cgtsb2JieS5wcm90bxIGcHJvdG9zGg51c2VyaW5mby5wcm90bxoMcmVzdWx0",
  22. "LnByb3RvIjMKDUxvYmJ5Sm9pblB1c2gSIgoIVXNlckluZm8YASABKAsyEC5w",
  23. "cm90b3MuVXNlckluZm8iIAoOTG9iYnlMZWF2ZVB1c2gSDgoGVXNlcklEGAEg",
  24. "ASgNIhYKFExvYmJ5VXNlckxpc3RSZXF1ZXN0IlgKFUxvYmJ5VXNlckxpc3RS",
  25. "ZXNwb25zZRIeCgZSZXN1bHQYASABKAsyDi5wcm90b3MuUmVzdWx0Eh8KBVVz",
  26. "ZXJzGAIgAygLMhAucHJvdG9zLlVzZXJJbmZvIiUKE0xvYmJ5R2V0VXNlclJl",
  27. "cXVlc3QSDgoGVXNlcklEGAEgASgNIlYKFExvYmJ5R2V0VXNlclJlc3BvbnNl",
  28. "Eh4KBlJlc3VsdBgBIAEoCzIOLnByb3Rvcy5SZXN1bHQSHgoEVXNlchgCIAEo",
  29. "CzIQLnByb3Rvcy5Vc2VySW5mb2IGcHJvdG8z"));
  30. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  31. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  32. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  33. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyJoinPush), global::Protos.LobbyJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
  34. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyLeavePush), global::Protos.LobbyLeavePush.Parser, new[]{ "UserID" }, null, null, null),
  35. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListRequest), global::Protos.LobbyUserListRequest.Parser, null, null, null, null),
  36. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyUserListResponse), global::Protos.LobbyUserListResponse.Parser, new[]{ "Result", "Users" }, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserRequest), global::Protos.LobbyGetUserRequest.Parser, new[]{ "UserID" }, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LobbyGetUserResponse), global::Protos.LobbyGetUserResponse.Parser, new[]{ "Result", "User" }, null, null, null)
  39. }));
  40. }
  41. #endregion
  42. }
  43. #region Messages
  44. /// <summary>
  45. /// 用户加入大厅
  46. /// </summary>
  47. public sealed partial class LobbyJoinPush : pb::IMessage<LobbyJoinPush> {
  48. private static readonly pb::MessageParser<LobbyJoinPush> _parser = new pb::MessageParser<LobbyJoinPush>(() => new LobbyJoinPush());
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public static pb::MessageParser<LobbyJoinPush> Parser { get { return _parser; } }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public static pbr::MessageDescriptor Descriptor {
  53. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[0]; }
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. pbr::MessageDescriptor pb::IMessage.Descriptor {
  57. get { return Descriptor; }
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. public LobbyJoinPush() {
  61. OnConstruction();
  62. }
  63. partial void OnConstruction();
  64. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  65. public LobbyJoinPush(LobbyJoinPush other) : this() {
  66. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  67. }
  68. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  69. public LobbyJoinPush Clone() {
  70. return new LobbyJoinPush(this);
  71. }
  72. /// <summary>Field number for the "UserInfo" field.</summary>
  73. public const int UserInfoFieldNumber = 1;
  74. private global::Protos.UserInfo userInfo_;
  75. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  76. public global::Protos.UserInfo UserInfo {
  77. get { return userInfo_; }
  78. set {
  79. userInfo_ = value;
  80. }
  81. }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  83. public override bool Equals(object other) {
  84. return Equals(other as LobbyJoinPush);
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  87. public bool Equals(LobbyJoinPush other) {
  88. if (ReferenceEquals(other, null)) {
  89. return false;
  90. }
  91. if (ReferenceEquals(other, this)) {
  92. return true;
  93. }
  94. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  95. return true;
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public override int GetHashCode() {
  99. int hash = 1;
  100. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  101. return hash;
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  104. public override string ToString() {
  105. return pb::JsonFormatter.ToDiagnosticString(this);
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  108. public void WriteTo(pb::CodedOutputStream output) {
  109. if (userInfo_ != null) {
  110. output.WriteRawTag(10);
  111. output.WriteMessage(UserInfo);
  112. }
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. public int CalculateSize() {
  116. int size = 0;
  117. if (userInfo_ != null) {
  118. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  119. }
  120. return size;
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  123. public void MergeFrom(LobbyJoinPush other) {
  124. if (other == null) {
  125. return;
  126. }
  127. if (other.userInfo_ != null) {
  128. if (userInfo_ == null) {
  129. userInfo_ = new global::Protos.UserInfo();
  130. }
  131. UserInfo.MergeFrom(other.UserInfo);
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  135. public void MergeFrom(pb::CodedInputStream input) {
  136. uint tag;
  137. while ((tag = input.ReadTag()) != 0) {
  138. switch(tag) {
  139. default:
  140. input.SkipLastField();
  141. break;
  142. case 10: {
  143. if (userInfo_ == null) {
  144. userInfo_ = new global::Protos.UserInfo();
  145. }
  146. input.ReadMessage(userInfo_);
  147. break;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. /// <summary>
  154. /// 用户离开大厅
  155. /// </summary>
  156. public sealed partial class LobbyLeavePush : pb::IMessage<LobbyLeavePush> {
  157. private static readonly pb::MessageParser<LobbyLeavePush> _parser = new pb::MessageParser<LobbyLeavePush>(() => new LobbyLeavePush());
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  159. public static pb::MessageParser<LobbyLeavePush> Parser { get { return _parser; } }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  161. public static pbr::MessageDescriptor Descriptor {
  162. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[1]; }
  163. }
  164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  165. pbr::MessageDescriptor pb::IMessage.Descriptor {
  166. get { return Descriptor; }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  169. public LobbyLeavePush() {
  170. OnConstruction();
  171. }
  172. partial void OnConstruction();
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  174. public LobbyLeavePush(LobbyLeavePush other) : this() {
  175. userID_ = other.userID_;
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  178. public LobbyLeavePush Clone() {
  179. return new LobbyLeavePush(this);
  180. }
  181. /// <summary>Field number for the "UserID" field.</summary>
  182. public const int UserIDFieldNumber = 1;
  183. private uint userID_;
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  185. public uint UserID {
  186. get { return userID_; }
  187. set {
  188. userID_ = value;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  192. public override bool Equals(object other) {
  193. return Equals(other as LobbyLeavePush);
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  196. public bool Equals(LobbyLeavePush other) {
  197. if (ReferenceEquals(other, null)) {
  198. return false;
  199. }
  200. if (ReferenceEquals(other, this)) {
  201. return true;
  202. }
  203. if (UserID != other.UserID) return false;
  204. return true;
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public override int GetHashCode() {
  208. int hash = 1;
  209. if (UserID != 0) hash ^= UserID.GetHashCode();
  210. return hash;
  211. }
  212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  213. public override string ToString() {
  214. return pb::JsonFormatter.ToDiagnosticString(this);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  217. public void WriteTo(pb::CodedOutputStream output) {
  218. if (UserID != 0) {
  219. output.WriteRawTag(8);
  220. output.WriteUInt32(UserID);
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  224. public int CalculateSize() {
  225. int size = 0;
  226. if (UserID != 0) {
  227. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
  228. }
  229. return size;
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. public void MergeFrom(LobbyLeavePush other) {
  233. if (other == null) {
  234. return;
  235. }
  236. if (other.UserID != 0) {
  237. UserID = other.UserID;
  238. }
  239. }
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  241. public void MergeFrom(pb::CodedInputStream input) {
  242. uint tag;
  243. while ((tag = input.ReadTag()) != 0) {
  244. switch(tag) {
  245. default:
  246. input.SkipLastField();
  247. break;
  248. case 8: {
  249. UserID = input.ReadUInt32();
  250. break;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. public sealed partial class LobbyUserListRequest : pb::IMessage<LobbyUserListRequest> {
  257. private static readonly pb::MessageParser<LobbyUserListRequest> _parser = new pb::MessageParser<LobbyUserListRequest>(() => new LobbyUserListRequest());
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  259. public static pb::MessageParser<LobbyUserListRequest> Parser { get { return _parser; } }
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. public static pbr::MessageDescriptor Descriptor {
  262. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[2]; }
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  265. pbr::MessageDescriptor pb::IMessage.Descriptor {
  266. get { return Descriptor; }
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public LobbyUserListRequest() {
  270. OnConstruction();
  271. }
  272. partial void OnConstruction();
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  274. public LobbyUserListRequest(LobbyUserListRequest other) : this() {
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  277. public LobbyUserListRequest Clone() {
  278. return new LobbyUserListRequest(this);
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  281. public override bool Equals(object other) {
  282. return Equals(other as LobbyUserListRequest);
  283. }
  284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  285. public bool Equals(LobbyUserListRequest other) {
  286. if (ReferenceEquals(other, null)) {
  287. return false;
  288. }
  289. if (ReferenceEquals(other, this)) {
  290. return true;
  291. }
  292. return true;
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  295. public override int GetHashCode() {
  296. int hash = 1;
  297. return hash;
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  300. public override string ToString() {
  301. return pb::JsonFormatter.ToDiagnosticString(this);
  302. }
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  304. public void WriteTo(pb::CodedOutputStream output) {
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public int CalculateSize() {
  308. int size = 0;
  309. return size;
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  312. public void MergeFrom(LobbyUserListRequest other) {
  313. if (other == null) {
  314. return;
  315. }
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  318. public void MergeFrom(pb::CodedInputStream input) {
  319. uint tag;
  320. while ((tag = input.ReadTag()) != 0) {
  321. switch(tag) {
  322. default:
  323. input.SkipLastField();
  324. break;
  325. }
  326. }
  327. }
  328. }
  329. public sealed partial class LobbyUserListResponse : pb::IMessage<LobbyUserListResponse> {
  330. private static readonly pb::MessageParser<LobbyUserListResponse> _parser = new pb::MessageParser<LobbyUserListResponse>(() => new LobbyUserListResponse());
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  332. public static pb::MessageParser<LobbyUserListResponse> Parser { get { return _parser; } }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  334. public static pbr::MessageDescriptor Descriptor {
  335. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[3]; }
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  338. pbr::MessageDescriptor pb::IMessage.Descriptor {
  339. get { return Descriptor; }
  340. }
  341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  342. public LobbyUserListResponse() {
  343. OnConstruction();
  344. }
  345. partial void OnConstruction();
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  347. public LobbyUserListResponse(LobbyUserListResponse other) : this() {
  348. Result = other.result_ != null ? other.Result.Clone() : null;
  349. users_ = other.users_.Clone();
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public LobbyUserListResponse Clone() {
  353. return new LobbyUserListResponse(this);
  354. }
  355. /// <summary>Field number for the "Result" field.</summary>
  356. public const int ResultFieldNumber = 1;
  357. private global::Protos.Result result_;
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. public global::Protos.Result Result {
  360. get { return result_; }
  361. set {
  362. result_ = value;
  363. }
  364. }
  365. /// <summary>Field number for the "Users" field.</summary>
  366. public const int UsersFieldNumber = 2;
  367. private static readonly pb::FieldCodec<global::Protos.UserInfo> _repeated_users_codec
  368. = pb::FieldCodec.ForMessage(18, global::Protos.UserInfo.Parser);
  369. private readonly pbc::RepeatedField<global::Protos.UserInfo> users_ = new pbc::RepeatedField<global::Protos.UserInfo>();
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  371. public pbc::RepeatedField<global::Protos.UserInfo> Users {
  372. get { return users_; }
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  375. public override bool Equals(object other) {
  376. return Equals(other as LobbyUserListResponse);
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. public bool Equals(LobbyUserListResponse other) {
  380. if (ReferenceEquals(other, null)) {
  381. return false;
  382. }
  383. if (ReferenceEquals(other, this)) {
  384. return true;
  385. }
  386. if (!object.Equals(Result, other.Result)) return false;
  387. if(!users_.Equals(other.users_)) return false;
  388. return true;
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  391. public override int GetHashCode() {
  392. int hash = 1;
  393. if (result_ != null) hash ^= Result.GetHashCode();
  394. hash ^= users_.GetHashCode();
  395. return hash;
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  398. public override string ToString() {
  399. return pb::JsonFormatter.ToDiagnosticString(this);
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  402. public void WriteTo(pb::CodedOutputStream output) {
  403. if (result_ != null) {
  404. output.WriteRawTag(10);
  405. output.WriteMessage(Result);
  406. }
  407. users_.WriteTo(output, _repeated_users_codec);
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  410. public int CalculateSize() {
  411. int size = 0;
  412. if (result_ != null) {
  413. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  414. }
  415. size += users_.CalculateSize(_repeated_users_codec);
  416. return size;
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  419. public void MergeFrom(LobbyUserListResponse other) {
  420. if (other == null) {
  421. return;
  422. }
  423. if (other.result_ != null) {
  424. if (result_ == null) {
  425. result_ = new global::Protos.Result();
  426. }
  427. Result.MergeFrom(other.Result);
  428. }
  429. users_.Add(other.users_);
  430. }
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  432. public void MergeFrom(pb::CodedInputStream input) {
  433. uint tag;
  434. while ((tag = input.ReadTag()) != 0) {
  435. switch(tag) {
  436. default:
  437. input.SkipLastField();
  438. break;
  439. case 10: {
  440. if (result_ == null) {
  441. result_ = new global::Protos.Result();
  442. }
  443. input.ReadMessage(result_);
  444. break;
  445. }
  446. case 18: {
  447. users_.AddEntriesFrom(input, _repeated_users_codec);
  448. break;
  449. }
  450. }
  451. }
  452. }
  453. }
  454. public sealed partial class LobbyGetUserRequest : pb::IMessage<LobbyGetUserRequest> {
  455. private static readonly pb::MessageParser<LobbyGetUserRequest> _parser = new pb::MessageParser<LobbyGetUserRequest>(() => new LobbyGetUserRequest());
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  457. public static pb::MessageParser<LobbyGetUserRequest> Parser { get { return _parser; } }
  458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  459. public static pbr::MessageDescriptor Descriptor {
  460. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[4]; }
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  463. pbr::MessageDescriptor pb::IMessage.Descriptor {
  464. get { return Descriptor; }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public LobbyGetUserRequest() {
  468. OnConstruction();
  469. }
  470. partial void OnConstruction();
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  472. public LobbyGetUserRequest(LobbyGetUserRequest other) : this() {
  473. userID_ = other.userID_;
  474. }
  475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  476. public LobbyGetUserRequest Clone() {
  477. return new LobbyGetUserRequest(this);
  478. }
  479. /// <summary>Field number for the "UserID" field.</summary>
  480. public const int UserIDFieldNumber = 1;
  481. private uint userID_;
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  483. public uint UserID {
  484. get { return userID_; }
  485. set {
  486. userID_ = value;
  487. }
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  490. public override bool Equals(object other) {
  491. return Equals(other as LobbyGetUserRequest);
  492. }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public bool Equals(LobbyGetUserRequest other) {
  495. if (ReferenceEquals(other, null)) {
  496. return false;
  497. }
  498. if (ReferenceEquals(other, this)) {
  499. return true;
  500. }
  501. if (UserID != other.UserID) return false;
  502. return true;
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. public override int GetHashCode() {
  506. int hash = 1;
  507. if (UserID != 0) hash ^= UserID.GetHashCode();
  508. return hash;
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  511. public override string ToString() {
  512. return pb::JsonFormatter.ToDiagnosticString(this);
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public void WriteTo(pb::CodedOutputStream output) {
  516. if (UserID != 0) {
  517. output.WriteRawTag(8);
  518. output.WriteUInt32(UserID);
  519. }
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  522. public int CalculateSize() {
  523. int size = 0;
  524. if (UserID != 0) {
  525. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
  526. }
  527. return size;
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public void MergeFrom(LobbyGetUserRequest other) {
  531. if (other == null) {
  532. return;
  533. }
  534. if (other.UserID != 0) {
  535. UserID = other.UserID;
  536. }
  537. }
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  539. public void MergeFrom(pb::CodedInputStream input) {
  540. uint tag;
  541. while ((tag = input.ReadTag()) != 0) {
  542. switch(tag) {
  543. default:
  544. input.SkipLastField();
  545. break;
  546. case 8: {
  547. UserID = input.ReadUInt32();
  548. break;
  549. }
  550. }
  551. }
  552. }
  553. }
  554. public sealed partial class LobbyGetUserResponse : pb::IMessage<LobbyGetUserResponse> {
  555. private static readonly pb::MessageParser<LobbyGetUserResponse> _parser = new pb::MessageParser<LobbyGetUserResponse>(() => new LobbyGetUserResponse());
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  557. public static pb::MessageParser<LobbyGetUserResponse> Parser { get { return _parser; } }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  559. public static pbr::MessageDescriptor Descriptor {
  560. get { return global::Protos.LobbyReflection.Descriptor.MessageTypes[5]; }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  563. pbr::MessageDescriptor pb::IMessage.Descriptor {
  564. get { return Descriptor; }
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public LobbyGetUserResponse() {
  568. OnConstruction();
  569. }
  570. partial void OnConstruction();
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  572. public LobbyGetUserResponse(LobbyGetUserResponse other) : this() {
  573. Result = other.result_ != null ? other.Result.Clone() : null;
  574. User = other.user_ != null ? other.User.Clone() : null;
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  577. public LobbyGetUserResponse Clone() {
  578. return new LobbyGetUserResponse(this);
  579. }
  580. /// <summary>Field number for the "Result" field.</summary>
  581. public const int ResultFieldNumber = 1;
  582. private global::Protos.Result result_;
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. public global::Protos.Result Result {
  585. get { return result_; }
  586. set {
  587. result_ = value;
  588. }
  589. }
  590. /// <summary>Field number for the "User" field.</summary>
  591. public const int UserFieldNumber = 2;
  592. private global::Protos.UserInfo user_;
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. public global::Protos.UserInfo User {
  595. get { return user_; }
  596. set {
  597. user_ = value;
  598. }
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  601. public override bool Equals(object other) {
  602. return Equals(other as LobbyGetUserResponse);
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  605. public bool Equals(LobbyGetUserResponse other) {
  606. if (ReferenceEquals(other, null)) {
  607. return false;
  608. }
  609. if (ReferenceEquals(other, this)) {
  610. return true;
  611. }
  612. if (!object.Equals(Result, other.Result)) return false;
  613. if (!object.Equals(User, other.User)) return false;
  614. return true;
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public override int GetHashCode() {
  618. int hash = 1;
  619. if (result_ != null) hash ^= Result.GetHashCode();
  620. if (user_ != null) hash ^= User.GetHashCode();
  621. return hash;
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  624. public override string ToString() {
  625. return pb::JsonFormatter.ToDiagnosticString(this);
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  628. public void WriteTo(pb::CodedOutputStream output) {
  629. if (result_ != null) {
  630. output.WriteRawTag(10);
  631. output.WriteMessage(Result);
  632. }
  633. if (user_ != null) {
  634. output.WriteRawTag(18);
  635. output.WriteMessage(User);
  636. }
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  639. public int CalculateSize() {
  640. int size = 0;
  641. if (result_ != null) {
  642. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  643. }
  644. if (user_ != null) {
  645. size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
  646. }
  647. return size;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. public void MergeFrom(LobbyGetUserResponse other) {
  651. if (other == null) {
  652. return;
  653. }
  654. if (other.result_ != null) {
  655. if (result_ == null) {
  656. result_ = new global::Protos.Result();
  657. }
  658. Result.MergeFrom(other.Result);
  659. }
  660. if (other.user_ != null) {
  661. if (user_ == null) {
  662. user_ = new global::Protos.UserInfo();
  663. }
  664. User.MergeFrom(other.User);
  665. }
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  668. public void MergeFrom(pb::CodedInputStream input) {
  669. uint tag;
  670. while ((tag = input.ReadTag()) != 0) {
  671. switch(tag) {
  672. default:
  673. input.SkipLastField();
  674. break;
  675. case 10: {
  676. if (result_ == null) {
  677. result_ = new global::Protos.Result();
  678. }
  679. input.ReadMessage(result_);
  680. break;
  681. }
  682. case 18: {
  683. if (user_ == null) {
  684. user_ = new global::Protos.UserInfo();
  685. }
  686. input.ReadMessage(user_);
  687. break;
  688. }
  689. }
  690. }
  691. }
  692. }
  693. #endregion
  694. }
  695. #endregion Designer generated code