123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
- #include "search_store.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- namespace lsmsearch {
- namespace {
- const ::google::protobuf::Descriptor* StoreIndexField_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- StoreIndexField_reflection_ = NULL;
- const ::google::protobuf::Descriptor* StoreDocument_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- StoreDocument_reflection_ = NULL;
- const ::google::protobuf::Descriptor* StoreDocValue_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- StoreDocValue_reflection_ = NULL;
- const ::google::protobuf::Descriptor* StoreMeta_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- StoreMeta_reflection_ = NULL;
- const ::google::protobuf::Descriptor* MockData_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- MockData_reflection_ = NULL;
- const ::google::protobuf::EnumDescriptor* MockData_Type_descriptor_ = NULL;
- const ::google::protobuf::Descriptor* MockDataList_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- MockDataList_reflection_ = NULL;
- } // namespace
- void protobuf_AssignDesc_search_5fstore_2eproto() {
- protobuf_AddDesc_search_5fstore_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "search_store.proto");
- GOOGLE_CHECK(file != NULL);
- StoreIndexField_descriptor_ = file->message_type(0);
- static const int StoreIndexField_offsets_[7] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, field_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, field_flag_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, field_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, numeric_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, string_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, terms_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, suffix_len_),
- };
- StoreIndexField_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StoreIndexField_descriptor_,
- StoreIndexField::default_instance_,
- StoreIndexField_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreIndexField, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StoreIndexField));
- StoreDocument_descriptor_ = file->message_type(1);
- static const int StoreDocument_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocument, document_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocument, fields_),
- };
- StoreDocument_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StoreDocument_descriptor_,
- StoreDocument::default_instance_,
- StoreDocument_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocument, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocument, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StoreDocument));
- StoreDocValue_descriptor_ = file->message_type(2);
- static const int StoreDocValue_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocValue, fields_),
- };
- StoreDocValue_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StoreDocValue_descriptor_,
- StoreDocValue::default_instance_,
- StoreDocValue_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocValue, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreDocValue, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StoreDocValue));
- StoreMeta_descriptor_ = file->message_type(3);
- static const int StoreMeta_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, total_documents_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, delete_documents_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, increase_seq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, terms_count_),
- };
- StoreMeta_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StoreMeta_descriptor_,
- StoreMeta::default_instance_,
- StoreMeta_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StoreMeta, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StoreMeta));
- MockData_descriptor_ = file->message_type(4);
- static const int MockData_offsets_[5] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, column_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, end_key_),
- };
- MockData_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MockData_descriptor_,
- MockData::default_instance_,
- MockData_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockData, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MockData));
- MockData_Type_descriptor_ = MockData_descriptor_->enum_type(0);
- MockDataList_descriptor_ = file->message_type(5);
- static const int MockDataList_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockDataList, mock_data_list_),
- };
- MockDataList_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MockDataList_descriptor_,
- MockDataList::default_instance_,
- MockDataList_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockDataList, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MockDataList, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MockDataList));
- }
- namespace {
- GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
- inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_search_5fstore_2eproto);
- }
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StoreIndexField_descriptor_, &StoreIndexField::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StoreDocument_descriptor_, &StoreDocument::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StoreDocValue_descriptor_, &StoreDocValue::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StoreMeta_descriptor_, &StoreMeta::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MockData_descriptor_, &MockData::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MockDataList_descriptor_, &MockDataList::default_instance());
- }
- } // namespace
- void protobuf_ShutdownFile_search_5fstore_2eproto() {
- delete StoreIndexField::default_instance_;
- delete StoreIndexField_reflection_;
- delete StoreDocument::default_instance_;
- delete StoreDocument_reflection_;
- delete StoreDocValue::default_instance_;
- delete StoreDocValue_reflection_;
- delete StoreMeta::default_instance_;
- delete StoreMeta_reflection_;
- delete MockData::default_instance_;
- delete MockData_reflection_;
- delete MockDataList::default_instance_;
- delete MockDataList_reflection_;
- }
- void protobuf_AddDesc_search_5fstore_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\022search_store.proto\022\tlsmsearch\"\233\001\n\017Stor"
- "eIndexField\022\020\n\010field_id\030\001 \002(\r\022\022\n\nfield_f"
- "lag\030\002 \002(\r\022\022\n\nfield_type\030\003 \002(\r\022\025\n\rnumeric"
- "_value\030\004 \001(\004\022\024\n\014string_value\030\005 \001(\014\022\r\n\005te"
- "rms\030\006 \003(\014\022\022\n\nsuffix_len\030\n \001(\r\"P\n\rStoreDo"
- "cument\022\023\n\013document_id\030\001 \002(\004\022*\n\006fields\030\002 "
- "\003(\0132\032.lsmsearch.StoreIndexField\";\n\rStore"
- "DocValue\022*\n\006fields\030\001 \003(\0132\032.lsmsearch.Sto"
- "reIndexField\"i\n\tStoreMeta\022\027\n\017total_docum"
- "ents\030\001 \001(\004\022\030\n\020delete_documents\030\002 \001(\004\022\024\n\014"
- "increase_seq\030\003 \001(\004\022\023\n\013terms_count\030\004 \001(\004\""
- "\302\001\n\010MockData\022\023\n\013column_type\030\001 \002(\r\022\013\n\003key"
- "\030\002 \002(\014\022\r\n\005value\030\003 \002(\014\022&\n\004type\030\004 \002(\0162\030.ls"
- "msearch.MockData.Type\022\017\n\007end_key\030\005 \001(\014\"L"
- "\n\004Type\022\014\n\010kUnknown\020\000\022\013\n\007kUpdate\020\001\022\n\n\006kMe"
- "rge\020\002\022\013\n\007kDelete\020\003\022\020\n\014kDeleteRange\020\004\";\n\014"
- "MockDataList\022+\n\016mock_data_list\030\001 \003(\0132\023.l"
- "smsearch.MockData", 697);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "search_store.proto", &protobuf_RegisterTypes);
- StoreIndexField::default_instance_ = new StoreIndexField();
- StoreDocument::default_instance_ = new StoreDocument();
- StoreDocValue::default_instance_ = new StoreDocValue();
- StoreMeta::default_instance_ = new StoreMeta();
- MockData::default_instance_ = new MockData();
- MockDataList::default_instance_ = new MockDataList();
- StoreIndexField::default_instance_->InitAsDefaultInstance();
- StoreDocument::default_instance_->InitAsDefaultInstance();
- StoreDocValue::default_instance_->InitAsDefaultInstance();
- StoreMeta::default_instance_->InitAsDefaultInstance();
- MockData::default_instance_->InitAsDefaultInstance();
- MockDataList::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_search_5fstore_2eproto);
- }
- // Force AddDescriptors() to be called at static initialization time.
- struct StaticDescriptorInitializer_search_5fstore_2eproto {
- StaticDescriptorInitializer_search_5fstore_2eproto() {
- protobuf_AddDesc_search_5fstore_2eproto();
- }
- } static_descriptor_initializer_search_5fstore_2eproto_;
- // ===================================================================
- #ifndef _MSC_VER
- const int StoreIndexField::kFieldIdFieldNumber;
- const int StoreIndexField::kFieldFlagFieldNumber;
- const int StoreIndexField::kFieldTypeFieldNumber;
- const int StoreIndexField::kNumericValueFieldNumber;
- const int StoreIndexField::kStringValueFieldNumber;
- const int StoreIndexField::kTermsFieldNumber;
- const int StoreIndexField::kSuffixLenFieldNumber;
- #endif // !_MSC_VER
- StoreIndexField::StoreIndexField()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void StoreIndexField::InitAsDefaultInstance() {
- }
- StoreIndexField::StoreIndexField(const StoreIndexField& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void StoreIndexField::SharedCtor() {
- _cached_size_ = 0;
- field_id_ = 0u;
- field_flag_ = 0u;
- field_type_ = 0u;
- numeric_value_ = GOOGLE_ULONGLONG(0);
- string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- suffix_len_ = 0u;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- StoreIndexField::~StoreIndexField() {
- SharedDtor();
- }
- void StoreIndexField::SharedDtor() {
- if (string_value_ != &::google::protobuf::internal::kEmptyString) {
- delete string_value_;
- }
- if (this != default_instance_) {
- }
- }
- void StoreIndexField::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* StoreIndexField::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StoreIndexField_descriptor_;
- }
- const StoreIndexField& StoreIndexField::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- StoreIndexField* StoreIndexField::default_instance_ = NULL;
- StoreIndexField* StoreIndexField::New() const {
- return new StoreIndexField;
- }
- void StoreIndexField::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- field_id_ = 0u;
- field_flag_ = 0u;
- field_type_ = 0u;
- numeric_value_ = GOOGLE_ULONGLONG(0);
- if (has_string_value()) {
- if (string_value_ != &::google::protobuf::internal::kEmptyString) {
- string_value_->clear();
- }
- }
- suffix_len_ = 0u;
- }
- terms_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool StoreIndexField::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required uint32 field_id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &field_id_)));
- set_has_field_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_field_flag;
- break;
- }
-
- // required uint32 field_flag = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_field_flag:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &field_flag_)));
- set_has_field_flag();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_field_type;
- break;
- }
-
- // required uint32 field_type = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_field_type:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &field_type_)));
- set_has_field_type();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(32)) goto parse_numeric_value;
- break;
- }
-
- // optional uint64 numeric_value = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_numeric_value:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &numeric_value_)));
- set_has_numeric_value();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(42)) goto parse_string_value;
- break;
- }
-
- // optional bytes string_value = 5;
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_string_value:
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->mutable_string_value()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(50)) goto parse_terms;
- break;
- }
-
- // repeated bytes terms = 6;
- case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_terms:
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->add_terms()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(50)) goto parse_terms;
- if (input->ExpectTag(80)) goto parse_suffix_len;
- break;
- }
-
- // optional uint32 suffix_len = 10;
- case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_suffix_len:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &suffix_len_)));
- set_has_suffix_len();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void StoreIndexField::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // required uint32 field_id = 1;
- if (has_field_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->field_id(), output);
- }
-
- // required uint32 field_flag = 2;
- if (has_field_flag()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->field_flag(), output);
- }
-
- // required uint32 field_type = 3;
- if (has_field_type()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->field_type(), output);
- }
-
- // optional uint64 numeric_value = 4;
- if (has_numeric_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->numeric_value(), output);
- }
-
- // optional bytes string_value = 5;
- if (has_string_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 5, this->string_value(), output);
- }
-
- // repeated bytes terms = 6;
- for (int i = 0; i < this->terms_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 6, this->terms(i), output);
- }
-
- // optional uint32 suffix_len = 10;
- if (has_suffix_len()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->suffix_len(), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* StoreIndexField::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // required uint32 field_id = 1;
- if (has_field_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->field_id(), target);
- }
-
- // required uint32 field_flag = 2;
- if (has_field_flag()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->field_flag(), target);
- }
-
- // required uint32 field_type = 3;
- if (has_field_type()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->field_type(), target);
- }
-
- // optional uint64 numeric_value = 4;
- if (has_numeric_value()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->numeric_value(), target);
- }
-
- // optional bytes string_value = 5;
- if (has_string_value()) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 5, this->string_value(), target);
- }
-
- // repeated bytes terms = 6;
- for (int i = 0; i < this->terms_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteBytesToArray(6, this->terms(i), target);
- }
-
- // optional uint32 suffix_len = 10;
- if (has_suffix_len()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->suffix_len(), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int StoreIndexField::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // required uint32 field_id = 1;
- if (has_field_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->field_id());
- }
-
- // required uint32 field_flag = 2;
- if (has_field_flag()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->field_flag());
- }
-
- // required uint32 field_type = 3;
- if (has_field_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->field_type());
- }
-
- // optional uint64 numeric_value = 4;
- if (has_numeric_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->numeric_value());
- }
-
- // optional bytes string_value = 5;
- if (has_string_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->string_value());
- }
-
- // optional uint32 suffix_len = 10;
- if (has_suffix_len()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->suffix_len());
- }
-
- }
- // repeated bytes terms = 6;
- total_size += 1 * this->terms_size();
- for (int i = 0; i < this->terms_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->terms(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void StoreIndexField::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const StoreIndexField* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StoreIndexField*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void StoreIndexField::MergeFrom(const StoreIndexField& from) {
- GOOGLE_CHECK_NE(&from, this);
- terms_.MergeFrom(from.terms_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_field_id()) {
- set_field_id(from.field_id());
- }
- if (from.has_field_flag()) {
- set_field_flag(from.field_flag());
- }
- if (from.has_field_type()) {
- set_field_type(from.field_type());
- }
- if (from.has_numeric_value()) {
- set_numeric_value(from.numeric_value());
- }
- if (from.has_string_value()) {
- set_string_value(from.string_value());
- }
- if (from.has_suffix_len()) {
- set_suffix_len(from.suffix_len());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void StoreIndexField::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StoreIndexField::CopyFrom(const StoreIndexField& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StoreIndexField::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
-
- return true;
- }
- void StoreIndexField::Swap(StoreIndexField* other) {
- if (other != this) {
- std::swap(field_id_, other->field_id_);
- std::swap(field_flag_, other->field_flag_);
- std::swap(field_type_, other->field_type_);
- std::swap(numeric_value_, other->numeric_value_);
- std::swap(string_value_, other->string_value_);
- terms_.Swap(&other->terms_);
- std::swap(suffix_len_, other->suffix_len_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata StoreIndexField::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StoreIndexField_descriptor_;
- metadata.reflection = StoreIndexField_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int StoreDocument::kDocumentIdFieldNumber;
- const int StoreDocument::kFieldsFieldNumber;
- #endif // !_MSC_VER
- StoreDocument::StoreDocument()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void StoreDocument::InitAsDefaultInstance() {
- }
- StoreDocument::StoreDocument(const StoreDocument& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void StoreDocument::SharedCtor() {
- _cached_size_ = 0;
- document_id_ = GOOGLE_ULONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- StoreDocument::~StoreDocument() {
- SharedDtor();
- }
- void StoreDocument::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void StoreDocument::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* StoreDocument::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StoreDocument_descriptor_;
- }
- const StoreDocument& StoreDocument::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- StoreDocument* StoreDocument::default_instance_ = NULL;
- StoreDocument* StoreDocument::New() const {
- return new StoreDocument;
- }
- void StoreDocument::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- document_id_ = GOOGLE_ULONGLONG(0);
- }
- fields_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool StoreDocument::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required uint64 document_id = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &document_id_)));
- set_has_document_id();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(18)) goto parse_fields;
- break;
- }
-
- // repeated .lsmsearch.StoreIndexField fields = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fields:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_fields()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(18)) goto parse_fields;
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void StoreDocument::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // required uint64 document_id = 1;
- if (has_document_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->document_id(), output);
- }
-
- // repeated .lsmsearch.StoreIndexField fields = 2;
- for (int i = 0; i < this->fields_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->fields(i), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* StoreDocument::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // required uint64 document_id = 1;
- if (has_document_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->document_id(), target);
- }
-
- // repeated .lsmsearch.StoreIndexField fields = 2;
- for (int i = 0; i < this->fields_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->fields(i), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int StoreDocument::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // required uint64 document_id = 1;
- if (has_document_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->document_id());
- }
-
- }
- // repeated .lsmsearch.StoreIndexField fields = 2;
- total_size += 1 * this->fields_size();
- for (int i = 0; i < this->fields_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fields(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void StoreDocument::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const StoreDocument* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StoreDocument*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void StoreDocument::MergeFrom(const StoreDocument& from) {
- GOOGLE_CHECK_NE(&from, this);
- fields_.MergeFrom(from.fields_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_document_id()) {
- set_document_id(from.document_id());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void StoreDocument::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StoreDocument::CopyFrom(const StoreDocument& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StoreDocument::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
-
- for (int i = 0; i < fields_size(); i++) {
- if (!this->fields(i).IsInitialized()) return false;
- }
- return true;
- }
- void StoreDocument::Swap(StoreDocument* other) {
- if (other != this) {
- std::swap(document_id_, other->document_id_);
- fields_.Swap(&other->fields_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata StoreDocument::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StoreDocument_descriptor_;
- metadata.reflection = StoreDocument_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int StoreDocValue::kFieldsFieldNumber;
- #endif // !_MSC_VER
- StoreDocValue::StoreDocValue()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void StoreDocValue::InitAsDefaultInstance() {
- }
- StoreDocValue::StoreDocValue(const StoreDocValue& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void StoreDocValue::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- StoreDocValue::~StoreDocValue() {
- SharedDtor();
- }
- void StoreDocValue::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void StoreDocValue::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* StoreDocValue::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StoreDocValue_descriptor_;
- }
- const StoreDocValue& StoreDocValue::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- StoreDocValue* StoreDocValue::default_instance_ = NULL;
- StoreDocValue* StoreDocValue::New() const {
- return new StoreDocValue;
- }
- void StoreDocValue::Clear() {
- fields_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool StoreDocValue::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .lsmsearch.StoreIndexField fields = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fields:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_fields()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(10)) goto parse_fields;
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void StoreDocValue::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // repeated .lsmsearch.StoreIndexField fields = 1;
- for (int i = 0; i < this->fields_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->fields(i), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* StoreDocValue::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // repeated .lsmsearch.StoreIndexField fields = 1;
- for (int i = 0; i < this->fields_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->fields(i), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int StoreDocValue::ByteSize() const {
- int total_size = 0;
-
- // repeated .lsmsearch.StoreIndexField fields = 1;
- total_size += 1 * this->fields_size();
- for (int i = 0; i < this->fields_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fields(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void StoreDocValue::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const StoreDocValue* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StoreDocValue*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void StoreDocValue::MergeFrom(const StoreDocValue& from) {
- GOOGLE_CHECK_NE(&from, this);
- fields_.MergeFrom(from.fields_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void StoreDocValue::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StoreDocValue::CopyFrom(const StoreDocValue& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StoreDocValue::IsInitialized() const {
-
- for (int i = 0; i < fields_size(); i++) {
- if (!this->fields(i).IsInitialized()) return false;
- }
- return true;
- }
- void StoreDocValue::Swap(StoreDocValue* other) {
- if (other != this) {
- fields_.Swap(&other->fields_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata StoreDocValue::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StoreDocValue_descriptor_;
- metadata.reflection = StoreDocValue_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int StoreMeta::kTotalDocumentsFieldNumber;
- const int StoreMeta::kDeleteDocumentsFieldNumber;
- const int StoreMeta::kIncreaseSeqFieldNumber;
- const int StoreMeta::kTermsCountFieldNumber;
- #endif // !_MSC_VER
- StoreMeta::StoreMeta()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void StoreMeta::InitAsDefaultInstance() {
- }
- StoreMeta::StoreMeta(const StoreMeta& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void StoreMeta::SharedCtor() {
- _cached_size_ = 0;
- total_documents_ = GOOGLE_ULONGLONG(0);
- delete_documents_ = GOOGLE_ULONGLONG(0);
- increase_seq_ = GOOGLE_ULONGLONG(0);
- terms_count_ = GOOGLE_ULONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- StoreMeta::~StoreMeta() {
- SharedDtor();
- }
- void StoreMeta::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void StoreMeta::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* StoreMeta::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StoreMeta_descriptor_;
- }
- const StoreMeta& StoreMeta::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- StoreMeta* StoreMeta::default_instance_ = NULL;
- StoreMeta* StoreMeta::New() const {
- return new StoreMeta;
- }
- void StoreMeta::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- total_documents_ = GOOGLE_ULONGLONG(0);
- delete_documents_ = GOOGLE_ULONGLONG(0);
- increase_seq_ = GOOGLE_ULONGLONG(0);
- terms_count_ = GOOGLE_ULONGLONG(0);
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool StoreMeta::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional uint64 total_documents = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &total_documents_)));
- set_has_total_documents();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(16)) goto parse_delete_documents;
- break;
- }
-
- // optional uint64 delete_documents = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_delete_documents:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &delete_documents_)));
- set_has_delete_documents();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(24)) goto parse_increase_seq;
- break;
- }
-
- // optional uint64 increase_seq = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_increase_seq:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &increase_seq_)));
- set_has_increase_seq();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(32)) goto parse_terms_count;
- break;
- }
-
- // optional uint64 terms_count = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_terms_count:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
- input, &terms_count_)));
- set_has_terms_count();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void StoreMeta::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional uint64 total_documents = 1;
- if (has_total_documents()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->total_documents(), output);
- }
-
- // optional uint64 delete_documents = 2;
- if (has_delete_documents()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->delete_documents(), output);
- }
-
- // optional uint64 increase_seq = 3;
- if (has_increase_seq()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->increase_seq(), output);
- }
-
- // optional uint64 terms_count = 4;
- if (has_terms_count()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->terms_count(), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* StoreMeta::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional uint64 total_documents = 1;
- if (has_total_documents()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->total_documents(), target);
- }
-
- // optional uint64 delete_documents = 2;
- if (has_delete_documents()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->delete_documents(), target);
- }
-
- // optional uint64 increase_seq = 3;
- if (has_increase_seq()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->increase_seq(), target);
- }
-
- // optional uint64 terms_count = 4;
- if (has_terms_count()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->terms_count(), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int StoreMeta::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional uint64 total_documents = 1;
- if (has_total_documents()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->total_documents());
- }
-
- // optional uint64 delete_documents = 2;
- if (has_delete_documents()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->delete_documents());
- }
-
- // optional uint64 increase_seq = 3;
- if (has_increase_seq()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->increase_seq());
- }
-
- // optional uint64 terms_count = 4;
- if (has_terms_count()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt64Size(
- this->terms_count());
- }
-
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void StoreMeta::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const StoreMeta* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StoreMeta*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void StoreMeta::MergeFrom(const StoreMeta& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_total_documents()) {
- set_total_documents(from.total_documents());
- }
- if (from.has_delete_documents()) {
- set_delete_documents(from.delete_documents());
- }
- if (from.has_increase_seq()) {
- set_increase_seq(from.increase_seq());
- }
- if (from.has_terms_count()) {
- set_terms_count(from.terms_count());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void StoreMeta::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StoreMeta::CopyFrom(const StoreMeta& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StoreMeta::IsInitialized() const {
-
- return true;
- }
- void StoreMeta::Swap(StoreMeta* other) {
- if (other != this) {
- std::swap(total_documents_, other->total_documents_);
- std::swap(delete_documents_, other->delete_documents_);
- std::swap(increase_seq_, other->increase_seq_);
- std::swap(terms_count_, other->terms_count_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata StoreMeta::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StoreMeta_descriptor_;
- metadata.reflection = StoreMeta_reflection_;
- return metadata;
- }
- // ===================================================================
- const ::google::protobuf::EnumDescriptor* MockData_Type_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MockData_Type_descriptor_;
- }
- bool MockData_Type_IsValid(int value) {
- switch(value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- return true;
- default:
- return false;
- }
- }
- #ifndef _MSC_VER
- const MockData_Type MockData::kUnknown;
- const MockData_Type MockData::kUpdate;
- const MockData_Type MockData::kMerge;
- const MockData_Type MockData::kDelete;
- const MockData_Type MockData::kDeleteRange;
- const MockData_Type MockData::Type_MIN;
- const MockData_Type MockData::Type_MAX;
- const int MockData::Type_ARRAYSIZE;
- #endif // _MSC_VER
- #ifndef _MSC_VER
- const int MockData::kColumnTypeFieldNumber;
- const int MockData::kKeyFieldNumber;
- const int MockData::kValueFieldNumber;
- const int MockData::kTypeFieldNumber;
- const int MockData::kEndKeyFieldNumber;
- #endif // !_MSC_VER
- MockData::MockData()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void MockData::InitAsDefaultInstance() {
- }
- MockData::MockData(const MockData& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void MockData::SharedCtor() {
- _cached_size_ = 0;
- column_type_ = 0u;
- key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- type_ = 0;
- end_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- MockData::~MockData() {
- SharedDtor();
- }
- void MockData::SharedDtor() {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- delete key_;
- }
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- delete value_;
- }
- if (end_key_ != &::google::protobuf::internal::kEmptyString) {
- delete end_key_;
- }
- if (this != default_instance_) {
- }
- }
- void MockData::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* MockData::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MockData_descriptor_;
- }
- const MockData& MockData::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- MockData* MockData::default_instance_ = NULL;
- MockData* MockData::New() const {
- return new MockData;
- }
- void MockData::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- column_type_ = 0u;
- if (has_key()) {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- key_->clear();
- }
- }
- if (has_value()) {
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- value_->clear();
- }
- }
- type_ = 0;
- if (has_end_key()) {
- if (end_key_ != &::google::protobuf::internal::kEmptyString) {
- end_key_->clear();
- }
- }
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool MockData::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required uint32 column_type = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
- input, &column_type_)));
- set_has_column_type();
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(18)) goto parse_key;
- break;
- }
-
- // required bytes key = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_key:
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->mutable_key()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(26)) goto parse_value;
- break;
- }
-
- // required bytes value = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_value:
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->mutable_value()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(32)) goto parse_type;
- break;
- }
-
- // required .lsmsearch.MockData.Type type = 4;
- case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_type:
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::lsmsearch::MockData_Type_IsValid(value)) {
- set_type(static_cast< ::lsmsearch::MockData_Type >(value));
- } else {
- mutable_unknown_fields()->AddVarint(4, value);
- }
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(42)) goto parse_end_key;
- break;
- }
-
- // optional bytes end_key = 5;
- case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_end_key:
- DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
- input, this->mutable_end_key()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void MockData::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // required uint32 column_type = 1;
- if (has_column_type()) {
- ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->column_type(), output);
- }
-
- // required bytes key = 2;
- if (has_key()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 2, this->key(), output);
- }
-
- // required bytes value = 3;
- if (has_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 3, this->value(), output);
- }
-
- // required .lsmsearch.MockData.Type type = 4;
- if (has_type()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 4, this->type(), output);
- }
-
- // optional bytes end_key = 5;
- if (has_end_key()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
- 5, this->end_key(), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* MockData::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // required uint32 column_type = 1;
- if (has_column_type()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->column_type(), target);
- }
-
- // required bytes key = 2;
- if (has_key()) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 2, this->key(), target);
- }
-
- // required bytes value = 3;
- if (has_value()) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 3, this->value(), target);
- }
-
- // required .lsmsearch.MockData.Type type = 4;
- if (has_type()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 4, this->type(), target);
- }
-
- // optional bytes end_key = 5;
- if (has_end_key()) {
- target =
- ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
- 5, this->end_key(), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int MockData::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // required uint32 column_type = 1;
- if (has_column_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->column_type());
- }
-
- // required bytes key = 2;
- if (has_key()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->key());
- }
-
- // required bytes value = 3;
- if (has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->value());
- }
-
- // required .lsmsearch.MockData.Type type = 4;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
- }
-
- // optional bytes end_key = 5;
- if (has_end_key()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->end_key());
- }
-
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void MockData::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const MockData* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MockData*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void MockData::MergeFrom(const MockData& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_column_type()) {
- set_column_type(from.column_type());
- }
- if (from.has_key()) {
- set_key(from.key());
- }
- if (from.has_value()) {
- set_value(from.value());
- }
- if (from.has_type()) {
- set_type(from.type());
- }
- if (from.has_end_key()) {
- set_end_key(from.end_key());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void MockData::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MockData::CopyFrom(const MockData& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MockData::IsInitialized() const {
- if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
-
- return true;
- }
- void MockData::Swap(MockData* other) {
- if (other != this) {
- std::swap(column_type_, other->column_type_);
- std::swap(key_, other->key_);
- std::swap(value_, other->value_);
- std::swap(type_, other->type_);
- std::swap(end_key_, other->end_key_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata MockData::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MockData_descriptor_;
- metadata.reflection = MockData_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int MockDataList::kMockDataListFieldNumber;
- #endif // !_MSC_VER
- MockDataList::MockDataList()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void MockDataList::InitAsDefaultInstance() {
- }
- MockDataList::MockDataList(const MockDataList& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void MockDataList::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- MockDataList::~MockDataList() {
- SharedDtor();
- }
- void MockDataList::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void MockDataList::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* MockDataList::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MockDataList_descriptor_;
- }
- const MockDataList& MockDataList::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_search_5fstore_2eproto(); return *default_instance_;
- }
- MockDataList* MockDataList::default_instance_ = NULL;
- MockDataList* MockDataList::New() const {
- return new MockDataList;
- }
- void MockDataList::Clear() {
- mock_data_list_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool MockDataList::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
- ::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .lsmsearch.MockData mock_data_list = 1;
- case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_mock_data_list:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, add_mock_data_list()));
- } else {
- goto handle_uninterpreted;
- }
- if (input->ExpectTag(10)) goto parse_mock_data_list;
- if (input->ExpectAtEnd()) return true;
- break;
- }
-
- default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
- break;
- }
- }
- }
- return true;
- #undef DO_
- }
- void MockDataList::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // repeated .lsmsearch.MockData mock_data_list = 1;
- for (int i = 0; i < this->mock_data_list_size(); i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->mock_data_list(i), output);
- }
-
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* MockDataList::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // repeated .lsmsearch.MockData mock_data_list = 1;
- for (int i = 0; i < this->mock_data_list_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->mock_data_list(i), target);
- }
-
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int MockDataList::ByteSize() const {
- int total_size = 0;
-
- // repeated .lsmsearch.MockData mock_data_list = 1;
- total_size += 1 * this->mock_data_list_size();
- for (int i = 0; i < this->mock_data_list_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->mock_data_list(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void MockDataList::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const MockDataList* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MockDataList*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void MockDataList::MergeFrom(const MockDataList& from) {
- GOOGLE_CHECK_NE(&from, this);
- mock_data_list_.MergeFrom(from.mock_data_list_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void MockDataList::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MockDataList::CopyFrom(const MockDataList& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MockDataList::IsInitialized() const {
-
- for (int i = 0; i < mock_data_list_size(); i++) {
- if (!this->mock_data_list(i).IsInitialized()) return false;
- }
- return true;
- }
- void MockDataList::Swap(MockDataList* other) {
- if (other != this) {
- mock_data_list_.Swap(&other->mock_data_list_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
- }
- ::google::protobuf::Metadata MockDataList::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MockDataList_descriptor_;
- metadata.reflection = MockDataList_reflection_;
- return metadata;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace lsmsearch
- // @@protoc_insertion_point(global_scope)
|