| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tulip.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021, 8981
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Mint.Tulip.V1 {
- /// <summary>Holder for reflection information generated from tulip.proto</summary>
- public static partial class TulipReflection {
- #region Descriptor
- /// <summary>File descriptor for tulip.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static TulipReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cgt0dWxpcC5wcm90bxINbWludC50dWxpcC52MSKTAQoNU2VhcmNoUmVxdWVz",
- "dBIQCghrZXl3b3JkcxgBIAMoCRIMCgRib29rGAIgASgFEjQKBHBhZ2UYYyAB",
- "KAsyIS5taW50LnR1bGlwLnYxLlNlYXJjaFJlcXVlc3QuUGFnZUgAiAEBGiMK",
- "BFBhZ2USDQoFaW5kZXgYASABKAUSDAoEc2l6ZRgCIAEoBUIHCgVfcGFnZSLe",
- "AQoOU2VhcmNoUmVzcG9uc2USMQoFaXRlbXMYASADKAsyIi5taW50LnR1bGlw",
- "LnYxLlNlYXJjaFJlc3BvbnNlLkl0ZW0SLwoEcGFnZRhiIAEoCzIhLm1pbnQu",
- "dHVsaXAudjEuU2VhcmNoUmVxdWVzdC5QYWdlEg0KBXRvdGFsGGMgASgFGlkK",
- "BEl0ZW0SDAoEcmFuaxgBIAEoBRIRCgloaWdobGlnaHQYAiABKAkSDAoEYm9v",
- "axgDIAEoBRIRCglwYXJhZ3JhcGgYBCABKAUSDwoHY29udGVudBgFIAEoCTJP",
- "CgZTZWFyY2gSRQoEUGFsaRIcLm1pbnQudHVsaXAudjEuU2VhcmNoUmVxdWVz",
- "dBodLm1pbnQudHVsaXAudjEuU2VhcmNoUmVzcG9uc2UiAEIyCi5jb20uZ2l0",
- "aHViLmlhcHRfcGxhdGZvcm0ubWludC5wbHVnaW5zLnR1bGlwLnYxUAFiBnBy",
- "b3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- 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)}),
- 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)})
- }));
- }
- #endregion
- }
- #region Messages
- /// <summary>
- /// ----------------------------------------------------------------------------
- /// </summary>
- public sealed partial class SearchRequest : pb::IMessage<SearchRequest>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<SearchRequest> _parser = new pb::MessageParser<SearchRequest>(() => new SearchRequest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<SearchRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Mint.Tulip.V1.TulipReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchRequest(SearchRequest other) : this() {
- keywords_ = other.keywords_.Clone();
- book_ = other.book_;
- page_ = other.page_ != null ? other.page_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchRequest Clone() {
- return new SearchRequest(this);
- }
- /// <summary>Field number for the "keywords" field.</summary>
- public const int KeywordsFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_keywords_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> keywords_ = new pbc::RepeatedField<string>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<string> Keywords {
- get { return keywords_; }
- }
- /// <summary>Field number for the "book" field.</summary>
- public const int BookFieldNumber = 2;
- private int book_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Book {
- get { return book_; }
- set {
- book_ = value;
- }
- }
- /// <summary>Field number for the "page" field.</summary>
- public const int PageFieldNumber = 99;
- private global::Mint.Tulip.V1.SearchRequest.Types.Page page_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Mint.Tulip.V1.SearchRequest.Types.Page Page {
- get { return page_; }
- set {
- page_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SearchRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SearchRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!keywords_.Equals(other.keywords_)) return false;
- if (Book != other.Book) return false;
- if (!object.Equals(Page, other.Page)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= keywords_.GetHashCode();
- if (Book != 0) hash ^= Book.GetHashCode();
- if (page_ != null) hash ^= Page.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- keywords_.WriteTo(output, _repeated_keywords_codec);
- if (Book != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Book);
- }
- if (page_ != null) {
- output.WriteRawTag(154, 6);
- output.WriteMessage(Page);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- keywords_.WriteTo(ref output, _repeated_keywords_codec);
- if (Book != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Book);
- }
- if (page_ != null) {
- output.WriteRawTag(154, 6);
- output.WriteMessage(Page);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += keywords_.CalculateSize(_repeated_keywords_codec);
- if (Book != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Book);
- }
- if (page_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(Page);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SearchRequest other) {
- if (other == null) {
- return;
- }
- keywords_.Add(other.keywords_);
- if (other.Book != 0) {
- Book = other.Book;
- }
- if (other.page_ != null) {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- Page.MergeFrom(other.Page);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- keywords_.AddEntriesFrom(input, _repeated_keywords_codec);
- break;
- }
- case 16: {
- Book = input.ReadInt32();
- break;
- }
- case 794: {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- input.ReadMessage(Page);
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec);
- break;
- }
- case 16: {
- Book = input.ReadInt32();
- break;
- }
- case 794: {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- input.ReadMessage(Page);
- break;
- }
- }
- }
- }
- #endif
- #region Nested types
- /// <summary>Container for nested types declared in the SearchRequest message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public sealed partial class Page : pb::IMessage<Page>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Page> _parser = new pb::MessageParser<Page>(() => new Page());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Page> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Mint.Tulip.V1.SearchRequest.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Page() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Page(Page other) : this() {
- index_ = other.index_;
- size_ = other.size_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Page Clone() {
- return new Page(this);
- }
- /// <summary>Field number for the "index" field.</summary>
- public const int IndexFieldNumber = 1;
- private int index_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Index {
- get { return index_; }
- set {
- index_ = value;
- }
- }
- /// <summary>Field number for the "size" field.</summary>
- public const int SizeFieldNumber = 2;
- private int size_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Size {
- get { return size_; }
- set {
- size_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Page);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Page other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Index != other.Index) return false;
- if (Size != other.Size) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Index != 0) hash ^= Index.GetHashCode();
- if (Size != 0) hash ^= Size.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Index != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Index);
- }
- if (Size != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Size);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Index != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Index);
- }
- if (Size != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Size);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Index != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
- }
- if (Size != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Page other) {
- if (other == null) {
- return;
- }
- if (other.Index != 0) {
- Index = other.Index;
- }
- if (other.Size != 0) {
- Size = other.Size;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Index = input.ReadInt32();
- break;
- }
- case 16: {
- Size = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Index = input.ReadInt32();
- break;
- }
- case 16: {
- Size = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- }
- #endregion
- }
- public sealed partial class SearchResponse : pb::IMessage<SearchResponse>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<SearchResponse> _parser = new pb::MessageParser<SearchResponse>(() => new SearchResponse());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<SearchResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Mint.Tulip.V1.TulipReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchResponse(SearchResponse other) : this() {
- items_ = other.items_.Clone();
- page_ = other.page_ != null ? other.page_.Clone() : null;
- total_ = other.total_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SearchResponse Clone() {
- return new SearchResponse(this);
- }
- /// <summary>Field number for the "items" field.</summary>
- public const int ItemsFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Mint.Tulip.V1.SearchResponse.Types.Item> _repeated_items_codec
- = pb::FieldCodec.ForMessage(10, global::Mint.Tulip.V1.SearchResponse.Types.Item.Parser);
- private readonly pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item> items_ = new pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public pbc::RepeatedField<global::Mint.Tulip.V1.SearchResponse.Types.Item> Items {
- get { return items_; }
- }
- /// <summary>Field number for the "page" field.</summary>
- public const int PageFieldNumber = 98;
- private global::Mint.Tulip.V1.SearchRequest.Types.Page page_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Mint.Tulip.V1.SearchRequest.Types.Page Page {
- get { return page_; }
- set {
- page_ = value;
- }
- }
- /// <summary>Field number for the "total" field.</summary>
- public const int TotalFieldNumber = 99;
- private int total_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Total {
- get { return total_; }
- set {
- total_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as SearchResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SearchResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!items_.Equals(other.items_)) return false;
- if (!object.Equals(Page, other.Page)) return false;
- if (Total != other.Total) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= items_.GetHashCode();
- if (page_ != null) hash ^= Page.GetHashCode();
- if (Total != 0) hash ^= Total.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- items_.WriteTo(output, _repeated_items_codec);
- if (page_ != null) {
- output.WriteRawTag(146, 6);
- output.WriteMessage(Page);
- }
- if (Total != 0) {
- output.WriteRawTag(152, 6);
- output.WriteInt32(Total);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- items_.WriteTo(ref output, _repeated_items_codec);
- if (page_ != null) {
- output.WriteRawTag(146, 6);
- output.WriteMessage(Page);
- }
- if (Total != 0) {
- output.WriteRawTag(152, 6);
- output.WriteInt32(Total);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- size += items_.CalculateSize(_repeated_items_codec);
- if (page_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(Page);
- }
- if (Total != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Total);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SearchResponse other) {
- if (other == null) {
- return;
- }
- items_.Add(other.items_);
- if (other.page_ != null) {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- Page.MergeFrom(other.Page);
- }
- if (other.Total != 0) {
- Total = other.Total;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- items_.AddEntriesFrom(input, _repeated_items_codec);
- break;
- }
- case 786: {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- input.ReadMessage(Page);
- break;
- }
- case 792: {
- Total = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- items_.AddEntriesFrom(ref input, _repeated_items_codec);
- break;
- }
- case 786: {
- if (page_ == null) {
- Page = new global::Mint.Tulip.V1.SearchRequest.Types.Page();
- }
- input.ReadMessage(Page);
- break;
- }
- case 792: {
- Total = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- #region Nested types
- /// <summary>Container for nested types declared in the SearchResponse message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static partial class Types {
- public sealed partial class Item : pb::IMessage<Item>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Item> _parser = new pb::MessageParser<Item>(() => new Item());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser<Item> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Mint.Tulip.V1.SearchResponse.Descriptor.NestedTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Item() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Item(Item other) : this() {
- rank_ = other.rank_;
- highlight_ = other.highlight_;
- book_ = other.book_;
- paragraph_ = other.paragraph_;
- content_ = other.content_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public Item Clone() {
- return new Item(this);
- }
- /// <summary>Field number for the "rank" field.</summary>
- public const int RankFieldNumber = 1;
- private int rank_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Rank {
- get { return rank_; }
- set {
- rank_ = value;
- }
- }
- /// <summary>Field number for the "highlight" field.</summary>
- public const int HighlightFieldNumber = 2;
- private string highlight_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Highlight {
- get { return highlight_; }
- set {
- highlight_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "book" field.</summary>
- public const int BookFieldNumber = 3;
- private int book_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Book {
- get { return book_; }
- set {
- book_ = value;
- }
- }
- /// <summary>Field number for the "paragraph" field.</summary>
- public const int ParagraphFieldNumber = 4;
- private int paragraph_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int Paragraph {
- get { return paragraph_; }
- set {
- paragraph_ = value;
- }
- }
- /// <summary>Field number for the "content" field.</summary>
- public const int ContentFieldNumber = 5;
- private string content_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Content {
- get { return content_; }
- set {
- content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override bool Equals(object other) {
- return Equals(other as Item);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(Item other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Rank != other.Rank) return false;
- if (Highlight != other.Highlight) return false;
- if (Book != other.Book) return false;
- if (Paragraph != other.Paragraph) return false;
- if (Content != other.Content) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override int GetHashCode() {
- int hash = 1;
- if (Rank != 0) hash ^= Rank.GetHashCode();
- if (Highlight.Length != 0) hash ^= Highlight.GetHashCode();
- if (Book != 0) hash ^= Book.GetHashCode();
- if (Paragraph != 0) hash ^= Paragraph.GetHashCode();
- if (Content.Length != 0) hash ^= Content.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Rank != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Rank);
- }
- if (Highlight.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Highlight);
- }
- if (Book != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Book);
- }
- if (Paragraph != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(Paragraph);
- }
- if (Content.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(Content);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Rank != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Rank);
- }
- if (Highlight.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Highlight);
- }
- if (Book != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Book);
- }
- if (Paragraph != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(Paragraph);
- }
- if (Content.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(Content);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public int CalculateSize() {
- int size = 0;
- if (Rank != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
- }
- if (Highlight.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Highlight);
- }
- if (Book != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Book);
- }
- if (Paragraph != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Paragraph);
- }
- if (Content.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(Item other) {
- if (other == null) {
- return;
- }
- if (other.Rank != 0) {
- Rank = other.Rank;
- }
- if (other.Highlight.Length != 0) {
- Highlight = other.Highlight;
- }
- if (other.Book != 0) {
- Book = other.Book;
- }
- if (other.Paragraph != 0) {
- Paragraph = other.Paragraph;
- }
- if (other.Content.Length != 0) {
- Content = other.Content;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Rank = input.ReadInt32();
- break;
- }
- case 18: {
- Highlight = input.ReadString();
- break;
- }
- case 24: {
- Book = input.ReadInt32();
- break;
- }
- case 32: {
- Paragraph = input.ReadInt32();
- break;
- }
- case 42: {
- Content = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Rank = input.ReadInt32();
- break;
- }
- case 18: {
- Highlight = input.ReadString();
- break;
- }
- case 24: {
- Book = input.ReadInt32();
- break;
- }
- case 32: {
- Paragraph = input.ReadInt32();
- break;
- }
- case 42: {
- Content = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
- }
- }
- #endregion
- }
- #endregion
- }
- #endregion Designer generated code
|