Math.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: math/math.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Math {
  12. /// <summary>Holder for reflection information generated from math/math.proto</summary>
  13. public static partial class MathReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for math/math.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static MathReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg9tYXRoL21hdGgucHJvdG8SBG1hdGgiLAoHRGl2QXJncxIQCghkaXZpZGVu",
  24. "ZBgBIAEoAxIPCgdkaXZpc29yGAIgASgDIi8KCERpdlJlcGx5EhAKCHF1b3Rp",
  25. "ZW50GAEgASgDEhEKCXJlbWFpbmRlchgCIAEoAyIYCgdGaWJBcmdzEg0KBWxp",
  26. "bWl0GAEgASgDIhIKA051bRILCgNudW0YASABKAMiGQoIRmliUmVwbHkSDQoF",
  27. "Y291bnQYASABKAMypAEKBE1hdGgSJgoDRGl2Eg0ubWF0aC5EaXZBcmdzGg4u",
  28. "bWF0aC5EaXZSZXBseSIAEi4KB0Rpdk1hbnkSDS5tYXRoLkRpdkFyZ3MaDi5t",
  29. "YXRoLkRpdlJlcGx5IgAoATABEiMKA0ZpYhINLm1hdGguRmliQXJncxoJLm1h",
  30. "dGguTnVtIgAwARIfCgNTdW0SCS5tYXRoLk51bRoJLm1hdGguTnVtIgAoAWIG",
  31. "cHJvdG8z"));
  32. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  33. new pbr::FileDescriptor[] { },
  34. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  35. new pbr::GeneratedClrTypeInfo(typeof(global::Math.DivArgs), global::Math.DivArgs.Parser, new[]{ "Dividend", "Divisor" }, null, null, null, null),
  36. new pbr::GeneratedClrTypeInfo(typeof(global::Math.DivReply), global::Math.DivReply.Parser, new[]{ "Quotient", "Remainder" }, null, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::Math.FibArgs), global::Math.FibArgs.Parser, new[]{ "Limit" }, null, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Math.Num), global::Math.Num.Parser, new[]{ "Num_" }, null, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Math.FibReply), global::Math.FibReply.Parser, new[]{ "Count" }, null, null, null, null)
  40. }));
  41. }
  42. #endregion
  43. }
  44. #region Messages
  45. public sealed partial class DivArgs : pb::IMessage<DivArgs>
  46. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  47. , pb::IBufferMessage
  48. #endif
  49. {
  50. private static readonly pb::MessageParser<DivArgs> _parser = new pb::MessageParser<DivArgs>(() => new DivArgs());
  51. private pb::UnknownFieldSet _unknownFields;
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  53. public static pb::MessageParser<DivArgs> Parser { get { return _parser; } }
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  55. public static pbr::MessageDescriptor Descriptor {
  56. get { return global::Math.MathReflection.Descriptor.MessageTypes[0]; }
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. pbr::MessageDescriptor pb::IMessage.Descriptor {
  60. get { return Descriptor; }
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  63. public DivArgs() {
  64. OnConstruction();
  65. }
  66. partial void OnConstruction();
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public DivArgs(DivArgs other) : this() {
  69. dividend_ = other.dividend_;
  70. divisor_ = other.divisor_;
  71. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  74. public DivArgs Clone() {
  75. return new DivArgs(this);
  76. }
  77. /// <summary>Field number for the "dividend" field.</summary>
  78. public const int DividendFieldNumber = 1;
  79. private long dividend_;
  80. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  81. public long Dividend {
  82. get { return dividend_; }
  83. set {
  84. dividend_ = value;
  85. }
  86. }
  87. /// <summary>Field number for the "divisor" field.</summary>
  88. public const int DivisorFieldNumber = 2;
  89. private long divisor_;
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  91. public long Divisor {
  92. get { return divisor_; }
  93. set {
  94. divisor_ = value;
  95. }
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public override bool Equals(object other) {
  99. return Equals(other as DivArgs);
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. public bool Equals(DivArgs other) {
  103. if (ReferenceEquals(other, null)) {
  104. return false;
  105. }
  106. if (ReferenceEquals(other, this)) {
  107. return true;
  108. }
  109. if (Dividend != other.Dividend) return false;
  110. if (Divisor != other.Divisor) return false;
  111. return Equals(_unknownFields, other._unknownFields);
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  114. public override int GetHashCode() {
  115. int hash = 1;
  116. if (Dividend != 0L) hash ^= Dividend.GetHashCode();
  117. if (Divisor != 0L) hash ^= Divisor.GetHashCode();
  118. if (_unknownFields != null) {
  119. hash ^= _unknownFields.GetHashCode();
  120. }
  121. return hash;
  122. }
  123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  124. public override string ToString() {
  125. return pb::JsonFormatter.ToDiagnosticString(this);
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  128. public void WriteTo(pb::CodedOutputStream output) {
  129. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  130. output.WriteRawMessage(this);
  131. #else
  132. if (Dividend != 0L) {
  133. output.WriteRawTag(8);
  134. output.WriteInt64(Dividend);
  135. }
  136. if (Divisor != 0L) {
  137. output.WriteRawTag(16);
  138. output.WriteInt64(Divisor);
  139. }
  140. if (_unknownFields != null) {
  141. _unknownFields.WriteTo(output);
  142. }
  143. #endif
  144. }
  145. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  147. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  148. if (Dividend != 0L) {
  149. output.WriteRawTag(8);
  150. output.WriteInt64(Dividend);
  151. }
  152. if (Divisor != 0L) {
  153. output.WriteRawTag(16);
  154. output.WriteInt64(Divisor);
  155. }
  156. if (_unknownFields != null) {
  157. _unknownFields.WriteTo(ref output);
  158. }
  159. }
  160. #endif
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  162. public int CalculateSize() {
  163. int size = 0;
  164. if (Dividend != 0L) {
  165. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Dividend);
  166. }
  167. if (Divisor != 0L) {
  168. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Divisor);
  169. }
  170. if (_unknownFields != null) {
  171. size += _unknownFields.CalculateSize();
  172. }
  173. return size;
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public void MergeFrom(DivArgs other) {
  177. if (other == null) {
  178. return;
  179. }
  180. if (other.Dividend != 0L) {
  181. Dividend = other.Dividend;
  182. }
  183. if (other.Divisor != 0L) {
  184. Divisor = other.Divisor;
  185. }
  186. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  189. public void MergeFrom(pb::CodedInputStream input) {
  190. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  191. input.ReadRawMessage(this);
  192. #else
  193. uint tag;
  194. while ((tag = input.ReadTag()) != 0) {
  195. switch(tag) {
  196. default:
  197. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  198. break;
  199. case 8: {
  200. Dividend = input.ReadInt64();
  201. break;
  202. }
  203. case 16: {
  204. Divisor = input.ReadInt64();
  205. break;
  206. }
  207. }
  208. }
  209. #endif
  210. }
  211. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  213. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  214. uint tag;
  215. while ((tag = input.ReadTag()) != 0) {
  216. switch(tag) {
  217. default:
  218. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  219. break;
  220. case 8: {
  221. Dividend = input.ReadInt64();
  222. break;
  223. }
  224. case 16: {
  225. Divisor = input.ReadInt64();
  226. break;
  227. }
  228. }
  229. }
  230. }
  231. #endif
  232. }
  233. public sealed partial class DivReply : pb::IMessage<DivReply>
  234. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  235. , pb::IBufferMessage
  236. #endif
  237. {
  238. private static readonly pb::MessageParser<DivReply> _parser = new pb::MessageParser<DivReply>(() => new DivReply());
  239. private pb::UnknownFieldSet _unknownFields;
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  241. public static pb::MessageParser<DivReply> Parser { get { return _parser; } }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. public static pbr::MessageDescriptor Descriptor {
  244. get { return global::Math.MathReflection.Descriptor.MessageTypes[1]; }
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  247. pbr::MessageDescriptor pb::IMessage.Descriptor {
  248. get { return Descriptor; }
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  251. public DivReply() {
  252. OnConstruction();
  253. }
  254. partial void OnConstruction();
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public DivReply(DivReply other) : this() {
  257. quotient_ = other.quotient_;
  258. remainder_ = other.remainder_;
  259. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  262. public DivReply Clone() {
  263. return new DivReply(this);
  264. }
  265. /// <summary>Field number for the "quotient" field.</summary>
  266. public const int QuotientFieldNumber = 1;
  267. private long quotient_;
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public long Quotient {
  270. get { return quotient_; }
  271. set {
  272. quotient_ = value;
  273. }
  274. }
  275. /// <summary>Field number for the "remainder" field.</summary>
  276. public const int RemainderFieldNumber = 2;
  277. private long remainder_;
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  279. public long Remainder {
  280. get { return remainder_; }
  281. set {
  282. remainder_ = value;
  283. }
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  286. public override bool Equals(object other) {
  287. return Equals(other as DivReply);
  288. }
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  290. public bool Equals(DivReply other) {
  291. if (ReferenceEquals(other, null)) {
  292. return false;
  293. }
  294. if (ReferenceEquals(other, this)) {
  295. return true;
  296. }
  297. if (Quotient != other.Quotient) return false;
  298. if (Remainder != other.Remainder) return false;
  299. return Equals(_unknownFields, other._unknownFields);
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  302. public override int GetHashCode() {
  303. int hash = 1;
  304. if (Quotient != 0L) hash ^= Quotient.GetHashCode();
  305. if (Remainder != 0L) hash ^= Remainder.GetHashCode();
  306. if (_unknownFields != null) {
  307. hash ^= _unknownFields.GetHashCode();
  308. }
  309. return hash;
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  312. public override string ToString() {
  313. return pb::JsonFormatter.ToDiagnosticString(this);
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  316. public void WriteTo(pb::CodedOutputStream output) {
  317. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  318. output.WriteRawMessage(this);
  319. #else
  320. if (Quotient != 0L) {
  321. output.WriteRawTag(8);
  322. output.WriteInt64(Quotient);
  323. }
  324. if (Remainder != 0L) {
  325. output.WriteRawTag(16);
  326. output.WriteInt64(Remainder);
  327. }
  328. if (_unknownFields != null) {
  329. _unknownFields.WriteTo(output);
  330. }
  331. #endif
  332. }
  333. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  336. if (Quotient != 0L) {
  337. output.WriteRawTag(8);
  338. output.WriteInt64(Quotient);
  339. }
  340. if (Remainder != 0L) {
  341. output.WriteRawTag(16);
  342. output.WriteInt64(Remainder);
  343. }
  344. if (_unknownFields != null) {
  345. _unknownFields.WriteTo(ref output);
  346. }
  347. }
  348. #endif
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  350. public int CalculateSize() {
  351. int size = 0;
  352. if (Quotient != 0L) {
  353. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Quotient);
  354. }
  355. if (Remainder != 0L) {
  356. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Remainder);
  357. }
  358. if (_unknownFields != null) {
  359. size += _unknownFields.CalculateSize();
  360. }
  361. return size;
  362. }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  364. public void MergeFrom(DivReply other) {
  365. if (other == null) {
  366. return;
  367. }
  368. if (other.Quotient != 0L) {
  369. Quotient = other.Quotient;
  370. }
  371. if (other.Remainder != 0L) {
  372. Remainder = other.Remainder;
  373. }
  374. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  377. public void MergeFrom(pb::CodedInputStream input) {
  378. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  379. input.ReadRawMessage(this);
  380. #else
  381. uint tag;
  382. while ((tag = input.ReadTag()) != 0) {
  383. switch(tag) {
  384. default:
  385. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  386. break;
  387. case 8: {
  388. Quotient = input.ReadInt64();
  389. break;
  390. }
  391. case 16: {
  392. Remainder = input.ReadInt64();
  393. break;
  394. }
  395. }
  396. }
  397. #endif
  398. }
  399. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  402. uint tag;
  403. while ((tag = input.ReadTag()) != 0) {
  404. switch(tag) {
  405. default:
  406. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  407. break;
  408. case 8: {
  409. Quotient = input.ReadInt64();
  410. break;
  411. }
  412. case 16: {
  413. Remainder = input.ReadInt64();
  414. break;
  415. }
  416. }
  417. }
  418. }
  419. #endif
  420. }
  421. public sealed partial class FibArgs : pb::IMessage<FibArgs>
  422. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  423. , pb::IBufferMessage
  424. #endif
  425. {
  426. private static readonly pb::MessageParser<FibArgs> _parser = new pb::MessageParser<FibArgs>(() => new FibArgs());
  427. private pb::UnknownFieldSet _unknownFields;
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. public static pb::MessageParser<FibArgs> Parser { get { return _parser; } }
  430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  431. public static pbr::MessageDescriptor Descriptor {
  432. get { return global::Math.MathReflection.Descriptor.MessageTypes[2]; }
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. pbr::MessageDescriptor pb::IMessage.Descriptor {
  436. get { return Descriptor; }
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  439. public FibArgs() {
  440. OnConstruction();
  441. }
  442. partial void OnConstruction();
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  444. public FibArgs(FibArgs other) : this() {
  445. limit_ = other.limit_;
  446. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  447. }
  448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  449. public FibArgs Clone() {
  450. return new FibArgs(this);
  451. }
  452. /// <summary>Field number for the "limit" field.</summary>
  453. public const int LimitFieldNumber = 1;
  454. private long limit_;
  455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  456. public long Limit {
  457. get { return limit_; }
  458. set {
  459. limit_ = value;
  460. }
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  463. public override bool Equals(object other) {
  464. return Equals(other as FibArgs);
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public bool Equals(FibArgs other) {
  468. if (ReferenceEquals(other, null)) {
  469. return false;
  470. }
  471. if (ReferenceEquals(other, this)) {
  472. return true;
  473. }
  474. if (Limit != other.Limit) return false;
  475. return Equals(_unknownFields, other._unknownFields);
  476. }
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  478. public override int GetHashCode() {
  479. int hash = 1;
  480. if (Limit != 0L) hash ^= Limit.GetHashCode();
  481. if (_unknownFields != null) {
  482. hash ^= _unknownFields.GetHashCode();
  483. }
  484. return hash;
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  487. public override string ToString() {
  488. return pb::JsonFormatter.ToDiagnosticString(this);
  489. }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  491. public void WriteTo(pb::CodedOutputStream output) {
  492. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  493. output.WriteRawMessage(this);
  494. #else
  495. if (Limit != 0L) {
  496. output.WriteRawTag(8);
  497. output.WriteInt64(Limit);
  498. }
  499. if (_unknownFields != null) {
  500. _unknownFields.WriteTo(output);
  501. }
  502. #endif
  503. }
  504. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  506. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  507. if (Limit != 0L) {
  508. output.WriteRawTag(8);
  509. output.WriteInt64(Limit);
  510. }
  511. if (_unknownFields != null) {
  512. _unknownFields.WriteTo(ref output);
  513. }
  514. }
  515. #endif
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  517. public int CalculateSize() {
  518. int size = 0;
  519. if (Limit != 0L) {
  520. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit);
  521. }
  522. if (_unknownFields != null) {
  523. size += _unknownFields.CalculateSize();
  524. }
  525. return size;
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  528. public void MergeFrom(FibArgs other) {
  529. if (other == null) {
  530. return;
  531. }
  532. if (other.Limit != 0L) {
  533. Limit = other.Limit;
  534. }
  535. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  536. }
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  538. public void MergeFrom(pb::CodedInputStream input) {
  539. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  540. input.ReadRawMessage(this);
  541. #else
  542. uint tag;
  543. while ((tag = input.ReadTag()) != 0) {
  544. switch(tag) {
  545. default:
  546. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  547. break;
  548. case 8: {
  549. Limit = input.ReadInt64();
  550. break;
  551. }
  552. }
  553. }
  554. #endif
  555. }
  556. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  558. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  559. uint tag;
  560. while ((tag = input.ReadTag()) != 0) {
  561. switch(tag) {
  562. default:
  563. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  564. break;
  565. case 8: {
  566. Limit = input.ReadInt64();
  567. break;
  568. }
  569. }
  570. }
  571. }
  572. #endif
  573. }
  574. public sealed partial class Num : pb::IMessage<Num>
  575. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  576. , pb::IBufferMessage
  577. #endif
  578. {
  579. private static readonly pb::MessageParser<Num> _parser = new pb::MessageParser<Num>(() => new Num());
  580. private pb::UnknownFieldSet _unknownFields;
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  582. public static pb::MessageParser<Num> Parser { get { return _parser; } }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. public static pbr::MessageDescriptor Descriptor {
  585. get { return global::Math.MathReflection.Descriptor.MessageTypes[3]; }
  586. }
  587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  588. pbr::MessageDescriptor pb::IMessage.Descriptor {
  589. get { return Descriptor; }
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  592. public Num() {
  593. OnConstruction();
  594. }
  595. partial void OnConstruction();
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  597. public Num(Num other) : this() {
  598. num_ = other.num_;
  599. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  600. }
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  602. public Num Clone() {
  603. return new Num(this);
  604. }
  605. /// <summary>Field number for the "num" field.</summary>
  606. public const int Num_FieldNumber = 1;
  607. private long num_;
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  609. public long Num_ {
  610. get { return num_; }
  611. set {
  612. num_ = value;
  613. }
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  616. public override bool Equals(object other) {
  617. return Equals(other as Num);
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  620. public bool Equals(Num other) {
  621. if (ReferenceEquals(other, null)) {
  622. return false;
  623. }
  624. if (ReferenceEquals(other, this)) {
  625. return true;
  626. }
  627. if (Num_ != other.Num_) return false;
  628. return Equals(_unknownFields, other._unknownFields);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. public override int GetHashCode() {
  632. int hash = 1;
  633. if (Num_ != 0L) hash ^= Num_.GetHashCode();
  634. if (_unknownFields != null) {
  635. hash ^= _unknownFields.GetHashCode();
  636. }
  637. return hash;
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  640. public override string ToString() {
  641. return pb::JsonFormatter.ToDiagnosticString(this);
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  644. public void WriteTo(pb::CodedOutputStream output) {
  645. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  646. output.WriteRawMessage(this);
  647. #else
  648. if (Num_ != 0L) {
  649. output.WriteRawTag(8);
  650. output.WriteInt64(Num_);
  651. }
  652. if (_unknownFields != null) {
  653. _unknownFields.WriteTo(output);
  654. }
  655. #endif
  656. }
  657. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  659. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  660. if (Num_ != 0L) {
  661. output.WriteRawTag(8);
  662. output.WriteInt64(Num_);
  663. }
  664. if (_unknownFields != null) {
  665. _unknownFields.WriteTo(ref output);
  666. }
  667. }
  668. #endif
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. public int CalculateSize() {
  671. int size = 0;
  672. if (Num_ != 0L) {
  673. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num_);
  674. }
  675. if (_unknownFields != null) {
  676. size += _unknownFields.CalculateSize();
  677. }
  678. return size;
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  681. public void MergeFrom(Num other) {
  682. if (other == null) {
  683. return;
  684. }
  685. if (other.Num_ != 0L) {
  686. Num_ = other.Num_;
  687. }
  688. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  691. public void MergeFrom(pb::CodedInputStream input) {
  692. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  693. input.ReadRawMessage(this);
  694. #else
  695. uint tag;
  696. while ((tag = input.ReadTag()) != 0) {
  697. switch(tag) {
  698. default:
  699. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  700. break;
  701. case 8: {
  702. Num_ = input.ReadInt64();
  703. break;
  704. }
  705. }
  706. }
  707. #endif
  708. }
  709. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  712. uint tag;
  713. while ((tag = input.ReadTag()) != 0) {
  714. switch(tag) {
  715. default:
  716. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  717. break;
  718. case 8: {
  719. Num_ = input.ReadInt64();
  720. break;
  721. }
  722. }
  723. }
  724. }
  725. #endif
  726. }
  727. public sealed partial class FibReply : pb::IMessage<FibReply>
  728. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  729. , pb::IBufferMessage
  730. #endif
  731. {
  732. private static readonly pb::MessageParser<FibReply> _parser = new pb::MessageParser<FibReply>(() => new FibReply());
  733. private pb::UnknownFieldSet _unknownFields;
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  735. public static pb::MessageParser<FibReply> Parser { get { return _parser; } }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public static pbr::MessageDescriptor Descriptor {
  738. get { return global::Math.MathReflection.Descriptor.MessageTypes[4]; }
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. pbr::MessageDescriptor pb::IMessage.Descriptor {
  742. get { return Descriptor; }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public FibReply() {
  746. OnConstruction();
  747. }
  748. partial void OnConstruction();
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  750. public FibReply(FibReply other) : this() {
  751. count_ = other.count_;
  752. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  755. public FibReply Clone() {
  756. return new FibReply(this);
  757. }
  758. /// <summary>Field number for the "count" field.</summary>
  759. public const int CountFieldNumber = 1;
  760. private long count_;
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  762. public long Count {
  763. get { return count_; }
  764. set {
  765. count_ = value;
  766. }
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  769. public override bool Equals(object other) {
  770. return Equals(other as FibReply);
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  773. public bool Equals(FibReply other) {
  774. if (ReferenceEquals(other, null)) {
  775. return false;
  776. }
  777. if (ReferenceEquals(other, this)) {
  778. return true;
  779. }
  780. if (Count != other.Count) return false;
  781. return Equals(_unknownFields, other._unknownFields);
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  784. public override int GetHashCode() {
  785. int hash = 1;
  786. if (Count != 0L) hash ^= Count.GetHashCode();
  787. if (_unknownFields != null) {
  788. hash ^= _unknownFields.GetHashCode();
  789. }
  790. return hash;
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  793. public override string ToString() {
  794. return pb::JsonFormatter.ToDiagnosticString(this);
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  797. public void WriteTo(pb::CodedOutputStream output) {
  798. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  799. output.WriteRawMessage(this);
  800. #else
  801. if (Count != 0L) {
  802. output.WriteRawTag(8);
  803. output.WriteInt64(Count);
  804. }
  805. if (_unknownFields != null) {
  806. _unknownFields.WriteTo(output);
  807. }
  808. #endif
  809. }
  810. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  812. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  813. if (Count != 0L) {
  814. output.WriteRawTag(8);
  815. output.WriteInt64(Count);
  816. }
  817. if (_unknownFields != null) {
  818. _unknownFields.WriteTo(ref output);
  819. }
  820. }
  821. #endif
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  823. public int CalculateSize() {
  824. int size = 0;
  825. if (Count != 0L) {
  826. size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count);
  827. }
  828. if (_unknownFields != null) {
  829. size += _unknownFields.CalculateSize();
  830. }
  831. return size;
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  834. public void MergeFrom(FibReply other) {
  835. if (other == null) {
  836. return;
  837. }
  838. if (other.Count != 0L) {
  839. Count = other.Count;
  840. }
  841. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  844. public void MergeFrom(pb::CodedInputStream input) {
  845. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  846. input.ReadRawMessage(this);
  847. #else
  848. uint tag;
  849. while ((tag = input.ReadTag()) != 0) {
  850. switch(tag) {
  851. default:
  852. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  853. break;
  854. case 8: {
  855. Count = input.ReadInt64();
  856. break;
  857. }
  858. }
  859. }
  860. #endif
  861. }
  862. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  864. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  865. uint tag;
  866. while ((tag = input.ReadTag()) != 0) {
  867. switch(tag) {
  868. default:
  869. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  870. break;
  871. case 8: {
  872. Count = input.ReadInt64();
  873. break;
  874. }
  875. }
  876. }
  877. }
  878. #endif
  879. }
  880. #endregion
  881. }
  882. #endregion Designer generated code