Room.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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. "Cgpyb29tLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvIhMKEVJvb21D",
  22. "cmVhdGVSZXF1ZXN0IhQKElJvb21DcmVhdGVSZXNwb25zZSIyCgxSb29tSm9p",
  23. "blB1c2gSIgoIVXNlckluZm8YASABKAsyEC5wcm90b3MuVXNlckluZm8iHwoN",
  24. "Um9vbUxlYXZlUHVzaBIOCgZVc2VySUQYASABKAUiEQoPUm9vbURpc21pc3NQ",
  25. "dXNoYgZwcm90bzM="));
  26. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  27. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, },
  28. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  29. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomCreateRequest), global::Protos.RoomCreateRequest.Parser, null, null, null, null),
  30. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomCreateResponse), global::Protos.RoomCreateResponse.Parser, null, null, null, null),
  31. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomJoinPush), global::Protos.RoomJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
  32. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomLeavePush), global::Protos.RoomLeavePush.Parser, new[]{ "UserID" }, null, null, null),
  33. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomDismissPush), global::Protos.RoomDismissPush.Parser, null, null, null, null)
  34. }));
  35. }
  36. #endregion
  37. }
  38. #region Messages
  39. public sealed partial class RoomCreateRequest : pb::IMessage<RoomCreateRequest> {
  40. private static readonly pb::MessageParser<RoomCreateRequest> _parser = new pb::MessageParser<RoomCreateRequest>(() => new RoomCreateRequest());
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  42. public static pb::MessageParser<RoomCreateRequest> Parser { get { return _parser; } }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  44. public static pbr::MessageDescriptor Descriptor {
  45. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[0]; }
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  48. pbr::MessageDescriptor pb::IMessage.Descriptor {
  49. get { return Descriptor; }
  50. }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public RoomCreateRequest() {
  53. OnConstruction();
  54. }
  55. partial void OnConstruction();
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. public RoomCreateRequest(RoomCreateRequest other) : this() {
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. public RoomCreateRequest Clone() {
  61. return new RoomCreateRequest(this);
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. public override bool Equals(object other) {
  65. return Equals(other as RoomCreateRequest);
  66. }
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public bool Equals(RoomCreateRequest other) {
  69. if (ReferenceEquals(other, null)) {
  70. return false;
  71. }
  72. if (ReferenceEquals(other, this)) {
  73. return true;
  74. }
  75. return true;
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. public override int GetHashCode() {
  79. int hash = 1;
  80. return hash;
  81. }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  83. public override string ToString() {
  84. return pb::JsonFormatter.ToDiagnosticString(this);
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  87. public void WriteTo(pb::CodedOutputStream output) {
  88. }
  89. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  90. public int CalculateSize() {
  91. int size = 0;
  92. return size;
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. public void MergeFrom(RoomCreateRequest other) {
  96. if (other == null) {
  97. return;
  98. }
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. public void MergeFrom(pb::CodedInputStream input) {
  102. uint tag;
  103. while ((tag = input.ReadTag()) != 0) {
  104. switch(tag) {
  105. default:
  106. input.SkipLastField();
  107. break;
  108. }
  109. }
  110. }
  111. }
  112. public sealed partial class RoomCreateResponse : pb::IMessage<RoomCreateResponse> {
  113. private static readonly pb::MessageParser<RoomCreateResponse> _parser = new pb::MessageParser<RoomCreateResponse>(() => new RoomCreateResponse());
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. public static pb::MessageParser<RoomCreateResponse> Parser { get { return _parser; } }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  117. public static pbr::MessageDescriptor Descriptor {
  118. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[1]; }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  121. pbr::MessageDescriptor pb::IMessage.Descriptor {
  122. get { return Descriptor; }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public RoomCreateResponse() {
  126. OnConstruction();
  127. }
  128. partial void OnConstruction();
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  130. public RoomCreateResponse(RoomCreateResponse other) : this() {
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public RoomCreateResponse Clone() {
  134. return new RoomCreateResponse(this);
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public override bool Equals(object other) {
  138. return Equals(other as RoomCreateResponse);
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  141. public bool Equals(RoomCreateResponse other) {
  142. if (ReferenceEquals(other, null)) {
  143. return false;
  144. }
  145. if (ReferenceEquals(other, this)) {
  146. return true;
  147. }
  148. return true;
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  151. public override int GetHashCode() {
  152. int hash = 1;
  153. return hash;
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  156. public override string ToString() {
  157. return pb::JsonFormatter.ToDiagnosticString(this);
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  160. public void WriteTo(pb::CodedOutputStream output) {
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  163. public int CalculateSize() {
  164. int size = 0;
  165. return size;
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. public void MergeFrom(RoomCreateResponse other) {
  169. if (other == null) {
  170. return;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  174. public void MergeFrom(pb::CodedInputStream input) {
  175. uint tag;
  176. while ((tag = input.ReadTag()) != 0) {
  177. switch(tag) {
  178. default:
  179. input.SkipLastField();
  180. break;
  181. }
  182. }
  183. }
  184. }
  185. public sealed partial class RoomJoinPush : pb::IMessage<RoomJoinPush> {
  186. private static readonly pb::MessageParser<RoomJoinPush> _parser = new pb::MessageParser<RoomJoinPush>(() => new RoomJoinPush());
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  188. public static pb::MessageParser<RoomJoinPush> Parser { get { return _parser; } }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  190. public static pbr::MessageDescriptor Descriptor {
  191. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[2]; }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  194. pbr::MessageDescriptor pb::IMessage.Descriptor {
  195. get { return Descriptor; }
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  198. public RoomJoinPush() {
  199. OnConstruction();
  200. }
  201. partial void OnConstruction();
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  203. public RoomJoinPush(RoomJoinPush other) : this() {
  204. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public RoomJoinPush Clone() {
  208. return new RoomJoinPush(this);
  209. }
  210. /// <summary>Field number for the "UserInfo" field.</summary>
  211. public const int UserInfoFieldNumber = 1;
  212. private global::Protos.UserInfo userInfo_;
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public global::Protos.UserInfo UserInfo {
  215. get { return userInfo_; }
  216. set {
  217. userInfo_ = value;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  221. public override bool Equals(object other) {
  222. return Equals(other as RoomJoinPush);
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  225. public bool Equals(RoomJoinPush other) {
  226. if (ReferenceEquals(other, null)) {
  227. return false;
  228. }
  229. if (ReferenceEquals(other, this)) {
  230. return true;
  231. }
  232. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  233. return true;
  234. }
  235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  236. public override int GetHashCode() {
  237. int hash = 1;
  238. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  239. return hash;
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  242. public override string ToString() {
  243. return pb::JsonFormatter.ToDiagnosticString(this);
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  246. public void WriteTo(pb::CodedOutputStream output) {
  247. if (userInfo_ != null) {
  248. output.WriteRawTag(10);
  249. output.WriteMessage(UserInfo);
  250. }
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. public int CalculateSize() {
  254. int size = 0;
  255. if (userInfo_ != null) {
  256. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  257. }
  258. return size;
  259. }
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. public void MergeFrom(RoomJoinPush other) {
  262. if (other == null) {
  263. return;
  264. }
  265. if (other.userInfo_ != null) {
  266. if (userInfo_ == null) {
  267. userInfo_ = new global::Protos.UserInfo();
  268. }
  269. UserInfo.MergeFrom(other.UserInfo);
  270. }
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  273. public void MergeFrom(pb::CodedInputStream input) {
  274. uint tag;
  275. while ((tag = input.ReadTag()) != 0) {
  276. switch(tag) {
  277. default:
  278. input.SkipLastField();
  279. break;
  280. case 10: {
  281. if (userInfo_ == null) {
  282. userInfo_ = new global::Protos.UserInfo();
  283. }
  284. input.ReadMessage(userInfo_);
  285. break;
  286. }
  287. }
  288. }
  289. }
  290. }
  291. public sealed partial class RoomLeavePush : pb::IMessage<RoomLeavePush> {
  292. private static readonly pb::MessageParser<RoomLeavePush> _parser = new pb::MessageParser<RoomLeavePush>(() => new RoomLeavePush());
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  294. public static pb::MessageParser<RoomLeavePush> 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 RoomLeavePush() {
  305. OnConstruction();
  306. }
  307. partial void OnConstruction();
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. public RoomLeavePush(RoomLeavePush other) : this() {
  310. userID_ = other.userID_;
  311. }
  312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  313. public RoomLeavePush Clone() {
  314. return new RoomLeavePush(this);
  315. }
  316. /// <summary>Field number for the "UserID" field.</summary>
  317. public const int UserIDFieldNumber = 1;
  318. private int userID_;
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  320. public int UserID {
  321. get { return userID_; }
  322. set {
  323. userID_ = value;
  324. }
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  327. public override bool Equals(object other) {
  328. return Equals(other as RoomLeavePush);
  329. }
  330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  331. public bool Equals(RoomLeavePush other) {
  332. if (ReferenceEquals(other, null)) {
  333. return false;
  334. }
  335. if (ReferenceEquals(other, this)) {
  336. return true;
  337. }
  338. if (UserID != other.UserID) return false;
  339. return true;
  340. }
  341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  342. public override int GetHashCode() {
  343. int hash = 1;
  344. if (UserID != 0) hash ^= UserID.GetHashCode();
  345. return hash;
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  348. public override string ToString() {
  349. return pb::JsonFormatter.ToDiagnosticString(this);
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public void WriteTo(pb::CodedOutputStream output) {
  353. if (UserID != 0) {
  354. output.WriteRawTag(8);
  355. output.WriteInt32(UserID);
  356. }
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. public int CalculateSize() {
  360. int size = 0;
  361. if (UserID != 0) {
  362. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserID);
  363. }
  364. return size;
  365. }
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  367. public void MergeFrom(RoomLeavePush other) {
  368. if (other == null) {
  369. return;
  370. }
  371. if (other.UserID != 0) {
  372. UserID = other.UserID;
  373. }
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  376. public void MergeFrom(pb::CodedInputStream input) {
  377. uint tag;
  378. while ((tag = input.ReadTag()) != 0) {
  379. switch(tag) {
  380. default:
  381. input.SkipLastField();
  382. break;
  383. case 8: {
  384. UserID = input.ReadInt32();
  385. break;
  386. }
  387. }
  388. }
  389. }
  390. }
  391. public sealed partial class RoomDismissPush : pb::IMessage<RoomDismissPush> {
  392. private static readonly pb::MessageParser<RoomDismissPush> _parser = new pb::MessageParser<RoomDismissPush>(() => new RoomDismissPush());
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  394. public static pb::MessageParser<RoomDismissPush> Parser { get { return _parser; } }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  396. public static pbr::MessageDescriptor Descriptor {
  397. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[4]; }
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. pbr::MessageDescriptor pb::IMessage.Descriptor {
  401. get { return Descriptor; }
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  404. public RoomDismissPush() {
  405. OnConstruction();
  406. }
  407. partial void OnConstruction();
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public RoomDismissPush(RoomDismissPush other) : this() {
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  412. public RoomDismissPush Clone() {
  413. return new RoomDismissPush(this);
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public override bool Equals(object other) {
  417. return Equals(other as RoomDismissPush);
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  420. public bool Equals(RoomDismissPush other) {
  421. if (ReferenceEquals(other, null)) {
  422. return false;
  423. }
  424. if (ReferenceEquals(other, this)) {
  425. return true;
  426. }
  427. return true;
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  430. public override int GetHashCode() {
  431. int hash = 1;
  432. return hash;
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. public override string ToString() {
  436. return pb::JsonFormatter.ToDiagnosticString(this);
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  439. public void WriteTo(pb::CodedOutputStream output) {
  440. }
  441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  442. public int CalculateSize() {
  443. int size = 0;
  444. return size;
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  447. public void MergeFrom(RoomDismissPush other) {
  448. if (other == null) {
  449. return;
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  453. public void MergeFrom(pb::CodedInputStream input) {
  454. uint tag;
  455. while ((tag = input.ReadTag()) != 0) {
  456. switch(tag) {
  457. default:
  458. input.SkipLastField();
  459. break;
  460. }
  461. }
  462. }
  463. }
  464. #endregion
  465. }
  466. #endregion Designer generated code