123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: table.proto
- #include "table.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_table_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_customer;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_reply;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_type;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_reply;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_type;
- } // namespace protobuf_table_2eproto
- class tb_customerDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<tb_customer>
- _instance;
- } _tb_customer_default_instance_;
- class tb_typeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<tb_type>
- _instance;
- } _tb_type_default_instance_;
- class tb_replyDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<tb_reply>
- _instance;
- } _tb_reply_default_instance_;
- class rec_customerDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<rec_customer>
- _instance;
- } _rec_customer_default_instance_;
- class rec_typeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<rec_type>
- _instance;
- } _rec_type_default_instance_;
- class rec_replyDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<rec_reply>
- _instance;
- } _rec_reply_default_instance_;
- class viewDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<view>
- _instance;
- } _view_default_instance_;
- namespace protobuf_table_2eproto {
- static void InitDefaultstb_customer() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_tb_customer_default_instance_;
- new (ptr) ::tb_customer();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::tb_customer::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_tb_customer =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_customer}, {}};
- static void InitDefaultstb_type() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_tb_type_default_instance_;
- new (ptr) ::tb_type();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::tb_type::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_tb_type =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_type}, {}};
- static void InitDefaultstb_reply() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_tb_reply_default_instance_;
- new (ptr) ::tb_reply();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::tb_reply::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_tb_reply =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstb_reply}, {}};
- static void InitDefaultsrec_customer() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_rec_customer_default_instance_;
- new (ptr) ::rec_customer();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::rec_customer::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_rec_customer =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_customer}, {
- &protobuf_table_2eproto::scc_info_tb_customer.base,}};
- static void InitDefaultsrec_type() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_rec_type_default_instance_;
- new (ptr) ::rec_type();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::rec_type::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_rec_type =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_type}, {
- &protobuf_table_2eproto::scc_info_tb_type.base,}};
- static void InitDefaultsrec_reply() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_rec_reply_default_instance_;
- new (ptr) ::rec_reply();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::rec_reply::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_rec_reply =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsrec_reply}, {
- &protobuf_table_2eproto::scc_info_tb_reply.base,}};
- static void InitDefaultsview() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::_view_default_instance_;
- new (ptr) ::view();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::view::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<3> scc_info_view =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsview}, {
- &protobuf_table_2eproto::scc_info_tb_customer.base,
- &protobuf_table_2eproto::scc_info_rec_type.base,
- &protobuf_table_2eproto::scc_info_rec_reply.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_tb_customer.base);
- ::google::protobuf::internal::InitSCC(&scc_info_tb_type.base);
- ::google::protobuf::internal::InitSCC(&scc_info_tb_reply.base);
- ::google::protobuf::internal::InitSCC(&scc_info_rec_customer.base);
- ::google::protobuf::internal::InitSCC(&scc_info_rec_type.base);
- ::google::protobuf::internal::InitSCC(&scc_info_rec_reply.base);
- ::google::protobuf::internal::InitSCC(&scc_info_view.base);
- }
- ::google::protobuf::Metadata file_level_metadata[7];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_gender_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_phone_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_password_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_old_phone_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_vcode_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_vcode_expiry_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_enable_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_customer, customer_gen_time_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, customer_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_type, type_gen_time_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, type_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_content_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_gen_time_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_customer, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_customer, customers_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_type, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_type, types_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_reply, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::rec_reply, replys_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, customer_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, types_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, replys_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::tb_customer)},
- { 15, -1, sizeof(::tb_type)},
- { 24, -1, sizeof(::tb_reply)},
- { 33, -1, sizeof(::rec_customer)},
- { 39, -1, sizeof(::rec_type)},
- { 45, -1, sizeof(::rec_reply)},
- { 51, -1, sizeof(::view)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_customer_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_type_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_tb_reply_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_customer_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_type_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_rec_reply_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::_view_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "table.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\013table.proto\"\221\002\n\013tb_customer\022\023\n\013custome"
- "r_id\030\001 \001(\t\022\025\n\rcustomer_name\030\002 \001(\t\022\027\n\017cus"
- "tomer_gender\030\003 \001(\010\022\026\n\016customer_phone\030\004 \001"
- "(\t\022\031\n\021customer_password\030\005 \001(\t\022\032\n\022custome"
- "r_old_phone\030\006 \001(\t\022\026\n\016customer_vcode\030\007 \001("
- "\t\022\"\n\032customer_vcode_expiry_time\030\010 \001(\t\022\027\n"
- "\017customer_enable\030\t \001(\010\022\031\n\021customer_gen_t"
- "ime\030\n \001(\t\"Y\n\007tb_type\022\023\n\013customer_id\030\001 \001("
- "\t\022\017\n\007type_id\030\002 \001(\t\022\021\n\ttype_name\030\003 \001(\t\022\025\n"
- "\rtype_gen_time\030\004 \001(\t\"^\n\010tb_reply\022\017\n\007type"
- "_id\030\001 \001(\t\022\022\n\nreply_name\030\002 \001(\t\022\025\n\rreply_c"
- "ontent\030\003 \001(\t\022\026\n\016reply_gen_time\030\004 \001(\t\"/\n\014"
- "rec_customer\022\037\n\tcustomers\030\001 \003(\0132\014.tb_cus"
- "tomer\"#\n\010rec_type\022\027\n\005types\030\001 \003(\0132\010.tb_ty"
- "pe\"&\n\trec_reply\022\031\n\006replys\030\001 \003(\0132\t.tb_rep"
- "ly\"\\\n\004view\022\036\n\010customer\030\001 \001(\0132\014.tb_custom"
- "er\022\030\n\005types\030\002 \001(\0132\t.rec_type\022\032\n\006replys\030\003"
- " \001(\0132\n.rec_replyb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 704);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "table.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_table_2eproto
- // ===================================================================
- void tb_customer::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int tb_customer::kCustomerIdFieldNumber;
- const int tb_customer::kCustomerNameFieldNumber;
- const int tb_customer::kCustomerGenderFieldNumber;
- const int tb_customer::kCustomerPhoneFieldNumber;
- const int tb_customer::kCustomerPasswordFieldNumber;
- const int tb_customer::kCustomerOldPhoneFieldNumber;
- const int tb_customer::kCustomerVcodeFieldNumber;
- const int tb_customer::kCustomerVcodeExpiryTimeFieldNumber;
- const int tb_customer::kCustomerEnableFieldNumber;
- const int tb_customer::kCustomerGenTimeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- tb_customer::tb_customer()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_tb_customer.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:tb_customer)
- }
- tb_customer::tb_customer(const tb_customer& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_id().size() > 0) {
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
- }
- customer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_name().size() > 0) {
- customer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_name_);
- }
- customer_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_phone().size() > 0) {
- customer_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_phone_);
- }
- customer_password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_password().size() > 0) {
- customer_password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_password_);
- }
- customer_old_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_old_phone().size() > 0) {
- customer_old_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_old_phone_);
- }
- customer_vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_vcode().size() > 0) {
- customer_vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_);
- }
- customer_vcode_expiry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_vcode_expiry_time().size() > 0) {
- customer_vcode_expiry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_expiry_time_);
- }
- customer_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_gen_time().size() > 0) {
- customer_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_gen_time_);
- }
- ::memcpy(&customer_gender_, &from.customer_gender_,
- static_cast<size_t>(reinterpret_cast<char*>(&customer_enable_) -
- reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
- // @@protoc_insertion_point(copy_constructor:tb_customer)
- }
- void tb_customer::SharedCtor() {
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_old_phone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_expiry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&customer_gender_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&customer_enable_) -
- reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
- }
- tb_customer::~tb_customer() {
- // @@protoc_insertion_point(destructor:tb_customer)
- SharedDtor();
- }
- void tb_customer::SharedDtor() {
- customer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_old_phone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_expiry_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void tb_customer::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* tb_customer::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const tb_customer& tb_customer::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_customer.base);
- return *internal_default_instance();
- }
- void tb_customer::Clear() {
- // @@protoc_insertion_point(message_clear_start:tb_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- customer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_old_phone_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_vcode_expiry_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- customer_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&customer_gender_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&customer_enable_) -
- reinterpret_cast<char*>(&customer_gender_)) + sizeof(customer_enable_));
- _internal_metadata_.Clear();
- }
- bool tb_customer::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:tb_customer)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string customer_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_name = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_name()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_name().data(), static_cast<int>(this->customer_name().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_name"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // bool customer_gender = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &customer_gender_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_phone = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_phone()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_phone"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_password = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_password()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_password().data(), static_cast<int>(this->customer_password().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_password"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_old_phone = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_old_phone()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_old_phone"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_vcode = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_vcode()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_vcode"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_vcode_expiry_time = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_vcode_expiry_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_vcode_expiry_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // bool customer_enable = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &customer_enable_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string customer_gen_time = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_gen_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_customer.customer_gen_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:tb_customer)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:tb_customer)
- return false;
- #undef DO_
- }
- void tb_customer::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:tb_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->customer_id(), output);
- }
- // string customer_name = 2;
- if (this->customer_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_name().data(), static_cast<int>(this->customer_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_name");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->customer_name(), output);
- }
- // bool customer_gender = 3;
- if (this->customer_gender() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->customer_gender(), output);
- }
- // string customer_phone = 4;
- if (this->customer_phone().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_phone");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->customer_phone(), output);
- }
- // string customer_password = 5;
- if (this->customer_password().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_password().data(), static_cast<int>(this->customer_password().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_password");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->customer_password(), output);
- }
- // string customer_old_phone = 6;
- if (this->customer_old_phone().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_old_phone");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->customer_old_phone(), output);
- }
- // string customer_vcode = 7;
- if (this->customer_vcode().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_vcode");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 7, this->customer_vcode(), output);
- }
- // string customer_vcode_expiry_time = 8;
- if (this->customer_vcode_expiry_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_vcode_expiry_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 8, this->customer_vcode_expiry_time(), output);
- }
- // bool customer_enable = 9;
- if (this->customer_enable() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->customer_enable(), output);
- }
- // string customer_gen_time = 10;
- if (this->customer_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_gen_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 10, this->customer_gen_time(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:tb_customer)
- }
- ::google::protobuf::uint8* tb_customer::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:tb_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->customer_id(), target);
- }
- // string customer_name = 2;
- if (this->customer_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_name().data(), static_cast<int>(this->customer_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_name");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->customer_name(), target);
- }
- // bool customer_gender = 3;
- if (this->customer_gender() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->customer_gender(), target);
- }
- // string customer_phone = 4;
- if (this->customer_phone().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_phone().data(), static_cast<int>(this->customer_phone().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_phone");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->customer_phone(), target);
- }
- // string customer_password = 5;
- if (this->customer_password().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_password().data(), static_cast<int>(this->customer_password().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_password");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->customer_password(), target);
- }
- // string customer_old_phone = 6;
- if (this->customer_old_phone().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_old_phone().data(), static_cast<int>(this->customer_old_phone().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_old_phone");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->customer_old_phone(), target);
- }
- // string customer_vcode = 7;
- if (this->customer_vcode().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode().data(), static_cast<int>(this->customer_vcode().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_vcode");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 7, this->customer_vcode(), target);
- }
- // string customer_vcode_expiry_time = 8;
- if (this->customer_vcode_expiry_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_vcode_expiry_time().data(), static_cast<int>(this->customer_vcode_expiry_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_vcode_expiry_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 8, this->customer_vcode_expiry_time(), target);
- }
- // bool customer_enable = 9;
- if (this->customer_enable() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->customer_enable(), target);
- }
- // string customer_gen_time = 10;
- if (this->customer_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_gen_time().data(), static_cast<int>(this->customer_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_customer.customer_gen_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 10, this->customer_gen_time(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tb_customer)
- return target;
- }
- size_t tb_customer::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:tb_customer)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_id());
- }
- // string customer_name = 2;
- if (this->customer_name().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_name());
- }
- // string customer_phone = 4;
- if (this->customer_phone().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_phone());
- }
- // string customer_password = 5;
- if (this->customer_password().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_password());
- }
- // string customer_old_phone = 6;
- if (this->customer_old_phone().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_old_phone());
- }
- // string customer_vcode = 7;
- if (this->customer_vcode().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_vcode());
- }
- // string customer_vcode_expiry_time = 8;
- if (this->customer_vcode_expiry_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_vcode_expiry_time());
- }
- // string customer_gen_time = 10;
- if (this->customer_gen_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_gen_time());
- }
- // bool customer_gender = 3;
- if (this->customer_gender() != 0) {
- total_size += 1 + 1;
- }
- // bool customer_enable = 9;
- if (this->customer_enable() != 0) {
- total_size += 1 + 1;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void tb_customer::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:tb_customer)
- GOOGLE_DCHECK_NE(&from, this);
- const tb_customer* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const tb_customer>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_customer)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_customer)
- MergeFrom(*source);
- }
- }
- void tb_customer::MergeFrom(const tb_customer& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:tb_customer)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.customer_id().size() > 0) {
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
- }
- if (from.customer_name().size() > 0) {
- customer_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_name_);
- }
- if (from.customer_phone().size() > 0) {
- customer_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_phone_);
- }
- if (from.customer_password().size() > 0) {
- customer_password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_password_);
- }
- if (from.customer_old_phone().size() > 0) {
- customer_old_phone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_old_phone_);
- }
- if (from.customer_vcode().size() > 0) {
- customer_vcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_);
- }
- if (from.customer_vcode_expiry_time().size() > 0) {
- customer_vcode_expiry_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_vcode_expiry_time_);
- }
- if (from.customer_gen_time().size() > 0) {
- customer_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_gen_time_);
- }
- if (from.customer_gender() != 0) {
- set_customer_gender(from.customer_gender());
- }
- if (from.customer_enable() != 0) {
- set_customer_enable(from.customer_enable());
- }
- }
- void tb_customer::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:tb_customer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void tb_customer::CopyFrom(const tb_customer& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:tb_customer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool tb_customer::IsInitialized() const {
- return true;
- }
- void tb_customer::Swap(tb_customer* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void tb_customer::InternalSwap(tb_customer* other) {
- using std::swap;
- customer_id_.Swap(&other->customer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_name_.Swap(&other->customer_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_phone_.Swap(&other->customer_phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_password_.Swap(&other->customer_password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_old_phone_.Swap(&other->customer_old_phone_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_vcode_.Swap(&other->customer_vcode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_vcode_expiry_time_.Swap(&other->customer_vcode_expiry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- customer_gen_time_.Swap(&other->customer_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(customer_gender_, other->customer_gender_);
- swap(customer_enable_, other->customer_enable_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata tb_customer::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void tb_type::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int tb_type::kCustomerIdFieldNumber;
- const int tb_type::kTypeIdFieldNumber;
- const int tb_type::kTypeNameFieldNumber;
- const int tb_type::kTypeGenTimeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- tb_type::tb_type()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_tb_type.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:tb_type)
- }
- tb_type::tb_type(const tb_type& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.customer_id().size() > 0) {
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
- }
- type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.type_id().size() > 0) {
- type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
- }
- type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.type_name().size() > 0) {
- type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
- }
- type_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.type_gen_time().size() > 0) {
- type_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_gen_time_);
- }
- // @@protoc_insertion_point(copy_constructor:tb_type)
- }
- void tb_type::SharedCtor() {
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- tb_type::~tb_type() {
- // @@protoc_insertion_point(destructor:tb_type)
- SharedDtor();
- }
- void tb_type::SharedDtor() {
- customer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void tb_type::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* tb_type::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const tb_type& tb_type::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_type.base);
- return *internal_default_instance();
- }
- void tb_type::Clear() {
- // @@protoc_insertion_point(message_clear_start:tb_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- customer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool tb_type::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:tb_type)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string customer_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_customer_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_type.customer_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string type_id = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_type_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_type.type_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string type_name = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_type_name()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_name().data(), static_cast<int>(this->type_name().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_type.type_name"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string type_gen_time = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_type_gen_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_type.type_gen_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:tb_type)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:tb_type)
- return false;
- #undef DO_
- }
- void tb_type::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:tb_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.customer_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->customer_id(), output);
- }
- // string type_id = 2;
- if (this->type_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->type_id(), output);
- }
- // string type_name = 3;
- if (this->type_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_name().data(), static_cast<int>(this->type_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_name");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->type_name(), output);
- }
- // string type_gen_time = 4;
- if (this->type_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_gen_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->type_gen_time(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:tb_type)
- }
- ::google::protobuf::uint8* tb_type::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:tb_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.customer_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->customer_id(), target);
- }
- // string type_id = 2;
- if (this->type_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->type_id(), target);
- }
- // string type_name = 3;
- if (this->type_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_name().data(), static_cast<int>(this->type_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_name");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->type_name(), target);
- }
- // string type_gen_time = 4;
- if (this->type_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_gen_time().data(), static_cast<int>(this->type_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_type.type_gen_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->type_gen_time(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tb_type)
- return target;
- }
- size_t tb_type::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:tb_type)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string customer_id = 1;
- if (this->customer_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->customer_id());
- }
- // string type_id = 2;
- if (this->type_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->type_id());
- }
- // string type_name = 3;
- if (this->type_name().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->type_name());
- }
- // string type_gen_time = 4;
- if (this->type_gen_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->type_gen_time());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void tb_type::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:tb_type)
- GOOGLE_DCHECK_NE(&from, this);
- const tb_type* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const tb_type>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_type)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_type)
- MergeFrom(*source);
- }
- }
- void tb_type::MergeFrom(const tb_type& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:tb_type)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.customer_id().size() > 0) {
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
- }
- if (from.type_id().size() > 0) {
- type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
- }
- if (from.type_name().size() > 0) {
- type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
- }
- if (from.type_gen_time().size() > 0) {
- type_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_gen_time_);
- }
- }
- void tb_type::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:tb_type)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void tb_type::CopyFrom(const tb_type& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:tb_type)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool tb_type::IsInitialized() const {
- return true;
- }
- void tb_type::Swap(tb_type* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void tb_type::InternalSwap(tb_type* other) {
- using std::swap;
- customer_id_.Swap(&other->customer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- type_id_.Swap(&other->type_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- type_name_.Swap(&other->type_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- type_gen_time_.Swap(&other->type_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata tb_type::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void tb_reply::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int tb_reply::kTypeIdFieldNumber;
- const int tb_reply::kReplyNameFieldNumber;
- const int tb_reply::kReplyContentFieldNumber;
- const int tb_reply::kReplyGenTimeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- tb_reply::tb_reply()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_tb_reply.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:tb_reply)
- }
- tb_reply::tb_reply(const tb_reply& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.type_id().size() > 0) {
- type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
- }
- reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.reply_name().size() > 0) {
- reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
- }
- reply_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.reply_content().size() > 0) {
- reply_content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_content_);
- }
- reply_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.reply_gen_time().size() > 0) {
- reply_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_gen_time_);
- }
- // @@protoc_insertion_point(copy_constructor:tb_reply)
- }
- void tb_reply::SharedCtor() {
- type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- tb_reply::~tb_reply() {
- // @@protoc_insertion_point(destructor:tb_reply)
- SharedDtor();
- }
- void tb_reply::SharedDtor() {
- type_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void tb_reply::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* tb_reply::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const tb_reply& tb_reply::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_tb_reply.base);
- return *internal_default_instance();
- }
- void tb_reply::Clear() {
- // @@protoc_insertion_point(message_clear_start:tb_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- type_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- reply_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool tb_reply::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:tb_reply)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string type_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_type_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_reply.type_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string reply_name = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_reply_name()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_name().data(), static_cast<int>(this->reply_name().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_reply.reply_name"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string reply_content = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_reply_content()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_content().data(), static_cast<int>(this->reply_content().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_reply.reply_content"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string reply_gen_time = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_reply_gen_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "tb_reply.reply_gen_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:tb_reply)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:tb_reply)
- return false;
- #undef DO_
- }
- void tb_reply::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:tb_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string type_id = 1;
- if (this->type_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.type_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->type_id(), output);
- }
- // string reply_name = 2;
- if (this->reply_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_name().data(), static_cast<int>(this->reply_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_name");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->reply_name(), output);
- }
- // string reply_content = 3;
- if (this->reply_content().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_content().data(), static_cast<int>(this->reply_content().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_content");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->reply_content(), output);
- }
- // string reply_gen_time = 4;
- if (this->reply_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_gen_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->reply_gen_time(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:tb_reply)
- }
- ::google::protobuf::uint8* tb_reply::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:tb_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string type_id = 1;
- if (this->type_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type_id().data(), static_cast<int>(this->type_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.type_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->type_id(), target);
- }
- // string reply_name = 2;
- if (this->reply_name().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_name().data(), static_cast<int>(this->reply_name().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_name");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->reply_name(), target);
- }
- // string reply_content = 3;
- if (this->reply_content().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_content().data(), static_cast<int>(this->reply_content().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_content");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->reply_content(), target);
- }
- // string reply_gen_time = 4;
- if (this->reply_gen_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "tb_reply.reply_gen_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->reply_gen_time(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:tb_reply)
- return target;
- }
- size_t tb_reply::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:tb_reply)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string type_id = 1;
- if (this->type_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->type_id());
- }
- // string reply_name = 2;
- if (this->reply_name().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->reply_name());
- }
- // string reply_content = 3;
- if (this->reply_content().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->reply_content());
- }
- // string reply_gen_time = 4;
- if (this->reply_gen_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->reply_gen_time());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void tb_reply::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:tb_reply)
- GOOGLE_DCHECK_NE(&from, this);
- const tb_reply* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const tb_reply>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:tb_reply)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:tb_reply)
- MergeFrom(*source);
- }
- }
- void tb_reply::MergeFrom(const tb_reply& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:tb_reply)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.type_id().size() > 0) {
- type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
- }
- if (from.reply_name().size() > 0) {
- reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
- }
- if (from.reply_content().size() > 0) {
- reply_content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_content_);
- }
- if (from.reply_gen_time().size() > 0) {
- reply_gen_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_gen_time_);
- }
- }
- void tb_reply::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:tb_reply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void tb_reply::CopyFrom(const tb_reply& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:tb_reply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool tb_reply::IsInitialized() const {
- return true;
- }
- void tb_reply::Swap(tb_reply* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void tb_reply::InternalSwap(tb_reply* other) {
- using std::swap;
- type_id_.Swap(&other->type_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- reply_name_.Swap(&other->reply_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- reply_content_.Swap(&other->reply_content_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- reply_gen_time_.Swap(&other->reply_gen_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata tb_reply::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void rec_customer::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int rec_customer::kCustomersFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- rec_customer::rec_customer()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_rec_customer.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:rec_customer)
- }
- rec_customer::rec_customer(const rec_customer& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- customers_(from.customers_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:rec_customer)
- }
- void rec_customer::SharedCtor() {
- }
- rec_customer::~rec_customer() {
- // @@protoc_insertion_point(destructor:rec_customer)
- SharedDtor();
- }
- void rec_customer::SharedDtor() {
- }
- void rec_customer::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* rec_customer::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const rec_customer& rec_customer::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_customer.base);
- return *internal_default_instance();
- }
- void rec_customer::Clear() {
- // @@protoc_insertion_point(message_clear_start:rec_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- customers_.Clear();
- _internal_metadata_.Clear();
- }
- bool rec_customer::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:rec_customer)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .tb_customer customers = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_customers()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:rec_customer)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:rec_customer)
- return false;
- #undef DO_
- }
- void rec_customer::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:rec_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_customer customers = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->customers_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->customers(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:rec_customer)
- }
- ::google::protobuf::uint8* rec_customer::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:rec_customer)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_customer customers = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->customers_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->customers(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:rec_customer)
- return target;
- }
- size_t rec_customer::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:rec_customer)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .tb_customer customers = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->customers_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->customers(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void rec_customer::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:rec_customer)
- GOOGLE_DCHECK_NE(&from, this);
- const rec_customer* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const rec_customer>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_customer)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_customer)
- MergeFrom(*source);
- }
- }
- void rec_customer::MergeFrom(const rec_customer& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:rec_customer)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- customers_.MergeFrom(from.customers_);
- }
- void rec_customer::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:rec_customer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void rec_customer::CopyFrom(const rec_customer& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:rec_customer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool rec_customer::IsInitialized() const {
- return true;
- }
- void rec_customer::Swap(rec_customer* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void rec_customer::InternalSwap(rec_customer* other) {
- using std::swap;
- CastToBase(&customers_)->InternalSwap(CastToBase(&other->customers_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata rec_customer::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void rec_type::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int rec_type::kTypesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- rec_type::rec_type()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_rec_type.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:rec_type)
- }
- rec_type::rec_type(const rec_type& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- types_(from.types_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:rec_type)
- }
- void rec_type::SharedCtor() {
- }
- rec_type::~rec_type() {
- // @@protoc_insertion_point(destructor:rec_type)
- SharedDtor();
- }
- void rec_type::SharedDtor() {
- }
- void rec_type::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* rec_type::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const rec_type& rec_type::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_type.base);
- return *internal_default_instance();
- }
- void rec_type::Clear() {
- // @@protoc_insertion_point(message_clear_start:rec_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- types_.Clear();
- _internal_metadata_.Clear();
- }
- bool rec_type::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:rec_type)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .tb_type types = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_types()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:rec_type)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:rec_type)
- return false;
- #undef DO_
- }
- void rec_type::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:rec_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_type types = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->types(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:rec_type)
- }
- ::google::protobuf::uint8* rec_type::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:rec_type)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_type types = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->types_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->types(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:rec_type)
- return target;
- }
- size_t rec_type::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:rec_type)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .tb_type types = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->types_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->types(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void rec_type::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:rec_type)
- GOOGLE_DCHECK_NE(&from, this);
- const rec_type* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const rec_type>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_type)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_type)
- MergeFrom(*source);
- }
- }
- void rec_type::MergeFrom(const rec_type& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:rec_type)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- types_.MergeFrom(from.types_);
- }
- void rec_type::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:rec_type)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void rec_type::CopyFrom(const rec_type& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:rec_type)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool rec_type::IsInitialized() const {
- return true;
- }
- void rec_type::Swap(rec_type* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void rec_type::InternalSwap(rec_type* other) {
- using std::swap;
- CastToBase(&types_)->InternalSwap(CastToBase(&other->types_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata rec_type::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void rec_reply::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int rec_reply::kReplysFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- rec_reply::rec_reply()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_rec_reply.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:rec_reply)
- }
- rec_reply::rec_reply(const rec_reply& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- replys_(from.replys_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:rec_reply)
- }
- void rec_reply::SharedCtor() {
- }
- rec_reply::~rec_reply() {
- // @@protoc_insertion_point(destructor:rec_reply)
- SharedDtor();
- }
- void rec_reply::SharedDtor() {
- }
- void rec_reply::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* rec_reply::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const rec_reply& rec_reply::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_rec_reply.base);
- return *internal_default_instance();
- }
- void rec_reply::Clear() {
- // @@protoc_insertion_point(message_clear_start:rec_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- replys_.Clear();
- _internal_metadata_.Clear();
- }
- bool rec_reply::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:rec_reply)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .tb_reply replys = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_replys()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:rec_reply)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:rec_reply)
- return false;
- #undef DO_
- }
- void rec_reply::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:rec_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_reply replys = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->replys_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->replys(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:rec_reply)
- }
- ::google::protobuf::uint8* rec_reply::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:rec_reply)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .tb_reply replys = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->replys_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->replys(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:rec_reply)
- return target;
- }
- size_t rec_reply::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:rec_reply)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .tb_reply replys = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->replys_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->replys(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void rec_reply::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:rec_reply)
- GOOGLE_DCHECK_NE(&from, this);
- const rec_reply* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const rec_reply>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:rec_reply)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:rec_reply)
- MergeFrom(*source);
- }
- }
- void rec_reply::MergeFrom(const rec_reply& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:rec_reply)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- replys_.MergeFrom(from.replys_);
- }
- void rec_reply::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:rec_reply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void rec_reply::CopyFrom(const rec_reply& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:rec_reply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool rec_reply::IsInitialized() const {
- return true;
- }
- void rec_reply::Swap(rec_reply* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void rec_reply::InternalSwap(rec_reply* other) {
- using std::swap;
- CastToBase(&replys_)->InternalSwap(CastToBase(&other->replys_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata rec_reply::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void view::InitAsDefaultInstance() {
- ::_view_default_instance_._instance.get_mutable()->customer_ = const_cast< ::tb_customer*>(
- ::tb_customer::internal_default_instance());
- ::_view_default_instance_._instance.get_mutable()->types_ = const_cast< ::rec_type*>(
- ::rec_type::internal_default_instance());
- ::_view_default_instance_._instance.get_mutable()->replys_ = const_cast< ::rec_reply*>(
- ::rec_reply::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int view::kCustomerFieldNumber;
- const int view::kTypesFieldNumber;
- const int view::kReplysFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- view::view()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_table_2eproto::scc_info_view.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:view)
- }
- view::view(const view& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_customer()) {
- customer_ = new ::tb_customer(*from.customer_);
- } else {
- customer_ = NULL;
- }
- if (from.has_types()) {
- types_ = new ::rec_type(*from.types_);
- } else {
- types_ = NULL;
- }
- if (from.has_replys()) {
- replys_ = new ::rec_reply(*from.replys_);
- } else {
- replys_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:view)
- }
- void view::SharedCtor() {
- ::memset(&customer_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&replys_) -
- reinterpret_cast<char*>(&customer_)) + sizeof(replys_));
- }
- view::~view() {
- // @@protoc_insertion_point(destructor:view)
- SharedDtor();
- }
- void view::SharedDtor() {
- if (this != internal_default_instance()) delete customer_;
- if (this != internal_default_instance()) delete types_;
- if (this != internal_default_instance()) delete replys_;
- }
- void view::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* view::descriptor() {
- ::protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const view& view::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_table_2eproto::scc_info_view.base);
- return *internal_default_instance();
- }
- void view::Clear() {
- // @@protoc_insertion_point(message_clear_start:view)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && customer_ != NULL) {
- delete customer_;
- }
- customer_ = NULL;
- if (GetArenaNoVirtual() == NULL && types_ != NULL) {
- delete types_;
- }
- types_ = NULL;
- if (GetArenaNoVirtual() == NULL && replys_ != NULL) {
- delete replys_;
- }
- replys_ = NULL;
- _internal_metadata_.Clear();
- }
- bool view::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:view)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .tb_customer customer = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_customer()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .rec_type types = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_types()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .rec_reply replys = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_replys()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:view)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:view)
- return false;
- #undef DO_
- }
- void view::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:view)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .tb_customer customer = 1;
- if (this->has_customer()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_customer(), output);
- }
- // .rec_type types = 2;
- if (this->has_types()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_types(), output);
- }
- // .rec_reply replys = 3;
- if (this->has_replys()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_replys(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:view)
- }
- ::google::protobuf::uint8* view::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:view)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .tb_customer customer = 1;
- if (this->has_customer()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_customer(), deterministic, target);
- }
- // .rec_type types = 2;
- if (this->has_types()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_types(), deterministic, target);
- }
- // .rec_reply replys = 3;
- if (this->has_replys()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_replys(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:view)
- return target;
- }
- size_t view::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:view)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .tb_customer customer = 1;
- if (this->has_customer()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *customer_);
- }
- // .rec_type types = 2;
- if (this->has_types()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *types_);
- }
- // .rec_reply replys = 3;
- if (this->has_replys()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *replys_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void view::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:view)
- GOOGLE_DCHECK_NE(&from, this);
- const view* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const view>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:view)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:view)
- MergeFrom(*source);
- }
- }
- void view::MergeFrom(const view& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:view)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_customer()) {
- mutable_customer()->::tb_customer::MergeFrom(from.customer());
- }
- if (from.has_types()) {
- mutable_types()->::rec_type::MergeFrom(from.types());
- }
- if (from.has_replys()) {
- mutable_replys()->::rec_reply::MergeFrom(from.replys());
- }
- }
- void view::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:view)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void view::CopyFrom(const view& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:view)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool view::IsInitialized() const {
- return true;
- }
- void view::Swap(view* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void view::InternalSwap(view* other) {
- using std::swap;
- swap(customer_, other->customer_);
- swap(types_, other->types_);
- swap(replys_, other->replys_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata view::GetMetadata() const {
- protobuf_table_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_table_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_customer* Arena::CreateMaybeMessage< ::tb_customer >(Arena* arena) {
- return Arena::CreateInternal< ::tb_customer >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_type* Arena::CreateMaybeMessage< ::tb_type >(Arena* arena) {
- return Arena::CreateInternal< ::tb_type >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::tb_reply* Arena::CreateMaybeMessage< ::tb_reply >(Arena* arena) {
- return Arena::CreateInternal< ::tb_reply >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_customer* Arena::CreateMaybeMessage< ::rec_customer >(Arena* arena) {
- return Arena::CreateInternal< ::rec_customer >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_type* Arena::CreateMaybeMessage< ::rec_type >(Arena* arena) {
- return Arena::CreateInternal< ::rec_type >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::rec_reply* Arena::CreateMaybeMessage< ::rec_reply >(Arena* arena) {
- return Arena::CreateInternal< ::rec_reply >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::view* Arena::CreateMaybeMessage< ::view >(Arena* arena) {
- return Arena::CreateInternal< ::view >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|