Room.cs 29 KB

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