User.cs 31 KB

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