123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: globalmsg.proto
- #include "globalmsg.pb.h"
- #include <algorithm>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.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>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SysMsg_globalmsg_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_algMsg_globalmsg_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laserMsg_globalmsg_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plcMsg_globalmsg_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_resultInfo_globalmsg_2eproto;
- namespace globalmsg {
- class msgDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<msg> _instance;
- } _msg_default_instance_;
- class laserMsgDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<laserMsg> _instance;
- } _laserMsg_default_instance_;
- class plcMsgDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<plcMsg> _instance;
- } _plcMsg_default_instance_;
- class resultInfoDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<resultInfo> _instance;
- } _resultInfo_default_instance_;
- class algMsgDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<algMsg> _instance;
- } _algMsg_default_instance_;
- class SysMsgDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SysMsg> _instance;
- } _SysMsg_default_instance_;
- } // namespace globalmsg
- static void InitDefaultsscc_info_SysMsg_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_SysMsg_default_instance_;
- new (ptr) ::globalmsg::SysMsg();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::SysMsg::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SysMsg_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SysMsg_globalmsg_2eproto}, {}};
- static void InitDefaultsscc_info_algMsg_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_algMsg_default_instance_;
- new (ptr) ::globalmsg::algMsg();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::algMsg::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_algMsg_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_algMsg_globalmsg_2eproto}, {
- &scc_info_resultInfo_globalmsg_2eproto.base,}};
- static void InitDefaultsscc_info_laserMsg_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_laserMsg_default_instance_;
- new (ptr) ::globalmsg::laserMsg();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::laserMsg::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laserMsg_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_laserMsg_globalmsg_2eproto}, {}};
- static void InitDefaultsscc_info_msg_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_msg_default_instance_;
- new (ptr) ::globalmsg::msg();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::msg::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_msg_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_msg_globalmsg_2eproto}, {
- &scc_info_laserMsg_globalmsg_2eproto.base,
- &scc_info_plcMsg_globalmsg_2eproto.base,
- &scc_info_algMsg_globalmsg_2eproto.base,
- &scc_info_SysMsg_globalmsg_2eproto.base,}};
- static void InitDefaultsscc_info_plcMsg_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_plcMsg_default_instance_;
- new (ptr) ::globalmsg::plcMsg();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::plcMsg::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plcMsg_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_plcMsg_globalmsg_2eproto}, {}};
- static void InitDefaultsscc_info_resultInfo_globalmsg_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::globalmsg::_resultInfo_default_instance_;
- new (ptr) ::globalmsg::resultInfo();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::globalmsg::resultInfo::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_resultInfo_globalmsg_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_resultInfo_globalmsg_2eproto}, {}};
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_globalmsg_2eproto[6];
- static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_globalmsg_2eproto[4];
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_globalmsg_2eproto = nullptr;
- const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_globalmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, msg_type_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, laser_msg_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, plc_msg_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, alg_msg_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::msg, sys_msg_),
- 4,
- 0,
- 1,
- 2,
- 3,
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, laser_status_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, queue_data_count_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, cloud_count_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, id_),
- 0,
- 1,
- 2,
- 3,
- PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, plc_status_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, plc_values_),
- 0,
- ~0u,
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, time_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, correctness_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, park_space_id_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, laser_ids_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, x_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, y_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, c_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, wheel_base_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, length_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, width_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, height_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, error_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, front_theta_),
- 0,
- 2,
- 3,
- 12,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 1,
- 11,
- PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, result_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, thread_queue_size_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, log_path_),
- ~0u,
- 1,
- 0,
- PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, log_),
- PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, level_),
- 0,
- 1,
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 10, sizeof(::globalmsg::msg)},
- { 15, 24, sizeof(::globalmsg::laserMsg)},
- { 28, 35, sizeof(::globalmsg::plcMsg)},
- { 37, 55, sizeof(::globalmsg::resultInfo)},
- { 68, 76, sizeof(::globalmsg::algMsg)},
- { 79, 86, sizeof(::globalmsg::SysMsg)},
- };
- static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_msg_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_laserMsg_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_plcMsg_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_resultInfo_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_algMsg_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_SysMsg_default_instance_),
- };
- const char descriptor_table_protodef_globalmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\017globalmsg.proto\022\tglobalmsg\"\274\001\n\003msg\022!\n\010"
- "msg_type\030\001 \002(\0162\017.globalmsg.type\022&\n\tlaser"
- "_msg\030\002 \001(\0132\023.globalmsg.laserMsg\022\"\n\007plc_m"
- "sg\030\003 \001(\0132\021.globalmsg.plcMsg\022\"\n\007alg_msg\030\004"
- " \001(\0132\021.globalmsg.algMsg\022\"\n\007sys_msg\030\005 \001(\013"
- "2\021.globalmsg.SysMsg\"s\n\010laserMsg\022,\n\014laser"
- "_status\030\001 \001(\0162\026.globalmsg.laserStatus\022\030\n"
- "\020queue_data_count\030\002 \001(\005\022\023\n\013cloud_count\030\003"
- " \001(\005\022\n\n\002id\030\004 \002(\005\"F\n\006plcMsg\022(\n\nplc_status"
- "\030\001 \001(\0162\024.globalmsg.plcStatus\022\022\n\nplc_valu"
- "es\030\002 \003(\005\"\345\001\n\nresultInfo\022\016\n\004time\030\001 \002(\t:\000\022"
- "\023\n\013correctness\030\002 \002(\010\022\025\n\rpark_space_id\030\003 "
- "\001(\005\022\021\n\tlaser_ids\030\004 \001(\005\022\t\n\001x\030\005 \001(\001\022\t\n\001y\030\006"
- " \001(\001\022\t\n\001c\030\007 \001(\001\022\022\n\nwheel_base\030\010 \001(\001\022\016\n\006l"
- "ength\030\t \001(\001\022\r\n\005width\030\n \001(\001\022\016\n\006height\030\013 \001"
- "(\001\022\017\n\005error\030\014 \001(\t:\000\022\023\n\013front_theta\030\r \001(\001"
- "\"^\n\006algMsg\022%\n\006result\030\001 \003(\0132\025.globalmsg.r"
- "esultInfo\022\031\n\021thread_queue_size\030\002 \001(\005\022\022\n\010"
- "log_path\030\003 \001(\t:\000\"E\n\006SysMsg\022\r\n\003log\030\001 \002(\t:"
- "\000\022,\n\005level\030\002 \001(\0162\023.globalmsg.logLevel:\010e"
- "SysInfo*0\n\004type\022\010\n\004ePLC\020\000\022\n\n\006eLaser\020\001\022\010\n"
- "\004eAlg\020\002\022\010\n\004eLog\020\003*]\n\013laserStatus\022\023\n\017eLas"
- "erConnected\020\000\022\026\n\022eLaserDisconnected\020\001\022\016\n"
- "\neLaserBusy\020\002\022\021\n\reLaserUnknown\020\003*V\n\tplcS"
- "tatus\022\021\n\rePLCConnected\020\000\022\024\n\020ePLCDisconne"
- "cted\020\001\022\017\n\013ePLCRefused\020\002\022\017\n\013ePLCUnknown\020\003"
- "*E\n\010logLevel\022\014\n\010eSysInfo\020\000\022\013\n\007eSysLog\020\001\022"
- "\017\n\013eSysWarning\020\002\022\r\n\teSysError\020\003"
- ;
- static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_globalmsg_2eproto_deps[1] = {
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_globalmsg_2eproto_sccs[6] = {
- &scc_info_SysMsg_globalmsg_2eproto.base,
- &scc_info_algMsg_globalmsg_2eproto.base,
- &scc_info_laserMsg_globalmsg_2eproto.base,
- &scc_info_msg_globalmsg_2eproto.base,
- &scc_info_plcMsg_globalmsg_2eproto.base,
- &scc_info_resultInfo_globalmsg_2eproto.base,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_globalmsg_2eproto_once;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_globalmsg_2eproto = {
- false, false, descriptor_table_protodef_globalmsg_2eproto, "globalmsg.proto", 1111,
- &descriptor_table_globalmsg_2eproto_once, descriptor_table_globalmsg_2eproto_sccs, descriptor_table_globalmsg_2eproto_deps, 6, 0,
- schemas, file_default_instances, TableStruct_globalmsg_2eproto::offsets,
- file_level_metadata_globalmsg_2eproto, 6, file_level_enum_descriptors_globalmsg_2eproto, file_level_service_descriptors_globalmsg_2eproto,
- };
- // Force running AddDescriptors() at dynamic initialization time.
- static bool dynamic_init_dummy_globalmsg_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_globalmsg_2eproto)), true);
- namespace globalmsg {
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* type_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
- return file_level_enum_descriptors_globalmsg_2eproto[0];
- }
- bool type_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* laserStatus_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
- return file_level_enum_descriptors_globalmsg_2eproto[1];
- }
- bool laserStatus_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* plcStatus_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
- return file_level_enum_descriptors_globalmsg_2eproto[2];
- }
- bool plcStatus_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* logLevel_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
- return file_level_enum_descriptors_globalmsg_2eproto[3];
- }
- bool logLevel_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- void msg::InitAsDefaultInstance() {
- ::globalmsg::_msg_default_instance_._instance.get_mutable()->laser_msg_ = const_cast< ::globalmsg::laserMsg*>(
- ::globalmsg::laserMsg::internal_default_instance());
- ::globalmsg::_msg_default_instance_._instance.get_mutable()->plc_msg_ = const_cast< ::globalmsg::plcMsg*>(
- ::globalmsg::plcMsg::internal_default_instance());
- ::globalmsg::_msg_default_instance_._instance.get_mutable()->alg_msg_ = const_cast< ::globalmsg::algMsg*>(
- ::globalmsg::algMsg::internal_default_instance());
- ::globalmsg::_msg_default_instance_._instance.get_mutable()->sys_msg_ = const_cast< ::globalmsg::SysMsg*>(
- ::globalmsg::SysMsg::internal_default_instance());
- }
- class msg::_Internal {
- public:
- using HasBits = decltype(std::declval<msg>()._has_bits_);
- static void set_has_msg_type(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static const ::globalmsg::laserMsg& laser_msg(const msg* msg);
- static void set_has_laser_msg(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::globalmsg::plcMsg& plc_msg(const msg* msg);
- static void set_has_plc_msg(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::globalmsg::algMsg& alg_msg(const msg* msg);
- static void set_has_alg_msg(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static const ::globalmsg::SysMsg& sys_msg(const msg* msg);
- static void set_has_sys_msg(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x00000010) ^ 0x00000010) != 0;
- }
- };
- const ::globalmsg::laserMsg&
- msg::_Internal::laser_msg(const msg* msg) {
- return *msg->laser_msg_;
- }
- const ::globalmsg::plcMsg&
- msg::_Internal::plc_msg(const msg* msg) {
- return *msg->plc_msg_;
- }
- const ::globalmsg::algMsg&
- msg::_Internal::alg_msg(const msg* msg) {
- return *msg->alg_msg_;
- }
- const ::globalmsg::SysMsg&
- msg::_Internal::sys_msg(const msg* msg) {
- return *msg->sys_msg_;
- }
- msg::msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.msg)
- }
- msg::msg(const msg& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_laser_msg()) {
- laser_msg_ = new ::globalmsg::laserMsg(*from.laser_msg_);
- } else {
- laser_msg_ = nullptr;
- }
- if (from._internal_has_plc_msg()) {
- plc_msg_ = new ::globalmsg::plcMsg(*from.plc_msg_);
- } else {
- plc_msg_ = nullptr;
- }
- if (from._internal_has_alg_msg()) {
- alg_msg_ = new ::globalmsg::algMsg(*from.alg_msg_);
- } else {
- alg_msg_ = nullptr;
- }
- if (from._internal_has_sys_msg()) {
- sys_msg_ = new ::globalmsg::SysMsg(*from.sys_msg_);
- } else {
- sys_msg_ = nullptr;
- }
- msg_type_ = from.msg_type_;
- // @@protoc_insertion_point(copy_constructor:globalmsg.msg)
- }
- void msg::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_msg_globalmsg_2eproto.base);
- ::memset(&laser_msg_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&msg_type_) -
- reinterpret_cast<char*>(&laser_msg_)) + sizeof(msg_type_));
- }
- msg::~msg() {
- // @@protoc_insertion_point(destructor:globalmsg.msg)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void msg::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- if (this != internal_default_instance()) delete laser_msg_;
- if (this != internal_default_instance()) delete plc_msg_;
- if (this != internal_default_instance()) delete alg_msg_;
- if (this != internal_default_instance()) delete sys_msg_;
- }
- void msg::ArenaDtor(void* object) {
- msg* _this = reinterpret_cast< msg* >(object);
- (void)_this;
- }
- void msg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void msg::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const msg& msg::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_msg_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void msg::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.msg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x0000000fu) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(laser_msg_ != nullptr);
- laser_msg_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(plc_msg_ != nullptr);
- plc_msg_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(alg_msg_ != nullptr);
- alg_msg_->Clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(sys_msg_ != nullptr);
- sys_msg_->Clear();
- }
- }
- msg_type_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* msg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // required .globalmsg.type msg_type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- if (PROTOBUF_PREDICT_TRUE(::globalmsg::type_IsValid(val))) {
- _internal_set_msg_type(static_cast<::globalmsg::type>(val));
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
- }
- } else goto handle_unusual;
- continue;
- // optional .globalmsg.laserMsg laser_msg = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_laser_msg(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional .globalmsg.plcMsg plc_msg = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_plc_msg(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional .globalmsg.algMsg alg_msg = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_alg_msg(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional .globalmsg.SysMsg sys_msg = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
- ptr = ctx->ParseMessage(_internal_mutable_sys_msg(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* msg::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.msg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .globalmsg.type msg_type = 1;
- if (cached_has_bits & 0x00000010u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_msg_type(), target);
- }
- // optional .globalmsg.laserMsg laser_msg = 2;
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 2, _Internal::laser_msg(this), target, stream);
- }
- // optional .globalmsg.plcMsg plc_msg = 3;
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 3, _Internal::plc_msg(this), target, stream);
- }
- // optional .globalmsg.algMsg alg_msg = 4;
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 4, _Internal::alg_msg(this), target, stream);
- }
- // optional .globalmsg.SysMsg sys_msg = 5;
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 5, _Internal::sys_msg(this), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.msg)
- return target;
- }
- size_t msg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.msg)
- size_t total_size = 0;
- // required .globalmsg.type msg_type = 1;
- if (_internal_has_msg_type()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_msg_type());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x0000000fu) {
- // optional .globalmsg.laserMsg laser_msg = 2;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *laser_msg_);
- }
- // optional .globalmsg.plcMsg plc_msg = 3;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *plc_msg_);
- }
- // optional .globalmsg.algMsg alg_msg = 4;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *alg_msg_);
- }
- // optional .globalmsg.SysMsg sys_msg = 5;
- if (cached_has_bits & 0x00000008u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *sys_msg_);
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void msg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.msg)
- GOOGLE_DCHECK_NE(&from, this);
- const msg* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<msg>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.msg)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.msg)
- MergeFrom(*source);
- }
- }
- void msg::MergeFrom(const msg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.msg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x0000001fu) {
- if (cached_has_bits & 0x00000001u) {
- _internal_mutable_laser_msg()->::globalmsg::laserMsg::MergeFrom(from._internal_laser_msg());
- }
- if (cached_has_bits & 0x00000002u) {
- _internal_mutable_plc_msg()->::globalmsg::plcMsg::MergeFrom(from._internal_plc_msg());
- }
- if (cached_has_bits & 0x00000004u) {
- _internal_mutable_alg_msg()->::globalmsg::algMsg::MergeFrom(from._internal_alg_msg());
- }
- if (cached_has_bits & 0x00000008u) {
- _internal_mutable_sys_msg()->::globalmsg::SysMsg::MergeFrom(from._internal_sys_msg());
- }
- if (cached_has_bits & 0x00000010u) {
- msg_type_ = from.msg_type_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void msg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void msg::CopyFrom(const msg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.msg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool msg::IsInitialized() const {
- if (_Internal::MissingRequiredFields(_has_bits_)) return false;
- if (_internal_has_laser_msg()) {
- if (!laser_msg_->IsInitialized()) return false;
- }
- if (_internal_has_alg_msg()) {
- if (!alg_msg_->IsInitialized()) return false;
- }
- if (_internal_has_sys_msg()) {
- if (!sys_msg_->IsInitialized()) return false;
- }
- return true;
- }
- void msg::InternalSwap(msg* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(msg, msg_type_)
- + sizeof(msg::msg_type_)
- - PROTOBUF_FIELD_OFFSET(msg, laser_msg_)>(
- reinterpret_cast<char*>(&laser_msg_),
- reinterpret_cast<char*>(&other->laser_msg_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata msg::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void laserMsg::InitAsDefaultInstance() {
- }
- class laserMsg::_Internal {
- public:
- using HasBits = decltype(std::declval<laserMsg>()._has_bits_);
- static void set_has_laser_status(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_queue_data_count(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_cloud_count(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static void set_has_id(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x00000008) ^ 0x00000008) != 0;
- }
- };
- laserMsg::laserMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.laserMsg)
- }
- laserMsg::laserMsg(const laserMsg& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&laser_status_, &from.laser_status_,
- static_cast<size_t>(reinterpret_cast<char*>(&id_) -
- reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
- // @@protoc_insertion_point(copy_constructor:globalmsg.laserMsg)
- }
- void laserMsg::SharedCtor() {
- ::memset(&laser_status_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&id_) -
- reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
- }
- laserMsg::~laserMsg() {
- // @@protoc_insertion_point(destructor:globalmsg.laserMsg)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void laserMsg::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- }
- void laserMsg::ArenaDtor(void* object) {
- laserMsg* _this = reinterpret_cast< laserMsg* >(object);
- (void)_this;
- }
- void laserMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void laserMsg::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const laserMsg& laserMsg::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_laserMsg_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void laserMsg::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.laserMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x0000000fu) {
- ::memset(&laser_status_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&id_) -
- reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* laserMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional .globalmsg.laserStatus laser_status = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- if (PROTOBUF_PREDICT_TRUE(::globalmsg::laserStatus_IsValid(val))) {
- _internal_set_laser_status(static_cast<::globalmsg::laserStatus>(val));
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
- }
- } else goto handle_unusual;
- continue;
- // optional int32 queue_data_count = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- _Internal::set_has_queue_data_count(&has_bits);
- queue_data_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional int32 cloud_count = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
- _Internal::set_has_cloud_count(&has_bits);
- cloud_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // required int32 id = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
- _Internal::set_has_id(&has_bits);
- id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* laserMsg::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.laserMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .globalmsg.laserStatus laser_status = 1;
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_laser_status(), target);
- }
- // optional int32 queue_data_count = 2;
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_queue_data_count(), target);
- }
- // optional int32 cloud_count = 3;
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cloud_count(), target);
- }
- // required int32 id = 4;
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_id(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.laserMsg)
- return target;
- }
- size_t laserMsg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.laserMsg)
- size_t total_size = 0;
- // required int32 id = 4;
- if (_internal_has_id()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_id());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // optional .globalmsg.laserStatus laser_status = 1;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_laser_status());
- }
- // optional int32 queue_data_count = 2;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_queue_data_count());
- }
- // optional int32 cloud_count = 3;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_cloud_count());
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void laserMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.laserMsg)
- GOOGLE_DCHECK_NE(&from, this);
- const laserMsg* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<laserMsg>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.laserMsg)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.laserMsg)
- MergeFrom(*source);
- }
- }
- void laserMsg::MergeFrom(const laserMsg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.laserMsg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x0000000fu) {
- if (cached_has_bits & 0x00000001u) {
- laser_status_ = from.laser_status_;
- }
- if (cached_has_bits & 0x00000002u) {
- queue_data_count_ = from.queue_data_count_;
- }
- if (cached_has_bits & 0x00000004u) {
- cloud_count_ = from.cloud_count_;
- }
- if (cached_has_bits & 0x00000008u) {
- id_ = from.id_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void laserMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.laserMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void laserMsg::CopyFrom(const laserMsg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.laserMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool laserMsg::IsInitialized() const {
- if (_Internal::MissingRequiredFields(_has_bits_)) return false;
- return true;
- }
- void laserMsg::InternalSwap(laserMsg* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(laserMsg, id_)
- + sizeof(laserMsg::id_)
- - PROTOBUF_FIELD_OFFSET(laserMsg, laser_status_)>(
- reinterpret_cast<char*>(&laser_status_),
- reinterpret_cast<char*>(&other->laser_status_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata laserMsg::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void plcMsg::InitAsDefaultInstance() {
- }
- class plcMsg::_Internal {
- public:
- using HasBits = decltype(std::declval<plcMsg>()._has_bits_);
- static void set_has_plc_status(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- plcMsg::plcMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- plc_values_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.plcMsg)
- }
- plcMsg::plcMsg(const plcMsg& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_),
- plc_values_(from.plc_values_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- plc_status_ = from.plc_status_;
- // @@protoc_insertion_point(copy_constructor:globalmsg.plcMsg)
- }
- void plcMsg::SharedCtor() {
- plc_status_ = 0;
- }
- plcMsg::~plcMsg() {
- // @@protoc_insertion_point(destructor:globalmsg.plcMsg)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void plcMsg::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- }
- void plcMsg::ArenaDtor(void* object) {
- plcMsg* _this = reinterpret_cast< plcMsg* >(object);
- (void)_this;
- }
- void plcMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void plcMsg::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const plcMsg& plcMsg::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_plcMsg_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void plcMsg::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.plcMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- plc_values_.Clear();
- plc_status_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* plcMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // optional .globalmsg.plcStatus plc_status = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- if (PROTOBUF_PREDICT_TRUE(::globalmsg::plcStatus_IsValid(val))) {
- _internal_set_plc_status(static_cast<::globalmsg::plcStatus>(val));
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
- }
- } else goto handle_unusual;
- continue;
- // repeated int32 plc_values = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- ptr -= 1;
- do {
- ptr += 1;
- _internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr));
- } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18) {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_plc_values(), ptr, ctx);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* plcMsg::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.plcMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .globalmsg.plcStatus plc_status = 1;
- if (cached_has_bits & 0x00000001u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 1, this->_internal_plc_status(), target);
- }
- // repeated int32 plc_values = 2;
- for (int i = 0, n = this->_internal_plc_values_size(); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_plc_values(i), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.plcMsg)
- return target;
- }
- size_t plcMsg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.plcMsg)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated int32 plc_values = 2;
- {
- size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- Int32Size(this->plc_values_);
- total_size += 1 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_plc_values_size());
- total_size += data_size;
- }
- // optional .globalmsg.plcStatus plc_status = 1;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_plc_status());
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void plcMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.plcMsg)
- GOOGLE_DCHECK_NE(&from, this);
- const plcMsg* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<plcMsg>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.plcMsg)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.plcMsg)
- MergeFrom(*source);
- }
- }
- void plcMsg::MergeFrom(const plcMsg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.plcMsg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- plc_values_.MergeFrom(from.plc_values_);
- if (from._internal_has_plc_status()) {
- _internal_set_plc_status(from._internal_plc_status());
- }
- }
- void plcMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.plcMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void plcMsg::CopyFrom(const plcMsg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.plcMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool plcMsg::IsInitialized() const {
- return true;
- }
- void plcMsg::InternalSwap(plcMsg* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- plc_values_.InternalSwap(&other->plc_values_);
- swap(plc_status_, other->plc_status_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata plcMsg::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void resultInfo::InitAsDefaultInstance() {
- }
- class resultInfo::_Internal {
- public:
- using HasBits = decltype(std::declval<resultInfo>()._has_bits_);
- static void set_has_time(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_correctness(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- static void set_has_park_space_id(HasBits* has_bits) {
- (*has_bits)[0] |= 8u;
- }
- static void set_has_laser_ids(HasBits* has_bits) {
- (*has_bits)[0] |= 4096u;
- }
- static void set_has_x(HasBits* has_bits) {
- (*has_bits)[0] |= 16u;
- }
- static void set_has_y(HasBits* has_bits) {
- (*has_bits)[0] |= 32u;
- }
- static void set_has_c(HasBits* has_bits) {
- (*has_bits)[0] |= 64u;
- }
- static void set_has_wheel_base(HasBits* has_bits) {
- (*has_bits)[0] |= 128u;
- }
- static void set_has_length(HasBits* has_bits) {
- (*has_bits)[0] |= 256u;
- }
- static void set_has_width(HasBits* has_bits) {
- (*has_bits)[0] |= 512u;
- }
- static void set_has_height(HasBits* has_bits) {
- (*has_bits)[0] |= 1024u;
- }
- static void set_has_error(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_front_theta(HasBits* has_bits) {
- (*has_bits)[0] |= 2048u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x00000005) ^ 0x00000005) != 0;
- }
- };
- resultInfo::resultInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.resultInfo)
- }
- resultInfo::resultInfo(const resultInfo& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_time()) {
- time_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_time(),
- GetArena());
- }
- error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_error()) {
- error_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_error(),
- GetArena());
- }
- ::memcpy(&correctness_, &from.correctness_,
- static_cast<size_t>(reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
- // @@protoc_insertion_point(copy_constructor:globalmsg.resultInfo)
- }
- void resultInfo::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_resultInfo_globalmsg_2eproto.base);
- time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- ::memset(&correctness_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
- }
- resultInfo::~resultInfo() {
- // @@protoc_insertion_point(destructor:globalmsg.resultInfo)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void resultInfo::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- error_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void resultInfo::ArenaDtor(void* object) {
- resultInfo* _this = reinterpret_cast< resultInfo* >(object);
- (void)_this;
- }
- void resultInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void resultInfo::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const resultInfo& resultInfo::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_resultInfo_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void resultInfo::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.resultInfo)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- time_.ClearNonDefaultToEmpty();
- }
- if (cached_has_bits & 0x00000002u) {
- error_.ClearNonDefaultToEmpty();
- }
- }
- if (cached_has_bits & 0x000000fcu) {
- ::memset(&correctness_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&wheel_base_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(wheel_base_));
- }
- if (cached_has_bits & 0x00001f00u) {
- ::memset(&length_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&length_)) + sizeof(laser_ids_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* resultInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // required string time = 1 [default = ""];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_time();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.resultInfo.time");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // required bool correctness = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- _Internal::set_has_correctness(&has_bits);
- correctness_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional int32 park_space_id = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
- _Internal::set_has_park_space_id(&has_bits);
- park_space_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional int32 laser_ids = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
- _Internal::set_has_laser_ids(&has_bits);
- laser_ids_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional double x = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) {
- _Internal::set_has_x(&has_bits);
- x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double y = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
- _Internal::set_has_y(&has_bits);
- y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double c = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) {
- _Internal::set_has_c(&has_bits);
- c_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double wheel_base = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) {
- _Internal::set_has_wheel_base(&has_bits);
- wheel_base_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double length = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) {
- _Internal::set_has_length(&has_bits);
- length_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double width = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) {
- _Internal::set_has_width(&has_bits);
- width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional double height = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 89)) {
- _Internal::set_has_height(&has_bits);
- height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // optional string error = 12 [default = ""];
- case 12:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
- auto str = _internal_mutable_error();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.resultInfo.error");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional double front_theta = 13;
- case 13:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 105)) {
- _Internal::set_has_front_theta(&has_bits);
- front_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* resultInfo::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.resultInfo)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string time = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_time().data(), static_cast<int>(this->_internal_time().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "globalmsg.resultInfo.time");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_time(), target);
- }
- // required bool correctness = 2;
- if (cached_has_bits & 0x00000004u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_correctness(), target);
- }
- // optional int32 park_space_id = 3;
- if (cached_has_bits & 0x00000008u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_park_space_id(), target);
- }
- // optional int32 laser_ids = 4;
- if (cached_has_bits & 0x00001000u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_laser_ids(), target);
- }
- // optional double x = 5;
- if (cached_has_bits & 0x00000010u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_x(), target);
- }
- // optional double y = 6;
- if (cached_has_bits & 0x00000020u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_y(), target);
- }
- // optional double c = 7;
- if (cached_has_bits & 0x00000040u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_c(), target);
- }
- // optional double wheel_base = 8;
- if (cached_has_bits & 0x00000080u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_wheel_base(), target);
- }
- // optional double length = 9;
- if (cached_has_bits & 0x00000100u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_length(), target);
- }
- // optional double width = 10;
- if (cached_has_bits & 0x00000200u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_width(), target);
- }
- // optional double height = 11;
- if (cached_has_bits & 0x00000400u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(11, this->_internal_height(), target);
- }
- // optional string error = 12 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_error().data(), static_cast<int>(this->_internal_error().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "globalmsg.resultInfo.error");
- target = stream->WriteStringMaybeAliased(
- 12, this->_internal_error(), target);
- }
- // optional double front_theta = 13;
- if (cached_has_bits & 0x00000800u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(13, this->_internal_front_theta(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.resultInfo)
- return target;
- }
- size_t resultInfo::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:globalmsg.resultInfo)
- size_t total_size = 0;
- if (_internal_has_time()) {
- // required string time = 1 [default = ""];
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_time());
- }
- if (_internal_has_correctness()) {
- // required bool correctness = 2;
- total_size += 1 + 1;
- }
- return total_size;
- }
- size_t resultInfo::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.resultInfo)
- size_t total_size = 0;
- if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
- // required string time = 1 [default = ""];
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_time());
- // required bool correctness = 2;
- total_size += 1 + 1;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // optional string error = 12 [default = ""];
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_error());
- }
- if (cached_has_bits & 0x000000f8u) {
- // optional int32 park_space_id = 3;
- if (cached_has_bits & 0x00000008u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_park_space_id());
- }
- // optional double x = 5;
- if (cached_has_bits & 0x00000010u) {
- total_size += 1 + 8;
- }
- // optional double y = 6;
- if (cached_has_bits & 0x00000020u) {
- total_size += 1 + 8;
- }
- // optional double c = 7;
- if (cached_has_bits & 0x00000040u) {
- total_size += 1 + 8;
- }
- // optional double wheel_base = 8;
- if (cached_has_bits & 0x00000080u) {
- total_size += 1 + 8;
- }
- }
- if (cached_has_bits & 0x00001f00u) {
- // optional double length = 9;
- if (cached_has_bits & 0x00000100u) {
- total_size += 1 + 8;
- }
- // optional double width = 10;
- if (cached_has_bits & 0x00000200u) {
- total_size += 1 + 8;
- }
- // optional double height = 11;
- if (cached_has_bits & 0x00000400u) {
- total_size += 1 + 8;
- }
- // optional double front_theta = 13;
- if (cached_has_bits & 0x00000800u) {
- total_size += 1 + 8;
- }
- // optional int32 laser_ids = 4;
- if (cached_has_bits & 0x00001000u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_laser_ids());
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void resultInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.resultInfo)
- GOOGLE_DCHECK_NE(&from, this);
- const resultInfo* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<resultInfo>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.resultInfo)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.resultInfo)
- MergeFrom(*source);
- }
- }
- void resultInfo::MergeFrom(const resultInfo& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.resultInfo)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x000000ffu) {
- if (cached_has_bits & 0x00000001u) {
- _internal_set_time(from._internal_time());
- }
- if (cached_has_bits & 0x00000002u) {
- _internal_set_error(from._internal_error());
- }
- if (cached_has_bits & 0x00000004u) {
- correctness_ = from.correctness_;
- }
- if (cached_has_bits & 0x00000008u) {
- park_space_id_ = from.park_space_id_;
- }
- if (cached_has_bits & 0x00000010u) {
- x_ = from.x_;
- }
- if (cached_has_bits & 0x00000020u) {
- y_ = from.y_;
- }
- if (cached_has_bits & 0x00000040u) {
- c_ = from.c_;
- }
- if (cached_has_bits & 0x00000080u) {
- wheel_base_ = from.wheel_base_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 0x00001f00u) {
- if (cached_has_bits & 0x00000100u) {
- length_ = from.length_;
- }
- if (cached_has_bits & 0x00000200u) {
- width_ = from.width_;
- }
- if (cached_has_bits & 0x00000400u) {
- height_ = from.height_;
- }
- if (cached_has_bits & 0x00000800u) {
- front_theta_ = from.front_theta_;
- }
- if (cached_has_bits & 0x00001000u) {
- laser_ids_ = from.laser_ids_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void resultInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.resultInfo)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void resultInfo::CopyFrom(const resultInfo& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.resultInfo)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool resultInfo::IsInitialized() const {
- if (_Internal::MissingRequiredFields(_has_bits_)) return false;
- return true;
- }
- void resultInfo::InternalSwap(resultInfo* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- time_.Swap(&other->time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- error_.Swap(&other->error_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(resultInfo, laser_ids_)
- + sizeof(resultInfo::laser_ids_)
- - PROTOBUF_FIELD_OFFSET(resultInfo, correctness_)>(
- reinterpret_cast<char*>(&correctness_),
- reinterpret_cast<char*>(&other->correctness_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata resultInfo::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void algMsg::InitAsDefaultInstance() {
- }
- class algMsg::_Internal {
- public:
- using HasBits = decltype(std::declval<algMsg>()._has_bits_);
- static void set_has_thread_queue_size(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static void set_has_log_path(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- algMsg::algMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena),
- result_(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.algMsg)
- }
- algMsg::algMsg(const algMsg& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_),
- result_(from.result_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_log_path()) {
- log_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_log_path(),
- GetArena());
- }
- thread_queue_size_ = from.thread_queue_size_;
- // @@protoc_insertion_point(copy_constructor:globalmsg.algMsg)
- }
- void algMsg::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_algMsg_globalmsg_2eproto.base);
- log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- thread_queue_size_ = 0;
- }
- algMsg::~algMsg() {
- // @@protoc_insertion_point(destructor:globalmsg.algMsg)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void algMsg::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- log_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void algMsg::ArenaDtor(void* object) {
- algMsg* _this = reinterpret_cast< algMsg* >(object);
- (void)_this;
- }
- void algMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void algMsg::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const algMsg& algMsg::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_algMsg_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void algMsg::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.algMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- result_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- log_path_.ClearNonDefaultToEmpty();
- }
- thread_queue_size_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* algMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // repeated .globalmsg.resultInfo result = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_result(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else goto handle_unusual;
- continue;
- // optional int32 thread_queue_size = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- _Internal::set_has_thread_queue_size(&has_bits);
- thread_queue_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional string log_path = 3 [default = ""];
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- auto str = _internal_mutable_log_path();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.algMsg.log_path");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* algMsg::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.algMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .globalmsg.resultInfo result = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_result_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_result(i), target, stream);
- }
- cached_has_bits = _has_bits_[0];
- // optional int32 thread_queue_size = 2;
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_thread_queue_size(), target);
- }
- // optional string log_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_log_path().data(), static_cast<int>(this->_internal_log_path().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "globalmsg.algMsg.log_path");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_log_path(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.algMsg)
- return target;
- }
- size_t algMsg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.algMsg)
- size_t total_size = 0;
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .globalmsg.resultInfo result = 1;
- total_size += 1UL * this->_internal_result_size();
- for (const auto& msg : this->result_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- // optional string log_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_log_path());
- }
- // optional int32 thread_queue_size = 2;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
- this->_internal_thread_queue_size());
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void algMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.algMsg)
- GOOGLE_DCHECK_NE(&from, this);
- const algMsg* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<algMsg>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.algMsg)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.algMsg)
- MergeFrom(*source);
- }
- }
- void algMsg::MergeFrom(const algMsg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.algMsg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- result_.MergeFrom(from.result_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _internal_set_log_path(from._internal_log_path());
- }
- if (cached_has_bits & 0x00000002u) {
- thread_queue_size_ = from.thread_queue_size_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void algMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.algMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void algMsg::CopyFrom(const algMsg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.algMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool algMsg::IsInitialized() const {
- if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(result_)) return false;
- return true;
- }
- void algMsg::InternalSwap(algMsg* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- result_.InternalSwap(&other->result_);
- log_path_.Swap(&other->log_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- swap(thread_queue_size_, other->thread_queue_size_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata algMsg::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void SysMsg::InitAsDefaultInstance() {
- }
- class SysMsg::_Internal {
- public:
- using HasBits = decltype(std::declval<SysMsg>()._has_bits_);
- static void set_has_log(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static void set_has_level(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static bool MissingRequiredFields(const HasBits& has_bits) {
- return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
- }
- };
- SysMsg::SysMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:globalmsg.SysMsg)
- }
- SysMsg::SysMsg(const SysMsg& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- log_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (from._internal_has_log()) {
- log_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_log(),
- GetArena());
- }
- level_ = from.level_;
- // @@protoc_insertion_point(copy_constructor:globalmsg.SysMsg)
- }
- void SysMsg::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SysMsg_globalmsg_2eproto.base);
- log_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- level_ = 0;
- }
- SysMsg::~SysMsg() {
- // @@protoc_insertion_point(destructor:globalmsg.SysMsg)
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- void SysMsg::SharedDtor() {
- GOOGLE_DCHECK(GetArena() == nullptr);
- log_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void SysMsg::ArenaDtor(void* object) {
- SysMsg* _this = reinterpret_cast< SysMsg* >(object);
- (void)_this;
- }
- void SysMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SysMsg::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const SysMsg& SysMsg::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SysMsg_globalmsg_2eproto.base);
- return *internal_default_instance();
- }
- void SysMsg::Clear() {
- // @@protoc_insertion_point(message_clear_start:globalmsg.SysMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- log_.ClearNonDefaultToEmpty();
- }
- level_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SysMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // required string log = 1 [default = ""];
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- auto str = _internal_mutable_log();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- #ifndef NDEBUG
- ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.SysMsg.log");
- #endif // !NDEBUG
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- if (PROTOBUF_PREDICT_TRUE(::globalmsg::logLevel_IsValid(val))) {
- _internal_set_level(static_cast<::globalmsg::logLevel>(val));
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
- }
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- _has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* SysMsg::_InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:globalmsg.SysMsg)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string log = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
- this->_internal_log().data(), static_cast<int>(this->_internal_log().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
- "globalmsg.SysMsg.log");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_log(), target);
- }
- // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
- if (cached_has_bits & 0x00000002u) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 2, this->_internal_level(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:globalmsg.SysMsg)
- return target;
- }
- size_t SysMsg::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:globalmsg.SysMsg)
- size_t total_size = 0;
- // required string log = 1 [default = ""];
- if (_internal_has_log()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_log());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_level());
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
- _internal_metadata_, total_size, &_cached_size_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SysMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.SysMsg)
- GOOGLE_DCHECK_NE(&from, this);
- const SysMsg* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SysMsg>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.SysMsg)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.SysMsg)
- MergeFrom(*source);
- }
- }
- void SysMsg::MergeFrom(const SysMsg& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.SysMsg)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _internal_set_log(from._internal_log());
- }
- if (cached_has_bits & 0x00000002u) {
- level_ = from.level_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void SysMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.SysMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SysMsg::CopyFrom(const SysMsg& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.SysMsg)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SysMsg::IsInitialized() const {
- if (_Internal::MissingRequiredFields(_has_bits_)) return false;
- return true;
- }
- void SysMsg::InternalSwap(SysMsg* other) {
- using std::swap;
- _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- log_.Swap(&other->log_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- swap(level_, other->level_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SysMsg::GetMetadata() const {
- return GetMetadataStatic();
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace globalmsg
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::globalmsg::msg* Arena::CreateMaybeMessage< ::globalmsg::msg >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::msg >(arena);
- }
- template<> PROTOBUF_NOINLINE ::globalmsg::laserMsg* Arena::CreateMaybeMessage< ::globalmsg::laserMsg >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::laserMsg >(arena);
- }
- template<> PROTOBUF_NOINLINE ::globalmsg::plcMsg* Arena::CreateMaybeMessage< ::globalmsg::plcMsg >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::plcMsg >(arena);
- }
- template<> PROTOBUF_NOINLINE ::globalmsg::resultInfo* Arena::CreateMaybeMessage< ::globalmsg::resultInfo >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::resultInfo >(arena);
- }
- template<> PROTOBUF_NOINLINE ::globalmsg::algMsg* Arena::CreateMaybeMessage< ::globalmsg::algMsg >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::algMsg >(arena);
- }
- template<> PROTOBUF_NOINLINE ::globalmsg::SysMsg* Arena::CreateMaybeMessage< ::globalmsg::SysMsg >(Arena* arena) {
- return Arena::CreateMessageInternal< ::globalmsg::SysMsg >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|