HotfixMessage.cs 24 KB

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