search_store.pb.h 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: search_store.proto
  3. #ifndef PROTOBUF_search_5fstore_2eproto__INCLUDED
  4. #define PROTOBUF_search_5fstore_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2004000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace lsmsearch {
  23. // Internal implementation detail -- do not call these.
  24. void protobuf_AddDesc_search_5fstore_2eproto();
  25. void protobuf_AssignDesc_search_5fstore_2eproto();
  26. void protobuf_ShutdownFile_search_5fstore_2eproto();
  27. class StoreIndexField;
  28. class StoreDocument;
  29. class StoreDocValue;
  30. class StoreMeta;
  31. class MockData;
  32. class MockDataList;
  33. enum MockData_Type {
  34. MockData_Type_kUnknown = 0,
  35. MockData_Type_kUpdate = 1,
  36. MockData_Type_kMerge = 2,
  37. MockData_Type_kDelete = 3,
  38. MockData_Type_kDeleteRange = 4
  39. };
  40. bool MockData_Type_IsValid(int value);
  41. const MockData_Type MockData_Type_Type_MIN = MockData_Type_kUnknown;
  42. const MockData_Type MockData_Type_Type_MAX = MockData_Type_kDeleteRange;
  43. const int MockData_Type_Type_ARRAYSIZE = MockData_Type_Type_MAX + 1;
  44. const ::google::protobuf::EnumDescriptor* MockData_Type_descriptor();
  45. inline const ::std::string& MockData_Type_Name(MockData_Type value) {
  46. return ::google::protobuf::internal::NameOfEnum(
  47. MockData_Type_descriptor(), value);
  48. }
  49. inline bool MockData_Type_Parse(
  50. const ::std::string& name, MockData_Type* value) {
  51. return ::google::protobuf::internal::ParseNamedEnum<MockData_Type>(
  52. MockData_Type_descriptor(), name, value);
  53. }
  54. // ===================================================================
  55. class StoreIndexField : public ::google::protobuf::Message {
  56. public:
  57. StoreIndexField();
  58. virtual ~StoreIndexField();
  59. StoreIndexField(const StoreIndexField& from);
  60. inline StoreIndexField& operator=(const StoreIndexField& from) {
  61. CopyFrom(from);
  62. return *this;
  63. }
  64. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  65. return _unknown_fields_;
  66. }
  67. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  68. return &_unknown_fields_;
  69. }
  70. static const ::google::protobuf::Descriptor* descriptor();
  71. static const StoreIndexField& default_instance();
  72. void Swap(StoreIndexField* other);
  73. // implements Message ----------------------------------------------
  74. StoreIndexField* New() const;
  75. void CopyFrom(const ::google::protobuf::Message& from);
  76. void MergeFrom(const ::google::protobuf::Message& from);
  77. void CopyFrom(const StoreIndexField& from);
  78. void MergeFrom(const StoreIndexField& from);
  79. void Clear();
  80. bool IsInitialized() const;
  81. int ByteSize() const;
  82. bool MergePartialFromCodedStream(
  83. ::google::protobuf::io::CodedInputStream* input);
  84. void SerializeWithCachedSizes(
  85. ::google::protobuf::io::CodedOutputStream* output) const;
  86. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  87. int GetCachedSize() const { return _cached_size_; }
  88. private:
  89. void SharedCtor();
  90. void SharedDtor();
  91. void SetCachedSize(int size) const;
  92. public:
  93. ::google::protobuf::Metadata GetMetadata() const;
  94. // nested types ----------------------------------------------------
  95. // accessors -------------------------------------------------------
  96. // required uint32 field_id = 1;
  97. inline bool has_field_id() const;
  98. inline void clear_field_id();
  99. static const int kFieldIdFieldNumber = 1;
  100. inline ::google::protobuf::uint32 field_id() const;
  101. inline void set_field_id(::google::protobuf::uint32 value);
  102. // required uint32 field_flag = 2;
  103. inline bool has_field_flag() const;
  104. inline void clear_field_flag();
  105. static const int kFieldFlagFieldNumber = 2;
  106. inline ::google::protobuf::uint32 field_flag() const;
  107. inline void set_field_flag(::google::protobuf::uint32 value);
  108. // required uint32 field_type = 3;
  109. inline bool has_field_type() const;
  110. inline void clear_field_type();
  111. static const int kFieldTypeFieldNumber = 3;
  112. inline ::google::protobuf::uint32 field_type() const;
  113. inline void set_field_type(::google::protobuf::uint32 value);
  114. // optional uint64 numeric_value = 4;
  115. inline bool has_numeric_value() const;
  116. inline void clear_numeric_value();
  117. static const int kNumericValueFieldNumber = 4;
  118. inline ::google::protobuf::uint64 numeric_value() const;
  119. inline void set_numeric_value(::google::protobuf::uint64 value);
  120. // optional bytes string_value = 5;
  121. inline bool has_string_value() const;
  122. inline void clear_string_value();
  123. static const int kStringValueFieldNumber = 5;
  124. inline const ::std::string& string_value() const;
  125. inline void set_string_value(const ::std::string& value);
  126. inline void set_string_value(const char* value);
  127. inline void set_string_value(const void* value, size_t size);
  128. inline ::std::string* mutable_string_value();
  129. inline ::std::string* release_string_value();
  130. // repeated bytes terms = 6;
  131. inline int terms_size() const;
  132. inline void clear_terms();
  133. static const int kTermsFieldNumber = 6;
  134. inline const ::std::string& terms(int index) const;
  135. inline ::std::string* mutable_terms(int index);
  136. inline void set_terms(int index, const ::std::string& value);
  137. inline void set_terms(int index, const char* value);
  138. inline void set_terms(int index, const void* value, size_t size);
  139. inline ::std::string* add_terms();
  140. inline void add_terms(const ::std::string& value);
  141. inline void add_terms(const char* value);
  142. inline void add_terms(const void* value, size_t size);
  143. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& terms() const;
  144. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_terms();
  145. // optional uint32 suffix_len = 10;
  146. inline bool has_suffix_len() const;
  147. inline void clear_suffix_len();
  148. static const int kSuffixLenFieldNumber = 10;
  149. inline ::google::protobuf::uint32 suffix_len() const;
  150. inline void set_suffix_len(::google::protobuf::uint32 value);
  151. // @@protoc_insertion_point(class_scope:lsmsearch.StoreIndexField)
  152. private:
  153. inline void set_has_field_id();
  154. inline void clear_has_field_id();
  155. inline void set_has_field_flag();
  156. inline void clear_has_field_flag();
  157. inline void set_has_field_type();
  158. inline void clear_has_field_type();
  159. inline void set_has_numeric_value();
  160. inline void clear_has_numeric_value();
  161. inline void set_has_string_value();
  162. inline void clear_has_string_value();
  163. inline void set_has_suffix_len();
  164. inline void clear_has_suffix_len();
  165. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  166. ::google::protobuf::uint32 field_id_;
  167. ::google::protobuf::uint32 field_flag_;
  168. ::google::protobuf::uint64 numeric_value_;
  169. ::std::string* string_value_;
  170. ::google::protobuf::uint32 field_type_;
  171. ::google::protobuf::uint32 suffix_len_;
  172. ::google::protobuf::RepeatedPtrField< ::std::string> terms_;
  173. mutable int _cached_size_;
  174. ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  175. friend void protobuf_AddDesc_search_5fstore_2eproto();
  176. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  177. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  178. void InitAsDefaultInstance();
  179. static StoreIndexField* default_instance_;
  180. };
  181. // -------------------------------------------------------------------
  182. class StoreDocument : public ::google::protobuf::Message {
  183. public:
  184. StoreDocument();
  185. virtual ~StoreDocument();
  186. StoreDocument(const StoreDocument& from);
  187. inline StoreDocument& operator=(const StoreDocument& from) {
  188. CopyFrom(from);
  189. return *this;
  190. }
  191. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  192. return _unknown_fields_;
  193. }
  194. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  195. return &_unknown_fields_;
  196. }
  197. static const ::google::protobuf::Descriptor* descriptor();
  198. static const StoreDocument& default_instance();
  199. void Swap(StoreDocument* other);
  200. // implements Message ----------------------------------------------
  201. StoreDocument* New() const;
  202. void CopyFrom(const ::google::protobuf::Message& from);
  203. void MergeFrom(const ::google::protobuf::Message& from);
  204. void CopyFrom(const StoreDocument& from);
  205. void MergeFrom(const StoreDocument& from);
  206. void Clear();
  207. bool IsInitialized() const;
  208. int ByteSize() const;
  209. bool MergePartialFromCodedStream(
  210. ::google::protobuf::io::CodedInputStream* input);
  211. void SerializeWithCachedSizes(
  212. ::google::protobuf::io::CodedOutputStream* output) const;
  213. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  214. int GetCachedSize() const { return _cached_size_; }
  215. private:
  216. void SharedCtor();
  217. void SharedDtor();
  218. void SetCachedSize(int size) const;
  219. public:
  220. ::google::protobuf::Metadata GetMetadata() const;
  221. // nested types ----------------------------------------------------
  222. // accessors -------------------------------------------------------
  223. // required uint64 document_id = 1;
  224. inline bool has_document_id() const;
  225. inline void clear_document_id();
  226. static const int kDocumentIdFieldNumber = 1;
  227. inline ::google::protobuf::uint64 document_id() const;
  228. inline void set_document_id(::google::protobuf::uint64 value);
  229. // repeated .lsmsearch.StoreIndexField fields = 2;
  230. inline int fields_size() const;
  231. inline void clear_fields();
  232. static const int kFieldsFieldNumber = 2;
  233. inline const ::lsmsearch::StoreIndexField& fields(int index) const;
  234. inline ::lsmsearch::StoreIndexField* mutable_fields(int index);
  235. inline ::lsmsearch::StoreIndexField* add_fields();
  236. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
  237. fields() const;
  238. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
  239. mutable_fields();
  240. // @@protoc_insertion_point(class_scope:lsmsearch.StoreDocument)
  241. private:
  242. inline void set_has_document_id();
  243. inline void clear_has_document_id();
  244. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  245. ::google::protobuf::uint64 document_id_;
  246. ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField > fields_;
  247. mutable int _cached_size_;
  248. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  249. friend void protobuf_AddDesc_search_5fstore_2eproto();
  250. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  251. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  252. void InitAsDefaultInstance();
  253. static StoreDocument* default_instance_;
  254. };
  255. // -------------------------------------------------------------------
  256. class StoreDocValue : public ::google::protobuf::Message {
  257. public:
  258. StoreDocValue();
  259. virtual ~StoreDocValue();
  260. StoreDocValue(const StoreDocValue& from);
  261. inline StoreDocValue& operator=(const StoreDocValue& from) {
  262. CopyFrom(from);
  263. return *this;
  264. }
  265. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  266. return _unknown_fields_;
  267. }
  268. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  269. return &_unknown_fields_;
  270. }
  271. static const ::google::protobuf::Descriptor* descriptor();
  272. static const StoreDocValue& default_instance();
  273. void Swap(StoreDocValue* other);
  274. // implements Message ----------------------------------------------
  275. StoreDocValue* New() const;
  276. void CopyFrom(const ::google::protobuf::Message& from);
  277. void MergeFrom(const ::google::protobuf::Message& from);
  278. void CopyFrom(const StoreDocValue& from);
  279. void MergeFrom(const StoreDocValue& from);
  280. void Clear();
  281. bool IsInitialized() const;
  282. int ByteSize() const;
  283. bool MergePartialFromCodedStream(
  284. ::google::protobuf::io::CodedInputStream* input);
  285. void SerializeWithCachedSizes(
  286. ::google::protobuf::io::CodedOutputStream* output) const;
  287. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  288. int GetCachedSize() const { return _cached_size_; }
  289. private:
  290. void SharedCtor();
  291. void SharedDtor();
  292. void SetCachedSize(int size) const;
  293. public:
  294. ::google::protobuf::Metadata GetMetadata() const;
  295. // nested types ----------------------------------------------------
  296. // accessors -------------------------------------------------------
  297. // repeated .lsmsearch.StoreIndexField fields = 1;
  298. inline int fields_size() const;
  299. inline void clear_fields();
  300. static const int kFieldsFieldNumber = 1;
  301. inline const ::lsmsearch::StoreIndexField& fields(int index) const;
  302. inline ::lsmsearch::StoreIndexField* mutable_fields(int index);
  303. inline ::lsmsearch::StoreIndexField* add_fields();
  304. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
  305. fields() const;
  306. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
  307. mutable_fields();
  308. // @@protoc_insertion_point(class_scope:lsmsearch.StoreDocValue)
  309. private:
  310. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  311. ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField > fields_;
  312. mutable int _cached_size_;
  313. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  314. friend void protobuf_AddDesc_search_5fstore_2eproto();
  315. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  316. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  317. void InitAsDefaultInstance();
  318. static StoreDocValue* default_instance_;
  319. };
  320. // -------------------------------------------------------------------
  321. class StoreMeta : public ::google::protobuf::Message {
  322. public:
  323. StoreMeta();
  324. virtual ~StoreMeta();
  325. StoreMeta(const StoreMeta& from);
  326. inline StoreMeta& operator=(const StoreMeta& from) {
  327. CopyFrom(from);
  328. return *this;
  329. }
  330. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  331. return _unknown_fields_;
  332. }
  333. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  334. return &_unknown_fields_;
  335. }
  336. static const ::google::protobuf::Descriptor* descriptor();
  337. static const StoreMeta& default_instance();
  338. void Swap(StoreMeta* other);
  339. // implements Message ----------------------------------------------
  340. StoreMeta* New() const;
  341. void CopyFrom(const ::google::protobuf::Message& from);
  342. void MergeFrom(const ::google::protobuf::Message& from);
  343. void CopyFrom(const StoreMeta& from);
  344. void MergeFrom(const StoreMeta& from);
  345. void Clear();
  346. bool IsInitialized() const;
  347. int ByteSize() const;
  348. bool MergePartialFromCodedStream(
  349. ::google::protobuf::io::CodedInputStream* input);
  350. void SerializeWithCachedSizes(
  351. ::google::protobuf::io::CodedOutputStream* output) const;
  352. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  353. int GetCachedSize() const { return _cached_size_; }
  354. private:
  355. void SharedCtor();
  356. void SharedDtor();
  357. void SetCachedSize(int size) const;
  358. public:
  359. ::google::protobuf::Metadata GetMetadata() const;
  360. // nested types ----------------------------------------------------
  361. // accessors -------------------------------------------------------
  362. // optional uint64 total_documents = 1;
  363. inline bool has_total_documents() const;
  364. inline void clear_total_documents();
  365. static const int kTotalDocumentsFieldNumber = 1;
  366. inline ::google::protobuf::uint64 total_documents() const;
  367. inline void set_total_documents(::google::protobuf::uint64 value);
  368. // optional uint64 delete_documents = 2;
  369. inline bool has_delete_documents() const;
  370. inline void clear_delete_documents();
  371. static const int kDeleteDocumentsFieldNumber = 2;
  372. inline ::google::protobuf::uint64 delete_documents() const;
  373. inline void set_delete_documents(::google::protobuf::uint64 value);
  374. // optional uint64 increase_seq = 3;
  375. inline bool has_increase_seq() const;
  376. inline void clear_increase_seq();
  377. static const int kIncreaseSeqFieldNumber = 3;
  378. inline ::google::protobuf::uint64 increase_seq() const;
  379. inline void set_increase_seq(::google::protobuf::uint64 value);
  380. // optional uint64 terms_count = 4;
  381. inline bool has_terms_count() const;
  382. inline void clear_terms_count();
  383. static const int kTermsCountFieldNumber = 4;
  384. inline ::google::protobuf::uint64 terms_count() const;
  385. inline void set_terms_count(::google::protobuf::uint64 value);
  386. // @@protoc_insertion_point(class_scope:lsmsearch.StoreMeta)
  387. private:
  388. inline void set_has_total_documents();
  389. inline void clear_has_total_documents();
  390. inline void set_has_delete_documents();
  391. inline void clear_has_delete_documents();
  392. inline void set_has_increase_seq();
  393. inline void clear_has_increase_seq();
  394. inline void set_has_terms_count();
  395. inline void clear_has_terms_count();
  396. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  397. ::google::protobuf::uint64 total_documents_;
  398. ::google::protobuf::uint64 delete_documents_;
  399. ::google::protobuf::uint64 increase_seq_;
  400. ::google::protobuf::uint64 terms_count_;
  401. mutable int _cached_size_;
  402. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  403. friend void protobuf_AddDesc_search_5fstore_2eproto();
  404. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  405. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  406. void InitAsDefaultInstance();
  407. static StoreMeta* default_instance_;
  408. };
  409. // -------------------------------------------------------------------
  410. class MockData : public ::google::protobuf::Message {
  411. public:
  412. MockData();
  413. virtual ~MockData();
  414. MockData(const MockData& from);
  415. inline MockData& operator=(const MockData& from) {
  416. CopyFrom(from);
  417. return *this;
  418. }
  419. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  420. return _unknown_fields_;
  421. }
  422. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  423. return &_unknown_fields_;
  424. }
  425. static const ::google::protobuf::Descriptor* descriptor();
  426. static const MockData& default_instance();
  427. void Swap(MockData* other);
  428. // implements Message ----------------------------------------------
  429. MockData* New() const;
  430. void CopyFrom(const ::google::protobuf::Message& from);
  431. void MergeFrom(const ::google::protobuf::Message& from);
  432. void CopyFrom(const MockData& from);
  433. void MergeFrom(const MockData& from);
  434. void Clear();
  435. bool IsInitialized() const;
  436. int ByteSize() const;
  437. bool MergePartialFromCodedStream(
  438. ::google::protobuf::io::CodedInputStream* input);
  439. void SerializeWithCachedSizes(
  440. ::google::protobuf::io::CodedOutputStream* output) const;
  441. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  442. int GetCachedSize() const { return _cached_size_; }
  443. private:
  444. void SharedCtor();
  445. void SharedDtor();
  446. void SetCachedSize(int size) const;
  447. public:
  448. ::google::protobuf::Metadata GetMetadata() const;
  449. // nested types ----------------------------------------------------
  450. typedef MockData_Type Type;
  451. static const Type kUnknown = MockData_Type_kUnknown;
  452. static const Type kUpdate = MockData_Type_kUpdate;
  453. static const Type kMerge = MockData_Type_kMerge;
  454. static const Type kDelete = MockData_Type_kDelete;
  455. static const Type kDeleteRange = MockData_Type_kDeleteRange;
  456. static inline bool Type_IsValid(int value) {
  457. return MockData_Type_IsValid(value);
  458. }
  459. static const Type Type_MIN =
  460. MockData_Type_Type_MIN;
  461. static const Type Type_MAX =
  462. MockData_Type_Type_MAX;
  463. static const int Type_ARRAYSIZE =
  464. MockData_Type_Type_ARRAYSIZE;
  465. static inline const ::google::protobuf::EnumDescriptor*
  466. Type_descriptor() {
  467. return MockData_Type_descriptor();
  468. }
  469. static inline const ::std::string& Type_Name(Type value) {
  470. return MockData_Type_Name(value);
  471. }
  472. static inline bool Type_Parse(const ::std::string& name,
  473. Type* value) {
  474. return MockData_Type_Parse(name, value);
  475. }
  476. // accessors -------------------------------------------------------
  477. // required uint32 column_type = 1;
  478. inline bool has_column_type() const;
  479. inline void clear_column_type();
  480. static const int kColumnTypeFieldNumber = 1;
  481. inline ::google::protobuf::uint32 column_type() const;
  482. inline void set_column_type(::google::protobuf::uint32 value);
  483. // required bytes key = 2;
  484. inline bool has_key() const;
  485. inline void clear_key();
  486. static const int kKeyFieldNumber = 2;
  487. inline const ::std::string& key() const;
  488. inline void set_key(const ::std::string& value);
  489. inline void set_key(const char* value);
  490. inline void set_key(const void* value, size_t size);
  491. inline ::std::string* mutable_key();
  492. inline ::std::string* release_key();
  493. // required bytes value = 3;
  494. inline bool has_value() const;
  495. inline void clear_value();
  496. static const int kValueFieldNumber = 3;
  497. inline const ::std::string& value() const;
  498. inline void set_value(const ::std::string& value);
  499. inline void set_value(const char* value);
  500. inline void set_value(const void* value, size_t size);
  501. inline ::std::string* mutable_value();
  502. inline ::std::string* release_value();
  503. // required .lsmsearch.MockData.Type type = 4;
  504. inline bool has_type() const;
  505. inline void clear_type();
  506. static const int kTypeFieldNumber = 4;
  507. inline ::lsmsearch::MockData_Type type() const;
  508. inline void set_type(::lsmsearch::MockData_Type value);
  509. // optional bytes end_key = 5;
  510. inline bool has_end_key() const;
  511. inline void clear_end_key();
  512. static const int kEndKeyFieldNumber = 5;
  513. inline const ::std::string& end_key() const;
  514. inline void set_end_key(const ::std::string& value);
  515. inline void set_end_key(const char* value);
  516. inline void set_end_key(const void* value, size_t size);
  517. inline ::std::string* mutable_end_key();
  518. inline ::std::string* release_end_key();
  519. // @@protoc_insertion_point(class_scope:lsmsearch.MockData)
  520. private:
  521. inline void set_has_column_type();
  522. inline void clear_has_column_type();
  523. inline void set_has_key();
  524. inline void clear_has_key();
  525. inline void set_has_value();
  526. inline void clear_has_value();
  527. inline void set_has_type();
  528. inline void clear_has_type();
  529. inline void set_has_end_key();
  530. inline void clear_has_end_key();
  531. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  532. ::std::string* key_;
  533. ::google::protobuf::uint32 column_type_;
  534. int type_;
  535. ::std::string* value_;
  536. ::std::string* end_key_;
  537. mutable int _cached_size_;
  538. ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  539. friend void protobuf_AddDesc_search_5fstore_2eproto();
  540. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  541. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  542. void InitAsDefaultInstance();
  543. static MockData* default_instance_;
  544. };
  545. // -------------------------------------------------------------------
  546. class MockDataList : public ::google::protobuf::Message {
  547. public:
  548. MockDataList();
  549. virtual ~MockDataList();
  550. MockDataList(const MockDataList& from);
  551. inline MockDataList& operator=(const MockDataList& from) {
  552. CopyFrom(from);
  553. return *this;
  554. }
  555. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  556. return _unknown_fields_;
  557. }
  558. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  559. return &_unknown_fields_;
  560. }
  561. static const ::google::protobuf::Descriptor* descriptor();
  562. static const MockDataList& default_instance();
  563. void Swap(MockDataList* other);
  564. // implements Message ----------------------------------------------
  565. MockDataList* New() const;
  566. void CopyFrom(const ::google::protobuf::Message& from);
  567. void MergeFrom(const ::google::protobuf::Message& from);
  568. void CopyFrom(const MockDataList& from);
  569. void MergeFrom(const MockDataList& from);
  570. void Clear();
  571. bool IsInitialized() const;
  572. int ByteSize() const;
  573. bool MergePartialFromCodedStream(
  574. ::google::protobuf::io::CodedInputStream* input);
  575. void SerializeWithCachedSizes(
  576. ::google::protobuf::io::CodedOutputStream* output) const;
  577. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  578. int GetCachedSize() const { return _cached_size_; }
  579. private:
  580. void SharedCtor();
  581. void SharedDtor();
  582. void SetCachedSize(int size) const;
  583. public:
  584. ::google::protobuf::Metadata GetMetadata() const;
  585. // nested types ----------------------------------------------------
  586. // accessors -------------------------------------------------------
  587. // repeated .lsmsearch.MockData mock_data_list = 1;
  588. inline int mock_data_list_size() const;
  589. inline void clear_mock_data_list();
  590. static const int kMockDataListFieldNumber = 1;
  591. inline const ::lsmsearch::MockData& mock_data_list(int index) const;
  592. inline ::lsmsearch::MockData* mutable_mock_data_list(int index);
  593. inline ::lsmsearch::MockData* add_mock_data_list();
  594. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >&
  595. mock_data_list() const;
  596. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >*
  597. mutable_mock_data_list();
  598. // @@protoc_insertion_point(class_scope:lsmsearch.MockDataList)
  599. private:
  600. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  601. ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData > mock_data_list_;
  602. mutable int _cached_size_;
  603. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  604. friend void protobuf_AddDesc_search_5fstore_2eproto();
  605. friend void protobuf_AssignDesc_search_5fstore_2eproto();
  606. friend void protobuf_ShutdownFile_search_5fstore_2eproto();
  607. void InitAsDefaultInstance();
  608. static MockDataList* default_instance_;
  609. };
  610. // ===================================================================
  611. // ===================================================================
  612. // StoreIndexField
  613. // required uint32 field_id = 1;
  614. inline bool StoreIndexField::has_field_id() const {
  615. return (_has_bits_[0] & 0x00000001u) != 0;
  616. }
  617. inline void StoreIndexField::set_has_field_id() {
  618. _has_bits_[0] |= 0x00000001u;
  619. }
  620. inline void StoreIndexField::clear_has_field_id() {
  621. _has_bits_[0] &= ~0x00000001u;
  622. }
  623. inline void StoreIndexField::clear_field_id() {
  624. field_id_ = 0u;
  625. clear_has_field_id();
  626. }
  627. inline ::google::protobuf::uint32 StoreIndexField::field_id() const {
  628. return field_id_;
  629. }
  630. inline void StoreIndexField::set_field_id(::google::protobuf::uint32 value) {
  631. set_has_field_id();
  632. field_id_ = value;
  633. }
  634. // required uint32 field_flag = 2;
  635. inline bool StoreIndexField::has_field_flag() const {
  636. return (_has_bits_[0] & 0x00000002u) != 0;
  637. }
  638. inline void StoreIndexField::set_has_field_flag() {
  639. _has_bits_[0] |= 0x00000002u;
  640. }
  641. inline void StoreIndexField::clear_has_field_flag() {
  642. _has_bits_[0] &= ~0x00000002u;
  643. }
  644. inline void StoreIndexField::clear_field_flag() {
  645. field_flag_ = 0u;
  646. clear_has_field_flag();
  647. }
  648. inline ::google::protobuf::uint32 StoreIndexField::field_flag() const {
  649. return field_flag_;
  650. }
  651. inline void StoreIndexField::set_field_flag(::google::protobuf::uint32 value) {
  652. set_has_field_flag();
  653. field_flag_ = value;
  654. }
  655. // required uint32 field_type = 3;
  656. inline bool StoreIndexField::has_field_type() const {
  657. return (_has_bits_[0] & 0x00000004u) != 0;
  658. }
  659. inline void StoreIndexField::set_has_field_type() {
  660. _has_bits_[0] |= 0x00000004u;
  661. }
  662. inline void StoreIndexField::clear_has_field_type() {
  663. _has_bits_[0] &= ~0x00000004u;
  664. }
  665. inline void StoreIndexField::clear_field_type() {
  666. field_type_ = 0u;
  667. clear_has_field_type();
  668. }
  669. inline ::google::protobuf::uint32 StoreIndexField::field_type() const {
  670. return field_type_;
  671. }
  672. inline void StoreIndexField::set_field_type(::google::protobuf::uint32 value) {
  673. set_has_field_type();
  674. field_type_ = value;
  675. }
  676. // optional uint64 numeric_value = 4;
  677. inline bool StoreIndexField::has_numeric_value() const {
  678. return (_has_bits_[0] & 0x00000008u) != 0;
  679. }
  680. inline void StoreIndexField::set_has_numeric_value() {
  681. _has_bits_[0] |= 0x00000008u;
  682. }
  683. inline void StoreIndexField::clear_has_numeric_value() {
  684. _has_bits_[0] &= ~0x00000008u;
  685. }
  686. inline void StoreIndexField::clear_numeric_value() {
  687. numeric_value_ = GOOGLE_ULONGLONG(0);
  688. clear_has_numeric_value();
  689. }
  690. inline ::google::protobuf::uint64 StoreIndexField::numeric_value() const {
  691. return numeric_value_;
  692. }
  693. inline void StoreIndexField::set_numeric_value(::google::protobuf::uint64 value) {
  694. set_has_numeric_value();
  695. numeric_value_ = value;
  696. }
  697. // optional bytes string_value = 5;
  698. inline bool StoreIndexField::has_string_value() const {
  699. return (_has_bits_[0] & 0x00000010u) != 0;
  700. }
  701. inline void StoreIndexField::set_has_string_value() {
  702. _has_bits_[0] |= 0x00000010u;
  703. }
  704. inline void StoreIndexField::clear_has_string_value() {
  705. _has_bits_[0] &= ~0x00000010u;
  706. }
  707. inline void StoreIndexField::clear_string_value() {
  708. if (string_value_ != &::google::protobuf::internal::kEmptyString) {
  709. string_value_->clear();
  710. }
  711. clear_has_string_value();
  712. }
  713. inline const ::std::string& StoreIndexField::string_value() const {
  714. return *string_value_;
  715. }
  716. inline void StoreIndexField::set_string_value(const ::std::string& value) {
  717. set_has_string_value();
  718. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  719. string_value_ = new ::std::string;
  720. }
  721. string_value_->assign(value);
  722. }
  723. inline void StoreIndexField::set_string_value(const char* value) {
  724. set_has_string_value();
  725. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  726. string_value_ = new ::std::string;
  727. }
  728. string_value_->assign(value);
  729. }
  730. inline void StoreIndexField::set_string_value(const void* value, size_t size) {
  731. set_has_string_value();
  732. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  733. string_value_ = new ::std::string;
  734. }
  735. string_value_->assign(reinterpret_cast<const char*>(value), size);
  736. }
  737. inline ::std::string* StoreIndexField::mutable_string_value() {
  738. set_has_string_value();
  739. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  740. string_value_ = new ::std::string;
  741. }
  742. return string_value_;
  743. }
  744. inline ::std::string* StoreIndexField::release_string_value() {
  745. clear_has_string_value();
  746. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  747. return NULL;
  748. } else {
  749. ::std::string* temp = string_value_;
  750. string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  751. return temp;
  752. }
  753. }
  754. // repeated bytes terms = 6;
  755. inline int StoreIndexField::terms_size() const {
  756. return terms_.size();
  757. }
  758. inline void StoreIndexField::clear_terms() {
  759. terms_.Clear();
  760. }
  761. inline const ::std::string& StoreIndexField::terms(int index) const {
  762. return terms_.Get(index);
  763. }
  764. inline ::std::string* StoreIndexField::mutable_terms(int index) {
  765. return terms_.Mutable(index);
  766. }
  767. inline void StoreIndexField::set_terms(int index, const ::std::string& value) {
  768. terms_.Mutable(index)->assign(value);
  769. }
  770. inline void StoreIndexField::set_terms(int index, const char* value) {
  771. terms_.Mutable(index)->assign(value);
  772. }
  773. inline void StoreIndexField::set_terms(int index, const void* value, size_t size) {
  774. terms_.Mutable(index)->assign(
  775. reinterpret_cast<const char*>(value), size);
  776. }
  777. inline ::std::string* StoreIndexField::add_terms() {
  778. return terms_.Add();
  779. }
  780. inline void StoreIndexField::add_terms(const ::std::string& value) {
  781. terms_.Add()->assign(value);
  782. }
  783. inline void StoreIndexField::add_terms(const char* value) {
  784. terms_.Add()->assign(value);
  785. }
  786. inline void StoreIndexField::add_terms(const void* value, size_t size) {
  787. terms_.Add()->assign(reinterpret_cast<const char*>(value), size);
  788. }
  789. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  790. StoreIndexField::terms() const {
  791. return terms_;
  792. }
  793. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  794. StoreIndexField::mutable_terms() {
  795. return &terms_;
  796. }
  797. // optional uint32 suffix_len = 10;
  798. inline bool StoreIndexField::has_suffix_len() const {
  799. return (_has_bits_[0] & 0x00000040u) != 0;
  800. }
  801. inline void StoreIndexField::set_has_suffix_len() {
  802. _has_bits_[0] |= 0x00000040u;
  803. }
  804. inline void StoreIndexField::clear_has_suffix_len() {
  805. _has_bits_[0] &= ~0x00000040u;
  806. }
  807. inline void StoreIndexField::clear_suffix_len() {
  808. suffix_len_ = 0u;
  809. clear_has_suffix_len();
  810. }
  811. inline ::google::protobuf::uint32 StoreIndexField::suffix_len() const {
  812. return suffix_len_;
  813. }
  814. inline void StoreIndexField::set_suffix_len(::google::protobuf::uint32 value) {
  815. set_has_suffix_len();
  816. suffix_len_ = value;
  817. }
  818. // -------------------------------------------------------------------
  819. // StoreDocument
  820. // required uint64 document_id = 1;
  821. inline bool StoreDocument::has_document_id() const {
  822. return (_has_bits_[0] & 0x00000001u) != 0;
  823. }
  824. inline void StoreDocument::set_has_document_id() {
  825. _has_bits_[0] |= 0x00000001u;
  826. }
  827. inline void StoreDocument::clear_has_document_id() {
  828. _has_bits_[0] &= ~0x00000001u;
  829. }
  830. inline void StoreDocument::clear_document_id() {
  831. document_id_ = GOOGLE_ULONGLONG(0);
  832. clear_has_document_id();
  833. }
  834. inline ::google::protobuf::uint64 StoreDocument::document_id() const {
  835. return document_id_;
  836. }
  837. inline void StoreDocument::set_document_id(::google::protobuf::uint64 value) {
  838. set_has_document_id();
  839. document_id_ = value;
  840. }
  841. // repeated .lsmsearch.StoreIndexField fields = 2;
  842. inline int StoreDocument::fields_size() const {
  843. return fields_.size();
  844. }
  845. inline void StoreDocument::clear_fields() {
  846. fields_.Clear();
  847. }
  848. inline const ::lsmsearch::StoreIndexField& StoreDocument::fields(int index) const {
  849. return fields_.Get(index);
  850. }
  851. inline ::lsmsearch::StoreIndexField* StoreDocument::mutable_fields(int index) {
  852. return fields_.Mutable(index);
  853. }
  854. inline ::lsmsearch::StoreIndexField* StoreDocument::add_fields() {
  855. return fields_.Add();
  856. }
  857. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
  858. StoreDocument::fields() const {
  859. return fields_;
  860. }
  861. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
  862. StoreDocument::mutable_fields() {
  863. return &fields_;
  864. }
  865. // -------------------------------------------------------------------
  866. // StoreDocValue
  867. // repeated .lsmsearch.StoreIndexField fields = 1;
  868. inline int StoreDocValue::fields_size() const {
  869. return fields_.size();
  870. }
  871. inline void StoreDocValue::clear_fields() {
  872. fields_.Clear();
  873. }
  874. inline const ::lsmsearch::StoreIndexField& StoreDocValue::fields(int index) const {
  875. return fields_.Get(index);
  876. }
  877. inline ::lsmsearch::StoreIndexField* StoreDocValue::mutable_fields(int index) {
  878. return fields_.Mutable(index);
  879. }
  880. inline ::lsmsearch::StoreIndexField* StoreDocValue::add_fields() {
  881. return fields_.Add();
  882. }
  883. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
  884. StoreDocValue::fields() const {
  885. return fields_;
  886. }
  887. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
  888. StoreDocValue::mutable_fields() {
  889. return &fields_;
  890. }
  891. // -------------------------------------------------------------------
  892. // StoreMeta
  893. // optional uint64 total_documents = 1;
  894. inline bool StoreMeta::has_total_documents() const {
  895. return (_has_bits_[0] & 0x00000001u) != 0;
  896. }
  897. inline void StoreMeta::set_has_total_documents() {
  898. _has_bits_[0] |= 0x00000001u;
  899. }
  900. inline void StoreMeta::clear_has_total_documents() {
  901. _has_bits_[0] &= ~0x00000001u;
  902. }
  903. inline void StoreMeta::clear_total_documents() {
  904. total_documents_ = GOOGLE_ULONGLONG(0);
  905. clear_has_total_documents();
  906. }
  907. inline ::google::protobuf::uint64 StoreMeta::total_documents() const {
  908. return total_documents_;
  909. }
  910. inline void StoreMeta::set_total_documents(::google::protobuf::uint64 value) {
  911. set_has_total_documents();
  912. total_documents_ = value;
  913. }
  914. // optional uint64 delete_documents = 2;
  915. inline bool StoreMeta::has_delete_documents() const {
  916. return (_has_bits_[0] & 0x00000002u) != 0;
  917. }
  918. inline void StoreMeta::set_has_delete_documents() {
  919. _has_bits_[0] |= 0x00000002u;
  920. }
  921. inline void StoreMeta::clear_has_delete_documents() {
  922. _has_bits_[0] &= ~0x00000002u;
  923. }
  924. inline void StoreMeta::clear_delete_documents() {
  925. delete_documents_ = GOOGLE_ULONGLONG(0);
  926. clear_has_delete_documents();
  927. }
  928. inline ::google::protobuf::uint64 StoreMeta::delete_documents() const {
  929. return delete_documents_;
  930. }
  931. inline void StoreMeta::set_delete_documents(::google::protobuf::uint64 value) {
  932. set_has_delete_documents();
  933. delete_documents_ = value;
  934. }
  935. // optional uint64 increase_seq = 3;
  936. inline bool StoreMeta::has_increase_seq() const {
  937. return (_has_bits_[0] & 0x00000004u) != 0;
  938. }
  939. inline void StoreMeta::set_has_increase_seq() {
  940. _has_bits_[0] |= 0x00000004u;
  941. }
  942. inline void StoreMeta::clear_has_increase_seq() {
  943. _has_bits_[0] &= ~0x00000004u;
  944. }
  945. inline void StoreMeta::clear_increase_seq() {
  946. increase_seq_ = GOOGLE_ULONGLONG(0);
  947. clear_has_increase_seq();
  948. }
  949. inline ::google::protobuf::uint64 StoreMeta::increase_seq() const {
  950. return increase_seq_;
  951. }
  952. inline void StoreMeta::set_increase_seq(::google::protobuf::uint64 value) {
  953. set_has_increase_seq();
  954. increase_seq_ = value;
  955. }
  956. // optional uint64 terms_count = 4;
  957. inline bool StoreMeta::has_terms_count() const {
  958. return (_has_bits_[0] & 0x00000008u) != 0;
  959. }
  960. inline void StoreMeta::set_has_terms_count() {
  961. _has_bits_[0] |= 0x00000008u;
  962. }
  963. inline void StoreMeta::clear_has_terms_count() {
  964. _has_bits_[0] &= ~0x00000008u;
  965. }
  966. inline void StoreMeta::clear_terms_count() {
  967. terms_count_ = GOOGLE_ULONGLONG(0);
  968. clear_has_terms_count();
  969. }
  970. inline ::google::protobuf::uint64 StoreMeta::terms_count() const {
  971. return terms_count_;
  972. }
  973. inline void StoreMeta::set_terms_count(::google::protobuf::uint64 value) {
  974. set_has_terms_count();
  975. terms_count_ = value;
  976. }
  977. // -------------------------------------------------------------------
  978. // MockData
  979. // required uint32 column_type = 1;
  980. inline bool MockData::has_column_type() const {
  981. return (_has_bits_[0] & 0x00000001u) != 0;
  982. }
  983. inline void MockData::set_has_column_type() {
  984. _has_bits_[0] |= 0x00000001u;
  985. }
  986. inline void MockData::clear_has_column_type() {
  987. _has_bits_[0] &= ~0x00000001u;
  988. }
  989. inline void MockData::clear_column_type() {
  990. column_type_ = 0u;
  991. clear_has_column_type();
  992. }
  993. inline ::google::protobuf::uint32 MockData::column_type() const {
  994. return column_type_;
  995. }
  996. inline void MockData::set_column_type(::google::protobuf::uint32 value) {
  997. set_has_column_type();
  998. column_type_ = value;
  999. }
  1000. // required bytes key = 2;
  1001. inline bool MockData::has_key() const {
  1002. return (_has_bits_[0] & 0x00000002u) != 0;
  1003. }
  1004. inline void MockData::set_has_key() {
  1005. _has_bits_[0] |= 0x00000002u;
  1006. }
  1007. inline void MockData::clear_has_key() {
  1008. _has_bits_[0] &= ~0x00000002u;
  1009. }
  1010. inline void MockData::clear_key() {
  1011. if (key_ != &::google::protobuf::internal::kEmptyString) {
  1012. key_->clear();
  1013. }
  1014. clear_has_key();
  1015. }
  1016. inline const ::std::string& MockData::key() const {
  1017. return *key_;
  1018. }
  1019. inline void MockData::set_key(const ::std::string& value) {
  1020. set_has_key();
  1021. if (key_ == &::google::protobuf::internal::kEmptyString) {
  1022. key_ = new ::std::string;
  1023. }
  1024. key_->assign(value);
  1025. }
  1026. inline void MockData::set_key(const char* value) {
  1027. set_has_key();
  1028. if (key_ == &::google::protobuf::internal::kEmptyString) {
  1029. key_ = new ::std::string;
  1030. }
  1031. key_->assign(value);
  1032. }
  1033. inline void MockData::set_key(const void* value, size_t size) {
  1034. set_has_key();
  1035. if (key_ == &::google::protobuf::internal::kEmptyString) {
  1036. key_ = new ::std::string;
  1037. }
  1038. key_->assign(reinterpret_cast<const char*>(value), size);
  1039. }
  1040. inline ::std::string* MockData::mutable_key() {
  1041. set_has_key();
  1042. if (key_ == &::google::protobuf::internal::kEmptyString) {
  1043. key_ = new ::std::string;
  1044. }
  1045. return key_;
  1046. }
  1047. inline ::std::string* MockData::release_key() {
  1048. clear_has_key();
  1049. if (key_ == &::google::protobuf::internal::kEmptyString) {
  1050. return NULL;
  1051. } else {
  1052. ::std::string* temp = key_;
  1053. key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1054. return temp;
  1055. }
  1056. }
  1057. // required bytes value = 3;
  1058. inline bool MockData::has_value() const {
  1059. return (_has_bits_[0] & 0x00000004u) != 0;
  1060. }
  1061. inline void MockData::set_has_value() {
  1062. _has_bits_[0] |= 0x00000004u;
  1063. }
  1064. inline void MockData::clear_has_value() {
  1065. _has_bits_[0] &= ~0x00000004u;
  1066. }
  1067. inline void MockData::clear_value() {
  1068. if (value_ != &::google::protobuf::internal::kEmptyString) {
  1069. value_->clear();
  1070. }
  1071. clear_has_value();
  1072. }
  1073. inline const ::std::string& MockData::value() const {
  1074. return *value_;
  1075. }
  1076. inline void MockData::set_value(const ::std::string& value) {
  1077. set_has_value();
  1078. if (value_ == &::google::protobuf::internal::kEmptyString) {
  1079. value_ = new ::std::string;
  1080. }
  1081. value_->assign(value);
  1082. }
  1083. inline void MockData::set_value(const char* value) {
  1084. set_has_value();
  1085. if (value_ == &::google::protobuf::internal::kEmptyString) {
  1086. value_ = new ::std::string;
  1087. }
  1088. value_->assign(value);
  1089. }
  1090. inline void MockData::set_value(const void* value, size_t size) {
  1091. set_has_value();
  1092. if (value_ == &::google::protobuf::internal::kEmptyString) {
  1093. value_ = new ::std::string;
  1094. }
  1095. value_->assign(reinterpret_cast<const char*>(value), size);
  1096. }
  1097. inline ::std::string* MockData::mutable_value() {
  1098. set_has_value();
  1099. if (value_ == &::google::protobuf::internal::kEmptyString) {
  1100. value_ = new ::std::string;
  1101. }
  1102. return value_;
  1103. }
  1104. inline ::std::string* MockData::release_value() {
  1105. clear_has_value();
  1106. if (value_ == &::google::protobuf::internal::kEmptyString) {
  1107. return NULL;
  1108. } else {
  1109. ::std::string* temp = value_;
  1110. value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1111. return temp;
  1112. }
  1113. }
  1114. // required .lsmsearch.MockData.Type type = 4;
  1115. inline bool MockData::has_type() const {
  1116. return (_has_bits_[0] & 0x00000008u) != 0;
  1117. }
  1118. inline void MockData::set_has_type() {
  1119. _has_bits_[0] |= 0x00000008u;
  1120. }
  1121. inline void MockData::clear_has_type() {
  1122. _has_bits_[0] &= ~0x00000008u;
  1123. }
  1124. inline void MockData::clear_type() {
  1125. type_ = 0;
  1126. clear_has_type();
  1127. }
  1128. inline ::lsmsearch::MockData_Type MockData::type() const {
  1129. return static_cast< ::lsmsearch::MockData_Type >(type_);
  1130. }
  1131. inline void MockData::set_type(::lsmsearch::MockData_Type value) {
  1132. GOOGLE_DCHECK(::lsmsearch::MockData_Type_IsValid(value));
  1133. set_has_type();
  1134. type_ = value;
  1135. }
  1136. // optional bytes end_key = 5;
  1137. inline bool MockData::has_end_key() const {
  1138. return (_has_bits_[0] & 0x00000010u) != 0;
  1139. }
  1140. inline void MockData::set_has_end_key() {
  1141. _has_bits_[0] |= 0x00000010u;
  1142. }
  1143. inline void MockData::clear_has_end_key() {
  1144. _has_bits_[0] &= ~0x00000010u;
  1145. }
  1146. inline void MockData::clear_end_key() {
  1147. if (end_key_ != &::google::protobuf::internal::kEmptyString) {
  1148. end_key_->clear();
  1149. }
  1150. clear_has_end_key();
  1151. }
  1152. inline const ::std::string& MockData::end_key() const {
  1153. return *end_key_;
  1154. }
  1155. inline void MockData::set_end_key(const ::std::string& value) {
  1156. set_has_end_key();
  1157. if (end_key_ == &::google::protobuf::internal::kEmptyString) {
  1158. end_key_ = new ::std::string;
  1159. }
  1160. end_key_->assign(value);
  1161. }
  1162. inline void MockData::set_end_key(const char* value) {
  1163. set_has_end_key();
  1164. if (end_key_ == &::google::protobuf::internal::kEmptyString) {
  1165. end_key_ = new ::std::string;
  1166. }
  1167. end_key_->assign(value);
  1168. }
  1169. inline void MockData::set_end_key(const void* value, size_t size) {
  1170. set_has_end_key();
  1171. if (end_key_ == &::google::protobuf::internal::kEmptyString) {
  1172. end_key_ = new ::std::string;
  1173. }
  1174. end_key_->assign(reinterpret_cast<const char*>(value), size);
  1175. }
  1176. inline ::std::string* MockData::mutable_end_key() {
  1177. set_has_end_key();
  1178. if (end_key_ == &::google::protobuf::internal::kEmptyString) {
  1179. end_key_ = new ::std::string;
  1180. }
  1181. return end_key_;
  1182. }
  1183. inline ::std::string* MockData::release_end_key() {
  1184. clear_has_end_key();
  1185. if (end_key_ == &::google::protobuf::internal::kEmptyString) {
  1186. return NULL;
  1187. } else {
  1188. ::std::string* temp = end_key_;
  1189. end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  1190. return temp;
  1191. }
  1192. }
  1193. // -------------------------------------------------------------------
  1194. // MockDataList
  1195. // repeated .lsmsearch.MockData mock_data_list = 1;
  1196. inline int MockDataList::mock_data_list_size() const {
  1197. return mock_data_list_.size();
  1198. }
  1199. inline void MockDataList::clear_mock_data_list() {
  1200. mock_data_list_.Clear();
  1201. }
  1202. inline const ::lsmsearch::MockData& MockDataList::mock_data_list(int index) const {
  1203. return mock_data_list_.Get(index);
  1204. }
  1205. inline ::lsmsearch::MockData* MockDataList::mutable_mock_data_list(int index) {
  1206. return mock_data_list_.Mutable(index);
  1207. }
  1208. inline ::lsmsearch::MockData* MockDataList::add_mock_data_list() {
  1209. return mock_data_list_.Add();
  1210. }
  1211. inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >&
  1212. MockDataList::mock_data_list() const {
  1213. return mock_data_list_;
  1214. }
  1215. inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >*
  1216. MockDataList::mutable_mock_data_list() {
  1217. return &mock_data_list_;
  1218. }
  1219. // @@protoc_insertion_point(namespace_scope)
  1220. } // namespace lsmsearch
  1221. #ifndef SWIG
  1222. namespace google {
  1223. namespace protobuf {
  1224. template <>
  1225. inline const EnumDescriptor* GetEnumDescriptor< ::lsmsearch::MockData_Type>() {
  1226. return ::lsmsearch::MockData_Type_descriptor();
  1227. }
  1228. } // namespace google
  1229. } // namespace protobuf
  1230. #endif // SWIG
  1231. // @@protoc_insertion_point(global_scope)
  1232. #endif // PROTOBUF_search_5fstore_2eproto__INCLUDED