12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: search_store.proto
- #ifndef PROTOBUF_search_5fstore_2eproto__INCLUDED
- #define PROTOBUF_search_5fstore_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 2004000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/generated_message_reflection.h>
- // @@protoc_insertion_point(includes)
- namespace lsmsearch {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_search_5fstore_2eproto();
- void protobuf_AssignDesc_search_5fstore_2eproto();
- void protobuf_ShutdownFile_search_5fstore_2eproto();
- class StoreIndexField;
- class StoreDocument;
- class StoreDocValue;
- class StoreMeta;
- class MockData;
- class MockDataList;
- enum MockData_Type {
- MockData_Type_kUnknown = 0,
- MockData_Type_kUpdate = 1,
- MockData_Type_kMerge = 2,
- MockData_Type_kDelete = 3,
- MockData_Type_kDeleteRange = 4
- };
- bool MockData_Type_IsValid(int value);
- const MockData_Type MockData_Type_Type_MIN = MockData_Type_kUnknown;
- const MockData_Type MockData_Type_Type_MAX = MockData_Type_kDeleteRange;
- const int MockData_Type_Type_ARRAYSIZE = MockData_Type_Type_MAX + 1;
- const ::google::protobuf::EnumDescriptor* MockData_Type_descriptor();
- inline const ::std::string& MockData_Type_Name(MockData_Type value) {
- return ::google::protobuf::internal::NameOfEnum(
- MockData_Type_descriptor(), value);
- }
- inline bool MockData_Type_Parse(
- const ::std::string& name, MockData_Type* value) {
- return ::google::protobuf::internal::ParseNamedEnum<MockData_Type>(
- MockData_Type_descriptor(), name, value);
- }
- // ===================================================================
- class StoreIndexField : public ::google::protobuf::Message {
- public:
- StoreIndexField();
- virtual ~StoreIndexField();
-
- StoreIndexField(const StoreIndexField& from);
-
- inline StoreIndexField& operator=(const StoreIndexField& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const StoreIndexField& default_instance();
-
- void Swap(StoreIndexField* other);
-
- // implements Message ----------------------------------------------
-
- StoreIndexField* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const StoreIndexField& from);
- void MergeFrom(const StoreIndexField& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // required uint32 field_id = 1;
- inline bool has_field_id() const;
- inline void clear_field_id();
- static const int kFieldIdFieldNumber = 1;
- inline ::google::protobuf::uint32 field_id() const;
- inline void set_field_id(::google::protobuf::uint32 value);
-
- // required uint32 field_flag = 2;
- inline bool has_field_flag() const;
- inline void clear_field_flag();
- static const int kFieldFlagFieldNumber = 2;
- inline ::google::protobuf::uint32 field_flag() const;
- inline void set_field_flag(::google::protobuf::uint32 value);
-
- // required uint32 field_type = 3;
- inline bool has_field_type() const;
- inline void clear_field_type();
- static const int kFieldTypeFieldNumber = 3;
- inline ::google::protobuf::uint32 field_type() const;
- inline void set_field_type(::google::protobuf::uint32 value);
-
- // optional uint64 numeric_value = 4;
- inline bool has_numeric_value() const;
- inline void clear_numeric_value();
- static const int kNumericValueFieldNumber = 4;
- inline ::google::protobuf::uint64 numeric_value() const;
- inline void set_numeric_value(::google::protobuf::uint64 value);
-
- // optional bytes string_value = 5;
- inline bool has_string_value() const;
- inline void clear_string_value();
- static const int kStringValueFieldNumber = 5;
- inline const ::std::string& string_value() const;
- inline void set_string_value(const ::std::string& value);
- inline void set_string_value(const char* value);
- inline void set_string_value(const void* value, size_t size);
- inline ::std::string* mutable_string_value();
- inline ::std::string* release_string_value();
-
- // repeated bytes terms = 6;
- inline int terms_size() const;
- inline void clear_terms();
- static const int kTermsFieldNumber = 6;
- inline const ::std::string& terms(int index) const;
- inline ::std::string* mutable_terms(int index);
- inline void set_terms(int index, const ::std::string& value);
- inline void set_terms(int index, const char* value);
- inline void set_terms(int index, const void* value, size_t size);
- inline ::std::string* add_terms();
- inline void add_terms(const ::std::string& value);
- inline void add_terms(const char* value);
- inline void add_terms(const void* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& terms() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_terms();
-
- // optional uint32 suffix_len = 10;
- inline bool has_suffix_len() const;
- inline void clear_suffix_len();
- static const int kSuffixLenFieldNumber = 10;
- inline ::google::protobuf::uint32 suffix_len() const;
- inline void set_suffix_len(::google::protobuf::uint32 value);
-
- // @@protoc_insertion_point(class_scope:lsmsearch.StoreIndexField)
- private:
- inline void set_has_field_id();
- inline void clear_has_field_id();
- inline void set_has_field_flag();
- inline void clear_has_field_flag();
- inline void set_has_field_type();
- inline void clear_has_field_type();
- inline void set_has_numeric_value();
- inline void clear_has_numeric_value();
- inline void set_has_string_value();
- inline void clear_has_string_value();
- inline void set_has_suffix_len();
- inline void clear_has_suffix_len();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::uint32 field_id_;
- ::google::protobuf::uint32 field_flag_;
- ::google::protobuf::uint64 numeric_value_;
- ::std::string* string_value_;
- ::google::protobuf::uint32 field_type_;
- ::google::protobuf::uint32 suffix_len_;
- ::google::protobuf::RepeatedPtrField< ::std::string> terms_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static StoreIndexField* default_instance_;
- };
- // -------------------------------------------------------------------
- class StoreDocument : public ::google::protobuf::Message {
- public:
- StoreDocument();
- virtual ~StoreDocument();
-
- StoreDocument(const StoreDocument& from);
-
- inline StoreDocument& operator=(const StoreDocument& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const StoreDocument& default_instance();
-
- void Swap(StoreDocument* other);
-
- // implements Message ----------------------------------------------
-
- StoreDocument* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const StoreDocument& from);
- void MergeFrom(const StoreDocument& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // required uint64 document_id = 1;
- inline bool has_document_id() const;
- inline void clear_document_id();
- static const int kDocumentIdFieldNumber = 1;
- inline ::google::protobuf::uint64 document_id() const;
- inline void set_document_id(::google::protobuf::uint64 value);
-
- // repeated .lsmsearch.StoreIndexField fields = 2;
- inline int fields_size() const;
- inline void clear_fields();
- static const int kFieldsFieldNumber = 2;
- inline const ::lsmsearch::StoreIndexField& fields(int index) const;
- inline ::lsmsearch::StoreIndexField* mutable_fields(int index);
- inline ::lsmsearch::StoreIndexField* add_fields();
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
- fields() const;
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
- mutable_fields();
-
- // @@protoc_insertion_point(class_scope:lsmsearch.StoreDocument)
- private:
- inline void set_has_document_id();
- inline void clear_has_document_id();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::uint64 document_id_;
- ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField > fields_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static StoreDocument* default_instance_;
- };
- // -------------------------------------------------------------------
- class StoreDocValue : public ::google::protobuf::Message {
- public:
- StoreDocValue();
- virtual ~StoreDocValue();
-
- StoreDocValue(const StoreDocValue& from);
-
- inline StoreDocValue& operator=(const StoreDocValue& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const StoreDocValue& default_instance();
-
- void Swap(StoreDocValue* other);
-
- // implements Message ----------------------------------------------
-
- StoreDocValue* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const StoreDocValue& from);
- void MergeFrom(const StoreDocValue& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // repeated .lsmsearch.StoreIndexField fields = 1;
- inline int fields_size() const;
- inline void clear_fields();
- static const int kFieldsFieldNumber = 1;
- inline const ::lsmsearch::StoreIndexField& fields(int index) const;
- inline ::lsmsearch::StoreIndexField* mutable_fields(int index);
- inline ::lsmsearch::StoreIndexField* add_fields();
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
- fields() const;
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
- mutable_fields();
-
- // @@protoc_insertion_point(class_scope:lsmsearch.StoreDocValue)
- private:
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField > fields_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static StoreDocValue* default_instance_;
- };
- // -------------------------------------------------------------------
- class StoreMeta : public ::google::protobuf::Message {
- public:
- StoreMeta();
- virtual ~StoreMeta();
-
- StoreMeta(const StoreMeta& from);
-
- inline StoreMeta& operator=(const StoreMeta& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const StoreMeta& default_instance();
-
- void Swap(StoreMeta* other);
-
- // implements Message ----------------------------------------------
-
- StoreMeta* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const StoreMeta& from);
- void MergeFrom(const StoreMeta& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // optional uint64 total_documents = 1;
- inline bool has_total_documents() const;
- inline void clear_total_documents();
- static const int kTotalDocumentsFieldNumber = 1;
- inline ::google::protobuf::uint64 total_documents() const;
- inline void set_total_documents(::google::protobuf::uint64 value);
-
- // optional uint64 delete_documents = 2;
- inline bool has_delete_documents() const;
- inline void clear_delete_documents();
- static const int kDeleteDocumentsFieldNumber = 2;
- inline ::google::protobuf::uint64 delete_documents() const;
- inline void set_delete_documents(::google::protobuf::uint64 value);
-
- // optional uint64 increase_seq = 3;
- inline bool has_increase_seq() const;
- inline void clear_increase_seq();
- static const int kIncreaseSeqFieldNumber = 3;
- inline ::google::protobuf::uint64 increase_seq() const;
- inline void set_increase_seq(::google::protobuf::uint64 value);
-
- // optional uint64 terms_count = 4;
- inline bool has_terms_count() const;
- inline void clear_terms_count();
- static const int kTermsCountFieldNumber = 4;
- inline ::google::protobuf::uint64 terms_count() const;
- inline void set_terms_count(::google::protobuf::uint64 value);
-
- // @@protoc_insertion_point(class_scope:lsmsearch.StoreMeta)
- private:
- inline void set_has_total_documents();
- inline void clear_has_total_documents();
- inline void set_has_delete_documents();
- inline void clear_has_delete_documents();
- inline void set_has_increase_seq();
- inline void clear_has_increase_seq();
- inline void set_has_terms_count();
- inline void clear_has_terms_count();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::uint64 total_documents_;
- ::google::protobuf::uint64 delete_documents_;
- ::google::protobuf::uint64 increase_seq_;
- ::google::protobuf::uint64 terms_count_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static StoreMeta* default_instance_;
- };
- // -------------------------------------------------------------------
- class MockData : public ::google::protobuf::Message {
- public:
- MockData();
- virtual ~MockData();
-
- MockData(const MockData& from);
-
- inline MockData& operator=(const MockData& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const MockData& default_instance();
-
- void Swap(MockData* other);
-
- // implements Message ----------------------------------------------
-
- MockData* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const MockData& from);
- void MergeFrom(const MockData& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- typedef MockData_Type Type;
- static const Type kUnknown = MockData_Type_kUnknown;
- static const Type kUpdate = MockData_Type_kUpdate;
- static const Type kMerge = MockData_Type_kMerge;
- static const Type kDelete = MockData_Type_kDelete;
- static const Type kDeleteRange = MockData_Type_kDeleteRange;
- static inline bool Type_IsValid(int value) {
- return MockData_Type_IsValid(value);
- }
- static const Type Type_MIN =
- MockData_Type_Type_MIN;
- static const Type Type_MAX =
- MockData_Type_Type_MAX;
- static const int Type_ARRAYSIZE =
- MockData_Type_Type_ARRAYSIZE;
- static inline const ::google::protobuf::EnumDescriptor*
- Type_descriptor() {
- return MockData_Type_descriptor();
- }
- static inline const ::std::string& Type_Name(Type value) {
- return MockData_Type_Name(value);
- }
- static inline bool Type_Parse(const ::std::string& name,
- Type* value) {
- return MockData_Type_Parse(name, value);
- }
-
- // accessors -------------------------------------------------------
-
- // required uint32 column_type = 1;
- inline bool has_column_type() const;
- inline void clear_column_type();
- static const int kColumnTypeFieldNumber = 1;
- inline ::google::protobuf::uint32 column_type() const;
- inline void set_column_type(::google::protobuf::uint32 value);
-
- // required bytes key = 2;
- inline bool has_key() const;
- inline void clear_key();
- static const int kKeyFieldNumber = 2;
- inline const ::std::string& key() const;
- inline void set_key(const ::std::string& value);
- inline void set_key(const char* value);
- inline void set_key(const void* value, size_t size);
- inline ::std::string* mutable_key();
- inline ::std::string* release_key();
-
- // required bytes value = 3;
- inline bool has_value() const;
- inline void clear_value();
- static const int kValueFieldNumber = 3;
- inline const ::std::string& value() const;
- inline void set_value(const ::std::string& value);
- inline void set_value(const char* value);
- inline void set_value(const void* value, size_t size);
- inline ::std::string* mutable_value();
- inline ::std::string* release_value();
-
- // required .lsmsearch.MockData.Type type = 4;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 4;
- inline ::lsmsearch::MockData_Type type() const;
- inline void set_type(::lsmsearch::MockData_Type value);
-
- // optional bytes end_key = 5;
- inline bool has_end_key() const;
- inline void clear_end_key();
- static const int kEndKeyFieldNumber = 5;
- inline const ::std::string& end_key() const;
- inline void set_end_key(const ::std::string& value);
- inline void set_end_key(const char* value);
- inline void set_end_key(const void* value, size_t size);
- inline ::std::string* mutable_end_key();
- inline ::std::string* release_end_key();
-
- // @@protoc_insertion_point(class_scope:lsmsearch.MockData)
- private:
- inline void set_has_column_type();
- inline void clear_has_column_type();
- inline void set_has_key();
- inline void clear_has_key();
- inline void set_has_value();
- inline void clear_has_value();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_end_key();
- inline void clear_has_end_key();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* key_;
- ::google::protobuf::uint32 column_type_;
- int type_;
- ::std::string* value_;
- ::std::string* end_key_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static MockData* default_instance_;
- };
- // -------------------------------------------------------------------
- class MockDataList : public ::google::protobuf::Message {
- public:
- MockDataList();
- virtual ~MockDataList();
-
- MockDataList(const MockDataList& from);
-
- inline MockDataList& operator=(const MockDataList& from) {
- CopyFrom(from);
- return *this;
- }
-
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
- }
-
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
- }
-
- static const ::google::protobuf::Descriptor* descriptor();
- static const MockDataList& default_instance();
-
- void Swap(MockDataList* other);
-
- // implements Message ----------------------------------------------
-
- MockDataList* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const MockDataList& from);
- void MergeFrom(const MockDataList& from);
- void Clear();
- bool IsInitialized() const;
-
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
-
- ::google::protobuf::Metadata GetMetadata() const;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // repeated .lsmsearch.MockData mock_data_list = 1;
- inline int mock_data_list_size() const;
- inline void clear_mock_data_list();
- static const int kMockDataListFieldNumber = 1;
- inline const ::lsmsearch::MockData& mock_data_list(int index) const;
- inline ::lsmsearch::MockData* mutable_mock_data_list(int index);
- inline ::lsmsearch::MockData* add_mock_data_list();
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >&
- mock_data_list() const;
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >*
- mutable_mock_data_list();
-
- // @@protoc_insertion_point(class_scope:lsmsearch.MockDataList)
- private:
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData > mock_data_list_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_search_5fstore_2eproto();
- friend void protobuf_AssignDesc_search_5fstore_2eproto();
- friend void protobuf_ShutdownFile_search_5fstore_2eproto();
-
- void InitAsDefaultInstance();
- static MockDataList* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // StoreIndexField
- // required uint32 field_id = 1;
- inline bool StoreIndexField::has_field_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void StoreIndexField::set_has_field_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void StoreIndexField::clear_has_field_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void StoreIndexField::clear_field_id() {
- field_id_ = 0u;
- clear_has_field_id();
- }
- inline ::google::protobuf::uint32 StoreIndexField::field_id() const {
- return field_id_;
- }
- inline void StoreIndexField::set_field_id(::google::protobuf::uint32 value) {
- set_has_field_id();
- field_id_ = value;
- }
- // required uint32 field_flag = 2;
- inline bool StoreIndexField::has_field_flag() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void StoreIndexField::set_has_field_flag() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void StoreIndexField::clear_has_field_flag() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void StoreIndexField::clear_field_flag() {
- field_flag_ = 0u;
- clear_has_field_flag();
- }
- inline ::google::protobuf::uint32 StoreIndexField::field_flag() const {
- return field_flag_;
- }
- inline void StoreIndexField::set_field_flag(::google::protobuf::uint32 value) {
- set_has_field_flag();
- field_flag_ = value;
- }
- // required uint32 field_type = 3;
- inline bool StoreIndexField::has_field_type() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void StoreIndexField::set_has_field_type() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void StoreIndexField::clear_has_field_type() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void StoreIndexField::clear_field_type() {
- field_type_ = 0u;
- clear_has_field_type();
- }
- inline ::google::protobuf::uint32 StoreIndexField::field_type() const {
- return field_type_;
- }
- inline void StoreIndexField::set_field_type(::google::protobuf::uint32 value) {
- set_has_field_type();
- field_type_ = value;
- }
- // optional uint64 numeric_value = 4;
- inline bool StoreIndexField::has_numeric_value() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void StoreIndexField::set_has_numeric_value() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void StoreIndexField::clear_has_numeric_value() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void StoreIndexField::clear_numeric_value() {
- numeric_value_ = GOOGLE_ULONGLONG(0);
- clear_has_numeric_value();
- }
- inline ::google::protobuf::uint64 StoreIndexField::numeric_value() const {
- return numeric_value_;
- }
- inline void StoreIndexField::set_numeric_value(::google::protobuf::uint64 value) {
- set_has_numeric_value();
- numeric_value_ = value;
- }
- // optional bytes string_value = 5;
- inline bool StoreIndexField::has_string_value() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void StoreIndexField::set_has_string_value() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void StoreIndexField::clear_has_string_value() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void StoreIndexField::clear_string_value() {
- if (string_value_ != &::google::protobuf::internal::kEmptyString) {
- string_value_->clear();
- }
- clear_has_string_value();
- }
- inline const ::std::string& StoreIndexField::string_value() const {
- return *string_value_;
- }
- inline void StoreIndexField::set_string_value(const ::std::string& value) {
- set_has_string_value();
- if (string_value_ == &::google::protobuf::internal::kEmptyString) {
- string_value_ = new ::std::string;
- }
- string_value_->assign(value);
- }
- inline void StoreIndexField::set_string_value(const char* value) {
- set_has_string_value();
- if (string_value_ == &::google::protobuf::internal::kEmptyString) {
- string_value_ = new ::std::string;
- }
- string_value_->assign(value);
- }
- inline void StoreIndexField::set_string_value(const void* value, size_t size) {
- set_has_string_value();
- if (string_value_ == &::google::protobuf::internal::kEmptyString) {
- string_value_ = new ::std::string;
- }
- string_value_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* StoreIndexField::mutable_string_value() {
- set_has_string_value();
- if (string_value_ == &::google::protobuf::internal::kEmptyString) {
- string_value_ = new ::std::string;
- }
- return string_value_;
- }
- inline ::std::string* StoreIndexField::release_string_value() {
- clear_has_string_value();
- if (string_value_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = string_value_;
- string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- // repeated bytes terms = 6;
- inline int StoreIndexField::terms_size() const {
- return terms_.size();
- }
- inline void StoreIndexField::clear_terms() {
- terms_.Clear();
- }
- inline const ::std::string& StoreIndexField::terms(int index) const {
- return terms_.Get(index);
- }
- inline ::std::string* StoreIndexField::mutable_terms(int index) {
- return terms_.Mutable(index);
- }
- inline void StoreIndexField::set_terms(int index, const ::std::string& value) {
- terms_.Mutable(index)->assign(value);
- }
- inline void StoreIndexField::set_terms(int index, const char* value) {
- terms_.Mutable(index)->assign(value);
- }
- inline void StoreIndexField::set_terms(int index, const void* value, size_t size) {
- terms_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* StoreIndexField::add_terms() {
- return terms_.Add();
- }
- inline void StoreIndexField::add_terms(const ::std::string& value) {
- terms_.Add()->assign(value);
- }
- inline void StoreIndexField::add_terms(const char* value) {
- terms_.Add()->assign(value);
- }
- inline void StoreIndexField::add_terms(const void* value, size_t size) {
- terms_.Add()->assign(reinterpret_cast<const char*>(value), size);
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- StoreIndexField::terms() const {
- return terms_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- StoreIndexField::mutable_terms() {
- return &terms_;
- }
- // optional uint32 suffix_len = 10;
- inline bool StoreIndexField::has_suffix_len() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void StoreIndexField::set_has_suffix_len() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void StoreIndexField::clear_has_suffix_len() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void StoreIndexField::clear_suffix_len() {
- suffix_len_ = 0u;
- clear_has_suffix_len();
- }
- inline ::google::protobuf::uint32 StoreIndexField::suffix_len() const {
- return suffix_len_;
- }
- inline void StoreIndexField::set_suffix_len(::google::protobuf::uint32 value) {
- set_has_suffix_len();
- suffix_len_ = value;
- }
- // -------------------------------------------------------------------
- // StoreDocument
- // required uint64 document_id = 1;
- inline bool StoreDocument::has_document_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void StoreDocument::set_has_document_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void StoreDocument::clear_has_document_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void StoreDocument::clear_document_id() {
- document_id_ = GOOGLE_ULONGLONG(0);
- clear_has_document_id();
- }
- inline ::google::protobuf::uint64 StoreDocument::document_id() const {
- return document_id_;
- }
- inline void StoreDocument::set_document_id(::google::protobuf::uint64 value) {
- set_has_document_id();
- document_id_ = value;
- }
- // repeated .lsmsearch.StoreIndexField fields = 2;
- inline int StoreDocument::fields_size() const {
- return fields_.size();
- }
- inline void StoreDocument::clear_fields() {
- fields_.Clear();
- }
- inline const ::lsmsearch::StoreIndexField& StoreDocument::fields(int index) const {
- return fields_.Get(index);
- }
- inline ::lsmsearch::StoreIndexField* StoreDocument::mutable_fields(int index) {
- return fields_.Mutable(index);
- }
- inline ::lsmsearch::StoreIndexField* StoreDocument::add_fields() {
- return fields_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
- StoreDocument::fields() const {
- return fields_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
- StoreDocument::mutable_fields() {
- return &fields_;
- }
- // -------------------------------------------------------------------
- // StoreDocValue
- // repeated .lsmsearch.StoreIndexField fields = 1;
- inline int StoreDocValue::fields_size() const {
- return fields_.size();
- }
- inline void StoreDocValue::clear_fields() {
- fields_.Clear();
- }
- inline const ::lsmsearch::StoreIndexField& StoreDocValue::fields(int index) const {
- return fields_.Get(index);
- }
- inline ::lsmsearch::StoreIndexField* StoreDocValue::mutable_fields(int index) {
- return fields_.Mutable(index);
- }
- inline ::lsmsearch::StoreIndexField* StoreDocValue::add_fields() {
- return fields_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >&
- StoreDocValue::fields() const {
- return fields_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::StoreIndexField >*
- StoreDocValue::mutable_fields() {
- return &fields_;
- }
- // -------------------------------------------------------------------
- // StoreMeta
- // optional uint64 total_documents = 1;
- inline bool StoreMeta::has_total_documents() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void StoreMeta::set_has_total_documents() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void StoreMeta::clear_has_total_documents() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void StoreMeta::clear_total_documents() {
- total_documents_ = GOOGLE_ULONGLONG(0);
- clear_has_total_documents();
- }
- inline ::google::protobuf::uint64 StoreMeta::total_documents() const {
- return total_documents_;
- }
- inline void StoreMeta::set_total_documents(::google::protobuf::uint64 value) {
- set_has_total_documents();
- total_documents_ = value;
- }
- // optional uint64 delete_documents = 2;
- inline bool StoreMeta::has_delete_documents() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void StoreMeta::set_has_delete_documents() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void StoreMeta::clear_has_delete_documents() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void StoreMeta::clear_delete_documents() {
- delete_documents_ = GOOGLE_ULONGLONG(0);
- clear_has_delete_documents();
- }
- inline ::google::protobuf::uint64 StoreMeta::delete_documents() const {
- return delete_documents_;
- }
- inline void StoreMeta::set_delete_documents(::google::protobuf::uint64 value) {
- set_has_delete_documents();
- delete_documents_ = value;
- }
- // optional uint64 increase_seq = 3;
- inline bool StoreMeta::has_increase_seq() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void StoreMeta::set_has_increase_seq() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void StoreMeta::clear_has_increase_seq() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void StoreMeta::clear_increase_seq() {
- increase_seq_ = GOOGLE_ULONGLONG(0);
- clear_has_increase_seq();
- }
- inline ::google::protobuf::uint64 StoreMeta::increase_seq() const {
- return increase_seq_;
- }
- inline void StoreMeta::set_increase_seq(::google::protobuf::uint64 value) {
- set_has_increase_seq();
- increase_seq_ = value;
- }
- // optional uint64 terms_count = 4;
- inline bool StoreMeta::has_terms_count() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void StoreMeta::set_has_terms_count() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void StoreMeta::clear_has_terms_count() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void StoreMeta::clear_terms_count() {
- terms_count_ = GOOGLE_ULONGLONG(0);
- clear_has_terms_count();
- }
- inline ::google::protobuf::uint64 StoreMeta::terms_count() const {
- return terms_count_;
- }
- inline void StoreMeta::set_terms_count(::google::protobuf::uint64 value) {
- set_has_terms_count();
- terms_count_ = value;
- }
- // -------------------------------------------------------------------
- // MockData
- // required uint32 column_type = 1;
- inline bool MockData::has_column_type() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void MockData::set_has_column_type() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void MockData::clear_has_column_type() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void MockData::clear_column_type() {
- column_type_ = 0u;
- clear_has_column_type();
- }
- inline ::google::protobuf::uint32 MockData::column_type() const {
- return column_type_;
- }
- inline void MockData::set_column_type(::google::protobuf::uint32 value) {
- set_has_column_type();
- column_type_ = value;
- }
- // required bytes key = 2;
- inline bool MockData::has_key() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void MockData::set_has_key() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void MockData::clear_has_key() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void MockData::clear_key() {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- key_->clear();
- }
- clear_has_key();
- }
- inline const ::std::string& MockData::key() const {
- return *key_;
- }
- inline void MockData::set_key(const ::std::string& value) {
- set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(value);
- }
- inline void MockData::set_key(const char* value) {
- set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(value);
- }
- inline void MockData::set_key(const void* value, size_t size) {
- set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* MockData::mutable_key() {
- set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- return key_;
- }
- inline ::std::string* MockData::release_key() {
- clear_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = key_;
- key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- // required bytes value = 3;
- inline bool MockData::has_value() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void MockData::set_has_value() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void MockData::clear_has_value() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void MockData::clear_value() {
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- value_->clear();
- }
- clear_has_value();
- }
- inline const ::std::string& MockData::value() const {
- return *value_;
- }
- inline void MockData::set_value(const ::std::string& value) {
- set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(value);
- }
- inline void MockData::set_value(const char* value) {
- set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(value);
- }
- inline void MockData::set_value(const void* value, size_t size) {
- set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* MockData::mutable_value() {
- set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- return value_;
- }
- inline ::std::string* MockData::release_value() {
- clear_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = value_;
- value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- // required .lsmsearch.MockData.Type type = 4;
- inline bool MockData::has_type() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void MockData::set_has_type() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void MockData::clear_has_type() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void MockData::clear_type() {
- type_ = 0;
- clear_has_type();
- }
- inline ::lsmsearch::MockData_Type MockData::type() const {
- return static_cast< ::lsmsearch::MockData_Type >(type_);
- }
- inline void MockData::set_type(::lsmsearch::MockData_Type value) {
- GOOGLE_DCHECK(::lsmsearch::MockData_Type_IsValid(value));
- set_has_type();
- type_ = value;
- }
- // optional bytes end_key = 5;
- inline bool MockData::has_end_key() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void MockData::set_has_end_key() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void MockData::clear_has_end_key() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void MockData::clear_end_key() {
- if (end_key_ != &::google::protobuf::internal::kEmptyString) {
- end_key_->clear();
- }
- clear_has_end_key();
- }
- inline const ::std::string& MockData::end_key() const {
- return *end_key_;
- }
- inline void MockData::set_end_key(const ::std::string& value) {
- set_has_end_key();
- if (end_key_ == &::google::protobuf::internal::kEmptyString) {
- end_key_ = new ::std::string;
- }
- end_key_->assign(value);
- }
- inline void MockData::set_end_key(const char* value) {
- set_has_end_key();
- if (end_key_ == &::google::protobuf::internal::kEmptyString) {
- end_key_ = new ::std::string;
- }
- end_key_->assign(value);
- }
- inline void MockData::set_end_key(const void* value, size_t size) {
- set_has_end_key();
- if (end_key_ == &::google::protobuf::internal::kEmptyString) {
- end_key_ = new ::std::string;
- }
- end_key_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* MockData::mutable_end_key() {
- set_has_end_key();
- if (end_key_ == &::google::protobuf::internal::kEmptyString) {
- end_key_ = new ::std::string;
- }
- return end_key_;
- }
- inline ::std::string* MockData::release_end_key() {
- clear_has_end_key();
- if (end_key_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = end_key_;
- end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- // -------------------------------------------------------------------
- // MockDataList
- // repeated .lsmsearch.MockData mock_data_list = 1;
- inline int MockDataList::mock_data_list_size() const {
- return mock_data_list_.size();
- }
- inline void MockDataList::clear_mock_data_list() {
- mock_data_list_.Clear();
- }
- inline const ::lsmsearch::MockData& MockDataList::mock_data_list(int index) const {
- return mock_data_list_.Get(index);
- }
- inline ::lsmsearch::MockData* MockDataList::mutable_mock_data_list(int index) {
- return mock_data_list_.Mutable(index);
- }
- inline ::lsmsearch::MockData* MockDataList::add_mock_data_list() {
- return mock_data_list_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >&
- MockDataList::mock_data_list() const {
- return mock_data_list_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::lsmsearch::MockData >*
- MockDataList::mutable_mock_data_list() {
- return &mock_data_list_;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace lsmsearch
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::lsmsearch::MockData_Type>() {
- return ::lsmsearch::MockData_Type_descriptor();
- }
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_search_5fstore_2eproto__INCLUDED
|