User.cs 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158
  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. "cy5SZXN1bHQiTAoMTG9naW5SZXF1ZXN0EiIKCFVzZXJJbmZvGAEgASgLMhAu",
  26. "cHJvdG9zLlVzZXJJbmZvEgsKA2xuZxgCIAEoARILCgNsYXQYAyABKAEivwEK",
  27. "DUxvZ2luUmVzcG9uc2USHgoGUmVzdWx0GAEgASgLMg4ucHJvdG9zLlJlc3Vs",
  28. "dBIPCgdMb2JieUlEGAIgASgNEg4KBlJvb21JRBgDIAEoDRIUCgxTeW5jSW50",
  29. "ZXJ2YWwYBCABKA0SCQoBThgFIAEoDRIOCgZFcnJtc2cYBiABKAkSCQoBVBgH",
  30. "IAEoBBIOCgZNYXN0ZXIYCCABKAgSDwoHV29ybGRJRBgJIAEoDRIQCghTZXJ2",
  31. "ZXJJRBgKIAEoBGIGcHJvdG8z"));
  32. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  33. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  34. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  35. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SYN), global::Protos.SYN.Parser, null, null, null, null),
  36. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.CloseNotify), global::Protos.CloseNotify.Parser, null, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.closePush), global::Protos.closePush.Parser, new[]{ "Reason" }, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.HeartbeatRequest), global::Protos.HeartbeatRequest.Parser, new[]{ "Ping" }, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.HeartbeatResponse), global::Protos.HeartbeatResponse.Parser, new[]{ "Result" }, null, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LoginRequest), global::Protos.LoginRequest.Parser, new[]{ "UserInfo", "Lng", "Lat" }, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.LoginResponse), global::Protos.LoginResponse.Parser, new[]{ "Result", "LobbyID", "RoomID", "SyncInterval", "N", "Errmsg", "T", "Master", "WorldID", "ServerID" }, null, null, null)
  42. }));
  43. }
  44. #endregion
  45. }
  46. #region Messages
  47. public sealed partial class SYN : pb::IMessage<SYN> {
  48. private static readonly pb::MessageParser<SYN> _parser = new pb::MessageParser<SYN>(() => new SYN());
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public static pb::MessageParser<SYN> Parser { get { return _parser; } }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public static pbr::MessageDescriptor Descriptor {
  53. get { return global::Protos.UserReflection.Descriptor.MessageTypes[0]; }
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. pbr::MessageDescriptor pb::IMessage.Descriptor {
  57. get { return Descriptor; }
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. public SYN() {
  61. OnConstruction();
  62. }
  63. partial void OnConstruction();
  64. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  65. public SYN(SYN other) : this() {
  66. }
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public SYN Clone() {
  69. return new SYN(this);
  70. }
  71. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  72. public override bool Equals(object other) {
  73. return Equals(other as SYN);
  74. }
  75. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  76. public bool Equals(SYN other) {
  77. if (ReferenceEquals(other, null)) {
  78. return false;
  79. }
  80. if (ReferenceEquals(other, this)) {
  81. return true;
  82. }
  83. return true;
  84. }
  85. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  86. public override int GetHashCode() {
  87. int hash = 1;
  88. return hash;
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  91. public override string ToString() {
  92. return pb::JsonFormatter.ToDiagnosticString(this);
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. public void WriteTo(pb::CodedOutputStream output) {
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public int CalculateSize() {
  99. int size = 0;
  100. return size;
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public void MergeFrom(SYN other) {
  104. if (other == null) {
  105. return;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  109. public void MergeFrom(pb::CodedInputStream input) {
  110. uint tag;
  111. while ((tag = input.ReadTag()) != 0) {
  112. switch(tag) {
  113. default:
  114. input.SkipLastField();
  115. break;
  116. }
  117. }
  118. }
  119. }
  120. public sealed partial class CloseNotify : pb::IMessage<CloseNotify> {
  121. private static readonly pb::MessageParser<CloseNotify> _parser = new pb::MessageParser<CloseNotify>(() => new CloseNotify());
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  123. public static pb::MessageParser<CloseNotify> Parser { get { return _parser; } }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public static pbr::MessageDescriptor Descriptor {
  126. get { return global::Protos.UserReflection.Descriptor.MessageTypes[1]; }
  127. }
  128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  129. pbr::MessageDescriptor pb::IMessage.Descriptor {
  130. get { return Descriptor; }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public CloseNotify() {
  134. OnConstruction();
  135. }
  136. partial void OnConstruction();
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  138. public CloseNotify(CloseNotify other) : this() {
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  141. public CloseNotify Clone() {
  142. return new CloseNotify(this);
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  145. public override bool Equals(object other) {
  146. return Equals(other as CloseNotify);
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  149. public bool Equals(CloseNotify other) {
  150. if (ReferenceEquals(other, null)) {
  151. return false;
  152. }
  153. if (ReferenceEquals(other, this)) {
  154. return true;
  155. }
  156. return true;
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  159. public override int GetHashCode() {
  160. int hash = 1;
  161. return hash;
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  164. public override string ToString() {
  165. return pb::JsonFormatter.ToDiagnosticString(this);
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. public void WriteTo(pb::CodedOutputStream output) {
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  171. public int CalculateSize() {
  172. int size = 0;
  173. return size;
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public void MergeFrom(CloseNotify other) {
  177. if (other == null) {
  178. return;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. public void MergeFrom(pb::CodedInputStream input) {
  183. uint tag;
  184. while ((tag = input.ReadTag()) != 0) {
  185. switch(tag) {
  186. default:
  187. input.SkipLastField();
  188. break;
  189. }
  190. }
  191. }
  192. }
  193. public sealed partial class closePush : pb::IMessage<closePush> {
  194. private static readonly pb::MessageParser<closePush> _parser = new pb::MessageParser<closePush>(() => new closePush());
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  196. public static pb::MessageParser<closePush> Parser { get { return _parser; } }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  198. public static pbr::MessageDescriptor Descriptor {
  199. get { return global::Protos.UserReflection.Descriptor.MessageTypes[2]; }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  202. pbr::MessageDescriptor pb::IMessage.Descriptor {
  203. get { return Descriptor; }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  206. public closePush() {
  207. OnConstruction();
  208. }
  209. partial void OnConstruction();
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  211. public closePush(closePush other) : this() {
  212. reason_ = other.reason_;
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  215. public closePush Clone() {
  216. return new closePush(this);
  217. }
  218. /// <summary>Field number for the "reason" field.</summary>
  219. public const int ReasonFieldNumber = 1;
  220. private int reason_;
  221. /// <summary>
  222. /// 关闭原因
  223. /// </summary>
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  225. public int Reason {
  226. get { return reason_; }
  227. set {
  228. reason_ = value;
  229. }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. public override bool Equals(object other) {
  233. return Equals(other as closePush);
  234. }
  235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  236. public bool Equals(closePush other) {
  237. if (ReferenceEquals(other, null)) {
  238. return false;
  239. }
  240. if (ReferenceEquals(other, this)) {
  241. return true;
  242. }
  243. if (Reason != other.Reason) return false;
  244. return true;
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  247. public override int GetHashCode() {
  248. int hash = 1;
  249. if (Reason != 0) hash ^= Reason.GetHashCode();
  250. return hash;
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. public override string ToString() {
  254. return pb::JsonFormatter.ToDiagnosticString(this);
  255. }
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  257. public void WriteTo(pb::CodedOutputStream output) {
  258. if (Reason != 0) {
  259. output.WriteRawTag(8);
  260. output.WriteInt32(Reason);
  261. }
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  264. public int CalculateSize() {
  265. int size = 0;
  266. if (Reason != 0) {
  267. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reason);
  268. }
  269. return size;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  272. public void MergeFrom(closePush other) {
  273. if (other == null) {
  274. return;
  275. }
  276. if (other.Reason != 0) {
  277. Reason = other.Reason;
  278. }
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  281. public void MergeFrom(pb::CodedInputStream input) {
  282. uint tag;
  283. while ((tag = input.ReadTag()) != 0) {
  284. switch(tag) {
  285. default:
  286. input.SkipLastField();
  287. break;
  288. case 8: {
  289. Reason = input.ReadInt32();
  290. break;
  291. }
  292. }
  293. }
  294. }
  295. }
  296. public sealed partial class HeartbeatRequest : pb::IMessage<HeartbeatRequest> {
  297. private static readonly pb::MessageParser<HeartbeatRequest> _parser = new pb::MessageParser<HeartbeatRequest>(() => new HeartbeatRequest());
  298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  299. public static pb::MessageParser<HeartbeatRequest> Parser { get { return _parser; } }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  301. public static pbr::MessageDescriptor Descriptor {
  302. get { return global::Protos.UserReflection.Descriptor.MessageTypes[3]; }
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  305. pbr::MessageDescriptor pb::IMessage.Descriptor {
  306. get { return Descriptor; }
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. public HeartbeatRequest() {
  310. OnConstruction();
  311. }
  312. partial void OnConstruction();
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  314. public HeartbeatRequest(HeartbeatRequest other) : this() {
  315. ping_ = other.ping_;
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  318. public HeartbeatRequest Clone() {
  319. return new HeartbeatRequest(this);
  320. }
  321. /// <summary>Field number for the "Ping" field.</summary>
  322. public const int PingFieldNumber = 1;
  323. private uint ping_;
  324. /// <summary>
  325. /// ping值, 单位毫秒
  326. /// </summary>
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  328. public uint Ping {
  329. get { return ping_; }
  330. set {
  331. ping_ = value;
  332. }
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. public override bool Equals(object other) {
  336. return Equals(other as HeartbeatRequest);
  337. }
  338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  339. public bool Equals(HeartbeatRequest other) {
  340. if (ReferenceEquals(other, null)) {
  341. return false;
  342. }
  343. if (ReferenceEquals(other, this)) {
  344. return true;
  345. }
  346. if (Ping != other.Ping) return false;
  347. return true;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  350. public override int GetHashCode() {
  351. int hash = 1;
  352. if (Ping != 0) hash ^= Ping.GetHashCode();
  353. return hash;
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  356. public override string ToString() {
  357. return pb::JsonFormatter.ToDiagnosticString(this);
  358. }
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  360. public void WriteTo(pb::CodedOutputStream output) {
  361. if (Ping != 0) {
  362. output.WriteRawTag(8);
  363. output.WriteUInt32(Ping);
  364. }
  365. }
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  367. public int CalculateSize() {
  368. int size = 0;
  369. if (Ping != 0) {
  370. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Ping);
  371. }
  372. return size;
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  375. public void MergeFrom(HeartbeatRequest other) {
  376. if (other == null) {
  377. return;
  378. }
  379. if (other.Ping != 0) {
  380. Ping = other.Ping;
  381. }
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  384. public void MergeFrom(pb::CodedInputStream input) {
  385. uint tag;
  386. while ((tag = input.ReadTag()) != 0) {
  387. switch(tag) {
  388. default:
  389. input.SkipLastField();
  390. break;
  391. case 8: {
  392. Ping = input.ReadUInt32();
  393. break;
  394. }
  395. }
  396. }
  397. }
  398. }
  399. public sealed partial class HeartbeatResponse : pb::IMessage<HeartbeatResponse> {
  400. private static readonly pb::MessageParser<HeartbeatResponse> _parser = new pb::MessageParser<HeartbeatResponse>(() => new HeartbeatResponse());
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  402. public static pb::MessageParser<HeartbeatResponse> Parser { get { return _parser; } }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  404. public static pbr::MessageDescriptor Descriptor {
  405. get { return global::Protos.UserReflection.Descriptor.MessageTypes[4]; }
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  408. pbr::MessageDescriptor pb::IMessage.Descriptor {
  409. get { return Descriptor; }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  412. public HeartbeatResponse() {
  413. OnConstruction();
  414. }
  415. partial void OnConstruction();
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  417. public HeartbeatResponse(HeartbeatResponse other) : this() {
  418. Result = other.result_ != null ? other.Result.Clone() : null;
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. public HeartbeatResponse Clone() {
  422. return new HeartbeatResponse(this);
  423. }
  424. /// <summary>Field number for the "Result" field.</summary>
  425. public const int ResultFieldNumber = 1;
  426. private global::Protos.Result result_;
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  428. public global::Protos.Result Result {
  429. get { return result_; }
  430. set {
  431. result_ = value;
  432. }
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. public override bool Equals(object other) {
  436. return Equals(other as HeartbeatResponse);
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  439. public bool Equals(HeartbeatResponse other) {
  440. if (ReferenceEquals(other, null)) {
  441. return false;
  442. }
  443. if (ReferenceEquals(other, this)) {
  444. return true;
  445. }
  446. if (!object.Equals(Result, other.Result)) return false;
  447. return true;
  448. }
  449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  450. public override int GetHashCode() {
  451. int hash = 1;
  452. if (result_ != null) hash ^= Result.GetHashCode();
  453. return hash;
  454. }
  455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  456. public override string ToString() {
  457. return pb::JsonFormatter.ToDiagnosticString(this);
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  460. public void WriteTo(pb::CodedOutputStream output) {
  461. if (result_ != null) {
  462. output.WriteRawTag(10);
  463. output.WriteMessage(Result);
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public int CalculateSize() {
  468. int size = 0;
  469. if (result_ != null) {
  470. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  471. }
  472. return size;
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  475. public void MergeFrom(HeartbeatResponse other) {
  476. if (other == null) {
  477. return;
  478. }
  479. if (other.result_ != null) {
  480. if (result_ == null) {
  481. result_ = new global::Protos.Result();
  482. }
  483. Result.MergeFrom(other.Result);
  484. }
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  487. public void MergeFrom(pb::CodedInputStream input) {
  488. uint tag;
  489. while ((tag = input.ReadTag()) != 0) {
  490. switch(tag) {
  491. default:
  492. input.SkipLastField();
  493. break;
  494. case 10: {
  495. if (result_ == null) {
  496. result_ = new global::Protos.Result();
  497. }
  498. input.ReadMessage(result_);
  499. break;
  500. }
  501. }
  502. }
  503. }
  504. }
  505. public sealed partial class LoginRequest : pb::IMessage<LoginRequest> {
  506. private static readonly pb::MessageParser<LoginRequest> _parser = new pb::MessageParser<LoginRequest>(() => new LoginRequest());
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  508. public static pb::MessageParser<LoginRequest> Parser { get { return _parser; } }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  510. public static pbr::MessageDescriptor Descriptor {
  511. get { return global::Protos.UserReflection.Descriptor.MessageTypes[5]; }
  512. }
  513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  514. pbr::MessageDescriptor pb::IMessage.Descriptor {
  515. get { return Descriptor; }
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  518. public LoginRequest() {
  519. OnConstruction();
  520. }
  521. partial void OnConstruction();
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  523. public LoginRequest(LoginRequest other) : this() {
  524. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  525. lng_ = other.lng_;
  526. lat_ = other.lat_;
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  529. public LoginRequest Clone() {
  530. return new LoginRequest(this);
  531. }
  532. /// <summary>Field number for the "UserInfo" field.</summary>
  533. public const int UserInfoFieldNumber = 1;
  534. private global::Protos.UserInfo userInfo_;
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  536. public global::Protos.UserInfo UserInfo {
  537. get { return userInfo_; }
  538. set {
  539. userInfo_ = value;
  540. }
  541. }
  542. /// <summary>Field number for the "lng" field.</summary>
  543. public const int LngFieldNumber = 2;
  544. private double lng_;
  545. /// <summary>
  546. /// 精度, 未授权或者未取到传0
  547. /// </summary>
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  549. public double Lng {
  550. get { return lng_; }
  551. set {
  552. lng_ = value;
  553. }
  554. }
  555. /// <summary>Field number for the "lat" field.</summary>
  556. public const int LatFieldNumber = 3;
  557. private double lat_;
  558. /// <summary>
  559. /// 纬度,未授权或者未取到传0
  560. /// </summary>
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  562. public double Lat {
  563. get { return lat_; }
  564. set {
  565. lat_ = value;
  566. }
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  569. public override bool Equals(object other) {
  570. return Equals(other as LoginRequest);
  571. }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  573. public bool Equals(LoginRequest other) {
  574. if (ReferenceEquals(other, null)) {
  575. return false;
  576. }
  577. if (ReferenceEquals(other, this)) {
  578. return true;
  579. }
  580. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  581. if (Lng != other.Lng) return false;
  582. if (Lat != other.Lat) return false;
  583. return true;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  586. public override int GetHashCode() {
  587. int hash = 1;
  588. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  589. if (Lng != 0D) hash ^= Lng.GetHashCode();
  590. if (Lat != 0D) hash ^= Lat.GetHashCode();
  591. return hash;
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. public override string ToString() {
  595. return pb::JsonFormatter.ToDiagnosticString(this);
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  598. public void WriteTo(pb::CodedOutputStream output) {
  599. if (userInfo_ != null) {
  600. output.WriteRawTag(10);
  601. output.WriteMessage(UserInfo);
  602. }
  603. if (Lng != 0D) {
  604. output.WriteRawTag(17);
  605. output.WriteDouble(Lng);
  606. }
  607. if (Lat != 0D) {
  608. output.WriteRawTag(25);
  609. output.WriteDouble(Lat);
  610. }
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  613. public int CalculateSize() {
  614. int size = 0;
  615. if (userInfo_ != null) {
  616. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  617. }
  618. if (Lng != 0D) {
  619. size += 1 + 8;
  620. }
  621. if (Lat != 0D) {
  622. size += 1 + 8;
  623. }
  624. return size;
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  627. public void MergeFrom(LoginRequest other) {
  628. if (other == null) {
  629. return;
  630. }
  631. if (other.userInfo_ != null) {
  632. if (userInfo_ == null) {
  633. userInfo_ = new global::Protos.UserInfo();
  634. }
  635. UserInfo.MergeFrom(other.UserInfo);
  636. }
  637. if (other.Lng != 0D) {
  638. Lng = other.Lng;
  639. }
  640. if (other.Lat != 0D) {
  641. Lat = other.Lat;
  642. }
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  645. public void MergeFrom(pb::CodedInputStream input) {
  646. uint tag;
  647. while ((tag = input.ReadTag()) != 0) {
  648. switch(tag) {
  649. default:
  650. input.SkipLastField();
  651. break;
  652. case 10: {
  653. if (userInfo_ == null) {
  654. userInfo_ = new global::Protos.UserInfo();
  655. }
  656. input.ReadMessage(userInfo_);
  657. break;
  658. }
  659. case 17: {
  660. Lng = input.ReadDouble();
  661. break;
  662. }
  663. case 25: {
  664. Lat = input.ReadDouble();
  665. break;
  666. }
  667. }
  668. }
  669. }
  670. }
  671. public sealed partial class LoginResponse : pb::IMessage<LoginResponse> {
  672. private static readonly pb::MessageParser<LoginResponse> _parser = new pb::MessageParser<LoginResponse>(() => new LoginResponse());
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  674. public static pb::MessageParser<LoginResponse> Parser { get { return _parser; } }
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  676. public static pbr::MessageDescriptor Descriptor {
  677. get { return global::Protos.UserReflection.Descriptor.MessageTypes[6]; }
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  680. pbr::MessageDescriptor pb::IMessage.Descriptor {
  681. get { return Descriptor; }
  682. }
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  684. public LoginResponse() {
  685. OnConstruction();
  686. }
  687. partial void OnConstruction();
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  689. public LoginResponse(LoginResponse other) : this() {
  690. Result = other.result_ != null ? other.Result.Clone() : null;
  691. lobbyID_ = other.lobbyID_;
  692. roomID_ = other.roomID_;
  693. syncInterval_ = other.syncInterval_;
  694. n_ = other.n_;
  695. errmsg_ = other.errmsg_;
  696. t_ = other.t_;
  697. master_ = other.master_;
  698. worldID_ = other.worldID_;
  699. serverID_ = other.serverID_;
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. public LoginResponse Clone() {
  703. return new LoginResponse(this);
  704. }
  705. /// <summary>Field number for the "Result" field.</summary>
  706. public const int ResultFieldNumber = 1;
  707. private global::Protos.Result result_;
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  709. public global::Protos.Result Result {
  710. get { return result_; }
  711. set {
  712. result_ = value;
  713. }
  714. }
  715. /// <summary>Field number for the "LobbyID" field.</summary>
  716. public const int LobbyIDFieldNumber = 2;
  717. private uint lobbyID_;
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. public uint LobbyID {
  720. get { return lobbyID_; }
  721. set {
  722. lobbyID_ = value;
  723. }
  724. }
  725. /// <summary>Field number for the "RoomID" field.</summary>
  726. public const int RoomIDFieldNumber = 3;
  727. private uint roomID_;
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  729. public uint RoomID {
  730. get { return roomID_; }
  731. set {
  732. roomID_ = value;
  733. }
  734. }
  735. /// <summary>Field number for the "SyncInterval" field.</summary>
  736. public const int SyncIntervalFieldNumber = 4;
  737. private uint syncInterval_;
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  739. public uint SyncInterval {
  740. get { return syncInterval_; }
  741. set {
  742. syncInterval_ = value;
  743. }
  744. }
  745. /// <summary>Field number for the "N" field.</summary>
  746. public const int NFieldNumber = 5;
  747. private uint n_;
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  749. public uint N {
  750. get { return n_; }
  751. set {
  752. n_ = value;
  753. }
  754. }
  755. /// <summary>Field number for the "Errmsg" field.</summary>
  756. public const int ErrmsgFieldNumber = 6;
  757. private string errmsg_ = "";
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public string Errmsg {
  760. get { return errmsg_; }
  761. set {
  762. errmsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  763. }
  764. }
  765. /// <summary>Field number for the "T" field.</summary>
  766. public const int TFieldNumber = 7;
  767. private ulong t_;
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  769. public ulong T {
  770. get { return t_; }
  771. set {
  772. t_ = value;
  773. }
  774. }
  775. /// <summary>Field number for the "Master" field.</summary>
  776. public const int MasterFieldNumber = 8;
  777. private bool master_;
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  779. public bool Master {
  780. get { return master_; }
  781. set {
  782. master_ = value;
  783. }
  784. }
  785. /// <summary>Field number for the "WorldID" field.</summary>
  786. public const int WorldIDFieldNumber = 9;
  787. private uint worldID_;
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. public uint WorldID {
  790. get { return worldID_; }
  791. set {
  792. worldID_ = value;
  793. }
  794. }
  795. /// <summary>Field number for the "ServerID" field.</summary>
  796. public const int ServerIDFieldNumber = 10;
  797. private ulong serverID_;
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  799. public ulong ServerID {
  800. get { return serverID_; }
  801. set {
  802. serverID_ = value;
  803. }
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  806. public override bool Equals(object other) {
  807. return Equals(other as LoginResponse);
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  810. public bool Equals(LoginResponse other) {
  811. if (ReferenceEquals(other, null)) {
  812. return false;
  813. }
  814. if (ReferenceEquals(other, this)) {
  815. return true;
  816. }
  817. if (!object.Equals(Result, other.Result)) return false;
  818. if (LobbyID != other.LobbyID) return false;
  819. if (RoomID != other.RoomID) return false;
  820. if (SyncInterval != other.SyncInterval) return false;
  821. if (N != other.N) return false;
  822. if (Errmsg != other.Errmsg) return false;
  823. if (T != other.T) return false;
  824. if (Master != other.Master) return false;
  825. if (WorldID != other.WorldID) return false;
  826. if (ServerID != other.ServerID) return false;
  827. return true;
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  830. public override int GetHashCode() {
  831. int hash = 1;
  832. if (result_ != null) hash ^= Result.GetHashCode();
  833. if (LobbyID != 0) hash ^= LobbyID.GetHashCode();
  834. if (RoomID != 0) hash ^= RoomID.GetHashCode();
  835. if (SyncInterval != 0) hash ^= SyncInterval.GetHashCode();
  836. if (N != 0) hash ^= N.GetHashCode();
  837. if (Errmsg.Length != 0) hash ^= Errmsg.GetHashCode();
  838. if (T != 0UL) hash ^= T.GetHashCode();
  839. if (Master != false) hash ^= Master.GetHashCode();
  840. if (WorldID != 0) hash ^= WorldID.GetHashCode();
  841. if (ServerID != 0UL) hash ^= ServerID.GetHashCode();
  842. return hash;
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. public override string ToString() {
  846. return pb::JsonFormatter.ToDiagnosticString(this);
  847. }
  848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  849. public void WriteTo(pb::CodedOutputStream output) {
  850. if (result_ != null) {
  851. output.WriteRawTag(10);
  852. output.WriteMessage(Result);
  853. }
  854. if (LobbyID != 0) {
  855. output.WriteRawTag(16);
  856. output.WriteUInt32(LobbyID);
  857. }
  858. if (RoomID != 0) {
  859. output.WriteRawTag(24);
  860. output.WriteUInt32(RoomID);
  861. }
  862. if (SyncInterval != 0) {
  863. output.WriteRawTag(32);
  864. output.WriteUInt32(SyncInterval);
  865. }
  866. if (N != 0) {
  867. output.WriteRawTag(40);
  868. output.WriteUInt32(N);
  869. }
  870. if (Errmsg.Length != 0) {
  871. output.WriteRawTag(50);
  872. output.WriteString(Errmsg);
  873. }
  874. if (T != 0UL) {
  875. output.WriteRawTag(56);
  876. output.WriteUInt64(T);
  877. }
  878. if (Master != false) {
  879. output.WriteRawTag(64);
  880. output.WriteBool(Master);
  881. }
  882. if (WorldID != 0) {
  883. output.WriteRawTag(72);
  884. output.WriteUInt32(WorldID);
  885. }
  886. if (ServerID != 0UL) {
  887. output.WriteRawTag(80);
  888. output.WriteUInt64(ServerID);
  889. }
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  892. public int CalculateSize() {
  893. int size = 0;
  894. if (result_ != null) {
  895. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  896. }
  897. if (LobbyID != 0) {
  898. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LobbyID);
  899. }
  900. if (RoomID != 0) {
  901. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomID);
  902. }
  903. if (SyncInterval != 0) {
  904. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SyncInterval);
  905. }
  906. if (N != 0) {
  907. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(N);
  908. }
  909. if (Errmsg.Length != 0) {
  910. size += 1 + pb::CodedOutputStream.ComputeStringSize(Errmsg);
  911. }
  912. if (T != 0UL) {
  913. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
  914. }
  915. if (Master != false) {
  916. size += 1 + 1;
  917. }
  918. if (WorldID != 0) {
  919. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WorldID);
  920. }
  921. if (ServerID != 0UL) {
  922. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerID);
  923. }
  924. return size;
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  927. public void MergeFrom(LoginResponse other) {
  928. if (other == null) {
  929. return;
  930. }
  931. if (other.result_ != null) {
  932. if (result_ == null) {
  933. result_ = new global::Protos.Result();
  934. }
  935. Result.MergeFrom(other.Result);
  936. }
  937. if (other.LobbyID != 0) {
  938. LobbyID = other.LobbyID;
  939. }
  940. if (other.RoomID != 0) {
  941. RoomID = other.RoomID;
  942. }
  943. if (other.SyncInterval != 0) {
  944. SyncInterval = other.SyncInterval;
  945. }
  946. if (other.N != 0) {
  947. N = other.N;
  948. }
  949. if (other.Errmsg.Length != 0) {
  950. Errmsg = other.Errmsg;
  951. }
  952. if (other.T != 0UL) {
  953. T = other.T;
  954. }
  955. if (other.Master != false) {
  956. Master = other.Master;
  957. }
  958. if (other.WorldID != 0) {
  959. WorldID = other.WorldID;
  960. }
  961. if (other.ServerID != 0UL) {
  962. ServerID = other.ServerID;
  963. }
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public void MergeFrom(pb::CodedInputStream input) {
  967. uint tag;
  968. while ((tag = input.ReadTag()) != 0) {
  969. switch(tag) {
  970. default:
  971. input.SkipLastField();
  972. break;
  973. case 10: {
  974. if (result_ == null) {
  975. result_ = new global::Protos.Result();
  976. }
  977. input.ReadMessage(result_);
  978. break;
  979. }
  980. case 16: {
  981. LobbyID = input.ReadUInt32();
  982. break;
  983. }
  984. case 24: {
  985. RoomID = input.ReadUInt32();
  986. break;
  987. }
  988. case 32: {
  989. SyncInterval = input.ReadUInt32();
  990. break;
  991. }
  992. case 40: {
  993. N = input.ReadUInt32();
  994. break;
  995. }
  996. case 50: {
  997. Errmsg = input.ReadString();
  998. break;
  999. }
  1000. case 56: {
  1001. T = input.ReadUInt64();
  1002. break;
  1003. }
  1004. case 64: {
  1005. Master = input.ReadBool();
  1006. break;
  1007. }
  1008. case 72: {
  1009. WorldID = input.ReadUInt32();
  1010. break;
  1011. }
  1012. case 80: {
  1013. ServerID = input.ReadUInt64();
  1014. break;
  1015. }
  1016. }
  1017. }
  1018. }
  1019. }
  1020. #endregion
  1021. }
  1022. #endregion Designer generated code