User.cs 27 KB

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