globalmsg.pb.cc 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: globalmsg.proto
  3. #include "globalmsg.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SysMsg_globalmsg_2eproto;
  15. extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_algMsg_globalmsg_2eproto;
  16. extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laserMsg_globalmsg_2eproto;
  17. extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plcMsg_globalmsg_2eproto;
  18. extern PROTOBUF_INTERNAL_EXPORT_globalmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_resultInfo_globalmsg_2eproto;
  19. namespace globalmsg {
  20. class msgDefaultTypeInternal {
  21. public:
  22. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<msg> _instance;
  23. } _msg_default_instance_;
  24. class laserMsgDefaultTypeInternal {
  25. public:
  26. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<laserMsg> _instance;
  27. } _laserMsg_default_instance_;
  28. class plcMsgDefaultTypeInternal {
  29. public:
  30. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<plcMsg> _instance;
  31. } _plcMsg_default_instance_;
  32. class resultInfoDefaultTypeInternal {
  33. public:
  34. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<resultInfo> _instance;
  35. } _resultInfo_default_instance_;
  36. class algMsgDefaultTypeInternal {
  37. public:
  38. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<algMsg> _instance;
  39. } _algMsg_default_instance_;
  40. class SysMsgDefaultTypeInternal {
  41. public:
  42. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SysMsg> _instance;
  43. } _SysMsg_default_instance_;
  44. } // namespace globalmsg
  45. static void InitDefaultsscc_info_SysMsg_globalmsg_2eproto() {
  46. GOOGLE_PROTOBUF_VERIFY_VERSION;
  47. {
  48. void* ptr = &::globalmsg::_SysMsg_default_instance_;
  49. new (ptr) ::globalmsg::SysMsg();
  50. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  51. }
  52. ::globalmsg::SysMsg::InitAsDefaultInstance();
  53. }
  54. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SysMsg_globalmsg_2eproto =
  55. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SysMsg_globalmsg_2eproto}, {}};
  56. static void InitDefaultsscc_info_algMsg_globalmsg_2eproto() {
  57. GOOGLE_PROTOBUF_VERIFY_VERSION;
  58. {
  59. void* ptr = &::globalmsg::_algMsg_default_instance_;
  60. new (ptr) ::globalmsg::algMsg();
  61. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  62. }
  63. ::globalmsg::algMsg::InitAsDefaultInstance();
  64. }
  65. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_algMsg_globalmsg_2eproto =
  66. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_algMsg_globalmsg_2eproto}, {
  67. &scc_info_resultInfo_globalmsg_2eproto.base,}};
  68. static void InitDefaultsscc_info_laserMsg_globalmsg_2eproto() {
  69. GOOGLE_PROTOBUF_VERIFY_VERSION;
  70. {
  71. void* ptr = &::globalmsg::_laserMsg_default_instance_;
  72. new (ptr) ::globalmsg::laserMsg();
  73. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  74. }
  75. ::globalmsg::laserMsg::InitAsDefaultInstance();
  76. }
  77. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laserMsg_globalmsg_2eproto =
  78. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_laserMsg_globalmsg_2eproto}, {}};
  79. static void InitDefaultsscc_info_msg_globalmsg_2eproto() {
  80. GOOGLE_PROTOBUF_VERIFY_VERSION;
  81. {
  82. void* ptr = &::globalmsg::_msg_default_instance_;
  83. new (ptr) ::globalmsg::msg();
  84. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  85. }
  86. ::globalmsg::msg::InitAsDefaultInstance();
  87. }
  88. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_msg_globalmsg_2eproto =
  89. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_msg_globalmsg_2eproto}, {
  90. &scc_info_laserMsg_globalmsg_2eproto.base,
  91. &scc_info_plcMsg_globalmsg_2eproto.base,
  92. &scc_info_algMsg_globalmsg_2eproto.base,
  93. &scc_info_SysMsg_globalmsg_2eproto.base,}};
  94. static void InitDefaultsscc_info_plcMsg_globalmsg_2eproto() {
  95. GOOGLE_PROTOBUF_VERIFY_VERSION;
  96. {
  97. void* ptr = &::globalmsg::_plcMsg_default_instance_;
  98. new (ptr) ::globalmsg::plcMsg();
  99. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::globalmsg::plcMsg::InitAsDefaultInstance();
  102. }
  103. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_plcMsg_globalmsg_2eproto =
  104. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_plcMsg_globalmsg_2eproto}, {}};
  105. static void InitDefaultsscc_info_resultInfo_globalmsg_2eproto() {
  106. GOOGLE_PROTOBUF_VERIFY_VERSION;
  107. {
  108. void* ptr = &::globalmsg::_resultInfo_default_instance_;
  109. new (ptr) ::globalmsg::resultInfo();
  110. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  111. }
  112. ::globalmsg::resultInfo::InitAsDefaultInstance();
  113. }
  114. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_resultInfo_globalmsg_2eproto =
  115. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_resultInfo_globalmsg_2eproto}, {}};
  116. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_globalmsg_2eproto[6];
  117. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_globalmsg_2eproto[4];
  118. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_globalmsg_2eproto = nullptr;
  119. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_globalmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  120. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, _has_bits_),
  121. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, _internal_metadata_),
  122. ~0u, // no _extensions_
  123. ~0u, // no _oneof_case_
  124. ~0u, // no _weak_field_map_
  125. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, msg_type_),
  126. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, laser_msg_),
  127. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, plc_msg_),
  128. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, alg_msg_),
  129. PROTOBUF_FIELD_OFFSET(::globalmsg::msg, sys_msg_),
  130. 4,
  131. 0,
  132. 1,
  133. 2,
  134. 3,
  135. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, _has_bits_),
  136. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, _internal_metadata_),
  137. ~0u, // no _extensions_
  138. ~0u, // no _oneof_case_
  139. ~0u, // no _weak_field_map_
  140. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, laser_status_),
  141. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, queue_data_count_),
  142. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, cloud_count_),
  143. PROTOBUF_FIELD_OFFSET(::globalmsg::laserMsg, id_),
  144. 0,
  145. 1,
  146. 2,
  147. 3,
  148. PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, _has_bits_),
  149. PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, _internal_metadata_),
  150. ~0u, // no _extensions_
  151. ~0u, // no _oneof_case_
  152. ~0u, // no _weak_field_map_
  153. PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, plc_status_),
  154. PROTOBUF_FIELD_OFFSET(::globalmsg::plcMsg, plc_values_),
  155. 0,
  156. ~0u,
  157. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, _has_bits_),
  158. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, _internal_metadata_),
  159. ~0u, // no _extensions_
  160. ~0u, // no _oneof_case_
  161. ~0u, // no _weak_field_map_
  162. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, time_),
  163. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, correctness_),
  164. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, park_space_id_),
  165. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, laser_ids_),
  166. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, x_),
  167. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, y_),
  168. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, c_),
  169. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, wheel_base_),
  170. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, length_),
  171. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, width_),
  172. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, height_),
  173. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, error_),
  174. PROTOBUF_FIELD_OFFSET(::globalmsg::resultInfo, front_theta_),
  175. 0,
  176. 2,
  177. 3,
  178. 12,
  179. 4,
  180. 5,
  181. 6,
  182. 7,
  183. 8,
  184. 9,
  185. 10,
  186. 1,
  187. 11,
  188. PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, _has_bits_),
  189. PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, _internal_metadata_),
  190. ~0u, // no _extensions_
  191. ~0u, // no _oneof_case_
  192. ~0u, // no _weak_field_map_
  193. PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, result_),
  194. PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, thread_queue_size_),
  195. PROTOBUF_FIELD_OFFSET(::globalmsg::algMsg, log_path_),
  196. ~0u,
  197. 1,
  198. 0,
  199. PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, _has_bits_),
  200. PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, _internal_metadata_),
  201. ~0u, // no _extensions_
  202. ~0u, // no _oneof_case_
  203. ~0u, // no _weak_field_map_
  204. PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, log_),
  205. PROTOBUF_FIELD_OFFSET(::globalmsg::SysMsg, level_),
  206. 0,
  207. 1,
  208. };
  209. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  210. { 0, 10, sizeof(::globalmsg::msg)},
  211. { 15, 24, sizeof(::globalmsg::laserMsg)},
  212. { 28, 35, sizeof(::globalmsg::plcMsg)},
  213. { 37, 55, sizeof(::globalmsg::resultInfo)},
  214. { 68, 76, sizeof(::globalmsg::algMsg)},
  215. { 79, 86, sizeof(::globalmsg::SysMsg)},
  216. };
  217. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  218. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_msg_default_instance_),
  219. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_laserMsg_default_instance_),
  220. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_plcMsg_default_instance_),
  221. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_resultInfo_default_instance_),
  222. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_algMsg_default_instance_),
  223. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::globalmsg::_SysMsg_default_instance_),
  224. };
  225. const char descriptor_table_protodef_globalmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  226. "\n\017globalmsg.proto\022\tglobalmsg\"\274\001\n\003msg\022!\n\010"
  227. "msg_type\030\001 \002(\0162\017.globalmsg.type\022&\n\tlaser"
  228. "_msg\030\002 \001(\0132\023.globalmsg.laserMsg\022\"\n\007plc_m"
  229. "sg\030\003 \001(\0132\021.globalmsg.plcMsg\022\"\n\007alg_msg\030\004"
  230. " \001(\0132\021.globalmsg.algMsg\022\"\n\007sys_msg\030\005 \001(\013"
  231. "2\021.globalmsg.SysMsg\"s\n\010laserMsg\022,\n\014laser"
  232. "_status\030\001 \001(\0162\026.globalmsg.laserStatus\022\030\n"
  233. "\020queue_data_count\030\002 \001(\005\022\023\n\013cloud_count\030\003"
  234. " \001(\005\022\n\n\002id\030\004 \002(\005\"F\n\006plcMsg\022(\n\nplc_status"
  235. "\030\001 \001(\0162\024.globalmsg.plcStatus\022\022\n\nplc_valu"
  236. "es\030\002 \003(\005\"\345\001\n\nresultInfo\022\016\n\004time\030\001 \002(\t:\000\022"
  237. "\023\n\013correctness\030\002 \002(\010\022\025\n\rpark_space_id\030\003 "
  238. "\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"
  239. " \001(\001\022\t\n\001c\030\007 \001(\001\022\022\n\nwheel_base\030\010 \001(\001\022\016\n\006l"
  240. "ength\030\t \001(\001\022\r\n\005width\030\n \001(\001\022\016\n\006height\030\013 \001"
  241. "(\001\022\017\n\005error\030\014 \001(\t:\000\022\023\n\013front_theta\030\r \001(\001"
  242. "\"^\n\006algMsg\022%\n\006result\030\001 \003(\0132\025.globalmsg.r"
  243. "esultInfo\022\031\n\021thread_queue_size\030\002 \001(\005\022\022\n\010"
  244. "log_path\030\003 \001(\t:\000\"E\n\006SysMsg\022\r\n\003log\030\001 \002(\t:"
  245. "\000\022,\n\005level\030\002 \001(\0162\023.globalmsg.logLevel:\010e"
  246. "SysInfo*0\n\004type\022\010\n\004ePLC\020\000\022\n\n\006eLaser\020\001\022\010\n"
  247. "\004eAlg\020\002\022\010\n\004eLog\020\003*]\n\013laserStatus\022\023\n\017eLas"
  248. "erConnected\020\000\022\026\n\022eLaserDisconnected\020\001\022\016\n"
  249. "\neLaserBusy\020\002\022\021\n\reLaserUnknown\020\003*V\n\tplcS"
  250. "tatus\022\021\n\rePLCConnected\020\000\022\024\n\020ePLCDisconne"
  251. "cted\020\001\022\017\n\013ePLCRefused\020\002\022\017\n\013ePLCUnknown\020\003"
  252. "*E\n\010logLevel\022\014\n\010eSysInfo\020\000\022\013\n\007eSysLog\020\001\022"
  253. "\017\n\013eSysWarning\020\002\022\r\n\teSysError\020\003"
  254. ;
  255. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_globalmsg_2eproto_deps[1] = {
  256. };
  257. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_globalmsg_2eproto_sccs[6] = {
  258. &scc_info_SysMsg_globalmsg_2eproto.base,
  259. &scc_info_algMsg_globalmsg_2eproto.base,
  260. &scc_info_laserMsg_globalmsg_2eproto.base,
  261. &scc_info_msg_globalmsg_2eproto.base,
  262. &scc_info_plcMsg_globalmsg_2eproto.base,
  263. &scc_info_resultInfo_globalmsg_2eproto.base,
  264. };
  265. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_globalmsg_2eproto_once;
  266. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_globalmsg_2eproto = {
  267. false, false, descriptor_table_protodef_globalmsg_2eproto, "globalmsg.proto", 1111,
  268. &descriptor_table_globalmsg_2eproto_once, descriptor_table_globalmsg_2eproto_sccs, descriptor_table_globalmsg_2eproto_deps, 6, 0,
  269. schemas, file_default_instances, TableStruct_globalmsg_2eproto::offsets,
  270. file_level_metadata_globalmsg_2eproto, 6, file_level_enum_descriptors_globalmsg_2eproto, file_level_service_descriptors_globalmsg_2eproto,
  271. };
  272. // Force running AddDescriptors() at dynamic initialization time.
  273. static bool dynamic_init_dummy_globalmsg_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_globalmsg_2eproto)), true);
  274. namespace globalmsg {
  275. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* type_descriptor() {
  276. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
  277. return file_level_enum_descriptors_globalmsg_2eproto[0];
  278. }
  279. bool type_IsValid(int value) {
  280. switch (value) {
  281. case 0:
  282. case 1:
  283. case 2:
  284. case 3:
  285. return true;
  286. default:
  287. return false;
  288. }
  289. }
  290. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* laserStatus_descriptor() {
  291. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
  292. return file_level_enum_descriptors_globalmsg_2eproto[1];
  293. }
  294. bool laserStatus_IsValid(int value) {
  295. switch (value) {
  296. case 0:
  297. case 1:
  298. case 2:
  299. case 3:
  300. return true;
  301. default:
  302. return false;
  303. }
  304. }
  305. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* plcStatus_descriptor() {
  306. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
  307. return file_level_enum_descriptors_globalmsg_2eproto[2];
  308. }
  309. bool plcStatus_IsValid(int value) {
  310. switch (value) {
  311. case 0:
  312. case 1:
  313. case 2:
  314. case 3:
  315. return true;
  316. default:
  317. return false;
  318. }
  319. }
  320. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* logLevel_descriptor() {
  321. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_globalmsg_2eproto);
  322. return file_level_enum_descriptors_globalmsg_2eproto[3];
  323. }
  324. bool logLevel_IsValid(int value) {
  325. switch (value) {
  326. case 0:
  327. case 1:
  328. case 2:
  329. case 3:
  330. return true;
  331. default:
  332. return false;
  333. }
  334. }
  335. // ===================================================================
  336. void msg::InitAsDefaultInstance() {
  337. ::globalmsg::_msg_default_instance_._instance.get_mutable()->laser_msg_ = const_cast< ::globalmsg::laserMsg*>(
  338. ::globalmsg::laserMsg::internal_default_instance());
  339. ::globalmsg::_msg_default_instance_._instance.get_mutable()->plc_msg_ = const_cast< ::globalmsg::plcMsg*>(
  340. ::globalmsg::plcMsg::internal_default_instance());
  341. ::globalmsg::_msg_default_instance_._instance.get_mutable()->alg_msg_ = const_cast< ::globalmsg::algMsg*>(
  342. ::globalmsg::algMsg::internal_default_instance());
  343. ::globalmsg::_msg_default_instance_._instance.get_mutable()->sys_msg_ = const_cast< ::globalmsg::SysMsg*>(
  344. ::globalmsg::SysMsg::internal_default_instance());
  345. }
  346. class msg::_Internal {
  347. public:
  348. using HasBits = decltype(std::declval<msg>()._has_bits_);
  349. static void set_has_msg_type(HasBits* has_bits) {
  350. (*has_bits)[0] |= 16u;
  351. }
  352. static const ::globalmsg::laserMsg& laser_msg(const msg* msg);
  353. static void set_has_laser_msg(HasBits* has_bits) {
  354. (*has_bits)[0] |= 1u;
  355. }
  356. static const ::globalmsg::plcMsg& plc_msg(const msg* msg);
  357. static void set_has_plc_msg(HasBits* has_bits) {
  358. (*has_bits)[0] |= 2u;
  359. }
  360. static const ::globalmsg::algMsg& alg_msg(const msg* msg);
  361. static void set_has_alg_msg(HasBits* has_bits) {
  362. (*has_bits)[0] |= 4u;
  363. }
  364. static const ::globalmsg::SysMsg& sys_msg(const msg* msg);
  365. static void set_has_sys_msg(HasBits* has_bits) {
  366. (*has_bits)[0] |= 8u;
  367. }
  368. static bool MissingRequiredFields(const HasBits& has_bits) {
  369. return ((has_bits[0] & 0x00000010) ^ 0x00000010) != 0;
  370. }
  371. };
  372. const ::globalmsg::laserMsg&
  373. msg::_Internal::laser_msg(const msg* msg) {
  374. return *msg->laser_msg_;
  375. }
  376. const ::globalmsg::plcMsg&
  377. msg::_Internal::plc_msg(const msg* msg) {
  378. return *msg->plc_msg_;
  379. }
  380. const ::globalmsg::algMsg&
  381. msg::_Internal::alg_msg(const msg* msg) {
  382. return *msg->alg_msg_;
  383. }
  384. const ::globalmsg::SysMsg&
  385. msg::_Internal::sys_msg(const msg* msg) {
  386. return *msg->sys_msg_;
  387. }
  388. msg::msg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  389. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  390. SharedCtor();
  391. RegisterArenaDtor(arena);
  392. // @@protoc_insertion_point(arena_constructor:globalmsg.msg)
  393. }
  394. msg::msg(const msg& from)
  395. : ::PROTOBUF_NAMESPACE_ID::Message(),
  396. _has_bits_(from._has_bits_) {
  397. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  398. if (from._internal_has_laser_msg()) {
  399. laser_msg_ = new ::globalmsg::laserMsg(*from.laser_msg_);
  400. } else {
  401. laser_msg_ = nullptr;
  402. }
  403. if (from._internal_has_plc_msg()) {
  404. plc_msg_ = new ::globalmsg::plcMsg(*from.plc_msg_);
  405. } else {
  406. plc_msg_ = nullptr;
  407. }
  408. if (from._internal_has_alg_msg()) {
  409. alg_msg_ = new ::globalmsg::algMsg(*from.alg_msg_);
  410. } else {
  411. alg_msg_ = nullptr;
  412. }
  413. if (from._internal_has_sys_msg()) {
  414. sys_msg_ = new ::globalmsg::SysMsg(*from.sys_msg_);
  415. } else {
  416. sys_msg_ = nullptr;
  417. }
  418. msg_type_ = from.msg_type_;
  419. // @@protoc_insertion_point(copy_constructor:globalmsg.msg)
  420. }
  421. void msg::SharedCtor() {
  422. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_msg_globalmsg_2eproto.base);
  423. ::memset(&laser_msg_, 0, static_cast<size_t>(
  424. reinterpret_cast<char*>(&msg_type_) -
  425. reinterpret_cast<char*>(&laser_msg_)) + sizeof(msg_type_));
  426. }
  427. msg::~msg() {
  428. // @@protoc_insertion_point(destructor:globalmsg.msg)
  429. SharedDtor();
  430. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  431. }
  432. void msg::SharedDtor() {
  433. GOOGLE_DCHECK(GetArena() == nullptr);
  434. if (this != internal_default_instance()) delete laser_msg_;
  435. if (this != internal_default_instance()) delete plc_msg_;
  436. if (this != internal_default_instance()) delete alg_msg_;
  437. if (this != internal_default_instance()) delete sys_msg_;
  438. }
  439. void msg::ArenaDtor(void* object) {
  440. msg* _this = reinterpret_cast< msg* >(object);
  441. (void)_this;
  442. }
  443. void msg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  444. }
  445. void msg::SetCachedSize(int size) const {
  446. _cached_size_.Set(size);
  447. }
  448. const msg& msg::default_instance() {
  449. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_msg_globalmsg_2eproto.base);
  450. return *internal_default_instance();
  451. }
  452. void msg::Clear() {
  453. // @@protoc_insertion_point(message_clear_start:globalmsg.msg)
  454. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  455. // Prevent compiler warnings about cached_has_bits being unused
  456. (void) cached_has_bits;
  457. cached_has_bits = _has_bits_[0];
  458. if (cached_has_bits & 0x0000000fu) {
  459. if (cached_has_bits & 0x00000001u) {
  460. GOOGLE_DCHECK(laser_msg_ != nullptr);
  461. laser_msg_->Clear();
  462. }
  463. if (cached_has_bits & 0x00000002u) {
  464. GOOGLE_DCHECK(plc_msg_ != nullptr);
  465. plc_msg_->Clear();
  466. }
  467. if (cached_has_bits & 0x00000004u) {
  468. GOOGLE_DCHECK(alg_msg_ != nullptr);
  469. alg_msg_->Clear();
  470. }
  471. if (cached_has_bits & 0x00000008u) {
  472. GOOGLE_DCHECK(sys_msg_ != nullptr);
  473. sys_msg_->Clear();
  474. }
  475. }
  476. msg_type_ = 0;
  477. _has_bits_.Clear();
  478. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  479. }
  480. const char* msg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  481. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  482. _Internal::HasBits has_bits{};
  483. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  484. while (!ctx->Done(&ptr)) {
  485. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  486. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  487. CHK_(ptr);
  488. switch (tag >> 3) {
  489. // required .globalmsg.type msg_type = 1;
  490. case 1:
  491. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  492. ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  493. CHK_(ptr);
  494. if (PROTOBUF_PREDICT_TRUE(::globalmsg::type_IsValid(val))) {
  495. _internal_set_msg_type(static_cast<::globalmsg::type>(val));
  496. } else {
  497. ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
  498. }
  499. } else goto handle_unusual;
  500. continue;
  501. // optional .globalmsg.laserMsg laser_msg = 2;
  502. case 2:
  503. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  504. ptr = ctx->ParseMessage(_internal_mutable_laser_msg(), ptr);
  505. CHK_(ptr);
  506. } else goto handle_unusual;
  507. continue;
  508. // optional .globalmsg.plcMsg plc_msg = 3;
  509. case 3:
  510. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  511. ptr = ctx->ParseMessage(_internal_mutable_plc_msg(), ptr);
  512. CHK_(ptr);
  513. } else goto handle_unusual;
  514. continue;
  515. // optional .globalmsg.algMsg alg_msg = 4;
  516. case 4:
  517. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
  518. ptr = ctx->ParseMessage(_internal_mutable_alg_msg(), ptr);
  519. CHK_(ptr);
  520. } else goto handle_unusual;
  521. continue;
  522. // optional .globalmsg.SysMsg sys_msg = 5;
  523. case 5:
  524. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  525. ptr = ctx->ParseMessage(_internal_mutable_sys_msg(), ptr);
  526. CHK_(ptr);
  527. } else goto handle_unusual;
  528. continue;
  529. default: {
  530. handle_unusual:
  531. if ((tag & 7) == 4 || tag == 0) {
  532. ctx->SetLastTag(tag);
  533. goto success;
  534. }
  535. ptr = UnknownFieldParse(tag,
  536. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  537. ptr, ctx);
  538. CHK_(ptr != nullptr);
  539. continue;
  540. }
  541. } // switch
  542. } // while
  543. success:
  544. _has_bits_.Or(has_bits);
  545. return ptr;
  546. failure:
  547. ptr = nullptr;
  548. goto success;
  549. #undef CHK_
  550. }
  551. ::PROTOBUF_NAMESPACE_ID::uint8* msg::_InternalSerialize(
  552. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  553. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.msg)
  554. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  555. (void) cached_has_bits;
  556. cached_has_bits = _has_bits_[0];
  557. // required .globalmsg.type msg_type = 1;
  558. if (cached_has_bits & 0x00000010u) {
  559. target = stream->EnsureSpace(target);
  560. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  561. 1, this->_internal_msg_type(), target);
  562. }
  563. // optional .globalmsg.laserMsg laser_msg = 2;
  564. if (cached_has_bits & 0x00000001u) {
  565. target = stream->EnsureSpace(target);
  566. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  567. InternalWriteMessage(
  568. 2, _Internal::laser_msg(this), target, stream);
  569. }
  570. // optional .globalmsg.plcMsg plc_msg = 3;
  571. if (cached_has_bits & 0x00000002u) {
  572. target = stream->EnsureSpace(target);
  573. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  574. InternalWriteMessage(
  575. 3, _Internal::plc_msg(this), target, stream);
  576. }
  577. // optional .globalmsg.algMsg alg_msg = 4;
  578. if (cached_has_bits & 0x00000004u) {
  579. target = stream->EnsureSpace(target);
  580. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  581. InternalWriteMessage(
  582. 4, _Internal::alg_msg(this), target, stream);
  583. }
  584. // optional .globalmsg.SysMsg sys_msg = 5;
  585. if (cached_has_bits & 0x00000008u) {
  586. target = stream->EnsureSpace(target);
  587. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  588. InternalWriteMessage(
  589. 5, _Internal::sys_msg(this), target, stream);
  590. }
  591. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  592. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  593. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  594. }
  595. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.msg)
  596. return target;
  597. }
  598. size_t msg::ByteSizeLong() const {
  599. // @@protoc_insertion_point(message_byte_size_start:globalmsg.msg)
  600. size_t total_size = 0;
  601. // required .globalmsg.type msg_type = 1;
  602. if (_internal_has_msg_type()) {
  603. total_size += 1 +
  604. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_msg_type());
  605. }
  606. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  607. // Prevent compiler warnings about cached_has_bits being unused
  608. (void) cached_has_bits;
  609. cached_has_bits = _has_bits_[0];
  610. if (cached_has_bits & 0x0000000fu) {
  611. // optional .globalmsg.laserMsg laser_msg = 2;
  612. if (cached_has_bits & 0x00000001u) {
  613. total_size += 1 +
  614. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  615. *laser_msg_);
  616. }
  617. // optional .globalmsg.plcMsg plc_msg = 3;
  618. if (cached_has_bits & 0x00000002u) {
  619. total_size += 1 +
  620. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  621. *plc_msg_);
  622. }
  623. // optional .globalmsg.algMsg alg_msg = 4;
  624. if (cached_has_bits & 0x00000004u) {
  625. total_size += 1 +
  626. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  627. *alg_msg_);
  628. }
  629. // optional .globalmsg.SysMsg sys_msg = 5;
  630. if (cached_has_bits & 0x00000008u) {
  631. total_size += 1 +
  632. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  633. *sys_msg_);
  634. }
  635. }
  636. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  637. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  638. _internal_metadata_, total_size, &_cached_size_);
  639. }
  640. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  641. SetCachedSize(cached_size);
  642. return total_size;
  643. }
  644. void msg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  645. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.msg)
  646. GOOGLE_DCHECK_NE(&from, this);
  647. const msg* source =
  648. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<msg>(
  649. &from);
  650. if (source == nullptr) {
  651. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.msg)
  652. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  653. } else {
  654. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.msg)
  655. MergeFrom(*source);
  656. }
  657. }
  658. void msg::MergeFrom(const msg& from) {
  659. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.msg)
  660. GOOGLE_DCHECK_NE(&from, this);
  661. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  662. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  663. (void) cached_has_bits;
  664. cached_has_bits = from._has_bits_[0];
  665. if (cached_has_bits & 0x0000001fu) {
  666. if (cached_has_bits & 0x00000001u) {
  667. _internal_mutable_laser_msg()->::globalmsg::laserMsg::MergeFrom(from._internal_laser_msg());
  668. }
  669. if (cached_has_bits & 0x00000002u) {
  670. _internal_mutable_plc_msg()->::globalmsg::plcMsg::MergeFrom(from._internal_plc_msg());
  671. }
  672. if (cached_has_bits & 0x00000004u) {
  673. _internal_mutable_alg_msg()->::globalmsg::algMsg::MergeFrom(from._internal_alg_msg());
  674. }
  675. if (cached_has_bits & 0x00000008u) {
  676. _internal_mutable_sys_msg()->::globalmsg::SysMsg::MergeFrom(from._internal_sys_msg());
  677. }
  678. if (cached_has_bits & 0x00000010u) {
  679. msg_type_ = from.msg_type_;
  680. }
  681. _has_bits_[0] |= cached_has_bits;
  682. }
  683. }
  684. void msg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  685. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.msg)
  686. if (&from == this) return;
  687. Clear();
  688. MergeFrom(from);
  689. }
  690. void msg::CopyFrom(const msg& from) {
  691. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.msg)
  692. if (&from == this) return;
  693. Clear();
  694. MergeFrom(from);
  695. }
  696. bool msg::IsInitialized() const {
  697. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  698. if (_internal_has_laser_msg()) {
  699. if (!laser_msg_->IsInitialized()) return false;
  700. }
  701. if (_internal_has_alg_msg()) {
  702. if (!alg_msg_->IsInitialized()) return false;
  703. }
  704. if (_internal_has_sys_msg()) {
  705. if (!sys_msg_->IsInitialized()) return false;
  706. }
  707. return true;
  708. }
  709. void msg::InternalSwap(msg* other) {
  710. using std::swap;
  711. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  712. swap(_has_bits_[0], other->_has_bits_[0]);
  713. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  714. PROTOBUF_FIELD_OFFSET(msg, msg_type_)
  715. + sizeof(msg::msg_type_)
  716. - PROTOBUF_FIELD_OFFSET(msg, laser_msg_)>(
  717. reinterpret_cast<char*>(&laser_msg_),
  718. reinterpret_cast<char*>(&other->laser_msg_));
  719. }
  720. ::PROTOBUF_NAMESPACE_ID::Metadata msg::GetMetadata() const {
  721. return GetMetadataStatic();
  722. }
  723. // ===================================================================
  724. void laserMsg::InitAsDefaultInstance() {
  725. }
  726. class laserMsg::_Internal {
  727. public:
  728. using HasBits = decltype(std::declval<laserMsg>()._has_bits_);
  729. static void set_has_laser_status(HasBits* has_bits) {
  730. (*has_bits)[0] |= 1u;
  731. }
  732. static void set_has_queue_data_count(HasBits* has_bits) {
  733. (*has_bits)[0] |= 2u;
  734. }
  735. static void set_has_cloud_count(HasBits* has_bits) {
  736. (*has_bits)[0] |= 4u;
  737. }
  738. static void set_has_id(HasBits* has_bits) {
  739. (*has_bits)[0] |= 8u;
  740. }
  741. static bool MissingRequiredFields(const HasBits& has_bits) {
  742. return ((has_bits[0] & 0x00000008) ^ 0x00000008) != 0;
  743. }
  744. };
  745. laserMsg::laserMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  746. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  747. SharedCtor();
  748. RegisterArenaDtor(arena);
  749. // @@protoc_insertion_point(arena_constructor:globalmsg.laserMsg)
  750. }
  751. laserMsg::laserMsg(const laserMsg& from)
  752. : ::PROTOBUF_NAMESPACE_ID::Message(),
  753. _has_bits_(from._has_bits_) {
  754. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  755. ::memcpy(&laser_status_, &from.laser_status_,
  756. static_cast<size_t>(reinterpret_cast<char*>(&id_) -
  757. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  758. // @@protoc_insertion_point(copy_constructor:globalmsg.laserMsg)
  759. }
  760. void laserMsg::SharedCtor() {
  761. ::memset(&laser_status_, 0, static_cast<size_t>(
  762. reinterpret_cast<char*>(&id_) -
  763. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  764. }
  765. laserMsg::~laserMsg() {
  766. // @@protoc_insertion_point(destructor:globalmsg.laserMsg)
  767. SharedDtor();
  768. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  769. }
  770. void laserMsg::SharedDtor() {
  771. GOOGLE_DCHECK(GetArena() == nullptr);
  772. }
  773. void laserMsg::ArenaDtor(void* object) {
  774. laserMsg* _this = reinterpret_cast< laserMsg* >(object);
  775. (void)_this;
  776. }
  777. void laserMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  778. }
  779. void laserMsg::SetCachedSize(int size) const {
  780. _cached_size_.Set(size);
  781. }
  782. const laserMsg& laserMsg::default_instance() {
  783. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_laserMsg_globalmsg_2eproto.base);
  784. return *internal_default_instance();
  785. }
  786. void laserMsg::Clear() {
  787. // @@protoc_insertion_point(message_clear_start:globalmsg.laserMsg)
  788. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  789. // Prevent compiler warnings about cached_has_bits being unused
  790. (void) cached_has_bits;
  791. cached_has_bits = _has_bits_[0];
  792. if (cached_has_bits & 0x0000000fu) {
  793. ::memset(&laser_status_, 0, static_cast<size_t>(
  794. reinterpret_cast<char*>(&id_) -
  795. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  796. }
  797. _has_bits_.Clear();
  798. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  799. }
  800. const char* laserMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  801. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  802. _Internal::HasBits has_bits{};
  803. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  804. while (!ctx->Done(&ptr)) {
  805. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  806. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  807. CHK_(ptr);
  808. switch (tag >> 3) {
  809. // optional .globalmsg.laserStatus laser_status = 1;
  810. case 1:
  811. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  812. ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  813. CHK_(ptr);
  814. if (PROTOBUF_PREDICT_TRUE(::globalmsg::laserStatus_IsValid(val))) {
  815. _internal_set_laser_status(static_cast<::globalmsg::laserStatus>(val));
  816. } else {
  817. ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
  818. }
  819. } else goto handle_unusual;
  820. continue;
  821. // optional int32 queue_data_count = 2;
  822. case 2:
  823. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  824. _Internal::set_has_queue_data_count(&has_bits);
  825. queue_data_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  826. CHK_(ptr);
  827. } else goto handle_unusual;
  828. continue;
  829. // optional int32 cloud_count = 3;
  830. case 3:
  831. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  832. _Internal::set_has_cloud_count(&has_bits);
  833. cloud_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  834. CHK_(ptr);
  835. } else goto handle_unusual;
  836. continue;
  837. // required int32 id = 4;
  838. case 4:
  839. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  840. _Internal::set_has_id(&has_bits);
  841. id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  842. CHK_(ptr);
  843. } else goto handle_unusual;
  844. continue;
  845. default: {
  846. handle_unusual:
  847. if ((tag & 7) == 4 || tag == 0) {
  848. ctx->SetLastTag(tag);
  849. goto success;
  850. }
  851. ptr = UnknownFieldParse(tag,
  852. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  853. ptr, ctx);
  854. CHK_(ptr != nullptr);
  855. continue;
  856. }
  857. } // switch
  858. } // while
  859. success:
  860. _has_bits_.Or(has_bits);
  861. return ptr;
  862. failure:
  863. ptr = nullptr;
  864. goto success;
  865. #undef CHK_
  866. }
  867. ::PROTOBUF_NAMESPACE_ID::uint8* laserMsg::_InternalSerialize(
  868. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  869. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.laserMsg)
  870. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  871. (void) cached_has_bits;
  872. cached_has_bits = _has_bits_[0];
  873. // optional .globalmsg.laserStatus laser_status = 1;
  874. if (cached_has_bits & 0x00000001u) {
  875. target = stream->EnsureSpace(target);
  876. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  877. 1, this->_internal_laser_status(), target);
  878. }
  879. // optional int32 queue_data_count = 2;
  880. if (cached_has_bits & 0x00000002u) {
  881. target = stream->EnsureSpace(target);
  882. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_queue_data_count(), target);
  883. }
  884. // optional int32 cloud_count = 3;
  885. if (cached_has_bits & 0x00000004u) {
  886. target = stream->EnsureSpace(target);
  887. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_cloud_count(), target);
  888. }
  889. // required int32 id = 4;
  890. if (cached_has_bits & 0x00000008u) {
  891. target = stream->EnsureSpace(target);
  892. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_id(), target);
  893. }
  894. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  895. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  896. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  897. }
  898. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.laserMsg)
  899. return target;
  900. }
  901. size_t laserMsg::ByteSizeLong() const {
  902. // @@protoc_insertion_point(message_byte_size_start:globalmsg.laserMsg)
  903. size_t total_size = 0;
  904. // required int32 id = 4;
  905. if (_internal_has_id()) {
  906. total_size += 1 +
  907. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  908. this->_internal_id());
  909. }
  910. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  911. // Prevent compiler warnings about cached_has_bits being unused
  912. (void) cached_has_bits;
  913. cached_has_bits = _has_bits_[0];
  914. if (cached_has_bits & 0x00000007u) {
  915. // optional .globalmsg.laserStatus laser_status = 1;
  916. if (cached_has_bits & 0x00000001u) {
  917. total_size += 1 +
  918. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_laser_status());
  919. }
  920. // optional int32 queue_data_count = 2;
  921. if (cached_has_bits & 0x00000002u) {
  922. total_size += 1 +
  923. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  924. this->_internal_queue_data_count());
  925. }
  926. // optional int32 cloud_count = 3;
  927. if (cached_has_bits & 0x00000004u) {
  928. total_size += 1 +
  929. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  930. this->_internal_cloud_count());
  931. }
  932. }
  933. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  934. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  935. _internal_metadata_, total_size, &_cached_size_);
  936. }
  937. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  938. SetCachedSize(cached_size);
  939. return total_size;
  940. }
  941. void laserMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  942. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.laserMsg)
  943. GOOGLE_DCHECK_NE(&from, this);
  944. const laserMsg* source =
  945. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<laserMsg>(
  946. &from);
  947. if (source == nullptr) {
  948. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.laserMsg)
  949. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  950. } else {
  951. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.laserMsg)
  952. MergeFrom(*source);
  953. }
  954. }
  955. void laserMsg::MergeFrom(const laserMsg& from) {
  956. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.laserMsg)
  957. GOOGLE_DCHECK_NE(&from, this);
  958. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  959. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  960. (void) cached_has_bits;
  961. cached_has_bits = from._has_bits_[0];
  962. if (cached_has_bits & 0x0000000fu) {
  963. if (cached_has_bits & 0x00000001u) {
  964. laser_status_ = from.laser_status_;
  965. }
  966. if (cached_has_bits & 0x00000002u) {
  967. queue_data_count_ = from.queue_data_count_;
  968. }
  969. if (cached_has_bits & 0x00000004u) {
  970. cloud_count_ = from.cloud_count_;
  971. }
  972. if (cached_has_bits & 0x00000008u) {
  973. id_ = from.id_;
  974. }
  975. _has_bits_[0] |= cached_has_bits;
  976. }
  977. }
  978. void laserMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  979. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.laserMsg)
  980. if (&from == this) return;
  981. Clear();
  982. MergeFrom(from);
  983. }
  984. void laserMsg::CopyFrom(const laserMsg& from) {
  985. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.laserMsg)
  986. if (&from == this) return;
  987. Clear();
  988. MergeFrom(from);
  989. }
  990. bool laserMsg::IsInitialized() const {
  991. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  992. return true;
  993. }
  994. void laserMsg::InternalSwap(laserMsg* other) {
  995. using std::swap;
  996. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  997. swap(_has_bits_[0], other->_has_bits_[0]);
  998. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  999. PROTOBUF_FIELD_OFFSET(laserMsg, id_)
  1000. + sizeof(laserMsg::id_)
  1001. - PROTOBUF_FIELD_OFFSET(laserMsg, laser_status_)>(
  1002. reinterpret_cast<char*>(&laser_status_),
  1003. reinterpret_cast<char*>(&other->laser_status_));
  1004. }
  1005. ::PROTOBUF_NAMESPACE_ID::Metadata laserMsg::GetMetadata() const {
  1006. return GetMetadataStatic();
  1007. }
  1008. // ===================================================================
  1009. void plcMsg::InitAsDefaultInstance() {
  1010. }
  1011. class plcMsg::_Internal {
  1012. public:
  1013. using HasBits = decltype(std::declval<plcMsg>()._has_bits_);
  1014. static void set_has_plc_status(HasBits* has_bits) {
  1015. (*has_bits)[0] |= 1u;
  1016. }
  1017. };
  1018. plcMsg::plcMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1019. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1020. plc_values_(arena) {
  1021. SharedCtor();
  1022. RegisterArenaDtor(arena);
  1023. // @@protoc_insertion_point(arena_constructor:globalmsg.plcMsg)
  1024. }
  1025. plcMsg::plcMsg(const plcMsg& from)
  1026. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1027. _has_bits_(from._has_bits_),
  1028. plc_values_(from.plc_values_) {
  1029. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1030. plc_status_ = from.plc_status_;
  1031. // @@protoc_insertion_point(copy_constructor:globalmsg.plcMsg)
  1032. }
  1033. void plcMsg::SharedCtor() {
  1034. plc_status_ = 0;
  1035. }
  1036. plcMsg::~plcMsg() {
  1037. // @@protoc_insertion_point(destructor:globalmsg.plcMsg)
  1038. SharedDtor();
  1039. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1040. }
  1041. void plcMsg::SharedDtor() {
  1042. GOOGLE_DCHECK(GetArena() == nullptr);
  1043. }
  1044. void plcMsg::ArenaDtor(void* object) {
  1045. plcMsg* _this = reinterpret_cast< plcMsg* >(object);
  1046. (void)_this;
  1047. }
  1048. void plcMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1049. }
  1050. void plcMsg::SetCachedSize(int size) const {
  1051. _cached_size_.Set(size);
  1052. }
  1053. const plcMsg& plcMsg::default_instance() {
  1054. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_plcMsg_globalmsg_2eproto.base);
  1055. return *internal_default_instance();
  1056. }
  1057. void plcMsg::Clear() {
  1058. // @@protoc_insertion_point(message_clear_start:globalmsg.plcMsg)
  1059. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1060. // Prevent compiler warnings about cached_has_bits being unused
  1061. (void) cached_has_bits;
  1062. plc_values_.Clear();
  1063. plc_status_ = 0;
  1064. _has_bits_.Clear();
  1065. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1066. }
  1067. const char* plcMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1068. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1069. _Internal::HasBits has_bits{};
  1070. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1071. while (!ctx->Done(&ptr)) {
  1072. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1073. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1074. CHK_(ptr);
  1075. switch (tag >> 3) {
  1076. // optional .globalmsg.plcStatus plc_status = 1;
  1077. case 1:
  1078. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  1079. ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1080. CHK_(ptr);
  1081. if (PROTOBUF_PREDICT_TRUE(::globalmsg::plcStatus_IsValid(val))) {
  1082. _internal_set_plc_status(static_cast<::globalmsg::plcStatus>(val));
  1083. } else {
  1084. ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
  1085. }
  1086. } else goto handle_unusual;
  1087. continue;
  1088. // repeated int32 plc_values = 2;
  1089. case 2:
  1090. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1091. ptr -= 1;
  1092. do {
  1093. ptr += 1;
  1094. _internal_add_plc_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
  1095. CHK_(ptr);
  1096. if (!ctx->DataAvailable(ptr)) break;
  1097. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr));
  1098. } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18) {
  1099. ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_plc_values(), ptr, ctx);
  1100. CHK_(ptr);
  1101. } else goto handle_unusual;
  1102. continue;
  1103. default: {
  1104. handle_unusual:
  1105. if ((tag & 7) == 4 || tag == 0) {
  1106. ctx->SetLastTag(tag);
  1107. goto success;
  1108. }
  1109. ptr = UnknownFieldParse(tag,
  1110. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1111. ptr, ctx);
  1112. CHK_(ptr != nullptr);
  1113. continue;
  1114. }
  1115. } // switch
  1116. } // while
  1117. success:
  1118. _has_bits_.Or(has_bits);
  1119. return ptr;
  1120. failure:
  1121. ptr = nullptr;
  1122. goto success;
  1123. #undef CHK_
  1124. }
  1125. ::PROTOBUF_NAMESPACE_ID::uint8* plcMsg::_InternalSerialize(
  1126. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1127. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.plcMsg)
  1128. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1129. (void) cached_has_bits;
  1130. cached_has_bits = _has_bits_[0];
  1131. // optional .globalmsg.plcStatus plc_status = 1;
  1132. if (cached_has_bits & 0x00000001u) {
  1133. target = stream->EnsureSpace(target);
  1134. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  1135. 1, this->_internal_plc_status(), target);
  1136. }
  1137. // repeated int32 plc_values = 2;
  1138. for (int i = 0, n = this->_internal_plc_values_size(); i < n; i++) {
  1139. target = stream->EnsureSpace(target);
  1140. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_plc_values(i), target);
  1141. }
  1142. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1143. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1144. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1145. }
  1146. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.plcMsg)
  1147. return target;
  1148. }
  1149. size_t plcMsg::ByteSizeLong() const {
  1150. // @@protoc_insertion_point(message_byte_size_start:globalmsg.plcMsg)
  1151. size_t total_size = 0;
  1152. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1153. // Prevent compiler warnings about cached_has_bits being unused
  1154. (void) cached_has_bits;
  1155. // repeated int32 plc_values = 2;
  1156. {
  1157. size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1158. Int32Size(this->plc_values_);
  1159. total_size += 1 *
  1160. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_plc_values_size());
  1161. total_size += data_size;
  1162. }
  1163. // optional .globalmsg.plcStatus plc_status = 1;
  1164. cached_has_bits = _has_bits_[0];
  1165. if (cached_has_bits & 0x00000001u) {
  1166. total_size += 1 +
  1167. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_plc_status());
  1168. }
  1169. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1170. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1171. _internal_metadata_, total_size, &_cached_size_);
  1172. }
  1173. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1174. SetCachedSize(cached_size);
  1175. return total_size;
  1176. }
  1177. void plcMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1178. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.plcMsg)
  1179. GOOGLE_DCHECK_NE(&from, this);
  1180. const plcMsg* source =
  1181. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<plcMsg>(
  1182. &from);
  1183. if (source == nullptr) {
  1184. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.plcMsg)
  1185. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1186. } else {
  1187. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.plcMsg)
  1188. MergeFrom(*source);
  1189. }
  1190. }
  1191. void plcMsg::MergeFrom(const plcMsg& from) {
  1192. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.plcMsg)
  1193. GOOGLE_DCHECK_NE(&from, this);
  1194. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1195. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1196. (void) cached_has_bits;
  1197. plc_values_.MergeFrom(from.plc_values_);
  1198. if (from._internal_has_plc_status()) {
  1199. _internal_set_plc_status(from._internal_plc_status());
  1200. }
  1201. }
  1202. void plcMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1203. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.plcMsg)
  1204. if (&from == this) return;
  1205. Clear();
  1206. MergeFrom(from);
  1207. }
  1208. void plcMsg::CopyFrom(const plcMsg& from) {
  1209. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.plcMsg)
  1210. if (&from == this) return;
  1211. Clear();
  1212. MergeFrom(from);
  1213. }
  1214. bool plcMsg::IsInitialized() const {
  1215. return true;
  1216. }
  1217. void plcMsg::InternalSwap(plcMsg* other) {
  1218. using std::swap;
  1219. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1220. swap(_has_bits_[0], other->_has_bits_[0]);
  1221. plc_values_.InternalSwap(&other->plc_values_);
  1222. swap(plc_status_, other->plc_status_);
  1223. }
  1224. ::PROTOBUF_NAMESPACE_ID::Metadata plcMsg::GetMetadata() const {
  1225. return GetMetadataStatic();
  1226. }
  1227. // ===================================================================
  1228. void resultInfo::InitAsDefaultInstance() {
  1229. }
  1230. class resultInfo::_Internal {
  1231. public:
  1232. using HasBits = decltype(std::declval<resultInfo>()._has_bits_);
  1233. static void set_has_time(HasBits* has_bits) {
  1234. (*has_bits)[0] |= 1u;
  1235. }
  1236. static void set_has_correctness(HasBits* has_bits) {
  1237. (*has_bits)[0] |= 4u;
  1238. }
  1239. static void set_has_park_space_id(HasBits* has_bits) {
  1240. (*has_bits)[0] |= 8u;
  1241. }
  1242. static void set_has_laser_ids(HasBits* has_bits) {
  1243. (*has_bits)[0] |= 4096u;
  1244. }
  1245. static void set_has_x(HasBits* has_bits) {
  1246. (*has_bits)[0] |= 16u;
  1247. }
  1248. static void set_has_y(HasBits* has_bits) {
  1249. (*has_bits)[0] |= 32u;
  1250. }
  1251. static void set_has_c(HasBits* has_bits) {
  1252. (*has_bits)[0] |= 64u;
  1253. }
  1254. static void set_has_wheel_base(HasBits* has_bits) {
  1255. (*has_bits)[0] |= 128u;
  1256. }
  1257. static void set_has_length(HasBits* has_bits) {
  1258. (*has_bits)[0] |= 256u;
  1259. }
  1260. static void set_has_width(HasBits* has_bits) {
  1261. (*has_bits)[0] |= 512u;
  1262. }
  1263. static void set_has_height(HasBits* has_bits) {
  1264. (*has_bits)[0] |= 1024u;
  1265. }
  1266. static void set_has_error(HasBits* has_bits) {
  1267. (*has_bits)[0] |= 2u;
  1268. }
  1269. static void set_has_front_theta(HasBits* has_bits) {
  1270. (*has_bits)[0] |= 2048u;
  1271. }
  1272. static bool MissingRequiredFields(const HasBits& has_bits) {
  1273. return ((has_bits[0] & 0x00000005) ^ 0x00000005) != 0;
  1274. }
  1275. };
  1276. resultInfo::resultInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1277. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1278. SharedCtor();
  1279. RegisterArenaDtor(arena);
  1280. // @@protoc_insertion_point(arena_constructor:globalmsg.resultInfo)
  1281. }
  1282. resultInfo::resultInfo(const resultInfo& from)
  1283. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1284. _has_bits_(from._has_bits_) {
  1285. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1286. time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1287. if (from._internal_has_time()) {
  1288. time_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_time(),
  1289. GetArena());
  1290. }
  1291. error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1292. if (from._internal_has_error()) {
  1293. error_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_error(),
  1294. GetArena());
  1295. }
  1296. ::memcpy(&correctness_, &from.correctness_,
  1297. static_cast<size_t>(reinterpret_cast<char*>(&laser_ids_) -
  1298. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  1299. // @@protoc_insertion_point(copy_constructor:globalmsg.resultInfo)
  1300. }
  1301. void resultInfo::SharedCtor() {
  1302. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_resultInfo_globalmsg_2eproto.base);
  1303. time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1304. error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1305. ::memset(&correctness_, 0, static_cast<size_t>(
  1306. reinterpret_cast<char*>(&laser_ids_) -
  1307. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  1308. }
  1309. resultInfo::~resultInfo() {
  1310. // @@protoc_insertion_point(destructor:globalmsg.resultInfo)
  1311. SharedDtor();
  1312. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1313. }
  1314. void resultInfo::SharedDtor() {
  1315. GOOGLE_DCHECK(GetArena() == nullptr);
  1316. time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1317. error_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1318. }
  1319. void resultInfo::ArenaDtor(void* object) {
  1320. resultInfo* _this = reinterpret_cast< resultInfo* >(object);
  1321. (void)_this;
  1322. }
  1323. void resultInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1324. }
  1325. void resultInfo::SetCachedSize(int size) const {
  1326. _cached_size_.Set(size);
  1327. }
  1328. const resultInfo& resultInfo::default_instance() {
  1329. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_resultInfo_globalmsg_2eproto.base);
  1330. return *internal_default_instance();
  1331. }
  1332. void resultInfo::Clear() {
  1333. // @@protoc_insertion_point(message_clear_start:globalmsg.resultInfo)
  1334. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1335. // Prevent compiler warnings about cached_has_bits being unused
  1336. (void) cached_has_bits;
  1337. cached_has_bits = _has_bits_[0];
  1338. if (cached_has_bits & 0x00000003u) {
  1339. if (cached_has_bits & 0x00000001u) {
  1340. time_.ClearNonDefaultToEmpty();
  1341. }
  1342. if (cached_has_bits & 0x00000002u) {
  1343. error_.ClearNonDefaultToEmpty();
  1344. }
  1345. }
  1346. if (cached_has_bits & 0x000000fcu) {
  1347. ::memset(&correctness_, 0, static_cast<size_t>(
  1348. reinterpret_cast<char*>(&wheel_base_) -
  1349. reinterpret_cast<char*>(&correctness_)) + sizeof(wheel_base_));
  1350. }
  1351. if (cached_has_bits & 0x00001f00u) {
  1352. ::memset(&length_, 0, static_cast<size_t>(
  1353. reinterpret_cast<char*>(&laser_ids_) -
  1354. reinterpret_cast<char*>(&length_)) + sizeof(laser_ids_));
  1355. }
  1356. _has_bits_.Clear();
  1357. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1358. }
  1359. const char* resultInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1360. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1361. _Internal::HasBits has_bits{};
  1362. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1363. while (!ctx->Done(&ptr)) {
  1364. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1365. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1366. CHK_(ptr);
  1367. switch (tag >> 3) {
  1368. // required string time = 1 [default = ""];
  1369. case 1:
  1370. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1371. auto str = _internal_mutable_time();
  1372. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1373. #ifndef NDEBUG
  1374. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.resultInfo.time");
  1375. #endif // !NDEBUG
  1376. CHK_(ptr);
  1377. } else goto handle_unusual;
  1378. continue;
  1379. // required bool correctness = 2;
  1380. case 2:
  1381. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1382. _Internal::set_has_correctness(&has_bits);
  1383. correctness_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1384. CHK_(ptr);
  1385. } else goto handle_unusual;
  1386. continue;
  1387. // optional int32 park_space_id = 3;
  1388. case 3:
  1389. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  1390. _Internal::set_has_park_space_id(&has_bits);
  1391. park_space_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1392. CHK_(ptr);
  1393. } else goto handle_unusual;
  1394. continue;
  1395. // optional int32 laser_ids = 4;
  1396. case 4:
  1397. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  1398. _Internal::set_has_laser_ids(&has_bits);
  1399. laser_ids_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1400. CHK_(ptr);
  1401. } else goto handle_unusual;
  1402. continue;
  1403. // optional double x = 5;
  1404. case 5:
  1405. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) {
  1406. _Internal::set_has_x(&has_bits);
  1407. x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1408. ptr += sizeof(double);
  1409. } else goto handle_unusual;
  1410. continue;
  1411. // optional double y = 6;
  1412. case 6:
  1413. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
  1414. _Internal::set_has_y(&has_bits);
  1415. y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1416. ptr += sizeof(double);
  1417. } else goto handle_unusual;
  1418. continue;
  1419. // optional double c = 7;
  1420. case 7:
  1421. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) {
  1422. _Internal::set_has_c(&has_bits);
  1423. c_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1424. ptr += sizeof(double);
  1425. } else goto handle_unusual;
  1426. continue;
  1427. // optional double wheel_base = 8;
  1428. case 8:
  1429. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) {
  1430. _Internal::set_has_wheel_base(&has_bits);
  1431. wheel_base_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1432. ptr += sizeof(double);
  1433. } else goto handle_unusual;
  1434. continue;
  1435. // optional double length = 9;
  1436. case 9:
  1437. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) {
  1438. _Internal::set_has_length(&has_bits);
  1439. length_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1440. ptr += sizeof(double);
  1441. } else goto handle_unusual;
  1442. continue;
  1443. // optional double width = 10;
  1444. case 10:
  1445. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) {
  1446. _Internal::set_has_width(&has_bits);
  1447. width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1448. ptr += sizeof(double);
  1449. } else goto handle_unusual;
  1450. continue;
  1451. // optional double height = 11;
  1452. case 11:
  1453. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 89)) {
  1454. _Internal::set_has_height(&has_bits);
  1455. height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1456. ptr += sizeof(double);
  1457. } else goto handle_unusual;
  1458. continue;
  1459. // optional string error = 12 [default = ""];
  1460. case 12:
  1461. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
  1462. auto str = _internal_mutable_error();
  1463. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1464. #ifndef NDEBUG
  1465. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.resultInfo.error");
  1466. #endif // !NDEBUG
  1467. CHK_(ptr);
  1468. } else goto handle_unusual;
  1469. continue;
  1470. // optional double front_theta = 13;
  1471. case 13:
  1472. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 105)) {
  1473. _Internal::set_has_front_theta(&has_bits);
  1474. front_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  1475. ptr += sizeof(double);
  1476. } else goto handle_unusual;
  1477. continue;
  1478. default: {
  1479. handle_unusual:
  1480. if ((tag & 7) == 4 || tag == 0) {
  1481. ctx->SetLastTag(tag);
  1482. goto success;
  1483. }
  1484. ptr = UnknownFieldParse(tag,
  1485. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1486. ptr, ctx);
  1487. CHK_(ptr != nullptr);
  1488. continue;
  1489. }
  1490. } // switch
  1491. } // while
  1492. success:
  1493. _has_bits_.Or(has_bits);
  1494. return ptr;
  1495. failure:
  1496. ptr = nullptr;
  1497. goto success;
  1498. #undef CHK_
  1499. }
  1500. ::PROTOBUF_NAMESPACE_ID::uint8* resultInfo::_InternalSerialize(
  1501. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1502. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.resultInfo)
  1503. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1504. (void) cached_has_bits;
  1505. cached_has_bits = _has_bits_[0];
  1506. // required string time = 1 [default = ""];
  1507. if (cached_has_bits & 0x00000001u) {
  1508. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  1509. this->_internal_time().data(), static_cast<int>(this->_internal_time().length()),
  1510. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  1511. "globalmsg.resultInfo.time");
  1512. target = stream->WriteStringMaybeAliased(
  1513. 1, this->_internal_time(), target);
  1514. }
  1515. // required bool correctness = 2;
  1516. if (cached_has_bits & 0x00000004u) {
  1517. target = stream->EnsureSpace(target);
  1518. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_correctness(), target);
  1519. }
  1520. // optional int32 park_space_id = 3;
  1521. if (cached_has_bits & 0x00000008u) {
  1522. target = stream->EnsureSpace(target);
  1523. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_park_space_id(), target);
  1524. }
  1525. // optional int32 laser_ids = 4;
  1526. if (cached_has_bits & 0x00001000u) {
  1527. target = stream->EnsureSpace(target);
  1528. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_laser_ids(), target);
  1529. }
  1530. // optional double x = 5;
  1531. if (cached_has_bits & 0x00000010u) {
  1532. target = stream->EnsureSpace(target);
  1533. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_x(), target);
  1534. }
  1535. // optional double y = 6;
  1536. if (cached_has_bits & 0x00000020u) {
  1537. target = stream->EnsureSpace(target);
  1538. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_y(), target);
  1539. }
  1540. // optional double c = 7;
  1541. if (cached_has_bits & 0x00000040u) {
  1542. target = stream->EnsureSpace(target);
  1543. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_c(), target);
  1544. }
  1545. // optional double wheel_base = 8;
  1546. if (cached_has_bits & 0x00000080u) {
  1547. target = stream->EnsureSpace(target);
  1548. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_wheel_base(), target);
  1549. }
  1550. // optional double length = 9;
  1551. if (cached_has_bits & 0x00000100u) {
  1552. target = stream->EnsureSpace(target);
  1553. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_length(), target);
  1554. }
  1555. // optional double width = 10;
  1556. if (cached_has_bits & 0x00000200u) {
  1557. target = stream->EnsureSpace(target);
  1558. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_width(), target);
  1559. }
  1560. // optional double height = 11;
  1561. if (cached_has_bits & 0x00000400u) {
  1562. target = stream->EnsureSpace(target);
  1563. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(11, this->_internal_height(), target);
  1564. }
  1565. // optional string error = 12 [default = ""];
  1566. if (cached_has_bits & 0x00000002u) {
  1567. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  1568. this->_internal_error().data(), static_cast<int>(this->_internal_error().length()),
  1569. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  1570. "globalmsg.resultInfo.error");
  1571. target = stream->WriteStringMaybeAliased(
  1572. 12, this->_internal_error(), target);
  1573. }
  1574. // optional double front_theta = 13;
  1575. if (cached_has_bits & 0x00000800u) {
  1576. target = stream->EnsureSpace(target);
  1577. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(13, this->_internal_front_theta(), target);
  1578. }
  1579. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1580. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1581. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1582. }
  1583. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.resultInfo)
  1584. return target;
  1585. }
  1586. size_t resultInfo::RequiredFieldsByteSizeFallback() const {
  1587. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:globalmsg.resultInfo)
  1588. size_t total_size = 0;
  1589. if (_internal_has_time()) {
  1590. // required string time = 1 [default = ""];
  1591. total_size += 1 +
  1592. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1593. this->_internal_time());
  1594. }
  1595. if (_internal_has_correctness()) {
  1596. // required bool correctness = 2;
  1597. total_size += 1 + 1;
  1598. }
  1599. return total_size;
  1600. }
  1601. size_t resultInfo::ByteSizeLong() const {
  1602. // @@protoc_insertion_point(message_byte_size_start:globalmsg.resultInfo)
  1603. size_t total_size = 0;
  1604. if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
  1605. // required string time = 1 [default = ""];
  1606. total_size += 1 +
  1607. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1608. this->_internal_time());
  1609. // required bool correctness = 2;
  1610. total_size += 1 + 1;
  1611. } else {
  1612. total_size += RequiredFieldsByteSizeFallback();
  1613. }
  1614. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1615. // Prevent compiler warnings about cached_has_bits being unused
  1616. (void) cached_has_bits;
  1617. // optional string error = 12 [default = ""];
  1618. cached_has_bits = _has_bits_[0];
  1619. if (cached_has_bits & 0x00000002u) {
  1620. total_size += 1 +
  1621. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1622. this->_internal_error());
  1623. }
  1624. if (cached_has_bits & 0x000000f8u) {
  1625. // optional int32 park_space_id = 3;
  1626. if (cached_has_bits & 0x00000008u) {
  1627. total_size += 1 +
  1628. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1629. this->_internal_park_space_id());
  1630. }
  1631. // optional double x = 5;
  1632. if (cached_has_bits & 0x00000010u) {
  1633. total_size += 1 + 8;
  1634. }
  1635. // optional double y = 6;
  1636. if (cached_has_bits & 0x00000020u) {
  1637. total_size += 1 + 8;
  1638. }
  1639. // optional double c = 7;
  1640. if (cached_has_bits & 0x00000040u) {
  1641. total_size += 1 + 8;
  1642. }
  1643. // optional double wheel_base = 8;
  1644. if (cached_has_bits & 0x00000080u) {
  1645. total_size += 1 + 8;
  1646. }
  1647. }
  1648. if (cached_has_bits & 0x00001f00u) {
  1649. // optional double length = 9;
  1650. if (cached_has_bits & 0x00000100u) {
  1651. total_size += 1 + 8;
  1652. }
  1653. // optional double width = 10;
  1654. if (cached_has_bits & 0x00000200u) {
  1655. total_size += 1 + 8;
  1656. }
  1657. // optional double height = 11;
  1658. if (cached_has_bits & 0x00000400u) {
  1659. total_size += 1 + 8;
  1660. }
  1661. // optional double front_theta = 13;
  1662. if (cached_has_bits & 0x00000800u) {
  1663. total_size += 1 + 8;
  1664. }
  1665. // optional int32 laser_ids = 4;
  1666. if (cached_has_bits & 0x00001000u) {
  1667. total_size += 1 +
  1668. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1669. this->_internal_laser_ids());
  1670. }
  1671. }
  1672. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1673. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1674. _internal_metadata_, total_size, &_cached_size_);
  1675. }
  1676. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1677. SetCachedSize(cached_size);
  1678. return total_size;
  1679. }
  1680. void resultInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1681. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.resultInfo)
  1682. GOOGLE_DCHECK_NE(&from, this);
  1683. const resultInfo* source =
  1684. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<resultInfo>(
  1685. &from);
  1686. if (source == nullptr) {
  1687. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.resultInfo)
  1688. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1689. } else {
  1690. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.resultInfo)
  1691. MergeFrom(*source);
  1692. }
  1693. }
  1694. void resultInfo::MergeFrom(const resultInfo& from) {
  1695. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.resultInfo)
  1696. GOOGLE_DCHECK_NE(&from, this);
  1697. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1698. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1699. (void) cached_has_bits;
  1700. cached_has_bits = from._has_bits_[0];
  1701. if (cached_has_bits & 0x000000ffu) {
  1702. if (cached_has_bits & 0x00000001u) {
  1703. _internal_set_time(from._internal_time());
  1704. }
  1705. if (cached_has_bits & 0x00000002u) {
  1706. _internal_set_error(from._internal_error());
  1707. }
  1708. if (cached_has_bits & 0x00000004u) {
  1709. correctness_ = from.correctness_;
  1710. }
  1711. if (cached_has_bits & 0x00000008u) {
  1712. park_space_id_ = from.park_space_id_;
  1713. }
  1714. if (cached_has_bits & 0x00000010u) {
  1715. x_ = from.x_;
  1716. }
  1717. if (cached_has_bits & 0x00000020u) {
  1718. y_ = from.y_;
  1719. }
  1720. if (cached_has_bits & 0x00000040u) {
  1721. c_ = from.c_;
  1722. }
  1723. if (cached_has_bits & 0x00000080u) {
  1724. wheel_base_ = from.wheel_base_;
  1725. }
  1726. _has_bits_[0] |= cached_has_bits;
  1727. }
  1728. if (cached_has_bits & 0x00001f00u) {
  1729. if (cached_has_bits & 0x00000100u) {
  1730. length_ = from.length_;
  1731. }
  1732. if (cached_has_bits & 0x00000200u) {
  1733. width_ = from.width_;
  1734. }
  1735. if (cached_has_bits & 0x00000400u) {
  1736. height_ = from.height_;
  1737. }
  1738. if (cached_has_bits & 0x00000800u) {
  1739. front_theta_ = from.front_theta_;
  1740. }
  1741. if (cached_has_bits & 0x00001000u) {
  1742. laser_ids_ = from.laser_ids_;
  1743. }
  1744. _has_bits_[0] |= cached_has_bits;
  1745. }
  1746. }
  1747. void resultInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1748. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.resultInfo)
  1749. if (&from == this) return;
  1750. Clear();
  1751. MergeFrom(from);
  1752. }
  1753. void resultInfo::CopyFrom(const resultInfo& from) {
  1754. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.resultInfo)
  1755. if (&from == this) return;
  1756. Clear();
  1757. MergeFrom(from);
  1758. }
  1759. bool resultInfo::IsInitialized() const {
  1760. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  1761. return true;
  1762. }
  1763. void resultInfo::InternalSwap(resultInfo* other) {
  1764. using std::swap;
  1765. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1766. swap(_has_bits_[0], other->_has_bits_[0]);
  1767. time_.Swap(&other->time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1768. error_.Swap(&other->error_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1769. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1770. PROTOBUF_FIELD_OFFSET(resultInfo, laser_ids_)
  1771. + sizeof(resultInfo::laser_ids_)
  1772. - PROTOBUF_FIELD_OFFSET(resultInfo, correctness_)>(
  1773. reinterpret_cast<char*>(&correctness_),
  1774. reinterpret_cast<char*>(&other->correctness_));
  1775. }
  1776. ::PROTOBUF_NAMESPACE_ID::Metadata resultInfo::GetMetadata() const {
  1777. return GetMetadataStatic();
  1778. }
  1779. // ===================================================================
  1780. void algMsg::InitAsDefaultInstance() {
  1781. }
  1782. class algMsg::_Internal {
  1783. public:
  1784. using HasBits = decltype(std::declval<algMsg>()._has_bits_);
  1785. static void set_has_thread_queue_size(HasBits* has_bits) {
  1786. (*has_bits)[0] |= 2u;
  1787. }
  1788. static void set_has_log_path(HasBits* has_bits) {
  1789. (*has_bits)[0] |= 1u;
  1790. }
  1791. };
  1792. algMsg::algMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1793. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1794. result_(arena) {
  1795. SharedCtor();
  1796. RegisterArenaDtor(arena);
  1797. // @@protoc_insertion_point(arena_constructor:globalmsg.algMsg)
  1798. }
  1799. algMsg::algMsg(const algMsg& from)
  1800. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1801. _has_bits_(from._has_bits_),
  1802. result_(from.result_) {
  1803. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1804. log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1805. if (from._internal_has_log_path()) {
  1806. log_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_log_path(),
  1807. GetArena());
  1808. }
  1809. thread_queue_size_ = from.thread_queue_size_;
  1810. // @@protoc_insertion_point(copy_constructor:globalmsg.algMsg)
  1811. }
  1812. void algMsg::SharedCtor() {
  1813. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_algMsg_globalmsg_2eproto.base);
  1814. log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1815. thread_queue_size_ = 0;
  1816. }
  1817. algMsg::~algMsg() {
  1818. // @@protoc_insertion_point(destructor:globalmsg.algMsg)
  1819. SharedDtor();
  1820. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1821. }
  1822. void algMsg::SharedDtor() {
  1823. GOOGLE_DCHECK(GetArena() == nullptr);
  1824. log_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1825. }
  1826. void algMsg::ArenaDtor(void* object) {
  1827. algMsg* _this = reinterpret_cast< algMsg* >(object);
  1828. (void)_this;
  1829. }
  1830. void algMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1831. }
  1832. void algMsg::SetCachedSize(int size) const {
  1833. _cached_size_.Set(size);
  1834. }
  1835. const algMsg& algMsg::default_instance() {
  1836. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_algMsg_globalmsg_2eproto.base);
  1837. return *internal_default_instance();
  1838. }
  1839. void algMsg::Clear() {
  1840. // @@protoc_insertion_point(message_clear_start:globalmsg.algMsg)
  1841. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1842. // Prevent compiler warnings about cached_has_bits being unused
  1843. (void) cached_has_bits;
  1844. result_.Clear();
  1845. cached_has_bits = _has_bits_[0];
  1846. if (cached_has_bits & 0x00000001u) {
  1847. log_path_.ClearNonDefaultToEmpty();
  1848. }
  1849. thread_queue_size_ = 0;
  1850. _has_bits_.Clear();
  1851. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1852. }
  1853. const char* algMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1854. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1855. _Internal::HasBits has_bits{};
  1856. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1857. while (!ctx->Done(&ptr)) {
  1858. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1859. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1860. CHK_(ptr);
  1861. switch (tag >> 3) {
  1862. // repeated .globalmsg.resultInfo result = 1;
  1863. case 1:
  1864. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1865. ptr -= 1;
  1866. do {
  1867. ptr += 1;
  1868. ptr = ctx->ParseMessage(_internal_add_result(), ptr);
  1869. CHK_(ptr);
  1870. if (!ctx->DataAvailable(ptr)) break;
  1871. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1872. } else goto handle_unusual;
  1873. continue;
  1874. // optional int32 thread_queue_size = 2;
  1875. case 2:
  1876. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  1877. _Internal::set_has_thread_queue_size(&has_bits);
  1878. thread_queue_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1879. CHK_(ptr);
  1880. } else goto handle_unusual;
  1881. continue;
  1882. // optional string log_path = 3 [default = ""];
  1883. case 3:
  1884. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  1885. auto str = _internal_mutable_log_path();
  1886. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1887. #ifndef NDEBUG
  1888. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.algMsg.log_path");
  1889. #endif // !NDEBUG
  1890. CHK_(ptr);
  1891. } else goto handle_unusual;
  1892. continue;
  1893. default: {
  1894. handle_unusual:
  1895. if ((tag & 7) == 4 || tag == 0) {
  1896. ctx->SetLastTag(tag);
  1897. goto success;
  1898. }
  1899. ptr = UnknownFieldParse(tag,
  1900. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1901. ptr, ctx);
  1902. CHK_(ptr != nullptr);
  1903. continue;
  1904. }
  1905. } // switch
  1906. } // while
  1907. success:
  1908. _has_bits_.Or(has_bits);
  1909. return ptr;
  1910. failure:
  1911. ptr = nullptr;
  1912. goto success;
  1913. #undef CHK_
  1914. }
  1915. ::PROTOBUF_NAMESPACE_ID::uint8* algMsg::_InternalSerialize(
  1916. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1917. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.algMsg)
  1918. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1919. (void) cached_has_bits;
  1920. // repeated .globalmsg.resultInfo result = 1;
  1921. for (unsigned int i = 0,
  1922. n = static_cast<unsigned int>(this->_internal_result_size()); i < n; i++) {
  1923. target = stream->EnsureSpace(target);
  1924. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1925. InternalWriteMessage(1, this->_internal_result(i), target, stream);
  1926. }
  1927. cached_has_bits = _has_bits_[0];
  1928. // optional int32 thread_queue_size = 2;
  1929. if (cached_has_bits & 0x00000002u) {
  1930. target = stream->EnsureSpace(target);
  1931. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_thread_queue_size(), target);
  1932. }
  1933. // optional string log_path = 3 [default = ""];
  1934. if (cached_has_bits & 0x00000001u) {
  1935. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  1936. this->_internal_log_path().data(), static_cast<int>(this->_internal_log_path().length()),
  1937. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  1938. "globalmsg.algMsg.log_path");
  1939. target = stream->WriteStringMaybeAliased(
  1940. 3, this->_internal_log_path(), target);
  1941. }
  1942. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1943. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1944. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1945. }
  1946. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.algMsg)
  1947. return target;
  1948. }
  1949. size_t algMsg::ByteSizeLong() const {
  1950. // @@protoc_insertion_point(message_byte_size_start:globalmsg.algMsg)
  1951. size_t total_size = 0;
  1952. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1953. // Prevent compiler warnings about cached_has_bits being unused
  1954. (void) cached_has_bits;
  1955. // repeated .globalmsg.resultInfo result = 1;
  1956. total_size += 1UL * this->_internal_result_size();
  1957. for (const auto& msg : this->result_) {
  1958. total_size +=
  1959. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1960. }
  1961. cached_has_bits = _has_bits_[0];
  1962. if (cached_has_bits & 0x00000003u) {
  1963. // optional string log_path = 3 [default = ""];
  1964. if (cached_has_bits & 0x00000001u) {
  1965. total_size += 1 +
  1966. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1967. this->_internal_log_path());
  1968. }
  1969. // optional int32 thread_queue_size = 2;
  1970. if (cached_has_bits & 0x00000002u) {
  1971. total_size += 1 +
  1972. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  1973. this->_internal_thread_queue_size());
  1974. }
  1975. }
  1976. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1977. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1978. _internal_metadata_, total_size, &_cached_size_);
  1979. }
  1980. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1981. SetCachedSize(cached_size);
  1982. return total_size;
  1983. }
  1984. void algMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1985. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.algMsg)
  1986. GOOGLE_DCHECK_NE(&from, this);
  1987. const algMsg* source =
  1988. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<algMsg>(
  1989. &from);
  1990. if (source == nullptr) {
  1991. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.algMsg)
  1992. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1993. } else {
  1994. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.algMsg)
  1995. MergeFrom(*source);
  1996. }
  1997. }
  1998. void algMsg::MergeFrom(const algMsg& from) {
  1999. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.algMsg)
  2000. GOOGLE_DCHECK_NE(&from, this);
  2001. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2002. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2003. (void) cached_has_bits;
  2004. result_.MergeFrom(from.result_);
  2005. cached_has_bits = from._has_bits_[0];
  2006. if (cached_has_bits & 0x00000003u) {
  2007. if (cached_has_bits & 0x00000001u) {
  2008. _internal_set_log_path(from._internal_log_path());
  2009. }
  2010. if (cached_has_bits & 0x00000002u) {
  2011. thread_queue_size_ = from.thread_queue_size_;
  2012. }
  2013. _has_bits_[0] |= cached_has_bits;
  2014. }
  2015. }
  2016. void algMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2017. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.algMsg)
  2018. if (&from == this) return;
  2019. Clear();
  2020. MergeFrom(from);
  2021. }
  2022. void algMsg::CopyFrom(const algMsg& from) {
  2023. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.algMsg)
  2024. if (&from == this) return;
  2025. Clear();
  2026. MergeFrom(from);
  2027. }
  2028. bool algMsg::IsInitialized() const {
  2029. if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(result_)) return false;
  2030. return true;
  2031. }
  2032. void algMsg::InternalSwap(algMsg* other) {
  2033. using std::swap;
  2034. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  2035. swap(_has_bits_[0], other->_has_bits_[0]);
  2036. result_.InternalSwap(&other->result_);
  2037. log_path_.Swap(&other->log_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  2038. swap(thread_queue_size_, other->thread_queue_size_);
  2039. }
  2040. ::PROTOBUF_NAMESPACE_ID::Metadata algMsg::GetMetadata() const {
  2041. return GetMetadataStatic();
  2042. }
  2043. // ===================================================================
  2044. void SysMsg::InitAsDefaultInstance() {
  2045. }
  2046. class SysMsg::_Internal {
  2047. public:
  2048. using HasBits = decltype(std::declval<SysMsg>()._has_bits_);
  2049. static void set_has_log(HasBits* has_bits) {
  2050. (*has_bits)[0] |= 1u;
  2051. }
  2052. static void set_has_level(HasBits* has_bits) {
  2053. (*has_bits)[0] |= 2u;
  2054. }
  2055. static bool MissingRequiredFields(const HasBits& has_bits) {
  2056. return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
  2057. }
  2058. };
  2059. SysMsg::SysMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2060. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2061. SharedCtor();
  2062. RegisterArenaDtor(arena);
  2063. // @@protoc_insertion_point(arena_constructor:globalmsg.SysMsg)
  2064. }
  2065. SysMsg::SysMsg(const SysMsg& from)
  2066. : ::PROTOBUF_NAMESPACE_ID::Message(),
  2067. _has_bits_(from._has_bits_) {
  2068. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2069. log_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2070. if (from._internal_has_log()) {
  2071. log_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_log(),
  2072. GetArena());
  2073. }
  2074. level_ = from.level_;
  2075. // @@protoc_insertion_point(copy_constructor:globalmsg.SysMsg)
  2076. }
  2077. void SysMsg::SharedCtor() {
  2078. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SysMsg_globalmsg_2eproto.base);
  2079. log_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2080. level_ = 0;
  2081. }
  2082. SysMsg::~SysMsg() {
  2083. // @@protoc_insertion_point(destructor:globalmsg.SysMsg)
  2084. SharedDtor();
  2085. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2086. }
  2087. void SysMsg::SharedDtor() {
  2088. GOOGLE_DCHECK(GetArena() == nullptr);
  2089. log_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2090. }
  2091. void SysMsg::ArenaDtor(void* object) {
  2092. SysMsg* _this = reinterpret_cast< SysMsg* >(object);
  2093. (void)_this;
  2094. }
  2095. void SysMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2096. }
  2097. void SysMsg::SetCachedSize(int size) const {
  2098. _cached_size_.Set(size);
  2099. }
  2100. const SysMsg& SysMsg::default_instance() {
  2101. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SysMsg_globalmsg_2eproto.base);
  2102. return *internal_default_instance();
  2103. }
  2104. void SysMsg::Clear() {
  2105. // @@protoc_insertion_point(message_clear_start:globalmsg.SysMsg)
  2106. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2107. // Prevent compiler warnings about cached_has_bits being unused
  2108. (void) cached_has_bits;
  2109. cached_has_bits = _has_bits_[0];
  2110. if (cached_has_bits & 0x00000001u) {
  2111. log_.ClearNonDefaultToEmpty();
  2112. }
  2113. level_ = 0;
  2114. _has_bits_.Clear();
  2115. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2116. }
  2117. const char* SysMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2118. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2119. _Internal::HasBits has_bits{};
  2120. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  2121. while (!ctx->Done(&ptr)) {
  2122. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  2123. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2124. CHK_(ptr);
  2125. switch (tag >> 3) {
  2126. // required string log = 1 [default = ""];
  2127. case 1:
  2128. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  2129. auto str = _internal_mutable_log();
  2130. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2131. #ifndef NDEBUG
  2132. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "globalmsg.SysMsg.log");
  2133. #endif // !NDEBUG
  2134. CHK_(ptr);
  2135. } else goto handle_unusual;
  2136. continue;
  2137. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2138. case 2:
  2139. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  2140. ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2141. CHK_(ptr);
  2142. if (PROTOBUF_PREDICT_TRUE(::globalmsg::logLevel_IsValid(val))) {
  2143. _internal_set_level(static_cast<::globalmsg::logLevel>(val));
  2144. } else {
  2145. ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
  2146. }
  2147. } else goto handle_unusual;
  2148. continue;
  2149. default: {
  2150. handle_unusual:
  2151. if ((tag & 7) == 4 || tag == 0) {
  2152. ctx->SetLastTag(tag);
  2153. goto success;
  2154. }
  2155. ptr = UnknownFieldParse(tag,
  2156. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2157. ptr, ctx);
  2158. CHK_(ptr != nullptr);
  2159. continue;
  2160. }
  2161. } // switch
  2162. } // while
  2163. success:
  2164. _has_bits_.Or(has_bits);
  2165. return ptr;
  2166. failure:
  2167. ptr = nullptr;
  2168. goto success;
  2169. #undef CHK_
  2170. }
  2171. ::PROTOBUF_NAMESPACE_ID::uint8* SysMsg::_InternalSerialize(
  2172. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2173. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.SysMsg)
  2174. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2175. (void) cached_has_bits;
  2176. cached_has_bits = _has_bits_[0];
  2177. // required string log = 1 [default = ""];
  2178. if (cached_has_bits & 0x00000001u) {
  2179. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  2180. this->_internal_log().data(), static_cast<int>(this->_internal_log().length()),
  2181. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  2182. "globalmsg.SysMsg.log");
  2183. target = stream->WriteStringMaybeAliased(
  2184. 1, this->_internal_log(), target);
  2185. }
  2186. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2187. if (cached_has_bits & 0x00000002u) {
  2188. target = stream->EnsureSpace(target);
  2189. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  2190. 2, this->_internal_level(), target);
  2191. }
  2192. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2193. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2194. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2195. }
  2196. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.SysMsg)
  2197. return target;
  2198. }
  2199. size_t SysMsg::ByteSizeLong() const {
  2200. // @@protoc_insertion_point(message_byte_size_start:globalmsg.SysMsg)
  2201. size_t total_size = 0;
  2202. // required string log = 1 [default = ""];
  2203. if (_internal_has_log()) {
  2204. total_size += 1 +
  2205. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2206. this->_internal_log());
  2207. }
  2208. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2209. // Prevent compiler warnings about cached_has_bits being unused
  2210. (void) cached_has_bits;
  2211. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2212. cached_has_bits = _has_bits_[0];
  2213. if (cached_has_bits & 0x00000002u) {
  2214. total_size += 1 +
  2215. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_level());
  2216. }
  2217. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2218. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  2219. _internal_metadata_, total_size, &_cached_size_);
  2220. }
  2221. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  2222. SetCachedSize(cached_size);
  2223. return total_size;
  2224. }
  2225. void SysMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2226. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.SysMsg)
  2227. GOOGLE_DCHECK_NE(&from, this);
  2228. const SysMsg* source =
  2229. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SysMsg>(
  2230. &from);
  2231. if (source == nullptr) {
  2232. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.SysMsg)
  2233. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  2234. } else {
  2235. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.SysMsg)
  2236. MergeFrom(*source);
  2237. }
  2238. }
  2239. void SysMsg::MergeFrom(const SysMsg& from) {
  2240. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.SysMsg)
  2241. GOOGLE_DCHECK_NE(&from, this);
  2242. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2243. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  2244. (void) cached_has_bits;
  2245. cached_has_bits = from._has_bits_[0];
  2246. if (cached_has_bits & 0x00000003u) {
  2247. if (cached_has_bits & 0x00000001u) {
  2248. _internal_set_log(from._internal_log());
  2249. }
  2250. if (cached_has_bits & 0x00000002u) {
  2251. level_ = from.level_;
  2252. }
  2253. _has_bits_[0] |= cached_has_bits;
  2254. }
  2255. }
  2256. void SysMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2257. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.SysMsg)
  2258. if (&from == this) return;
  2259. Clear();
  2260. MergeFrom(from);
  2261. }
  2262. void SysMsg::CopyFrom(const SysMsg& from) {
  2263. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.SysMsg)
  2264. if (&from == this) return;
  2265. Clear();
  2266. MergeFrom(from);
  2267. }
  2268. bool SysMsg::IsInitialized() const {
  2269. if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  2270. return true;
  2271. }
  2272. void SysMsg::InternalSwap(SysMsg* other) {
  2273. using std::swap;
  2274. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  2275. swap(_has_bits_[0], other->_has_bits_[0]);
  2276. log_.Swap(&other->log_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  2277. swap(level_, other->level_);
  2278. }
  2279. ::PROTOBUF_NAMESPACE_ID::Metadata SysMsg::GetMetadata() const {
  2280. return GetMetadataStatic();
  2281. }
  2282. // @@protoc_insertion_point(namespace_scope)
  2283. } // namespace globalmsg
  2284. PROTOBUF_NAMESPACE_OPEN
  2285. template<> PROTOBUF_NOINLINE ::globalmsg::msg* Arena::CreateMaybeMessage< ::globalmsg::msg >(Arena* arena) {
  2286. return Arena::CreateMessageInternal< ::globalmsg::msg >(arena);
  2287. }
  2288. template<> PROTOBUF_NOINLINE ::globalmsg::laserMsg* Arena::CreateMaybeMessage< ::globalmsg::laserMsg >(Arena* arena) {
  2289. return Arena::CreateMessageInternal< ::globalmsg::laserMsg >(arena);
  2290. }
  2291. template<> PROTOBUF_NOINLINE ::globalmsg::plcMsg* Arena::CreateMaybeMessage< ::globalmsg::plcMsg >(Arena* arena) {
  2292. return Arena::CreateMessageInternal< ::globalmsg::plcMsg >(arena);
  2293. }
  2294. template<> PROTOBUF_NOINLINE ::globalmsg::resultInfo* Arena::CreateMaybeMessage< ::globalmsg::resultInfo >(Arena* arena) {
  2295. return Arena::CreateMessageInternal< ::globalmsg::resultInfo >(arena);
  2296. }
  2297. template<> PROTOBUF_NOINLINE ::globalmsg::algMsg* Arena::CreateMaybeMessage< ::globalmsg::algMsg >(Arena* arena) {
  2298. return Arena::CreateMessageInternal< ::globalmsg::algMsg >(arena);
  2299. }
  2300. template<> PROTOBUF_NOINLINE ::globalmsg::SysMsg* Arena::CreateMaybeMessage< ::globalmsg::SysMsg >(Arena* arena) {
  2301. return Arena::CreateMessageInternal< ::globalmsg::SysMsg >(arena);
  2302. }
  2303. PROTOBUF_NAMESPACE_CLOSE
  2304. // @@protoc_insertion_point(global_scope)
  2305. #include <google/protobuf/port_undef.inc>