Room.cs 26 KB

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