tulip.pb.h 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: tulip.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_tulip_2eproto_2epb_2eh
  4. #define GOOGLE_PROTOBUF_INCLUDED_tulip_2eproto_2epb_2eh
  5. #include <limits>
  6. #include <string>
  7. #include <type_traits>
  8. #include "google/protobuf/port_def.inc"
  9. #if PROTOBUF_VERSION < 4024000
  10. #error "This file was generated by a newer version of protoc which is"
  11. #error "incompatible with your Protocol Buffer headers. Please update"
  12. #error "your headers."
  13. #endif // PROTOBUF_VERSION
  14. #if 4024003 < PROTOBUF_MIN_PROTOC_VERSION
  15. #error "This file was generated by an older version of protoc which is"
  16. #error "incompatible with your Protocol Buffer headers. Please"
  17. #error "regenerate this file with a newer version of protoc."
  18. #endif // PROTOBUF_MIN_PROTOC_VERSION
  19. #include "google/protobuf/port_undef.inc"
  20. #include "google/protobuf/io/coded_stream.h"
  21. #include "google/protobuf/arena.h"
  22. #include "google/protobuf/arenastring.h"
  23. #include "google/protobuf/generated_message_tctable_decl.h"
  24. #include "google/protobuf/generated_message_util.h"
  25. #include "google/protobuf/metadata_lite.h"
  26. #include "google/protobuf/generated_message_reflection.h"
  27. #include "google/protobuf/message.h"
  28. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  29. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  30. #include "google/protobuf/unknown_field_set.h"
  31. // @@protoc_insertion_point(includes)
  32. // Must be included last.
  33. #include "google/protobuf/port_def.inc"
  34. #define PROTOBUF_INTERNAL_EXPORT_tulip_2eproto
  35. namespace google {
  36. namespace protobuf {
  37. namespace internal {
  38. class AnyMetadata;
  39. } // namespace internal
  40. } // namespace protobuf
  41. } // namespace google
  42. // Internal implementation detail -- do not use these members.
  43. struct TableStruct_tulip_2eproto {
  44. static const ::uint32_t offsets[];
  45. };
  46. extern const ::google::protobuf::internal::DescriptorTable
  47. descriptor_table_tulip_2eproto;
  48. namespace mint {
  49. namespace tulip {
  50. namespace v1 {
  51. class SearchRequest;
  52. struct SearchRequestDefaultTypeInternal;
  53. extern SearchRequestDefaultTypeInternal _SearchRequest_default_instance_;
  54. class SearchRequest_Page;
  55. struct SearchRequest_PageDefaultTypeInternal;
  56. extern SearchRequest_PageDefaultTypeInternal _SearchRequest_Page_default_instance_;
  57. class SearchResponse;
  58. struct SearchResponseDefaultTypeInternal;
  59. extern SearchResponseDefaultTypeInternal _SearchResponse_default_instance_;
  60. class SearchResponse_Item;
  61. struct SearchResponse_ItemDefaultTypeInternal;
  62. extern SearchResponse_ItemDefaultTypeInternal _SearchResponse_Item_default_instance_;
  63. } // namespace v1
  64. } // namespace tulip
  65. } // namespace mint
  66. namespace google {
  67. namespace protobuf {
  68. } // namespace protobuf
  69. } // namespace google
  70. namespace mint {
  71. namespace tulip {
  72. namespace v1 {
  73. // ===================================================================
  74. // -------------------------------------------------------------------
  75. class SearchRequest_Page final :
  76. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mint.tulip.v1.SearchRequest.Page) */ {
  77. public:
  78. inline SearchRequest_Page() : SearchRequest_Page(nullptr) {}
  79. ~SearchRequest_Page() override;
  80. template<typename = void>
  81. explicit PROTOBUF_CONSTEXPR SearchRequest_Page(::google::protobuf::internal::ConstantInitialized);
  82. SearchRequest_Page(const SearchRequest_Page& from);
  83. SearchRequest_Page(SearchRequest_Page&& from) noexcept
  84. : SearchRequest_Page() {
  85. *this = ::std::move(from);
  86. }
  87. inline SearchRequest_Page& operator=(const SearchRequest_Page& from) {
  88. CopyFrom(from);
  89. return *this;
  90. }
  91. inline SearchRequest_Page& operator=(SearchRequest_Page&& from) noexcept {
  92. if (this == &from) return *this;
  93. if (GetOwningArena() == from.GetOwningArena()
  94. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  95. && GetOwningArena() != nullptr
  96. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  97. ) {
  98. InternalSwap(&from);
  99. } else {
  100. CopyFrom(from);
  101. }
  102. return *this;
  103. }
  104. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  105. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  106. }
  107. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  108. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  109. }
  110. static const ::google::protobuf::Descriptor* descriptor() {
  111. return GetDescriptor();
  112. }
  113. static const ::google::protobuf::Descriptor* GetDescriptor() {
  114. return default_instance().GetMetadata().descriptor;
  115. }
  116. static const ::google::protobuf::Reflection* GetReflection() {
  117. return default_instance().GetMetadata().reflection;
  118. }
  119. static const SearchRequest_Page& default_instance() {
  120. return *internal_default_instance();
  121. }
  122. static inline const SearchRequest_Page* internal_default_instance() {
  123. return reinterpret_cast<const SearchRequest_Page*>(
  124. &_SearchRequest_Page_default_instance_);
  125. }
  126. static constexpr int kIndexInFileMessages =
  127. 0;
  128. friend void swap(SearchRequest_Page& a, SearchRequest_Page& b) {
  129. a.Swap(&b);
  130. }
  131. inline void Swap(SearchRequest_Page* other) {
  132. if (other == this) return;
  133. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  134. if (GetOwningArena() != nullptr &&
  135. GetOwningArena() == other->GetOwningArena()) {
  136. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  137. if (GetOwningArena() == other->GetOwningArena()) {
  138. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  139. InternalSwap(other);
  140. } else {
  141. ::google::protobuf::internal::GenericSwap(this, other);
  142. }
  143. }
  144. void UnsafeArenaSwap(SearchRequest_Page* other) {
  145. if (other == this) return;
  146. ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
  147. InternalSwap(other);
  148. }
  149. // implements Message ----------------------------------------------
  150. SearchRequest_Page* New(::google::protobuf::Arena* arena = nullptr) const final {
  151. return CreateMaybeMessage<SearchRequest_Page>(arena);
  152. }
  153. using ::google::protobuf::Message::CopyFrom;
  154. void CopyFrom(const SearchRequest_Page& from);
  155. using ::google::protobuf::Message::MergeFrom;
  156. void MergeFrom( const SearchRequest_Page& from) {
  157. SearchRequest_Page::MergeImpl(*this, from);
  158. }
  159. private:
  160. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  161. public:
  162. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  163. bool IsInitialized() const final;
  164. ::size_t ByteSizeLong() const final;
  165. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  166. ::uint8_t* _InternalSerialize(
  167. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  168. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  169. private:
  170. void SharedCtor(::google::protobuf::Arena* arena);
  171. void SharedDtor();
  172. void SetCachedSize(int size) const final;
  173. void InternalSwap(SearchRequest_Page* other);
  174. private:
  175. friend class ::google::protobuf::internal::AnyMetadata;
  176. static ::absl::string_view FullMessageName() {
  177. return "mint.tulip.v1.SearchRequest.Page";
  178. }
  179. protected:
  180. explicit SearchRequest_Page(::google::protobuf::Arena* arena);
  181. public:
  182. static const ClassData _class_data_;
  183. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  184. ::google::protobuf::Metadata GetMetadata() const final;
  185. // nested types ----------------------------------------------------
  186. // accessors -------------------------------------------------------
  187. enum : int {
  188. kIndexFieldNumber = 1,
  189. kSizeFieldNumber = 2,
  190. };
  191. // int32 index = 1;
  192. void clear_index() ;
  193. ::int32_t index() const;
  194. void set_index(::int32_t value);
  195. private:
  196. ::int32_t _internal_index() const;
  197. void _internal_set_index(::int32_t value);
  198. public:
  199. // int32 size = 2;
  200. void clear_size() ;
  201. ::int32_t size() const;
  202. void set_size(::int32_t value);
  203. private:
  204. ::int32_t _internal_size() const;
  205. void _internal_set_size(::int32_t value);
  206. public:
  207. // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchRequest.Page)
  208. private:
  209. class _Internal;
  210. friend class ::google::protobuf::internal::TcParser;
  211. static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_;
  212. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  213. typedef void InternalArenaConstructable_;
  214. typedef void DestructorSkippable_;
  215. struct Impl_ {
  216. ::int32_t index_;
  217. ::int32_t size_;
  218. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  219. PROTOBUF_TSAN_DECLARE_MEMBER
  220. };
  221. union { Impl_ _impl_; };
  222. friend struct ::TableStruct_tulip_2eproto;
  223. };// -------------------------------------------------------------------
  224. class SearchRequest final :
  225. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mint.tulip.v1.SearchRequest) */ {
  226. public:
  227. inline SearchRequest() : SearchRequest(nullptr) {}
  228. ~SearchRequest() override;
  229. template<typename = void>
  230. explicit PROTOBUF_CONSTEXPR SearchRequest(::google::protobuf::internal::ConstantInitialized);
  231. SearchRequest(const SearchRequest& from);
  232. SearchRequest(SearchRequest&& from) noexcept
  233. : SearchRequest() {
  234. *this = ::std::move(from);
  235. }
  236. inline SearchRequest& operator=(const SearchRequest& from) {
  237. CopyFrom(from);
  238. return *this;
  239. }
  240. inline SearchRequest& operator=(SearchRequest&& from) noexcept {
  241. if (this == &from) return *this;
  242. if (GetOwningArena() == from.GetOwningArena()
  243. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  244. && GetOwningArena() != nullptr
  245. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  246. ) {
  247. InternalSwap(&from);
  248. } else {
  249. CopyFrom(from);
  250. }
  251. return *this;
  252. }
  253. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  254. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  255. }
  256. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  257. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  258. }
  259. static const ::google::protobuf::Descriptor* descriptor() {
  260. return GetDescriptor();
  261. }
  262. static const ::google::protobuf::Descriptor* GetDescriptor() {
  263. return default_instance().GetMetadata().descriptor;
  264. }
  265. static const ::google::protobuf::Reflection* GetReflection() {
  266. return default_instance().GetMetadata().reflection;
  267. }
  268. static const SearchRequest& default_instance() {
  269. return *internal_default_instance();
  270. }
  271. static inline const SearchRequest* internal_default_instance() {
  272. return reinterpret_cast<const SearchRequest*>(
  273. &_SearchRequest_default_instance_);
  274. }
  275. static constexpr int kIndexInFileMessages =
  276. 1;
  277. friend void swap(SearchRequest& a, SearchRequest& b) {
  278. a.Swap(&b);
  279. }
  280. inline void Swap(SearchRequest* other) {
  281. if (other == this) return;
  282. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  283. if (GetOwningArena() != nullptr &&
  284. GetOwningArena() == other->GetOwningArena()) {
  285. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  286. if (GetOwningArena() == other->GetOwningArena()) {
  287. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  288. InternalSwap(other);
  289. } else {
  290. ::google::protobuf::internal::GenericSwap(this, other);
  291. }
  292. }
  293. void UnsafeArenaSwap(SearchRequest* other) {
  294. if (other == this) return;
  295. ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
  296. InternalSwap(other);
  297. }
  298. // implements Message ----------------------------------------------
  299. SearchRequest* New(::google::protobuf::Arena* arena = nullptr) const final {
  300. return CreateMaybeMessage<SearchRequest>(arena);
  301. }
  302. using ::google::protobuf::Message::CopyFrom;
  303. void CopyFrom(const SearchRequest& from);
  304. using ::google::protobuf::Message::MergeFrom;
  305. void MergeFrom( const SearchRequest& from) {
  306. SearchRequest::MergeImpl(*this, from);
  307. }
  308. private:
  309. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  310. public:
  311. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  312. bool IsInitialized() const final;
  313. ::size_t ByteSizeLong() const final;
  314. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  315. ::uint8_t* _InternalSerialize(
  316. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  317. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  318. private:
  319. void SharedCtor(::google::protobuf::Arena* arena);
  320. void SharedDtor();
  321. void SetCachedSize(int size) const final;
  322. void InternalSwap(SearchRequest* other);
  323. private:
  324. friend class ::google::protobuf::internal::AnyMetadata;
  325. static ::absl::string_view FullMessageName() {
  326. return "mint.tulip.v1.SearchRequest";
  327. }
  328. protected:
  329. explicit SearchRequest(::google::protobuf::Arena* arena);
  330. public:
  331. static const ClassData _class_data_;
  332. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  333. ::google::protobuf::Metadata GetMetadata() const final;
  334. // nested types ----------------------------------------------------
  335. typedef SearchRequest_Page Page;
  336. // accessors -------------------------------------------------------
  337. enum : int {
  338. kKeywordsFieldNumber = 1,
  339. kPageFieldNumber = 99,
  340. kBookFieldNumber = 2,
  341. };
  342. // repeated string keywords = 1;
  343. int keywords_size() const;
  344. private:
  345. int _internal_keywords_size() const;
  346. public:
  347. void clear_keywords() ;
  348. const std::string& keywords(int index) const;
  349. std::string* mutable_keywords(int index);
  350. void set_keywords(int index, const std::string& value);
  351. void set_keywords(int index, std::string&& value);
  352. void set_keywords(int index, const char* value);
  353. void set_keywords(int index, const char* value, std::size_t size);
  354. void set_keywords(int index, absl::string_view value);
  355. std::string* add_keywords();
  356. void add_keywords(const std::string& value);
  357. void add_keywords(std::string&& value);
  358. void add_keywords(const char* value);
  359. void add_keywords(const char* value, std::size_t size);
  360. void add_keywords(absl::string_view value);
  361. const ::google::protobuf::RepeatedPtrField<std::string>& keywords() const;
  362. ::google::protobuf::RepeatedPtrField<std::string>* mutable_keywords();
  363. private:
  364. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_keywords() const;
  365. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_keywords();
  366. public:
  367. // optional .mint.tulip.v1.SearchRequest.Page page = 99;
  368. bool has_page() const;
  369. void clear_page() ;
  370. const ::mint::tulip::v1::SearchRequest_Page& page() const;
  371. PROTOBUF_NODISCARD ::mint::tulip::v1::SearchRequest_Page* release_page();
  372. ::mint::tulip::v1::SearchRequest_Page* mutable_page();
  373. void set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value);
  374. void unsafe_arena_set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value);
  375. ::mint::tulip::v1::SearchRequest_Page* unsafe_arena_release_page();
  376. private:
  377. const ::mint::tulip::v1::SearchRequest_Page& _internal_page() const;
  378. ::mint::tulip::v1::SearchRequest_Page* _internal_mutable_page();
  379. public:
  380. // int32 book = 2;
  381. void clear_book() ;
  382. ::int32_t book() const;
  383. void set_book(::int32_t value);
  384. private:
  385. ::int32_t _internal_book() const;
  386. void _internal_set_book(::int32_t value);
  387. public:
  388. // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchRequest)
  389. private:
  390. class _Internal;
  391. friend class ::google::protobuf::internal::TcParser;
  392. static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 44, 7> _table_;
  393. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  394. typedef void InternalArenaConstructable_;
  395. typedef void DestructorSkippable_;
  396. struct Impl_ {
  397. ::google::protobuf::internal::HasBits<1> _has_bits_;
  398. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  399. ::google::protobuf::RepeatedPtrField<std::string> keywords_;
  400. ::mint::tulip::v1::SearchRequest_Page* page_;
  401. ::int32_t book_;
  402. PROTOBUF_TSAN_DECLARE_MEMBER
  403. };
  404. union { Impl_ _impl_; };
  405. friend struct ::TableStruct_tulip_2eproto;
  406. };// -------------------------------------------------------------------
  407. class SearchResponse_Item final :
  408. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mint.tulip.v1.SearchResponse.Item) */ {
  409. public:
  410. inline SearchResponse_Item() : SearchResponse_Item(nullptr) {}
  411. ~SearchResponse_Item() override;
  412. template<typename = void>
  413. explicit PROTOBUF_CONSTEXPR SearchResponse_Item(::google::protobuf::internal::ConstantInitialized);
  414. SearchResponse_Item(const SearchResponse_Item& from);
  415. SearchResponse_Item(SearchResponse_Item&& from) noexcept
  416. : SearchResponse_Item() {
  417. *this = ::std::move(from);
  418. }
  419. inline SearchResponse_Item& operator=(const SearchResponse_Item& from) {
  420. CopyFrom(from);
  421. return *this;
  422. }
  423. inline SearchResponse_Item& operator=(SearchResponse_Item&& from) noexcept {
  424. if (this == &from) return *this;
  425. if (GetOwningArena() == from.GetOwningArena()
  426. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  427. && GetOwningArena() != nullptr
  428. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  429. ) {
  430. InternalSwap(&from);
  431. } else {
  432. CopyFrom(from);
  433. }
  434. return *this;
  435. }
  436. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  437. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  438. }
  439. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  440. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  441. }
  442. static const ::google::protobuf::Descriptor* descriptor() {
  443. return GetDescriptor();
  444. }
  445. static const ::google::protobuf::Descriptor* GetDescriptor() {
  446. return default_instance().GetMetadata().descriptor;
  447. }
  448. static const ::google::protobuf::Reflection* GetReflection() {
  449. return default_instance().GetMetadata().reflection;
  450. }
  451. static const SearchResponse_Item& default_instance() {
  452. return *internal_default_instance();
  453. }
  454. static inline const SearchResponse_Item* internal_default_instance() {
  455. return reinterpret_cast<const SearchResponse_Item*>(
  456. &_SearchResponse_Item_default_instance_);
  457. }
  458. static constexpr int kIndexInFileMessages =
  459. 2;
  460. friend void swap(SearchResponse_Item& a, SearchResponse_Item& b) {
  461. a.Swap(&b);
  462. }
  463. inline void Swap(SearchResponse_Item* other) {
  464. if (other == this) return;
  465. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  466. if (GetOwningArena() != nullptr &&
  467. GetOwningArena() == other->GetOwningArena()) {
  468. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  469. if (GetOwningArena() == other->GetOwningArena()) {
  470. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  471. InternalSwap(other);
  472. } else {
  473. ::google::protobuf::internal::GenericSwap(this, other);
  474. }
  475. }
  476. void UnsafeArenaSwap(SearchResponse_Item* other) {
  477. if (other == this) return;
  478. ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
  479. InternalSwap(other);
  480. }
  481. // implements Message ----------------------------------------------
  482. SearchResponse_Item* New(::google::protobuf::Arena* arena = nullptr) const final {
  483. return CreateMaybeMessage<SearchResponse_Item>(arena);
  484. }
  485. using ::google::protobuf::Message::CopyFrom;
  486. void CopyFrom(const SearchResponse_Item& from);
  487. using ::google::protobuf::Message::MergeFrom;
  488. void MergeFrom( const SearchResponse_Item& from) {
  489. SearchResponse_Item::MergeImpl(*this, from);
  490. }
  491. private:
  492. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  493. public:
  494. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  495. bool IsInitialized() const final;
  496. ::size_t ByteSizeLong() const final;
  497. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  498. ::uint8_t* _InternalSerialize(
  499. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  500. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  501. private:
  502. void SharedCtor(::google::protobuf::Arena* arena);
  503. void SharedDtor();
  504. void SetCachedSize(int size) const final;
  505. void InternalSwap(SearchResponse_Item* other);
  506. private:
  507. friend class ::google::protobuf::internal::AnyMetadata;
  508. static ::absl::string_view FullMessageName() {
  509. return "mint.tulip.v1.SearchResponse.Item";
  510. }
  511. protected:
  512. explicit SearchResponse_Item(::google::protobuf::Arena* arena);
  513. public:
  514. static const ClassData _class_data_;
  515. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  516. ::google::protobuf::Metadata GetMetadata() const final;
  517. // nested types ----------------------------------------------------
  518. // accessors -------------------------------------------------------
  519. enum : int {
  520. kHighlightFieldNumber = 2,
  521. kContentFieldNumber = 5,
  522. kRankFieldNumber = 1,
  523. kBookFieldNumber = 3,
  524. kParagraphFieldNumber = 4,
  525. };
  526. // string highlight = 2;
  527. void clear_highlight() ;
  528. const std::string& highlight() const;
  529. template <typename Arg_ = const std::string&, typename... Args_>
  530. void set_highlight(Arg_&& arg, Args_... args);
  531. std::string* mutable_highlight();
  532. PROTOBUF_NODISCARD std::string* release_highlight();
  533. void set_allocated_highlight(std::string* ptr);
  534. private:
  535. const std::string& _internal_highlight() const;
  536. inline PROTOBUF_ALWAYS_INLINE void _internal_set_highlight(
  537. const std::string& value);
  538. std::string* _internal_mutable_highlight();
  539. public:
  540. // string content = 5;
  541. void clear_content() ;
  542. const std::string& content() const;
  543. template <typename Arg_ = const std::string&, typename... Args_>
  544. void set_content(Arg_&& arg, Args_... args);
  545. std::string* mutable_content();
  546. PROTOBUF_NODISCARD std::string* release_content();
  547. void set_allocated_content(std::string* ptr);
  548. private:
  549. const std::string& _internal_content() const;
  550. inline PROTOBUF_ALWAYS_INLINE void _internal_set_content(
  551. const std::string& value);
  552. std::string* _internal_mutable_content();
  553. public:
  554. // int32 rank = 1;
  555. void clear_rank() ;
  556. ::int32_t rank() const;
  557. void set_rank(::int32_t value);
  558. private:
  559. ::int32_t _internal_rank() const;
  560. void _internal_set_rank(::int32_t value);
  561. public:
  562. // int32 book = 3;
  563. void clear_book() ;
  564. ::int32_t book() const;
  565. void set_book(::int32_t value);
  566. private:
  567. ::int32_t _internal_book() const;
  568. void _internal_set_book(::int32_t value);
  569. public:
  570. // int32 paragraph = 4;
  571. void clear_paragraph() ;
  572. ::int32_t paragraph() const;
  573. void set_paragraph(::int32_t value);
  574. private:
  575. ::int32_t _internal_paragraph() const;
  576. void _internal_set_paragraph(::int32_t value);
  577. public:
  578. // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchResponse.Item)
  579. private:
  580. class _Internal;
  581. friend class ::google::protobuf::internal::TcParser;
  582. static const ::google::protobuf::internal::TcParseTable<3, 5, 0, 58, 2> _table_;
  583. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  584. typedef void InternalArenaConstructable_;
  585. typedef void DestructorSkippable_;
  586. struct Impl_ {
  587. ::google::protobuf::internal::ArenaStringPtr highlight_;
  588. ::google::protobuf::internal::ArenaStringPtr content_;
  589. ::int32_t rank_;
  590. ::int32_t book_;
  591. ::int32_t paragraph_;
  592. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  593. PROTOBUF_TSAN_DECLARE_MEMBER
  594. };
  595. union { Impl_ _impl_; };
  596. friend struct ::TableStruct_tulip_2eproto;
  597. };// -------------------------------------------------------------------
  598. class SearchResponse final :
  599. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mint.tulip.v1.SearchResponse) */ {
  600. public:
  601. inline SearchResponse() : SearchResponse(nullptr) {}
  602. ~SearchResponse() override;
  603. template<typename = void>
  604. explicit PROTOBUF_CONSTEXPR SearchResponse(::google::protobuf::internal::ConstantInitialized);
  605. SearchResponse(const SearchResponse& from);
  606. SearchResponse(SearchResponse&& from) noexcept
  607. : SearchResponse() {
  608. *this = ::std::move(from);
  609. }
  610. inline SearchResponse& operator=(const SearchResponse& from) {
  611. CopyFrom(from);
  612. return *this;
  613. }
  614. inline SearchResponse& operator=(SearchResponse&& from) noexcept {
  615. if (this == &from) return *this;
  616. if (GetOwningArena() == from.GetOwningArena()
  617. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  618. && GetOwningArena() != nullptr
  619. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  620. ) {
  621. InternalSwap(&from);
  622. } else {
  623. CopyFrom(from);
  624. }
  625. return *this;
  626. }
  627. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  628. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  629. }
  630. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  631. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  632. }
  633. static const ::google::protobuf::Descriptor* descriptor() {
  634. return GetDescriptor();
  635. }
  636. static const ::google::protobuf::Descriptor* GetDescriptor() {
  637. return default_instance().GetMetadata().descriptor;
  638. }
  639. static const ::google::protobuf::Reflection* GetReflection() {
  640. return default_instance().GetMetadata().reflection;
  641. }
  642. static const SearchResponse& default_instance() {
  643. return *internal_default_instance();
  644. }
  645. static inline const SearchResponse* internal_default_instance() {
  646. return reinterpret_cast<const SearchResponse*>(
  647. &_SearchResponse_default_instance_);
  648. }
  649. static constexpr int kIndexInFileMessages =
  650. 3;
  651. friend void swap(SearchResponse& a, SearchResponse& b) {
  652. a.Swap(&b);
  653. }
  654. inline void Swap(SearchResponse* other) {
  655. if (other == this) return;
  656. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  657. if (GetOwningArena() != nullptr &&
  658. GetOwningArena() == other->GetOwningArena()) {
  659. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  660. if (GetOwningArena() == other->GetOwningArena()) {
  661. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  662. InternalSwap(other);
  663. } else {
  664. ::google::protobuf::internal::GenericSwap(this, other);
  665. }
  666. }
  667. void UnsafeArenaSwap(SearchResponse* other) {
  668. if (other == this) return;
  669. ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
  670. InternalSwap(other);
  671. }
  672. // implements Message ----------------------------------------------
  673. SearchResponse* New(::google::protobuf::Arena* arena = nullptr) const final {
  674. return CreateMaybeMessage<SearchResponse>(arena);
  675. }
  676. using ::google::protobuf::Message::CopyFrom;
  677. void CopyFrom(const SearchResponse& from);
  678. using ::google::protobuf::Message::MergeFrom;
  679. void MergeFrom( const SearchResponse& from) {
  680. SearchResponse::MergeImpl(*this, from);
  681. }
  682. private:
  683. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  684. public:
  685. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  686. bool IsInitialized() const final;
  687. ::size_t ByteSizeLong() const final;
  688. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  689. ::uint8_t* _InternalSerialize(
  690. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  691. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  692. private:
  693. void SharedCtor(::google::protobuf::Arena* arena);
  694. void SharedDtor();
  695. void SetCachedSize(int size) const final;
  696. void InternalSwap(SearchResponse* other);
  697. private:
  698. friend class ::google::protobuf::internal::AnyMetadata;
  699. static ::absl::string_view FullMessageName() {
  700. return "mint.tulip.v1.SearchResponse";
  701. }
  702. protected:
  703. explicit SearchResponse(::google::protobuf::Arena* arena);
  704. public:
  705. static const ClassData _class_data_;
  706. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  707. ::google::protobuf::Metadata GetMetadata() const final;
  708. // nested types ----------------------------------------------------
  709. typedef SearchResponse_Item Item;
  710. // accessors -------------------------------------------------------
  711. enum : int {
  712. kItemsFieldNumber = 1,
  713. kPageFieldNumber = 98,
  714. kTotalFieldNumber = 99,
  715. };
  716. // repeated .mint.tulip.v1.SearchResponse.Item items = 1;
  717. int items_size() const;
  718. private:
  719. int _internal_items_size() const;
  720. public:
  721. void clear_items() ;
  722. ::mint::tulip::v1::SearchResponse_Item* mutable_items(int index);
  723. ::google::protobuf::RepeatedPtrField< ::mint::tulip::v1::SearchResponse_Item >*
  724. mutable_items();
  725. private:
  726. const ::google::protobuf::RepeatedPtrField<::mint::tulip::v1::SearchResponse_Item>& _internal_items() const;
  727. ::google::protobuf::RepeatedPtrField<::mint::tulip::v1::SearchResponse_Item>* _internal_mutable_items();
  728. public:
  729. const ::mint::tulip::v1::SearchResponse_Item& items(int index) const;
  730. ::mint::tulip::v1::SearchResponse_Item* add_items();
  731. const ::google::protobuf::RepeatedPtrField< ::mint::tulip::v1::SearchResponse_Item >&
  732. items() const;
  733. // .mint.tulip.v1.SearchRequest.Page page = 98;
  734. bool has_page() const;
  735. void clear_page() ;
  736. const ::mint::tulip::v1::SearchRequest_Page& page() const;
  737. PROTOBUF_NODISCARD ::mint::tulip::v1::SearchRequest_Page* release_page();
  738. ::mint::tulip::v1::SearchRequest_Page* mutable_page();
  739. void set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value);
  740. void unsafe_arena_set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value);
  741. ::mint::tulip::v1::SearchRequest_Page* unsafe_arena_release_page();
  742. private:
  743. const ::mint::tulip::v1::SearchRequest_Page& _internal_page() const;
  744. ::mint::tulip::v1::SearchRequest_Page* _internal_mutable_page();
  745. public:
  746. // int32 total = 99;
  747. void clear_total() ;
  748. ::int32_t total() const;
  749. void set_total(::int32_t value);
  750. private:
  751. ::int32_t _internal_total() const;
  752. void _internal_set_total(::int32_t value);
  753. public:
  754. // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchResponse)
  755. private:
  756. class _Internal;
  757. friend class ::google::protobuf::internal::TcParser;
  758. static const ::google::protobuf::internal::TcParseTable<2, 3, 2, 0, 7> _table_;
  759. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  760. typedef void InternalArenaConstructable_;
  761. typedef void DestructorSkippable_;
  762. struct Impl_ {
  763. ::google::protobuf::internal::HasBits<1> _has_bits_;
  764. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  765. ::google::protobuf::RepeatedPtrField< ::mint::tulip::v1::SearchResponse_Item > items_;
  766. ::mint::tulip::v1::SearchRequest_Page* page_;
  767. ::int32_t total_;
  768. PROTOBUF_TSAN_DECLARE_MEMBER
  769. };
  770. union { Impl_ _impl_; };
  771. friend struct ::TableStruct_tulip_2eproto;
  772. };
  773. // ===================================================================
  774. // ===================================================================
  775. #ifdef __GNUC__
  776. #pragma GCC diagnostic push
  777. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  778. #endif // __GNUC__
  779. // -------------------------------------------------------------------
  780. // SearchRequest_Page
  781. // int32 index = 1;
  782. inline void SearchRequest_Page::clear_index() {
  783. _impl_.index_ = 0;
  784. }
  785. inline ::int32_t SearchRequest_Page::index() const {
  786. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchRequest.Page.index)
  787. return _internal_index();
  788. }
  789. inline void SearchRequest_Page::set_index(::int32_t value) {
  790. _internal_set_index(value);
  791. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchRequest.Page.index)
  792. }
  793. inline ::int32_t SearchRequest_Page::_internal_index() const {
  794. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  795. return _impl_.index_;
  796. }
  797. inline void SearchRequest_Page::_internal_set_index(::int32_t value) {
  798. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  799. ;
  800. _impl_.index_ = value;
  801. }
  802. // int32 size = 2;
  803. inline void SearchRequest_Page::clear_size() {
  804. _impl_.size_ = 0;
  805. }
  806. inline ::int32_t SearchRequest_Page::size() const {
  807. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchRequest.Page.size)
  808. return _internal_size();
  809. }
  810. inline void SearchRequest_Page::set_size(::int32_t value) {
  811. _internal_set_size(value);
  812. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchRequest.Page.size)
  813. }
  814. inline ::int32_t SearchRequest_Page::_internal_size() const {
  815. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  816. return _impl_.size_;
  817. }
  818. inline void SearchRequest_Page::_internal_set_size(::int32_t value) {
  819. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  820. ;
  821. _impl_.size_ = value;
  822. }
  823. // -------------------------------------------------------------------
  824. // SearchRequest
  825. // repeated string keywords = 1;
  826. inline int SearchRequest::_internal_keywords_size() const {
  827. return _internal_keywords().size();
  828. }
  829. inline int SearchRequest::keywords_size() const {
  830. return _internal_keywords_size();
  831. }
  832. inline void SearchRequest::clear_keywords() {
  833. _internal_mutable_keywords()->Clear();
  834. }
  835. inline std::string* SearchRequest::add_keywords() {
  836. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  837. std::string* _s = _internal_mutable_keywords()->Add();
  838. // @@protoc_insertion_point(field_add_mutable:mint.tulip.v1.SearchRequest.keywords)
  839. return _s;
  840. }
  841. inline const std::string& SearchRequest::keywords(int index) const {
  842. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchRequest.keywords)
  843. return _internal_keywords().Get(index);
  844. }
  845. inline std::string* SearchRequest::mutable_keywords(int index) {
  846. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchRequest.keywords)
  847. return _internal_mutable_keywords()->Mutable(index);
  848. }
  849. inline void SearchRequest::set_keywords(int index, const std::string& value) {
  850. _internal_mutable_keywords()->Mutable(index)->assign(value);
  851. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchRequest.keywords)
  852. }
  853. inline void SearchRequest::set_keywords(int index, std::string&& value) {
  854. _internal_mutable_keywords()->Mutable(index)->assign(std::move(value));
  855. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchRequest.keywords)
  856. }
  857. inline void SearchRequest::set_keywords(int index, const char* value) {
  858. ABSL_DCHECK(value != nullptr);
  859. _internal_mutable_keywords()->Mutable(index)->assign(value);
  860. // @@protoc_insertion_point(field_set_char:mint.tulip.v1.SearchRequest.keywords)
  861. }
  862. inline void SearchRequest::set_keywords(int index, const char* value,
  863. std::size_t size) {
  864. _internal_mutable_keywords()->Mutable(index)->assign(
  865. reinterpret_cast<const char*>(value), size);
  866. // @@protoc_insertion_point(field_set_pointer:mint.tulip.v1.SearchRequest.keywords)
  867. }
  868. inline void SearchRequest::set_keywords(int index, absl::string_view value) {
  869. _internal_mutable_keywords()->Mutable(index)->assign(value.data(),
  870. value.size());
  871. // @@protoc_insertion_point(field_set_string_piece:mint.tulip.v1.SearchRequest.keywords)
  872. }
  873. inline void SearchRequest::add_keywords(const std::string& value) {
  874. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  875. _internal_mutable_keywords()->Add()->assign(value);
  876. // @@protoc_insertion_point(field_add:mint.tulip.v1.SearchRequest.keywords)
  877. }
  878. inline void SearchRequest::add_keywords(std::string&& value) {
  879. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  880. _internal_mutable_keywords()->Add(std::move(value));
  881. // @@protoc_insertion_point(field_add:mint.tulip.v1.SearchRequest.keywords)
  882. }
  883. inline void SearchRequest::add_keywords(const char* value) {
  884. ABSL_DCHECK(value != nullptr);
  885. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  886. _internal_mutable_keywords()->Add()->assign(value);
  887. // @@protoc_insertion_point(field_add_char:mint.tulip.v1.SearchRequest.keywords)
  888. }
  889. inline void SearchRequest::add_keywords(const char* value, std::size_t size) {
  890. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  891. _internal_mutable_keywords()->Add()->assign(
  892. reinterpret_cast<const char*>(value), size);
  893. // @@protoc_insertion_point(field_add_pointer:mint.tulip.v1.SearchRequest.keywords)
  894. }
  895. inline void SearchRequest::add_keywords(absl::string_view value) {
  896. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  897. _internal_mutable_keywords()->Add()->assign(value.data(), value.size());
  898. // @@protoc_insertion_point(field_add_string_piece:mint.tulip.v1.SearchRequest.keywords)
  899. }
  900. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  901. SearchRequest::keywords() const {
  902. // @@protoc_insertion_point(field_list:mint.tulip.v1.SearchRequest.keywords)
  903. return _internal_keywords();
  904. }
  905. inline ::google::protobuf::RepeatedPtrField<std::string>* SearchRequest::mutable_keywords() {
  906. // @@protoc_insertion_point(field_mutable_list:mint.tulip.v1.SearchRequest.keywords)
  907. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  908. return _internal_mutable_keywords();
  909. }
  910. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  911. SearchRequest::_internal_keywords() const {
  912. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  913. return _impl_.keywords_;
  914. }
  915. inline ::google::protobuf::RepeatedPtrField<std::string>*
  916. SearchRequest::_internal_mutable_keywords() {
  917. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  918. return &_impl_.keywords_;
  919. }
  920. // int32 book = 2;
  921. inline void SearchRequest::clear_book() {
  922. _impl_.book_ = 0;
  923. }
  924. inline ::int32_t SearchRequest::book() const {
  925. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchRequest.book)
  926. return _internal_book();
  927. }
  928. inline void SearchRequest::set_book(::int32_t value) {
  929. _internal_set_book(value);
  930. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchRequest.book)
  931. }
  932. inline ::int32_t SearchRequest::_internal_book() const {
  933. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  934. return _impl_.book_;
  935. }
  936. inline void SearchRequest::_internal_set_book(::int32_t value) {
  937. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  938. ;
  939. _impl_.book_ = value;
  940. }
  941. // optional .mint.tulip.v1.SearchRequest.Page page = 99;
  942. inline bool SearchRequest::has_page() const {
  943. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  944. PROTOBUF_ASSUME(!value || _impl_.page_ != nullptr);
  945. return value;
  946. }
  947. inline void SearchRequest::clear_page() {
  948. if (_impl_.page_ != nullptr) _impl_.page_->Clear();
  949. _impl_._has_bits_[0] &= ~0x00000001u;
  950. }
  951. inline const ::mint::tulip::v1::SearchRequest_Page& SearchRequest::_internal_page() const {
  952. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  953. const ::mint::tulip::v1::SearchRequest_Page* p = _impl_.page_;
  954. return p != nullptr ? *p : reinterpret_cast<const ::mint::tulip::v1::SearchRequest_Page&>(::mint::tulip::v1::_SearchRequest_Page_default_instance_);
  955. }
  956. inline const ::mint::tulip::v1::SearchRequest_Page& SearchRequest::page() const {
  957. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchRequest.page)
  958. return _internal_page();
  959. }
  960. inline void SearchRequest::unsafe_arena_set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value) {
  961. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  962. if (GetArenaForAllocation() == nullptr) {
  963. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.page_);
  964. }
  965. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value);
  966. if (value != nullptr) {
  967. _impl_._has_bits_[0] |= 0x00000001u;
  968. } else {
  969. _impl_._has_bits_[0] &= ~0x00000001u;
  970. }
  971. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mint.tulip.v1.SearchRequest.page)
  972. }
  973. inline ::mint::tulip::v1::SearchRequest_Page* SearchRequest::release_page() {
  974. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  975. _impl_._has_bits_[0] &= ~0x00000001u;
  976. ::mint::tulip::v1::SearchRequest_Page* released = _impl_.page_;
  977. _impl_.page_ = nullptr;
  978. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  979. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  980. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  981. if (GetArenaForAllocation() == nullptr) {
  982. delete old;
  983. }
  984. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  985. if (GetArenaForAllocation() != nullptr) {
  986. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  987. }
  988. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  989. return released;
  990. }
  991. inline ::mint::tulip::v1::SearchRequest_Page* SearchRequest::unsafe_arena_release_page() {
  992. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  993. // @@protoc_insertion_point(field_release:mint.tulip.v1.SearchRequest.page)
  994. _impl_._has_bits_[0] &= ~0x00000001u;
  995. ::mint::tulip::v1::SearchRequest_Page* temp = _impl_.page_;
  996. _impl_.page_ = nullptr;
  997. return temp;
  998. }
  999. inline ::mint::tulip::v1::SearchRequest_Page* SearchRequest::_internal_mutable_page() {
  1000. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1001. _impl_._has_bits_[0] |= 0x00000001u;
  1002. if (_impl_.page_ == nullptr) {
  1003. auto* p = CreateMaybeMessage<::mint::tulip::v1::SearchRequest_Page>(GetArenaForAllocation());
  1004. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(p);
  1005. }
  1006. return _impl_.page_;
  1007. }
  1008. inline ::mint::tulip::v1::SearchRequest_Page* SearchRequest::mutable_page() {
  1009. ::mint::tulip::v1::SearchRequest_Page* _msg = _internal_mutable_page();
  1010. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchRequest.page)
  1011. return _msg;
  1012. }
  1013. inline void SearchRequest::set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value) {
  1014. ::google::protobuf::Arena* message_arena = GetArenaForAllocation();
  1015. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1016. if (message_arena == nullptr) {
  1017. delete reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(_impl_.page_);
  1018. }
  1019. if (value != nullptr) {
  1020. ::google::protobuf::Arena* submessage_arena =
  1021. ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value));
  1022. if (message_arena != submessage_arena) {
  1023. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1024. }
  1025. _impl_._has_bits_[0] |= 0x00000001u;
  1026. } else {
  1027. _impl_._has_bits_[0] &= ~0x00000001u;
  1028. }
  1029. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value);
  1030. // @@protoc_insertion_point(field_set_allocated:mint.tulip.v1.SearchRequest.page)
  1031. }
  1032. // -------------------------------------------------------------------
  1033. // SearchResponse_Item
  1034. // int32 rank = 1;
  1035. inline void SearchResponse_Item::clear_rank() {
  1036. _impl_.rank_ = 0;
  1037. }
  1038. inline ::int32_t SearchResponse_Item::rank() const {
  1039. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.Item.rank)
  1040. return _internal_rank();
  1041. }
  1042. inline void SearchResponse_Item::set_rank(::int32_t value) {
  1043. _internal_set_rank(value);
  1044. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.Item.rank)
  1045. }
  1046. inline ::int32_t SearchResponse_Item::_internal_rank() const {
  1047. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1048. return _impl_.rank_;
  1049. }
  1050. inline void SearchResponse_Item::_internal_set_rank(::int32_t value) {
  1051. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1052. ;
  1053. _impl_.rank_ = value;
  1054. }
  1055. // string highlight = 2;
  1056. inline void SearchResponse_Item::clear_highlight() {
  1057. _impl_.highlight_.ClearToEmpty();
  1058. }
  1059. inline const std::string& SearchResponse_Item::highlight() const {
  1060. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.Item.highlight)
  1061. return _internal_highlight();
  1062. }
  1063. template <typename Arg_, typename... Args_>
  1064. inline PROTOBUF_ALWAYS_INLINE void SearchResponse_Item::set_highlight(Arg_&& arg,
  1065. Args_... args) {
  1066. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1067. ;
  1068. _impl_.highlight_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  1069. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.Item.highlight)
  1070. }
  1071. inline std::string* SearchResponse_Item::mutable_highlight() {
  1072. std::string* _s = _internal_mutable_highlight();
  1073. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchResponse.Item.highlight)
  1074. return _s;
  1075. }
  1076. inline const std::string& SearchResponse_Item::_internal_highlight() const {
  1077. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1078. return _impl_.highlight_.Get();
  1079. }
  1080. inline void SearchResponse_Item::_internal_set_highlight(const std::string& value) {
  1081. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1082. ;
  1083. _impl_.highlight_.Set(value, GetArenaForAllocation());
  1084. }
  1085. inline std::string* SearchResponse_Item::_internal_mutable_highlight() {
  1086. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1087. ;
  1088. return _impl_.highlight_.Mutable( GetArenaForAllocation());
  1089. }
  1090. inline std::string* SearchResponse_Item::release_highlight() {
  1091. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1092. // @@protoc_insertion_point(field_release:mint.tulip.v1.SearchResponse.Item.highlight)
  1093. return _impl_.highlight_.Release();
  1094. }
  1095. inline void SearchResponse_Item::set_allocated_highlight(std::string* value) {
  1096. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1097. _impl_.highlight_.SetAllocated(value, GetArenaForAllocation());
  1098. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1099. if (_impl_.highlight_.IsDefault()) {
  1100. _impl_.highlight_.Set("", GetArenaForAllocation());
  1101. }
  1102. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1103. // @@protoc_insertion_point(field_set_allocated:mint.tulip.v1.SearchResponse.Item.highlight)
  1104. }
  1105. // int32 book = 3;
  1106. inline void SearchResponse_Item::clear_book() {
  1107. _impl_.book_ = 0;
  1108. }
  1109. inline ::int32_t SearchResponse_Item::book() const {
  1110. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.Item.book)
  1111. return _internal_book();
  1112. }
  1113. inline void SearchResponse_Item::set_book(::int32_t value) {
  1114. _internal_set_book(value);
  1115. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.Item.book)
  1116. }
  1117. inline ::int32_t SearchResponse_Item::_internal_book() const {
  1118. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1119. return _impl_.book_;
  1120. }
  1121. inline void SearchResponse_Item::_internal_set_book(::int32_t value) {
  1122. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1123. ;
  1124. _impl_.book_ = value;
  1125. }
  1126. // int32 paragraph = 4;
  1127. inline void SearchResponse_Item::clear_paragraph() {
  1128. _impl_.paragraph_ = 0;
  1129. }
  1130. inline ::int32_t SearchResponse_Item::paragraph() const {
  1131. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.Item.paragraph)
  1132. return _internal_paragraph();
  1133. }
  1134. inline void SearchResponse_Item::set_paragraph(::int32_t value) {
  1135. _internal_set_paragraph(value);
  1136. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.Item.paragraph)
  1137. }
  1138. inline ::int32_t SearchResponse_Item::_internal_paragraph() const {
  1139. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1140. return _impl_.paragraph_;
  1141. }
  1142. inline void SearchResponse_Item::_internal_set_paragraph(::int32_t value) {
  1143. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1144. ;
  1145. _impl_.paragraph_ = value;
  1146. }
  1147. // string content = 5;
  1148. inline void SearchResponse_Item::clear_content() {
  1149. _impl_.content_.ClearToEmpty();
  1150. }
  1151. inline const std::string& SearchResponse_Item::content() const {
  1152. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.Item.content)
  1153. return _internal_content();
  1154. }
  1155. template <typename Arg_, typename... Args_>
  1156. inline PROTOBUF_ALWAYS_INLINE void SearchResponse_Item::set_content(Arg_&& arg,
  1157. Args_... args) {
  1158. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1159. ;
  1160. _impl_.content_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
  1161. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.Item.content)
  1162. }
  1163. inline std::string* SearchResponse_Item::mutable_content() {
  1164. std::string* _s = _internal_mutable_content();
  1165. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchResponse.Item.content)
  1166. return _s;
  1167. }
  1168. inline const std::string& SearchResponse_Item::_internal_content() const {
  1169. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1170. return _impl_.content_.Get();
  1171. }
  1172. inline void SearchResponse_Item::_internal_set_content(const std::string& value) {
  1173. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1174. ;
  1175. _impl_.content_.Set(value, GetArenaForAllocation());
  1176. }
  1177. inline std::string* SearchResponse_Item::_internal_mutable_content() {
  1178. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1179. ;
  1180. return _impl_.content_.Mutable( GetArenaForAllocation());
  1181. }
  1182. inline std::string* SearchResponse_Item::release_content() {
  1183. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1184. // @@protoc_insertion_point(field_release:mint.tulip.v1.SearchResponse.Item.content)
  1185. return _impl_.content_.Release();
  1186. }
  1187. inline void SearchResponse_Item::set_allocated_content(std::string* value) {
  1188. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1189. _impl_.content_.SetAllocated(value, GetArenaForAllocation());
  1190. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1191. if (_impl_.content_.IsDefault()) {
  1192. _impl_.content_.Set("", GetArenaForAllocation());
  1193. }
  1194. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1195. // @@protoc_insertion_point(field_set_allocated:mint.tulip.v1.SearchResponse.Item.content)
  1196. }
  1197. // -------------------------------------------------------------------
  1198. // SearchResponse
  1199. // repeated .mint.tulip.v1.SearchResponse.Item items = 1;
  1200. inline int SearchResponse::_internal_items_size() const {
  1201. return _internal_items().size();
  1202. }
  1203. inline int SearchResponse::items_size() const {
  1204. return _internal_items_size();
  1205. }
  1206. inline void SearchResponse::clear_items() {
  1207. _internal_mutable_items()->Clear();
  1208. }
  1209. inline ::mint::tulip::v1::SearchResponse_Item* SearchResponse::mutable_items(int index) {
  1210. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchResponse.items)
  1211. return _internal_mutable_items()->Mutable(index);
  1212. }
  1213. inline ::google::protobuf::RepeatedPtrField< ::mint::tulip::v1::SearchResponse_Item >*
  1214. SearchResponse::mutable_items() {
  1215. // @@protoc_insertion_point(field_mutable_list:mint.tulip.v1.SearchResponse.items)
  1216. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1217. return _internal_mutable_items();
  1218. }
  1219. inline const ::mint::tulip::v1::SearchResponse_Item& SearchResponse::items(int index) const {
  1220. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.items)
  1221. return _internal_items().Get(index);
  1222. }
  1223. inline ::mint::tulip::v1::SearchResponse_Item* SearchResponse::add_items() {
  1224. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1225. ::mint::tulip::v1::SearchResponse_Item* _add = _internal_mutable_items()->Add();
  1226. // @@protoc_insertion_point(field_add:mint.tulip.v1.SearchResponse.items)
  1227. return _add;
  1228. }
  1229. inline const ::google::protobuf::RepeatedPtrField< ::mint::tulip::v1::SearchResponse_Item >&
  1230. SearchResponse::items() const {
  1231. // @@protoc_insertion_point(field_list:mint.tulip.v1.SearchResponse.items)
  1232. return _internal_items();
  1233. }
  1234. inline const ::google::protobuf::RepeatedPtrField<::mint::tulip::v1::SearchResponse_Item>&
  1235. SearchResponse::_internal_items() const {
  1236. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1237. return _impl_.items_;
  1238. }
  1239. inline ::google::protobuf::RepeatedPtrField<::mint::tulip::v1::SearchResponse_Item>*
  1240. SearchResponse::_internal_mutable_items() {
  1241. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1242. return &_impl_.items_;
  1243. }
  1244. // .mint.tulip.v1.SearchRequest.Page page = 98;
  1245. inline bool SearchResponse::has_page() const {
  1246. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1247. PROTOBUF_ASSUME(!value || _impl_.page_ != nullptr);
  1248. return value;
  1249. }
  1250. inline void SearchResponse::clear_page() {
  1251. if (_impl_.page_ != nullptr) _impl_.page_->Clear();
  1252. _impl_._has_bits_[0] &= ~0x00000001u;
  1253. }
  1254. inline const ::mint::tulip::v1::SearchRequest_Page& SearchResponse::_internal_page() const {
  1255. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1256. const ::mint::tulip::v1::SearchRequest_Page* p = _impl_.page_;
  1257. return p != nullptr ? *p : reinterpret_cast<const ::mint::tulip::v1::SearchRequest_Page&>(::mint::tulip::v1::_SearchRequest_Page_default_instance_);
  1258. }
  1259. inline const ::mint::tulip::v1::SearchRequest_Page& SearchResponse::page() const {
  1260. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.page)
  1261. return _internal_page();
  1262. }
  1263. inline void SearchResponse::unsafe_arena_set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value) {
  1264. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1265. if (GetArenaForAllocation() == nullptr) {
  1266. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.page_);
  1267. }
  1268. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value);
  1269. if (value != nullptr) {
  1270. _impl_._has_bits_[0] |= 0x00000001u;
  1271. } else {
  1272. _impl_._has_bits_[0] &= ~0x00000001u;
  1273. }
  1274. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mint.tulip.v1.SearchResponse.page)
  1275. }
  1276. inline ::mint::tulip::v1::SearchRequest_Page* SearchResponse::release_page() {
  1277. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1278. _impl_._has_bits_[0] &= ~0x00000001u;
  1279. ::mint::tulip::v1::SearchRequest_Page* released = _impl_.page_;
  1280. _impl_.page_ = nullptr;
  1281. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1282. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1283. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1284. if (GetArenaForAllocation() == nullptr) {
  1285. delete old;
  1286. }
  1287. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1288. if (GetArenaForAllocation() != nullptr) {
  1289. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1290. }
  1291. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1292. return released;
  1293. }
  1294. inline ::mint::tulip::v1::SearchRequest_Page* SearchResponse::unsafe_arena_release_page() {
  1295. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1296. // @@protoc_insertion_point(field_release:mint.tulip.v1.SearchResponse.page)
  1297. _impl_._has_bits_[0] &= ~0x00000001u;
  1298. ::mint::tulip::v1::SearchRequest_Page* temp = _impl_.page_;
  1299. _impl_.page_ = nullptr;
  1300. return temp;
  1301. }
  1302. inline ::mint::tulip::v1::SearchRequest_Page* SearchResponse::_internal_mutable_page() {
  1303. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1304. _impl_._has_bits_[0] |= 0x00000001u;
  1305. if (_impl_.page_ == nullptr) {
  1306. auto* p = CreateMaybeMessage<::mint::tulip::v1::SearchRequest_Page>(GetArenaForAllocation());
  1307. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(p);
  1308. }
  1309. return _impl_.page_;
  1310. }
  1311. inline ::mint::tulip::v1::SearchRequest_Page* SearchResponse::mutable_page() {
  1312. ::mint::tulip::v1::SearchRequest_Page* _msg = _internal_mutable_page();
  1313. // @@protoc_insertion_point(field_mutable:mint.tulip.v1.SearchResponse.page)
  1314. return _msg;
  1315. }
  1316. inline void SearchResponse::set_allocated_page(::mint::tulip::v1::SearchRequest_Page* value) {
  1317. ::google::protobuf::Arena* message_arena = GetArenaForAllocation();
  1318. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1319. if (message_arena == nullptr) {
  1320. delete reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(_impl_.page_);
  1321. }
  1322. if (value != nullptr) {
  1323. ::google::protobuf::Arena* submessage_arena =
  1324. ::google::protobuf::Arena::InternalGetOwningArena(reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value));
  1325. if (message_arena != submessage_arena) {
  1326. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1327. }
  1328. _impl_._has_bits_[0] |= 0x00000001u;
  1329. } else {
  1330. _impl_._has_bits_[0] &= ~0x00000001u;
  1331. }
  1332. _impl_.page_ = reinterpret_cast<::mint::tulip::v1::SearchRequest_Page*>(value);
  1333. // @@protoc_insertion_point(field_set_allocated:mint.tulip.v1.SearchResponse.page)
  1334. }
  1335. // int32 total = 99;
  1336. inline void SearchResponse::clear_total() {
  1337. _impl_.total_ = 0;
  1338. }
  1339. inline ::int32_t SearchResponse::total() const {
  1340. // @@protoc_insertion_point(field_get:mint.tulip.v1.SearchResponse.total)
  1341. return _internal_total();
  1342. }
  1343. inline void SearchResponse::set_total(::int32_t value) {
  1344. _internal_set_total(value);
  1345. // @@protoc_insertion_point(field_set:mint.tulip.v1.SearchResponse.total)
  1346. }
  1347. inline ::int32_t SearchResponse::_internal_total() const {
  1348. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1349. return _impl_.total_;
  1350. }
  1351. inline void SearchResponse::_internal_set_total(::int32_t value) {
  1352. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1353. ;
  1354. _impl_.total_ = value;
  1355. }
  1356. #ifdef __GNUC__
  1357. #pragma GCC diagnostic pop
  1358. #endif // __GNUC__
  1359. // @@protoc_insertion_point(namespace_scope)
  1360. } // namespace v1
  1361. } // namespace tulip
  1362. } // namespace mint
  1363. // @@protoc_insertion_point(global_scope)
  1364. #include "google/protobuf/port_undef.inc"
  1365. #endif // GOOGLE_PROTOBUF_INCLUDED_tulip_2eproto_2epb_2eh