Tulip.cs 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: tulip.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021, 8981
  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 Mint.Tulip.V1 {
  12. /// <summary>Holder for reflection information generated from tulip.proto</summary>
  13. public static partial class TulipReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for tulip.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static TulipReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cgt0dWxpcC5wcm90bxINbWludC50dWxpcC52MSKTAQoNU2VhcmNoUmVxdWVz",
  24. "dBIQCghrZXl3b3JkcxgBIAMoCRIMCgRib29rGAIgASgFEjQKBHBhZ2UYYyAB",
  25. "KAsyIS5taW50LnR1bGlwLnYxLlNlYXJjaFJlcXVlc3QuUGFnZUgAiAEBGiMK",
  26. "BFBhZ2USDQoFaW5kZXgYASABKAUSDAoEc2l6ZRgCIAEoBUIHCgVfcGFnZSLe",
  27. "AQoOU2VhcmNoUmVzcG9uc2USMQoFaXRlbXMYASADKAsyIi5taW50LnR1bGlw",
  28. "LnYxLlNlYXJjaFJlc3BvbnNlLkl0ZW0SLwoEcGFnZRhiIAEoCzIhLm1pbnQu",
  29. "dHVsaXAudjEuU2VhcmNoUmVxdWVzdC5QYWdlEg0KBXRvdGFsGGMgASgFGlkK",
  30. "BEl0ZW0SDAoEcmFuaxgBIAEoBRIRCgloaWdobGlnaHQYAiABKAkSDAoEYm9v",
  31. "axgDIAEoBRIRCglwYXJhZ3JhcGgYBCABKAUSDwoHY29udGVudBgFIAEoCTJP",
  32. "CgZTZWFyY2gSRQoEUGFsaRIcLm1pbnQudHVsaXAudjEuU2VhcmNoUmVxdWVz",
  33. "dBodLm1pbnQudHVsaXAudjEuU2VhcmNoUmVzcG9uc2UiAEIyCi5jb20uZ2l0",
  34. "aHViLmlhcHRfcGxhdGZvcm0ubWludC5wbHVnaW5zLnR1bGlwLnYxUAFiBnBy",
  35. "b3RvMw=="));
  36. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  37. new pbr::FileDescriptor[] { },
  38. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Tulip.V1.SearchRequest), global::Mint.Tulip.V1.SearchRequest.Parser, new[]{ "Keywords", "Book", "Page" }, new[]{ "Page" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Tulip.V1.SearchRequest.Types.Page), global::Mint.Tulip.V1.SearchRequest.Types.Page.Parser, new[]{ "Index", "Size" }, null, null, null, null)}),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Tulip.V1.SearchResponse), global::Mint.Tulip.V1.SearchResponse.Parser, new[]{ "Items", "Page", "Total" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Tulip.V1.SearchResponse.Types.Item), global::Mint.Tulip.V1.SearchResponse.Types.Item.Parser, new[]{ "Rank", "Highlight", "Book", "Paragraph", "Content" }, null, null, null, null)})
  41. }));
  42. }
  43. #endregion
  44. }
  45. #region Messages
  46. /// <summary>
  47. /// ----------------------------------------------------------------------------
  48. /// </summary>
  49. public sealed partial class SearchRequest : pb::IMessage<SearchRequest>
  50. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  51. , pb::IBufferMessage
  52. #endif
  53. {
  54. private static readonly pb::MessageParser<SearchRequest> _parser = new pb::MessageParser<SearchRequest>(() => new SearchRequest());
  55. private pb::UnknownFieldSet _unknownFields;
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  58. public static pb::MessageParser<SearchRequest> Parser { get { return _parser; } }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  61. public static pbr::MessageDescriptor Descriptor {
  62. get { return global::Mint.Tulip.V1.TulipReflection.Descriptor.MessageTypes[0]; }
  63. }
  64. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  65. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  66. pbr::MessageDescriptor pb::IMessage.Descriptor {
  67. get { return Descriptor; }
  68. }
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  70. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  71. public SearchRequest() {
  72. OnConstruction();
  73. }
  74. partial void OnConstruction();
  75. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  76. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  77. public SearchRequest(SearchRequest other) : this() {
  78. keywords_ = other.keywords_.Clone();
  79. book_ = other.book_;
  80. page_ = other.page_ != null ? other.page_.Clone() : null;
  81. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  82. }
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  84. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  85. public SearchRequest Clone() {
  86. return new SearchRequest(this);
  87. }
  88. /// <summary>Field number for the "keywords" field.</summary>
  89. public const int KeywordsFieldNumber = 1;
  90. private static readonly pb::FieldCodec<string> _repeated_keywords_codec
  91. = pb::FieldCodec.ForString(10);
  92. private readonly pbc::RepeatedField<string> keywords_ = new pbc::RepeatedField<string>();
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  94. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  95. public pbc::RepeatedField<string> Keywords {
  96. get { return keywords_; }
  97. }
  98. /// <summary>Field number for the "book" field.</summary>
  99. public const int BookFieldNumber = 2;
  100. private int book_;
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  102. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  103. public int Book {
  104. get { return book_; }
  105. set {
  106. book_ = value;
  107. }
  108. }
  109. /// <summary>Field number for the "page" field.</summary>
  110. public const int PageFieldNumber = 99;
  111. private global::Mint.Tulip.V1.SearchRequest.Types.Page page_;
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  114. public global::Mint.Tulip.V1.SearchRequest.Types.Page Page {
  115. get { return page_; }
  116. set {
  117. page_ = value;
  118. }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  121. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  122. public override bool Equals(object other) {
  123. return Equals(other as SearchRequest);
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  127. public bool Equals(SearchRequest other) {
  128. if (ReferenceEquals(other, null)) {
  129. return false;
  130. }
  131. if (ReferenceEquals(other, this)) {
  132. return true;
  133. }
  134. if(!keywords_.Equals(other.keywords_)) return false;
  135. if (Book != other.Book) return false;
  136. if (!object.Equals(Page, other.Page)) return false;
  137. return Equals(_unknownFields, other._unknownFields);
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  140. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  141. public override int GetHashCode() {
  142. int hash = 1;
  143. hash ^= keywords_.GetHashCode();
  144. if (Book != 0) hash ^= Book.GetHashCode();
  145. if (page_ != null) hash ^= Page.GetHashCode();
  146. if (_unknownFields != null) {
  147. hash ^= _unknownFields.GetHashCode();
  148. }
  149. return hash;
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  152. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  153. public override string ToString() {
  154. return pb::JsonFormatter.ToDiagnosticString(this);
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  157. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  158. public void WriteTo(pb::CodedOutputStream output) {
  159. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  160. output.WriteRawMessage(this);
  161. #else
  162. keywords_.WriteTo(output, _repeated_keywords_codec);
  163. if (Book != 0) {
  164. output.WriteRawTag(16);
  165. output.WriteInt32(Book);
  166. }
  167. if (page_ != null) {
  168. output.WriteRawTag(154, 6);
  169. output.WriteMessage(Page);
  170. }
  171. if (_unknownFields != null) {
  172. _unknownFields.WriteTo(output);
  173. }
  174. #endif
  175. }
  176. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  178. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  179. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  180. keywords_.WriteTo(ref output, _repeated_keywords_codec);
  181. if (Book != 0) {
  182. output.WriteRawTag(16);
  183. output.WriteInt32(Book);
  184. }
  185. if (page_ != null) {
  186. output.WriteRawTag(154, 6);
  187. output.WriteMessage(Page);
  188. }
  189. if (_unknownFields != null) {
  190. _unknownFields.WriteTo(ref output);
  191. }
  192. }
  193. #endif
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  196. public int CalculateSize() {
  197. int size = 0;
  198. size += keywords_.CalculateSize(_repeated_keywords_codec);
  199. if (Book != 0) {
  200. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Book);
  201. }
  202. if (page_ != null) {
  203. size += 2 + pb::CodedOutputStream.ComputeMessageSize(Page);
  204. }
  205. if (_unknownFields != null) {
  206. size += _unknownFields.CalculateSize();
  207. }
  208. return size;
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  211. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  212. public void MergeFrom(SearchRequest other) {
  213. if (other == null) {
  214. return;
  215. }
  216. keywords_.Add(other.keywords_);
  217. if (other.Book != 0) {
  218. Book = other.Book;
  219. }
  220. if (other.page_ != null) {
  221. if (page_ == null) {
  222. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  223. }
  224. Page.MergeFrom(other.Page);
  225. }
  226. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  229. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  230. public void MergeFrom(pb::CodedInputStream input) {
  231. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  232. input.ReadRawMessage(this);
  233. #else
  234. uint tag;
  235. while ((tag = input.ReadTag()) != 0) {
  236. switch(tag) {
  237. default:
  238. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  239. break;
  240. case 10: {
  241. keywords_.AddEntriesFrom(input, _repeated_keywords_codec);
  242. break;
  243. }
  244. case 16: {
  245. Book = input.ReadInt32();
  246. break;
  247. }
  248. case 794: {
  249. if (page_ == null) {
  250. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  251. }
  252. input.ReadMessage(Page);
  253. break;
  254. }
  255. }
  256. }
  257. #endif
  258. }
  259. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  262. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  263. uint tag;
  264. while ((tag = input.ReadTag()) != 0) {
  265. switch(tag) {
  266. default:
  267. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  268. break;
  269. case 10: {
  270. keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec);
  271. break;
  272. }
  273. case 16: {
  274. Book = input.ReadInt32();
  275. break;
  276. }
  277. case 794: {
  278. if (page_ == null) {
  279. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  280. }
  281. input.ReadMessage(Page);
  282. break;
  283. }
  284. }
  285. }
  286. }
  287. #endif
  288. #region Nested types
  289. /// <summary>Container for nested types declared in the SearchRequest message type.</summary>
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  291. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  292. public static partial class Types {
  293. public sealed partial class Page : pb::IMessage<Page>
  294. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  295. , pb::IBufferMessage
  296. #endif
  297. {
  298. private static readonly pb::MessageParser<Page> _parser = new pb::MessageParser<Page>(() => new Page());
  299. private pb::UnknownFieldSet _unknownFields;
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  301. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  302. public static pb::MessageParser<Page> Parser { get { return _parser; } }
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  304. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  305. public static pbr::MessageDescriptor Descriptor {
  306. get { return global::Mint.Tulip.V1.SearchRequest.Descriptor.NestedTypes[0]; }
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  310. pbr::MessageDescriptor pb::IMessage.Descriptor {
  311. get { return Descriptor; }
  312. }
  313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  314. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  315. public Page() {
  316. OnConstruction();
  317. }
  318. partial void OnConstruction();
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  320. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  321. public Page(Page other) : this() {
  322. index_ = other.index_;
  323. size_ = other.size_;
  324. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  327. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  328. public Page Clone() {
  329. return new Page(this);
  330. }
  331. /// <summary>Field number for the "index" field.</summary>
  332. public const int IndexFieldNumber = 1;
  333. private int index_;
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  336. public int Index {
  337. get { return index_; }
  338. set {
  339. index_ = value;
  340. }
  341. }
  342. /// <summary>Field number for the "size" field.</summary>
  343. public const int SizeFieldNumber = 2;
  344. private int size_;
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  346. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  347. public int Size {
  348. get { return size_; }
  349. set {
  350. size_ = value;
  351. }
  352. }
  353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  354. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  355. public override bool Equals(object other) {
  356. return Equals(other as Page);
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  360. public bool Equals(Page other) {
  361. if (ReferenceEquals(other, null)) {
  362. return false;
  363. }
  364. if (ReferenceEquals(other, this)) {
  365. return true;
  366. }
  367. if (Index != other.Index) return false;
  368. if (Size != other.Size) return false;
  369. return Equals(_unknownFields, other._unknownFields);
  370. }
  371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  372. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  373. public override int GetHashCode() {
  374. int hash = 1;
  375. if (Index != 0) hash ^= Index.GetHashCode();
  376. if (Size != 0) hash ^= Size.GetHashCode();
  377. if (_unknownFields != null) {
  378. hash ^= _unknownFields.GetHashCode();
  379. }
  380. return hash;
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  384. public override string ToString() {
  385. return pb::JsonFormatter.ToDiagnosticString(this);
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  388. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  389. public void WriteTo(pb::CodedOutputStream output) {
  390. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  391. output.WriteRawMessage(this);
  392. #else
  393. if (Index != 0) {
  394. output.WriteRawTag(8);
  395. output.WriteInt32(Index);
  396. }
  397. if (Size != 0) {
  398. output.WriteRawTag(16);
  399. output.WriteInt32(Size);
  400. }
  401. if (_unknownFields != null) {
  402. _unknownFields.WriteTo(output);
  403. }
  404. #endif
  405. }
  406. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  408. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  409. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  410. if (Index != 0) {
  411. output.WriteRawTag(8);
  412. output.WriteInt32(Index);
  413. }
  414. if (Size != 0) {
  415. output.WriteRawTag(16);
  416. output.WriteInt32(Size);
  417. }
  418. if (_unknownFields != null) {
  419. _unknownFields.WriteTo(ref output);
  420. }
  421. }
  422. #endif
  423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  424. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  425. public int CalculateSize() {
  426. int size = 0;
  427. if (Index != 0) {
  428. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
  429. }
  430. if (Size != 0) {
  431. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
  432. }
  433. if (_unknownFields != null) {
  434. size += _unknownFields.CalculateSize();
  435. }
  436. return size;
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  439. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  440. public void MergeFrom(Page other) {
  441. if (other == null) {
  442. return;
  443. }
  444. if (other.Index != 0) {
  445. Index = other.Index;
  446. }
  447. if (other.Size != 0) {
  448. Size = other.Size;
  449. }
  450. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  453. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  454. public void MergeFrom(pb::CodedInputStream input) {
  455. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  456. input.ReadRawMessage(this);
  457. #else
  458. uint tag;
  459. while ((tag = input.ReadTag()) != 0) {
  460. switch(tag) {
  461. default:
  462. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  463. break;
  464. case 8: {
  465. Index = input.ReadInt32();
  466. break;
  467. }
  468. case 16: {
  469. Size = input.ReadInt32();
  470. break;
  471. }
  472. }
  473. }
  474. #endif
  475. }
  476. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  478. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  479. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  480. uint tag;
  481. while ((tag = input.ReadTag()) != 0) {
  482. switch(tag) {
  483. default:
  484. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  485. break;
  486. case 8: {
  487. Index = input.ReadInt32();
  488. break;
  489. }
  490. case 16: {
  491. Size = input.ReadInt32();
  492. break;
  493. }
  494. }
  495. }
  496. }
  497. #endif
  498. }
  499. }
  500. #endregion
  501. }
  502. public sealed partial class SearchResponse : pb::IMessage<SearchResponse>
  503. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  504. , pb::IBufferMessage
  505. #endif
  506. {
  507. private static readonly pb::MessageParser<SearchResponse> _parser = new pb::MessageParser<SearchResponse>(() => new SearchResponse());
  508. private pb::UnknownFieldSet _unknownFields;
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  510. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  511. public static pb::MessageParser<SearchResponse> Parser { get { return _parser; } }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  514. public static pbr::MessageDescriptor Descriptor {
  515. get { return global::Mint.Tulip.V1.TulipReflection.Descriptor.MessageTypes[1]; }
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  518. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  519. pbr::MessageDescriptor pb::IMessage.Descriptor {
  520. get { return Descriptor; }
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  523. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  524. public SearchResponse() {
  525. OnConstruction();
  526. }
  527. partial void OnConstruction();
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  529. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  530. public SearchResponse(SearchResponse other) : this() {
  531. items_ = other.items_.Clone();
  532. page_ = other.page_ != null ? other.page_.Clone() : null;
  533. total_ = other.total_;
  534. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  537. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  538. public SearchResponse Clone() {
  539. return new SearchResponse(this);
  540. }
  541. /// <summary>Field number for the "items" field.</summary>
  542. public const int ItemsFieldNumber = 1;
  543. private static readonly pb::FieldCodec<global::Mint.Tulip.V1.SearchResponse.Types.Item> _repeated_items_codec
  544. = pb::FieldCodec.ForMessage(10, global::Mint.Tulip.V1.SearchResponse.Types.Item.Parser);
  545. private readonly pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item> items_ = new pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item>();
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  547. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  548. public pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item> Items {
  549. get { return items_; }
  550. }
  551. /// <summary>Field number for the "page" field.</summary>
  552. public const int PageFieldNumber = 98;
  553. private global::Mint.Tulip.V1.SearchRequest.Types.Page page_;
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  555. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  556. public global::Mint.Tulip.V1.SearchRequest.Types.Page Page {
  557. get { return page_; }
  558. set {
  559. page_ = value;
  560. }
  561. }
  562. /// <summary>Field number for the "total" field.</summary>
  563. public const int TotalFieldNumber = 99;
  564. private int total_;
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  566. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  567. public int Total {
  568. get { return total_; }
  569. set {
  570. total_ = value;
  571. }
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  574. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  575. public override bool Equals(object other) {
  576. return Equals(other as SearchResponse);
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  579. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  580. public bool Equals(SearchResponse other) {
  581. if (ReferenceEquals(other, null)) {
  582. return false;
  583. }
  584. if (ReferenceEquals(other, this)) {
  585. return true;
  586. }
  587. if(!items_.Equals(other.items_)) return false;
  588. if (!object.Equals(Page, other.Page)) return false;
  589. if (Total != other.Total) return false;
  590. return Equals(_unknownFields, other._unknownFields);
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  593. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  594. public override int GetHashCode() {
  595. int hash = 1;
  596. hash ^= items_.GetHashCode();
  597. if (page_ != null) hash ^= Page.GetHashCode();
  598. if (Total != 0) hash ^= Total.GetHashCode();
  599. if (_unknownFields != null) {
  600. hash ^= _unknownFields.GetHashCode();
  601. }
  602. return hash;
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  605. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  606. public override string ToString() {
  607. return pb::JsonFormatter.ToDiagnosticString(this);
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  611. public void WriteTo(pb::CodedOutputStream output) {
  612. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  613. output.WriteRawMessage(this);
  614. #else
  615. items_.WriteTo(output, _repeated_items_codec);
  616. if (page_ != null) {
  617. output.WriteRawTag(146, 6);
  618. output.WriteMessage(Page);
  619. }
  620. if (Total != 0) {
  621. output.WriteRawTag(152, 6);
  622. output.WriteInt32(Total);
  623. }
  624. if (_unknownFields != null) {
  625. _unknownFields.WriteTo(output);
  626. }
  627. #endif
  628. }
  629. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  632. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  633. items_.WriteTo(ref output, _repeated_items_codec);
  634. if (page_ != null) {
  635. output.WriteRawTag(146, 6);
  636. output.WriteMessage(Page);
  637. }
  638. if (Total != 0) {
  639. output.WriteRawTag(152, 6);
  640. output.WriteInt32(Total);
  641. }
  642. if (_unknownFields != null) {
  643. _unknownFields.WriteTo(ref output);
  644. }
  645. }
  646. #endif
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  648. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  649. public int CalculateSize() {
  650. int size = 0;
  651. size += items_.CalculateSize(_repeated_items_codec);
  652. if (page_ != null) {
  653. size += 2 + pb::CodedOutputStream.ComputeMessageSize(Page);
  654. }
  655. if (Total != 0) {
  656. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Total);
  657. }
  658. if (_unknownFields != null) {
  659. size += _unknownFields.CalculateSize();
  660. }
  661. return size;
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  664. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  665. public void MergeFrom(SearchResponse other) {
  666. if (other == null) {
  667. return;
  668. }
  669. items_.Add(other.items_);
  670. if (other.page_ != null) {
  671. if (page_ == null) {
  672. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  673. }
  674. Page.MergeFrom(other.Page);
  675. }
  676. if (other.Total != 0) {
  677. Total = other.Total;
  678. }
  679. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  682. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  683. public void MergeFrom(pb::CodedInputStream input) {
  684. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  685. input.ReadRawMessage(this);
  686. #else
  687. uint tag;
  688. while ((tag = input.ReadTag()) != 0) {
  689. switch(tag) {
  690. default:
  691. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  692. break;
  693. case 10: {
  694. items_.AddEntriesFrom(input, _repeated_items_codec);
  695. break;
  696. }
  697. case 786: {
  698. if (page_ == null) {
  699. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  700. }
  701. input.ReadMessage(Page);
  702. break;
  703. }
  704. case 792: {
  705. Total = input.ReadInt32();
  706. break;
  707. }
  708. }
  709. }
  710. #endif
  711. }
  712. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  714. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  715. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  716. uint tag;
  717. while ((tag = input.ReadTag()) != 0) {
  718. switch(tag) {
  719. default:
  720. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  721. break;
  722. case 10: {
  723. items_.AddEntriesFrom(ref input, _repeated_items_codec);
  724. break;
  725. }
  726. case 786: {
  727. if (page_ == null) {
  728. Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
  729. }
  730. input.ReadMessage(Page);
  731. break;
  732. }
  733. case 792: {
  734. Total = input.ReadInt32();
  735. break;
  736. }
  737. }
  738. }
  739. }
  740. #endif
  741. #region Nested types
  742. /// <summary>Container for nested types declared in the SearchResponse message type.</summary>
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  744. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  745. public static partial class Types {
  746. public sealed partial class Item : pb::IMessage<Item>
  747. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  748. , pb::IBufferMessage
  749. #endif
  750. {
  751. private static readonly pb::MessageParser<Item> _parser = new pb::MessageParser<Item>(() => new Item());
  752. private pb::UnknownFieldSet _unknownFields;
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  754. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  755. public static pb::MessageParser<Item> Parser { get { return _parser; } }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  757. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  758. public static pbr::MessageDescriptor Descriptor {
  759. get { return global::Mint.Tulip.V1.SearchResponse.Descriptor.NestedTypes[0]; }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  762. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  763. pbr::MessageDescriptor pb::IMessage.Descriptor {
  764. get { return Descriptor; }
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  767. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  768. public Item() {
  769. OnConstruction();
  770. }
  771. partial void OnConstruction();
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  773. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  774. public Item(Item other) : this() {
  775. rank_ = other.rank_;
  776. highlight_ = other.highlight_;
  777. book_ = other.book_;
  778. paragraph_ = other.paragraph_;
  779. content_ = other.content_;
  780. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  783. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  784. public Item Clone() {
  785. return new Item(this);
  786. }
  787. /// <summary>Field number for the "rank" field.</summary>
  788. public const int RankFieldNumber = 1;
  789. private int rank_;
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  791. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  792. public int Rank {
  793. get { return rank_; }
  794. set {
  795. rank_ = value;
  796. }
  797. }
  798. /// <summary>Field number for the "highlight" field.</summary>
  799. public const int HighlightFieldNumber = 2;
  800. private string highlight_ = "";
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  802. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  803. public string Highlight {
  804. get { return highlight_; }
  805. set {
  806. highlight_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  807. }
  808. }
  809. /// <summary>Field number for the "book" field.</summary>
  810. public const int BookFieldNumber = 3;
  811. private int book_;
  812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  813. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  814. public int Book {
  815. get { return book_; }
  816. set {
  817. book_ = value;
  818. }
  819. }
  820. /// <summary>Field number for the "paragraph" field.</summary>
  821. public const int ParagraphFieldNumber = 4;
  822. private int paragraph_;
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  824. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  825. public int Paragraph {
  826. get { return paragraph_; }
  827. set {
  828. paragraph_ = value;
  829. }
  830. }
  831. /// <summary>Field number for the "content" field.</summary>
  832. public const int ContentFieldNumber = 5;
  833. private string content_ = "";
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  835. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  836. public string Content {
  837. get { return content_; }
  838. set {
  839. content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  840. }
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  843. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  844. public override bool Equals(object other) {
  845. return Equals(other as Item);
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  848. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  849. public bool Equals(Item other) {
  850. if (ReferenceEquals(other, null)) {
  851. return false;
  852. }
  853. if (ReferenceEquals(other, this)) {
  854. return true;
  855. }
  856. if (Rank != other.Rank) return false;
  857. if (Highlight != other.Highlight) return false;
  858. if (Book != other.Book) return false;
  859. if (Paragraph != other.Paragraph) return false;
  860. if (Content != other.Content) return false;
  861. return Equals(_unknownFields, other._unknownFields);
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  864. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  865. public override int GetHashCode() {
  866. int hash = 1;
  867. if (Rank != 0) hash ^= Rank.GetHashCode();
  868. if (Highlight.Length != 0) hash ^= Highlight.GetHashCode();
  869. if (Book != 0) hash ^= Book.GetHashCode();
  870. if (Paragraph != 0) hash ^= Paragraph.GetHashCode();
  871. if (Content.Length != 0) hash ^= Content.GetHashCode();
  872. if (_unknownFields != null) {
  873. hash ^= _unknownFields.GetHashCode();
  874. }
  875. return hash;
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  878. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  879. public override string ToString() {
  880. return pb::JsonFormatter.ToDiagnosticString(this);
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  884. public void WriteTo(pb::CodedOutputStream output) {
  885. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  886. output.WriteRawMessage(this);
  887. #else
  888. if (Rank != 0) {
  889. output.WriteRawTag(8);
  890. output.WriteInt32(Rank);
  891. }
  892. if (Highlight.Length != 0) {
  893. output.WriteRawTag(18);
  894. output.WriteString(Highlight);
  895. }
  896. if (Book != 0) {
  897. output.WriteRawTag(24);
  898. output.WriteInt32(Book);
  899. }
  900. if (Paragraph != 0) {
  901. output.WriteRawTag(32);
  902. output.WriteInt32(Paragraph);
  903. }
  904. if (Content.Length != 0) {
  905. output.WriteRawTag(42);
  906. output.WriteString(Content);
  907. }
  908. if (_unknownFields != null) {
  909. _unknownFields.WriteTo(output);
  910. }
  911. #endif
  912. }
  913. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  916. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  917. if (Rank != 0) {
  918. output.WriteRawTag(8);
  919. output.WriteInt32(Rank);
  920. }
  921. if (Highlight.Length != 0) {
  922. output.WriteRawTag(18);
  923. output.WriteString(Highlight);
  924. }
  925. if (Book != 0) {
  926. output.WriteRawTag(24);
  927. output.WriteInt32(Book);
  928. }
  929. if (Paragraph != 0) {
  930. output.WriteRawTag(32);
  931. output.WriteInt32(Paragraph);
  932. }
  933. if (Content.Length != 0) {
  934. output.WriteRawTag(42);
  935. output.WriteString(Content);
  936. }
  937. if (_unknownFields != null) {
  938. _unknownFields.WriteTo(ref output);
  939. }
  940. }
  941. #endif
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  943. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  944. public int CalculateSize() {
  945. int size = 0;
  946. if (Rank != 0) {
  947. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
  948. }
  949. if (Highlight.Length != 0) {
  950. size += 1 + pb::CodedOutputStream.ComputeStringSize(Highlight);
  951. }
  952. if (Book != 0) {
  953. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Book);
  954. }
  955. if (Paragraph != 0) {
  956. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Paragraph);
  957. }
  958. if (Content.Length != 0) {
  959. size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
  960. }
  961. if (_unknownFields != null) {
  962. size += _unknownFields.CalculateSize();
  963. }
  964. return size;
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  967. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  968. public void MergeFrom(Item other) {
  969. if (other == null) {
  970. return;
  971. }
  972. if (other.Rank != 0) {
  973. Rank = other.Rank;
  974. }
  975. if (other.Highlight.Length != 0) {
  976. Highlight = other.Highlight;
  977. }
  978. if (other.Book != 0) {
  979. Book = other.Book;
  980. }
  981. if (other.Paragraph != 0) {
  982. Paragraph = other.Paragraph;
  983. }
  984. if (other.Content.Length != 0) {
  985. Content = other.Content;
  986. }
  987. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  990. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  991. public void MergeFrom(pb::CodedInputStream input) {
  992. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  993. input.ReadRawMessage(this);
  994. #else
  995. uint tag;
  996. while ((tag = input.ReadTag()) != 0) {
  997. switch(tag) {
  998. default:
  999. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1000. break;
  1001. case 8: {
  1002. Rank = input.ReadInt32();
  1003. break;
  1004. }
  1005. case 18: {
  1006. Highlight = input.ReadString();
  1007. break;
  1008. }
  1009. case 24: {
  1010. Book = input.ReadInt32();
  1011. break;
  1012. }
  1013. case 32: {
  1014. Paragraph = input.ReadInt32();
  1015. break;
  1016. }
  1017. case 42: {
  1018. Content = input.ReadString();
  1019. break;
  1020. }
  1021. }
  1022. }
  1023. #endif
  1024. }
  1025. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1027. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1028. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1029. uint tag;
  1030. while ((tag = input.ReadTag()) != 0) {
  1031. switch(tag) {
  1032. default:
  1033. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1034. break;
  1035. case 8: {
  1036. Rank = input.ReadInt32();
  1037. break;
  1038. }
  1039. case 18: {
  1040. Highlight = input.ReadString();
  1041. break;
  1042. }
  1043. case 24: {
  1044. Book = input.ReadInt32();
  1045. break;
  1046. }
  1047. case 32: {
  1048. Paragraph = input.ReadInt32();
  1049. break;
  1050. }
  1051. case 42: {
  1052. Content = input.ReadString();
  1053. break;
  1054. }
  1055. }
  1056. }
  1057. }
  1058. #endif
  1059. }
  1060. }
  1061. #endregion
  1062. }
  1063. #endregion
  1064. }
  1065. #endregion Designer generated code