HotfixMessage.cs 24 KB

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