User.cs 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  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. "cHJvdG9zLlVzZXJJbmZvIpwBCg1Mb2dpblJlc3BvbnNlEh4KBlJlc3VsdBgB",
  27. "IAEoCzIOLnByb3Rvcy5SZXN1bHQSDwoHTG9iYnlJRBgCIAEoDRIOCgZSb29t",
  28. "SUQYAyABKA0SFAoMU3luY0ludGVydmFsGAQgASgNEgkKAU4YBSABKA0SDgoG",
  29. "RXJybXNnGAYgASgJEgkKAVQYByABKAQSDgoGTWFzdGVyGAggASgIYgZwcm90",
  30. "bzM="));
  31. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  32. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  33. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  34. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SYN), global::Protos.SYN.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, new[]{ "Ping" }, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.HeartbeatResponse), global::Protos.HeartbeatResponse.Parser, new[]{ "Result" }, 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", "SyncInterval", "N", "Errmsg", "T", "Master" }, null, null, null)
  41. }));
  42. }
  43. #endregion
  44. }
  45. #region Messages
  46. public sealed partial class SYN : pb::IMessage<SYN> {
  47. private static readonly pb::MessageParser<SYN> _parser = new pb::MessageParser<SYN>(() => new SYN());
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  49. public static pb::MessageParser<SYN> 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 SYN() {
  60. OnConstruction();
  61. }
  62. partial void OnConstruction();
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. public SYN(SYN other) : this() {
  65. }
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. public SYN Clone() {
  68. return new SYN(this);
  69. }
  70. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  71. public override bool Equals(object other) {
  72. return Equals(other as SYN);
  73. }
  74. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  75. public bool Equals(SYN 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(SYN 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 CloseNotify : pb::IMessage<CloseNotify> {
  120. private static readonly pb::MessageParser<CloseNotify> _parser = new pb::MessageParser<CloseNotify>(() => new CloseNotify());
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  122. public static pb::MessageParser<CloseNotify> 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 CloseNotify() {
  133. OnConstruction();
  134. }
  135. partial void OnConstruction();
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public CloseNotify(CloseNotify other) : this() {
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  140. public CloseNotify Clone() {
  141. return new CloseNotify(this);
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  144. public override bool Equals(object other) {
  145. return Equals(other as CloseNotify);
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. public bool Equals(CloseNotify 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(CloseNotify 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 closePush : pb::IMessage<closePush> {
  193. private static readonly pb::MessageParser<closePush> _parser = new pb::MessageParser<closePush>(() => new closePush());
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. public static pb::MessageParser<closePush> 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 closePush() {
  206. OnConstruction();
  207. }
  208. partial void OnConstruction();
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  210. public closePush(closePush other) : this() {
  211. reason_ = other.reason_;
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public closePush Clone() {
  215. return new closePush(this);
  216. }
  217. /// <summary>Field number for the "reason" field.</summary>
  218. public const int ReasonFieldNumber = 1;
  219. private int reason_;
  220. /// <summary>
  221. /// 关闭原因
  222. /// </summary>
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  224. public int Reason {
  225. get { return reason_; }
  226. set {
  227. reason_ = value;
  228. }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  231. public override bool Equals(object other) {
  232. return Equals(other as closePush);
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. public bool Equals(closePush other) {
  236. if (ReferenceEquals(other, null)) {
  237. return false;
  238. }
  239. if (ReferenceEquals(other, this)) {
  240. return true;
  241. }
  242. if (Reason != other.Reason) return false;
  243. return true;
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  246. public override int GetHashCode() {
  247. int hash = 1;
  248. if (Reason != 0) hash ^= Reason.GetHashCode();
  249. return hash;
  250. }
  251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  252. public override string ToString() {
  253. return pb::JsonFormatter.ToDiagnosticString(this);
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public void WriteTo(pb::CodedOutputStream output) {
  257. if (Reason != 0) {
  258. output.WriteRawTag(8);
  259. output.WriteInt32(Reason);
  260. }
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  263. public int CalculateSize() {
  264. int size = 0;
  265. if (Reason != 0) {
  266. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reason);
  267. }
  268. return size;
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  271. public void MergeFrom(closePush other) {
  272. if (other == null) {
  273. return;
  274. }
  275. if (other.Reason != 0) {
  276. Reason = other.Reason;
  277. }
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public void MergeFrom(pb::CodedInputStream input) {
  281. uint tag;
  282. while ((tag = input.ReadTag()) != 0) {
  283. switch(tag) {
  284. default:
  285. input.SkipLastField();
  286. break;
  287. case 8: {
  288. Reason = input.ReadInt32();
  289. break;
  290. }
  291. }
  292. }
  293. }
  294. }
  295. public sealed partial class HeartbeatRequest : pb::IMessage<HeartbeatRequest> {
  296. private static readonly pb::MessageParser<HeartbeatRequest> _parser = new pb::MessageParser<HeartbeatRequest>(() => new HeartbeatRequest());
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  298. public static pb::MessageParser<HeartbeatRequest> Parser { get { return _parser; } }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  300. public static pbr::MessageDescriptor Descriptor {
  301. get { return global::Protos.UserReflection.Descriptor.MessageTypes[3]; }
  302. }
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  304. pbr::MessageDescriptor pb::IMessage.Descriptor {
  305. get { return Descriptor; }
  306. }
  307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  308. public HeartbeatRequest() {
  309. OnConstruction();
  310. }
  311. partial void OnConstruction();
  312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  313. public HeartbeatRequest(HeartbeatRequest other) : this() {
  314. ping_ = other.ping_;
  315. }
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  317. public HeartbeatRequest Clone() {
  318. return new HeartbeatRequest(this);
  319. }
  320. /// <summary>Field number for the "Ping" field.</summary>
  321. public const int PingFieldNumber = 1;
  322. private uint ping_;
  323. /// <summary>
  324. /// ping值, 单位毫秒
  325. /// </summary>
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  327. public uint Ping {
  328. get { return ping_; }
  329. set {
  330. ping_ = value;
  331. }
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  334. public override bool Equals(object other) {
  335. return Equals(other as HeartbeatRequest);
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  338. public bool Equals(HeartbeatRequest other) {
  339. if (ReferenceEquals(other, null)) {
  340. return false;
  341. }
  342. if (ReferenceEquals(other, this)) {
  343. return true;
  344. }
  345. if (Ping != other.Ping) return false;
  346. return true;
  347. }
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  349. public override int GetHashCode() {
  350. int hash = 1;
  351. if (Ping != 0) hash ^= Ping.GetHashCode();
  352. return hash;
  353. }
  354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  355. public override string ToString() {
  356. return pb::JsonFormatter.ToDiagnosticString(this);
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. public void WriteTo(pb::CodedOutputStream output) {
  360. if (Ping != 0) {
  361. output.WriteRawTag(8);
  362. output.WriteUInt32(Ping);
  363. }
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  366. public int CalculateSize() {
  367. int size = 0;
  368. if (Ping != 0) {
  369. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Ping);
  370. }
  371. return size;
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  374. public void MergeFrom(HeartbeatRequest other) {
  375. if (other == null) {
  376. return;
  377. }
  378. if (other.Ping != 0) {
  379. Ping = other.Ping;
  380. }
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public void MergeFrom(pb::CodedInputStream input) {
  384. uint tag;
  385. while ((tag = input.ReadTag()) != 0) {
  386. switch(tag) {
  387. default:
  388. input.SkipLastField();
  389. break;
  390. case 8: {
  391. Ping = input.ReadUInt32();
  392. break;
  393. }
  394. }
  395. }
  396. }
  397. }
  398. public sealed partial class HeartbeatResponse : pb::IMessage<HeartbeatResponse> {
  399. private static readonly pb::MessageParser<HeartbeatResponse> _parser = new pb::MessageParser<HeartbeatResponse>(() => new HeartbeatResponse());
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public static pb::MessageParser<HeartbeatResponse> Parser { get { return _parser; } }
  402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  403. public static pbr::MessageDescriptor Descriptor {
  404. get { return global::Protos.UserReflection.Descriptor.MessageTypes[4]; }
  405. }
  406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  407. pbr::MessageDescriptor pb::IMessage.Descriptor {
  408. get { return Descriptor; }
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  411. public HeartbeatResponse() {
  412. OnConstruction();
  413. }
  414. partial void OnConstruction();
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public HeartbeatResponse(HeartbeatResponse other) : this() {
  417. Result = other.result_ != null ? other.Result.Clone() : null;
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  420. public HeartbeatResponse Clone() {
  421. return new HeartbeatResponse(this);
  422. }
  423. /// <summary>Field number for the "Result" field.</summary>
  424. public const int ResultFieldNumber = 1;
  425. private global::Protos.Result result_;
  426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  427. public global::Protos.Result Result {
  428. get { return result_; }
  429. set {
  430. result_ = value;
  431. }
  432. }
  433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  434. public override bool Equals(object other) {
  435. return Equals(other as HeartbeatResponse);
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  438. public bool Equals(HeartbeatResponse other) {
  439. if (ReferenceEquals(other, null)) {
  440. return false;
  441. }
  442. if (ReferenceEquals(other, this)) {
  443. return true;
  444. }
  445. if (!object.Equals(Result, other.Result)) return false;
  446. return true;
  447. }
  448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  449. public override int GetHashCode() {
  450. int hash = 1;
  451. if (result_ != null) hash ^= Result.GetHashCode();
  452. return hash;
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  455. public override string ToString() {
  456. return pb::JsonFormatter.ToDiagnosticString(this);
  457. }
  458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  459. public void WriteTo(pb::CodedOutputStream output) {
  460. if (result_ != null) {
  461. output.WriteRawTag(10);
  462. output.WriteMessage(Result);
  463. }
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. public int CalculateSize() {
  467. int size = 0;
  468. if (result_ != null) {
  469. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  470. }
  471. return size;
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  474. public void MergeFrom(HeartbeatResponse other) {
  475. if (other == null) {
  476. return;
  477. }
  478. if (other.result_ != null) {
  479. if (result_ == null) {
  480. result_ = new global::Protos.Result();
  481. }
  482. Result.MergeFrom(other.Result);
  483. }
  484. }
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  486. public void MergeFrom(pb::CodedInputStream input) {
  487. uint tag;
  488. while ((tag = input.ReadTag()) != 0) {
  489. switch(tag) {
  490. default:
  491. input.SkipLastField();
  492. break;
  493. case 10: {
  494. if (result_ == null) {
  495. result_ = new global::Protos.Result();
  496. }
  497. input.ReadMessage(result_);
  498. break;
  499. }
  500. }
  501. }
  502. }
  503. }
  504. public sealed partial class LoginRequest : pb::IMessage<LoginRequest> {
  505. private static readonly pb::MessageParser<LoginRequest> _parser = new pb::MessageParser<LoginRequest>(() => new LoginRequest());
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  507. public static pb::MessageParser<LoginRequest> Parser { get { return _parser; } }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  509. public static pbr::MessageDescriptor Descriptor {
  510. get { return global::Protos.UserReflection.Descriptor.MessageTypes[5]; }
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. pbr::MessageDescriptor pb::IMessage.Descriptor {
  514. get { return Descriptor; }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  517. public LoginRequest() {
  518. OnConstruction();
  519. }
  520. partial void OnConstruction();
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  522. public LoginRequest(LoginRequest other) : this() {
  523. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  524. }
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  526. public LoginRequest Clone() {
  527. return new LoginRequest(this);
  528. }
  529. /// <summary>Field number for the "UserInfo" field.</summary>
  530. public const int UserInfoFieldNumber = 1;
  531. private global::Protos.UserInfo userInfo_;
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  533. public global::Protos.UserInfo UserInfo {
  534. get { return userInfo_; }
  535. set {
  536. userInfo_ = value;
  537. }
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  540. public override bool Equals(object other) {
  541. return Equals(other as LoginRequest);
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  544. public bool Equals(LoginRequest other) {
  545. if (ReferenceEquals(other, null)) {
  546. return false;
  547. }
  548. if (ReferenceEquals(other, this)) {
  549. return true;
  550. }
  551. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  552. return true;
  553. }
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  555. public override int GetHashCode() {
  556. int hash = 1;
  557. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  558. return hash;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  561. public override string ToString() {
  562. return pb::JsonFormatter.ToDiagnosticString(this);
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  565. public void WriteTo(pb::CodedOutputStream output) {
  566. if (userInfo_ != null) {
  567. output.WriteRawTag(10);
  568. output.WriteMessage(UserInfo);
  569. }
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  572. public int CalculateSize() {
  573. int size = 0;
  574. if (userInfo_ != null) {
  575. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  576. }
  577. return size;
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  580. public void MergeFrom(LoginRequest other) {
  581. if (other == null) {
  582. return;
  583. }
  584. if (other.userInfo_ != null) {
  585. if (userInfo_ == null) {
  586. userInfo_ = new global::Protos.UserInfo();
  587. }
  588. UserInfo.MergeFrom(other.UserInfo);
  589. }
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  592. public void MergeFrom(pb::CodedInputStream input) {
  593. uint tag;
  594. while ((tag = input.ReadTag()) != 0) {
  595. switch(tag) {
  596. default:
  597. input.SkipLastField();
  598. break;
  599. case 10: {
  600. if (userInfo_ == null) {
  601. userInfo_ = new global::Protos.UserInfo();
  602. }
  603. input.ReadMessage(userInfo_);
  604. break;
  605. }
  606. }
  607. }
  608. }
  609. }
  610. public sealed partial class LoginResponse : pb::IMessage<LoginResponse> {
  611. private static readonly pb::MessageParser<LoginResponse> _parser = new pb::MessageParser<LoginResponse>(() => new LoginResponse());
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  613. public static pb::MessageParser<LoginResponse> Parser { get { return _parser; } }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  615. public static pbr::MessageDescriptor Descriptor {
  616. get { return global::Protos.UserReflection.Descriptor.MessageTypes[6]; }
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  619. pbr::MessageDescriptor pb::IMessage.Descriptor {
  620. get { return Descriptor; }
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public LoginResponse() {
  624. OnConstruction();
  625. }
  626. partial void OnConstruction();
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  628. public LoginResponse(LoginResponse other) : this() {
  629. Result = other.result_ != null ? other.Result.Clone() : null;
  630. lobbyID_ = other.lobbyID_;
  631. roomID_ = other.roomID_;
  632. syncInterval_ = other.syncInterval_;
  633. n_ = other.n_;
  634. errmsg_ = other.errmsg_;
  635. t_ = other.t_;
  636. master_ = other.master_;
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  639. public LoginResponse Clone() {
  640. return new LoginResponse(this);
  641. }
  642. /// <summary>Field number for the "Result" field.</summary>
  643. public const int ResultFieldNumber = 1;
  644. private global::Protos.Result result_;
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. public global::Protos.Result Result {
  647. get { return result_; }
  648. set {
  649. result_ = value;
  650. }
  651. }
  652. /// <summary>Field number for the "LobbyID" field.</summary>
  653. public const int LobbyIDFieldNumber = 2;
  654. private uint lobbyID_;
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  656. public uint LobbyID {
  657. get { return lobbyID_; }
  658. set {
  659. lobbyID_ = value;
  660. }
  661. }
  662. /// <summary>Field number for the "RoomID" field.</summary>
  663. public const int RoomIDFieldNumber = 3;
  664. private uint roomID_;
  665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  666. public uint RoomID {
  667. get { return roomID_; }
  668. set {
  669. roomID_ = value;
  670. }
  671. }
  672. /// <summary>Field number for the "SyncInterval" field.</summary>
  673. public const int SyncIntervalFieldNumber = 4;
  674. private uint syncInterval_;
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  676. public uint SyncInterval {
  677. get { return syncInterval_; }
  678. set {
  679. syncInterval_ = value;
  680. }
  681. }
  682. /// <summary>Field number for the "N" field.</summary>
  683. public const int NFieldNumber = 5;
  684. private uint n_;
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  686. public uint N {
  687. get { return n_; }
  688. set {
  689. n_ = value;
  690. }
  691. }
  692. /// <summary>Field number for the "Errmsg" field.</summary>
  693. public const int ErrmsgFieldNumber = 6;
  694. private string errmsg_ = "";
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  696. public string Errmsg {
  697. get { return errmsg_; }
  698. set {
  699. errmsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  700. }
  701. }
  702. /// <summary>Field number for the "T" field.</summary>
  703. public const int TFieldNumber = 7;
  704. private ulong t_;
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  706. public ulong T {
  707. get { return t_; }
  708. set {
  709. t_ = value;
  710. }
  711. }
  712. /// <summary>Field number for the "Master" field.</summary>
  713. public const int MasterFieldNumber = 8;
  714. private bool master_;
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public bool Master {
  717. get { return master_; }
  718. set {
  719. master_ = value;
  720. }
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  723. public override bool Equals(object other) {
  724. return Equals(other as LoginResponse);
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  727. public bool Equals(LoginResponse other) {
  728. if (ReferenceEquals(other, null)) {
  729. return false;
  730. }
  731. if (ReferenceEquals(other, this)) {
  732. return true;
  733. }
  734. if (!object.Equals(Result, other.Result)) return false;
  735. if (LobbyID != other.LobbyID) return false;
  736. if (RoomID != other.RoomID) return false;
  737. if (SyncInterval != other.SyncInterval) return false;
  738. if (N != other.N) return false;
  739. if (Errmsg != other.Errmsg) return false;
  740. if (T != other.T) return false;
  741. if (Master != other.Master) return false;
  742. return true;
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public override int GetHashCode() {
  746. int hash = 1;
  747. if (result_ != null) hash ^= Result.GetHashCode();
  748. if (LobbyID != 0) hash ^= LobbyID.GetHashCode();
  749. if (RoomID != 0) hash ^= RoomID.GetHashCode();
  750. if (SyncInterval != 0) hash ^= SyncInterval.GetHashCode();
  751. if (N != 0) hash ^= N.GetHashCode();
  752. if (Errmsg.Length != 0) hash ^= Errmsg.GetHashCode();
  753. if (T != 0UL) hash ^= T.GetHashCode();
  754. if (Master != false) hash ^= Master.GetHashCode();
  755. return hash;
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  758. public override string ToString() {
  759. return pb::JsonFormatter.ToDiagnosticString(this);
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  762. public void WriteTo(pb::CodedOutputStream output) {
  763. if (result_ != null) {
  764. output.WriteRawTag(10);
  765. output.WriteMessage(Result);
  766. }
  767. if (LobbyID != 0) {
  768. output.WriteRawTag(16);
  769. output.WriteUInt32(LobbyID);
  770. }
  771. if (RoomID != 0) {
  772. output.WriteRawTag(24);
  773. output.WriteUInt32(RoomID);
  774. }
  775. if (SyncInterval != 0) {
  776. output.WriteRawTag(32);
  777. output.WriteUInt32(SyncInterval);
  778. }
  779. if (N != 0) {
  780. output.WriteRawTag(40);
  781. output.WriteUInt32(N);
  782. }
  783. if (Errmsg.Length != 0) {
  784. output.WriteRawTag(50);
  785. output.WriteString(Errmsg);
  786. }
  787. if (T != 0UL) {
  788. output.WriteRawTag(56);
  789. output.WriteUInt64(T);
  790. }
  791. if (Master != false) {
  792. output.WriteRawTag(64);
  793. output.WriteBool(Master);
  794. }
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  797. public int CalculateSize() {
  798. int size = 0;
  799. if (result_ != null) {
  800. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  801. }
  802. if (LobbyID != 0) {
  803. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LobbyID);
  804. }
  805. if (RoomID != 0) {
  806. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomID);
  807. }
  808. if (SyncInterval != 0) {
  809. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SyncInterval);
  810. }
  811. if (N != 0) {
  812. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(N);
  813. }
  814. if (Errmsg.Length != 0) {
  815. size += 1 + pb::CodedOutputStream.ComputeStringSize(Errmsg);
  816. }
  817. if (T != 0UL) {
  818. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  819. }
  820. if (Master != false) {
  821. size += 1 + 1;
  822. }
  823. return size;
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  826. public void MergeFrom(LoginResponse other) {
  827. if (other == null) {
  828. return;
  829. }
  830. if (other.result_ != null) {
  831. if (result_ == null) {
  832. result_ = new global::Protos.Result();
  833. }
  834. Result.MergeFrom(other.Result);
  835. }
  836. if (other.LobbyID != 0) {
  837. LobbyID = other.LobbyID;
  838. }
  839. if (other.RoomID != 0) {
  840. RoomID = other.RoomID;
  841. }
  842. if (other.SyncInterval != 0) {
  843. SyncInterval = other.SyncInterval;
  844. }
  845. if (other.N != 0) {
  846. N = other.N;
  847. }
  848. if (other.Errmsg.Length != 0) {
  849. Errmsg = other.Errmsg;
  850. }
  851. if (other.T != 0UL) {
  852. T = other.T;
  853. }
  854. if (other.Master != false) {
  855. Master = other.Master;
  856. }
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public void MergeFrom(pb::CodedInputStream input) {
  860. uint tag;
  861. while ((tag = input.ReadTag()) != 0) {
  862. switch(tag) {
  863. default:
  864. input.SkipLastField();
  865. break;
  866. case 10: {
  867. if (result_ == null) {
  868. result_ = new global::Protos.Result();
  869. }
  870. input.ReadMessage(result_);
  871. break;
  872. }
  873. case 16: {
  874. LobbyID = input.ReadUInt32();
  875. break;
  876. }
  877. case 24: {
  878. RoomID = input.ReadUInt32();
  879. break;
  880. }
  881. case 32: {
  882. SyncInterval = input.ReadUInt32();
  883. break;
  884. }
  885. case 40: {
  886. N = input.ReadUInt32();
  887. break;
  888. }
  889. case 50: {
  890. Errmsg = input.ReadString();
  891. break;
  892. }
  893. case 56: {
  894. T = input.ReadUInt64();
  895. break;
  896. }
  897. case 64: {
  898. Master = input.ReadBool();
  899. break;
  900. }
  901. }
  902. }
  903. }
  904. }
  905. #endregion
  906. }
  907. #endregion Designer generated code