globalmsg.pb.cc 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985
  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/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace globalmsg {
  20. class msgDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<msg>
  23. _instance;
  24. } _msg_default_instance_;
  25. class laserMsgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<laserMsg>
  28. _instance;
  29. } _laserMsg_default_instance_;
  30. class plcMsgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<plcMsg>
  33. _instance;
  34. } _plcMsg_default_instance_;
  35. class resultInfoDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<resultInfo>
  38. _instance;
  39. } _resultInfo_default_instance_;
  40. class algMsgDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<algMsg>
  43. _instance;
  44. } _algMsg_default_instance_;
  45. class SysMsgDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<SysMsg>
  48. _instance;
  49. } _SysMsg_default_instance_;
  50. } // namespace globalmsg
  51. namespace protobuf_globalmsg_2eproto {
  52. void InitDefaultsmsgImpl() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  55. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  56. #else
  57. ::google::protobuf::internal::InitProtobufDefaults();
  58. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  59. protobuf_globalmsg_2eproto::InitDefaultslaserMsg();
  60. protobuf_globalmsg_2eproto::InitDefaultsplcMsg();
  61. protobuf_globalmsg_2eproto::InitDefaultsalgMsg();
  62. protobuf_globalmsg_2eproto::InitDefaultsSysMsg();
  63. {
  64. void* ptr = &::globalmsg::_msg_default_instance_;
  65. new (ptr) ::globalmsg::msg();
  66. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  67. }
  68. ::globalmsg::msg::InitAsDefaultInstance();
  69. }
  70. void InitDefaultsmsg() {
  71. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  72. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsmsgImpl);
  73. }
  74. void InitDefaultslaserMsgImpl() {
  75. GOOGLE_PROTOBUF_VERIFY_VERSION;
  76. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  77. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  78. #else
  79. ::google::protobuf::internal::InitProtobufDefaults();
  80. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  81. {
  82. void* ptr = &::globalmsg::_laserMsg_default_instance_;
  83. new (ptr) ::globalmsg::laserMsg();
  84. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  85. }
  86. ::globalmsg::laserMsg::InitAsDefaultInstance();
  87. }
  88. void InitDefaultslaserMsg() {
  89. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  90. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultslaserMsgImpl);
  91. }
  92. void InitDefaultsplcMsgImpl() {
  93. GOOGLE_PROTOBUF_VERIFY_VERSION;
  94. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  95. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  96. #else
  97. ::google::protobuf::internal::InitProtobufDefaults();
  98. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  99. {
  100. void* ptr = &::globalmsg::_plcMsg_default_instance_;
  101. new (ptr) ::globalmsg::plcMsg();
  102. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  103. }
  104. ::globalmsg::plcMsg::InitAsDefaultInstance();
  105. }
  106. void InitDefaultsplcMsg() {
  107. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  108. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsplcMsgImpl);
  109. }
  110. void InitDefaultsresultInfoImpl() {
  111. GOOGLE_PROTOBUF_VERIFY_VERSION;
  112. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  113. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  114. #else
  115. ::google::protobuf::internal::InitProtobufDefaults();
  116. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  117. {
  118. void* ptr = &::globalmsg::_resultInfo_default_instance_;
  119. new (ptr) ::globalmsg::resultInfo();
  120. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  121. }
  122. ::globalmsg::resultInfo::InitAsDefaultInstance();
  123. }
  124. void InitDefaultsresultInfo() {
  125. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  126. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsresultInfoImpl);
  127. }
  128. void InitDefaultsalgMsgImpl() {
  129. GOOGLE_PROTOBUF_VERIFY_VERSION;
  130. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  131. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  132. #else
  133. ::google::protobuf::internal::InitProtobufDefaults();
  134. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  135. protobuf_globalmsg_2eproto::InitDefaultsresultInfo();
  136. {
  137. void* ptr = &::globalmsg::_algMsg_default_instance_;
  138. new (ptr) ::globalmsg::algMsg();
  139. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  140. }
  141. ::globalmsg::algMsg::InitAsDefaultInstance();
  142. }
  143. void InitDefaultsalgMsg() {
  144. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  145. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsalgMsgImpl);
  146. }
  147. void InitDefaultsSysMsgImpl() {
  148. GOOGLE_PROTOBUF_VERIFY_VERSION;
  149. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  150. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  151. #else
  152. ::google::protobuf::internal::InitProtobufDefaults();
  153. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  154. {
  155. void* ptr = &::globalmsg::_SysMsg_default_instance_;
  156. new (ptr) ::globalmsg::SysMsg();
  157. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  158. }
  159. ::globalmsg::SysMsg::InitAsDefaultInstance();
  160. }
  161. void InitDefaultsSysMsg() {
  162. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  163. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysMsgImpl);
  164. }
  165. ::google::protobuf::Metadata file_level_metadata[6];
  166. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4];
  167. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, _has_bits_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, _internal_metadata_),
  170. ~0u, // no _extensions_
  171. ~0u, // no _oneof_case_
  172. ~0u, // no _weak_field_map_
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, msg_type_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, laser_msg_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, plc_msg_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, alg_msg_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::msg, sys_msg_),
  178. 4,
  179. 0,
  180. 1,
  181. 2,
  182. 3,
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, _has_bits_),
  184. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, _internal_metadata_),
  185. ~0u, // no _extensions_
  186. ~0u, // no _oneof_case_
  187. ~0u, // no _weak_field_map_
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, laser_status_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, queue_data_count_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, cloud_count_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::laserMsg, id_),
  192. 0,
  193. 1,
  194. 2,
  195. 3,
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::plcMsg, _has_bits_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::plcMsg, _internal_metadata_),
  198. ~0u, // no _extensions_
  199. ~0u, // no _oneof_case_
  200. ~0u, // no _weak_field_map_
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::plcMsg, plc_status_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::plcMsg, plc_values_),
  203. 0,
  204. ~0u,
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, _has_bits_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, _internal_metadata_),
  207. ~0u, // no _extensions_
  208. ~0u, // no _oneof_case_
  209. ~0u, // no _weak_field_map_
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, time_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, correctness_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, park_space_id_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, laser_ids_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, x_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, y_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, c_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, wheel_base_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, length_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, width_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, height_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, error_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::resultInfo, front_theta_),
  223. 0,
  224. 2,
  225. 3,
  226. 12,
  227. 4,
  228. 5,
  229. 6,
  230. 7,
  231. 8,
  232. 9,
  233. 10,
  234. 1,
  235. 11,
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::algMsg, _has_bits_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::algMsg, _internal_metadata_),
  238. ~0u, // no _extensions_
  239. ~0u, // no _oneof_case_
  240. ~0u, // no _weak_field_map_
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::algMsg, result_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::algMsg, thread_queue_size_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::algMsg, log_path_),
  244. ~0u,
  245. 1,
  246. 0,
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::SysMsg, _has_bits_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::SysMsg, _internal_metadata_),
  249. ~0u, // no _extensions_
  250. ~0u, // no _oneof_case_
  251. ~0u, // no _weak_field_map_
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::SysMsg, log_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::globalmsg::SysMsg, level_),
  254. 0,
  255. 1,
  256. };
  257. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  258. { 0, 10, sizeof(::globalmsg::msg)},
  259. { 15, 24, sizeof(::globalmsg::laserMsg)},
  260. { 28, 35, sizeof(::globalmsg::plcMsg)},
  261. { 37, 55, sizeof(::globalmsg::resultInfo)},
  262. { 68, 76, sizeof(::globalmsg::algMsg)},
  263. { 79, 86, sizeof(::globalmsg::SysMsg)},
  264. };
  265. static ::google::protobuf::Message const * const file_default_instances[] = {
  266. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_msg_default_instance_),
  267. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_laserMsg_default_instance_),
  268. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_plcMsg_default_instance_),
  269. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_resultInfo_default_instance_),
  270. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_algMsg_default_instance_),
  271. reinterpret_cast<const ::google::protobuf::Message*>(&::globalmsg::_SysMsg_default_instance_),
  272. };
  273. void protobuf_AssignDescriptors() {
  274. AddDescriptors();
  275. ::google::protobuf::MessageFactory* factory = NULL;
  276. AssignDescriptors(
  277. "globalmsg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  278. file_level_metadata, file_level_enum_descriptors, NULL);
  279. }
  280. void protobuf_AssignDescriptorsOnce() {
  281. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  282. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  283. }
  284. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  285. void protobuf_RegisterTypes(const ::std::string&) {
  286. protobuf_AssignDescriptorsOnce();
  287. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
  288. }
  289. void AddDescriptorsImpl() {
  290. InitDefaults();
  291. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  292. "\n\017globalmsg.proto\022\tglobalmsg\"\274\001\n\003msg\022!\n\010"
  293. "msg_type\030\001 \002(\0162\017.globalmsg.type\022&\n\tlaser"
  294. "_msg\030\002 \001(\0132\023.globalmsg.laserMsg\022\"\n\007plc_m"
  295. "sg\030\003 \001(\0132\021.globalmsg.plcMsg\022\"\n\007alg_msg\030\004"
  296. " \001(\0132\021.globalmsg.algMsg\022\"\n\007sys_msg\030\005 \001(\013"
  297. "2\021.globalmsg.SysMsg\"s\n\010laserMsg\022,\n\014laser"
  298. "_status\030\001 \001(\0162\026.globalmsg.laserStatus\022\030\n"
  299. "\020queue_data_count\030\002 \001(\005\022\023\n\013cloud_count\030\003"
  300. " \001(\005\022\n\n\002id\030\004 \002(\005\"F\n\006plcMsg\022(\n\nplc_status"
  301. "\030\001 \001(\0162\024.globalmsg.plcStatus\022\022\n\nplc_valu"
  302. "es\030\002 \003(\005\"\345\001\n\nresultInfo\022\016\n\004time\030\001 \002(\t:\000\022"
  303. "\023\n\013correctness\030\002 \002(\010\022\025\n\rpark_space_id\030\003 "
  304. "\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"
  305. " \001(\001\022\t\n\001c\030\007 \001(\001\022\022\n\nwheel_base\030\010 \001(\001\022\016\n\006l"
  306. "ength\030\t \001(\001\022\r\n\005width\030\n \001(\001\022\016\n\006height\030\013 \001"
  307. "(\001\022\017\n\005error\030\014 \001(\t:\000\022\023\n\013front_theta\030\r \001(\001"
  308. "\"^\n\006algMsg\022%\n\006result\030\001 \003(\0132\025.globalmsg.r"
  309. "esultInfo\022\031\n\021thread_queue_size\030\002 \001(\005\022\022\n\010"
  310. "log_path\030\003 \001(\t:\000\"E\n\006SysMsg\022\r\n\003log\030\001 \002(\t:"
  311. "\000\022,\n\005level\030\002 \001(\0162\023.globalmsg.logLevel:\010e"
  312. "SysInfo*0\n\004type\022\010\n\004ePLC\020\000\022\n\n\006eLaser\020\001\022\010\n"
  313. "\004eAlg\020\002\022\010\n\004eLog\020\003*]\n\013laserStatus\022\023\n\017eLas"
  314. "erConnected\020\000\022\026\n\022eLaserDisconnected\020\001\022\016\n"
  315. "\neLaserBusy\020\002\022\021\n\reLaserUnknown\020\003*V\n\tplcS"
  316. "tatus\022\021\n\rePLCConnected\020\000\022\024\n\020ePLCDisconne"
  317. "cted\020\001\022\017\n\013ePLCRefused\020\002\022\017\n\013ePLCUnknown\020\003"
  318. "*E\n\010logLevel\022\014\n\010eSysInfo\020\000\022\013\n\007eSysLog\020\001\022"
  319. "\017\n\013eSysWarning\020\002\022\r\n\teSysError\020\003"
  320. };
  321. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  322. descriptor, 1111);
  323. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  324. "globalmsg.proto", &protobuf_RegisterTypes);
  325. }
  326. void AddDescriptors() {
  327. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  328. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  329. }
  330. // Force AddDescriptors() to be called at dynamic initialization time.
  331. struct StaticDescriptorInitializer {
  332. StaticDescriptorInitializer() {
  333. AddDescriptors();
  334. }
  335. } static_descriptor_initializer;
  336. } // namespace protobuf_globalmsg_2eproto
  337. namespace globalmsg {
  338. const ::google::protobuf::EnumDescriptor* type_descriptor() {
  339. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  340. return protobuf_globalmsg_2eproto::file_level_enum_descriptors[0];
  341. }
  342. bool type_IsValid(int value) {
  343. switch (value) {
  344. case 0:
  345. case 1:
  346. case 2:
  347. case 3:
  348. return true;
  349. default:
  350. return false;
  351. }
  352. }
  353. const ::google::protobuf::EnumDescriptor* laserStatus_descriptor() {
  354. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  355. return protobuf_globalmsg_2eproto::file_level_enum_descriptors[1];
  356. }
  357. bool laserStatus_IsValid(int value) {
  358. switch (value) {
  359. case 0:
  360. case 1:
  361. case 2:
  362. case 3:
  363. return true;
  364. default:
  365. return false;
  366. }
  367. }
  368. const ::google::protobuf::EnumDescriptor* plcStatus_descriptor() {
  369. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  370. return protobuf_globalmsg_2eproto::file_level_enum_descriptors[2];
  371. }
  372. bool plcStatus_IsValid(int value) {
  373. switch (value) {
  374. case 0:
  375. case 1:
  376. case 2:
  377. case 3:
  378. return true;
  379. default:
  380. return false;
  381. }
  382. }
  383. const ::google::protobuf::EnumDescriptor* logLevel_descriptor() {
  384. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  385. return protobuf_globalmsg_2eproto::file_level_enum_descriptors[3];
  386. }
  387. bool logLevel_IsValid(int value) {
  388. switch (value) {
  389. case 0:
  390. case 1:
  391. case 2:
  392. case 3:
  393. return true;
  394. default:
  395. return false;
  396. }
  397. }
  398. // ===================================================================
  399. void msg::InitAsDefaultInstance() {
  400. ::globalmsg::_msg_default_instance_._instance.get_mutable()->laser_msg_ = const_cast< ::globalmsg::laserMsg*>(
  401. ::globalmsg::laserMsg::internal_default_instance());
  402. ::globalmsg::_msg_default_instance_._instance.get_mutable()->plc_msg_ = const_cast< ::globalmsg::plcMsg*>(
  403. ::globalmsg::plcMsg::internal_default_instance());
  404. ::globalmsg::_msg_default_instance_._instance.get_mutable()->alg_msg_ = const_cast< ::globalmsg::algMsg*>(
  405. ::globalmsg::algMsg::internal_default_instance());
  406. ::globalmsg::_msg_default_instance_._instance.get_mutable()->sys_msg_ = const_cast< ::globalmsg::SysMsg*>(
  407. ::globalmsg::SysMsg::internal_default_instance());
  408. }
  409. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  410. const int msg::kMsgTypeFieldNumber;
  411. const int msg::kLaserMsgFieldNumber;
  412. const int msg::kPlcMsgFieldNumber;
  413. const int msg::kAlgMsgFieldNumber;
  414. const int msg::kSysMsgFieldNumber;
  415. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  416. msg::msg()
  417. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  418. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  419. ::protobuf_globalmsg_2eproto::InitDefaultsmsg();
  420. }
  421. SharedCtor();
  422. // @@protoc_insertion_point(constructor:globalmsg.msg)
  423. }
  424. msg::msg(const msg& from)
  425. : ::google::protobuf::Message(),
  426. _internal_metadata_(NULL),
  427. _has_bits_(from._has_bits_),
  428. _cached_size_(0) {
  429. _internal_metadata_.MergeFrom(from._internal_metadata_);
  430. if (from.has_laser_msg()) {
  431. laser_msg_ = new ::globalmsg::laserMsg(*from.laser_msg_);
  432. } else {
  433. laser_msg_ = NULL;
  434. }
  435. if (from.has_plc_msg()) {
  436. plc_msg_ = new ::globalmsg::plcMsg(*from.plc_msg_);
  437. } else {
  438. plc_msg_ = NULL;
  439. }
  440. if (from.has_alg_msg()) {
  441. alg_msg_ = new ::globalmsg::algMsg(*from.alg_msg_);
  442. } else {
  443. alg_msg_ = NULL;
  444. }
  445. if (from.has_sys_msg()) {
  446. sys_msg_ = new ::globalmsg::SysMsg(*from.sys_msg_);
  447. } else {
  448. sys_msg_ = NULL;
  449. }
  450. msg_type_ = from.msg_type_;
  451. // @@protoc_insertion_point(copy_constructor:globalmsg.msg)
  452. }
  453. void msg::SharedCtor() {
  454. _cached_size_ = 0;
  455. ::memset(&laser_msg_, 0, static_cast<size_t>(
  456. reinterpret_cast<char*>(&msg_type_) -
  457. reinterpret_cast<char*>(&laser_msg_)) + sizeof(msg_type_));
  458. }
  459. msg::~msg() {
  460. // @@protoc_insertion_point(destructor:globalmsg.msg)
  461. SharedDtor();
  462. }
  463. void msg::SharedDtor() {
  464. if (this != internal_default_instance()) delete laser_msg_;
  465. if (this != internal_default_instance()) delete plc_msg_;
  466. if (this != internal_default_instance()) delete alg_msg_;
  467. if (this != internal_default_instance()) delete sys_msg_;
  468. }
  469. void msg::SetCachedSize(int size) const {
  470. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  471. _cached_size_ = size;
  472. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  473. }
  474. const ::google::protobuf::Descriptor* msg::descriptor() {
  475. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  476. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  477. }
  478. const msg& msg::default_instance() {
  479. ::protobuf_globalmsg_2eproto::InitDefaultsmsg();
  480. return *internal_default_instance();
  481. }
  482. msg* msg::New(::google::protobuf::Arena* arena) const {
  483. msg* n = new msg;
  484. if (arena != NULL) {
  485. arena->Own(n);
  486. }
  487. return n;
  488. }
  489. void msg::Clear() {
  490. // @@protoc_insertion_point(message_clear_start:globalmsg.msg)
  491. ::google::protobuf::uint32 cached_has_bits = 0;
  492. // Prevent compiler warnings about cached_has_bits being unused
  493. (void) cached_has_bits;
  494. cached_has_bits = _has_bits_[0];
  495. if (cached_has_bits & 15u) {
  496. if (cached_has_bits & 0x00000001u) {
  497. GOOGLE_DCHECK(laser_msg_ != NULL);
  498. laser_msg_->Clear();
  499. }
  500. if (cached_has_bits & 0x00000002u) {
  501. GOOGLE_DCHECK(plc_msg_ != NULL);
  502. plc_msg_->Clear();
  503. }
  504. if (cached_has_bits & 0x00000004u) {
  505. GOOGLE_DCHECK(alg_msg_ != NULL);
  506. alg_msg_->Clear();
  507. }
  508. if (cached_has_bits & 0x00000008u) {
  509. GOOGLE_DCHECK(sys_msg_ != NULL);
  510. sys_msg_->Clear();
  511. }
  512. }
  513. msg_type_ = 0;
  514. _has_bits_.Clear();
  515. _internal_metadata_.Clear();
  516. }
  517. bool msg::MergePartialFromCodedStream(
  518. ::google::protobuf::io::CodedInputStream* input) {
  519. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  520. ::google::protobuf::uint32 tag;
  521. // @@protoc_insertion_point(parse_start:globalmsg.msg)
  522. for (;;) {
  523. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  524. tag = p.first;
  525. if (!p.second) goto handle_unusual;
  526. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  527. // required .globalmsg.type msg_type = 1;
  528. case 1: {
  529. if (static_cast< ::google::protobuf::uint8>(tag) ==
  530. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  531. int value;
  532. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  533. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  534. input, &value)));
  535. if (::globalmsg::type_IsValid(value)) {
  536. set_msg_type(static_cast< ::globalmsg::type >(value));
  537. } else {
  538. mutable_unknown_fields()->AddVarint(
  539. 1, static_cast< ::google::protobuf::uint64>(value));
  540. }
  541. } else {
  542. goto handle_unusual;
  543. }
  544. break;
  545. }
  546. // optional .globalmsg.laserMsg laser_msg = 2;
  547. case 2: {
  548. if (static_cast< ::google::protobuf::uint8>(tag) ==
  549. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  550. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  551. input, mutable_laser_msg()));
  552. } else {
  553. goto handle_unusual;
  554. }
  555. break;
  556. }
  557. // optional .globalmsg.plcMsg plc_msg = 3;
  558. case 3: {
  559. if (static_cast< ::google::protobuf::uint8>(tag) ==
  560. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  561. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  562. input, mutable_plc_msg()));
  563. } else {
  564. goto handle_unusual;
  565. }
  566. break;
  567. }
  568. // optional .globalmsg.algMsg alg_msg = 4;
  569. case 4: {
  570. if (static_cast< ::google::protobuf::uint8>(tag) ==
  571. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  572. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  573. input, mutable_alg_msg()));
  574. } else {
  575. goto handle_unusual;
  576. }
  577. break;
  578. }
  579. // optional .globalmsg.SysMsg sys_msg = 5;
  580. case 5: {
  581. if (static_cast< ::google::protobuf::uint8>(tag) ==
  582. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  583. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  584. input, mutable_sys_msg()));
  585. } else {
  586. goto handle_unusual;
  587. }
  588. break;
  589. }
  590. default: {
  591. handle_unusual:
  592. if (tag == 0) {
  593. goto success;
  594. }
  595. DO_(::google::protobuf::internal::WireFormat::SkipField(
  596. input, tag, _internal_metadata_.mutable_unknown_fields()));
  597. break;
  598. }
  599. }
  600. }
  601. success:
  602. // @@protoc_insertion_point(parse_success:globalmsg.msg)
  603. return true;
  604. failure:
  605. // @@protoc_insertion_point(parse_failure:globalmsg.msg)
  606. return false;
  607. #undef DO_
  608. }
  609. void msg::SerializeWithCachedSizes(
  610. ::google::protobuf::io::CodedOutputStream* output) const {
  611. // @@protoc_insertion_point(serialize_start:globalmsg.msg)
  612. ::google::protobuf::uint32 cached_has_bits = 0;
  613. (void) cached_has_bits;
  614. cached_has_bits = _has_bits_[0];
  615. // required .globalmsg.type msg_type = 1;
  616. if (cached_has_bits & 0x00000010u) {
  617. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  618. 1, this->msg_type(), output);
  619. }
  620. // optional .globalmsg.laserMsg laser_msg = 2;
  621. if (cached_has_bits & 0x00000001u) {
  622. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  623. 2, *this->laser_msg_, output);
  624. }
  625. // optional .globalmsg.plcMsg plc_msg = 3;
  626. if (cached_has_bits & 0x00000002u) {
  627. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  628. 3, *this->plc_msg_, output);
  629. }
  630. // optional .globalmsg.algMsg alg_msg = 4;
  631. if (cached_has_bits & 0x00000004u) {
  632. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  633. 4, *this->alg_msg_, output);
  634. }
  635. // optional .globalmsg.SysMsg sys_msg = 5;
  636. if (cached_has_bits & 0x00000008u) {
  637. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  638. 5, *this->sys_msg_, output);
  639. }
  640. if (_internal_metadata_.have_unknown_fields()) {
  641. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  642. _internal_metadata_.unknown_fields(), output);
  643. }
  644. // @@protoc_insertion_point(serialize_end:globalmsg.msg)
  645. }
  646. ::google::protobuf::uint8* msg::InternalSerializeWithCachedSizesToArray(
  647. bool deterministic, ::google::protobuf::uint8* target) const {
  648. (void)deterministic; // Unused
  649. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.msg)
  650. ::google::protobuf::uint32 cached_has_bits = 0;
  651. (void) cached_has_bits;
  652. cached_has_bits = _has_bits_[0];
  653. // required .globalmsg.type msg_type = 1;
  654. if (cached_has_bits & 0x00000010u) {
  655. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  656. 1, this->msg_type(), target);
  657. }
  658. // optional .globalmsg.laserMsg laser_msg = 2;
  659. if (cached_has_bits & 0x00000001u) {
  660. target = ::google::protobuf::internal::WireFormatLite::
  661. InternalWriteMessageToArray(
  662. 2, *this->laser_msg_, deterministic, target);
  663. }
  664. // optional .globalmsg.plcMsg plc_msg = 3;
  665. if (cached_has_bits & 0x00000002u) {
  666. target = ::google::protobuf::internal::WireFormatLite::
  667. InternalWriteMessageToArray(
  668. 3, *this->plc_msg_, deterministic, target);
  669. }
  670. // optional .globalmsg.algMsg alg_msg = 4;
  671. if (cached_has_bits & 0x00000004u) {
  672. target = ::google::protobuf::internal::WireFormatLite::
  673. InternalWriteMessageToArray(
  674. 4, *this->alg_msg_, deterministic, target);
  675. }
  676. // optional .globalmsg.SysMsg sys_msg = 5;
  677. if (cached_has_bits & 0x00000008u) {
  678. target = ::google::protobuf::internal::WireFormatLite::
  679. InternalWriteMessageToArray(
  680. 5, *this->sys_msg_, deterministic, target);
  681. }
  682. if (_internal_metadata_.have_unknown_fields()) {
  683. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  684. _internal_metadata_.unknown_fields(), target);
  685. }
  686. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.msg)
  687. return target;
  688. }
  689. size_t msg::ByteSizeLong() const {
  690. // @@protoc_insertion_point(message_byte_size_start:globalmsg.msg)
  691. size_t total_size = 0;
  692. if (_internal_metadata_.have_unknown_fields()) {
  693. total_size +=
  694. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  695. _internal_metadata_.unknown_fields());
  696. }
  697. // required .globalmsg.type msg_type = 1;
  698. if (has_msg_type()) {
  699. total_size += 1 +
  700. ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
  701. }
  702. if (_has_bits_[0 / 32] & 15u) {
  703. // optional .globalmsg.laserMsg laser_msg = 2;
  704. if (has_laser_msg()) {
  705. total_size += 1 +
  706. ::google::protobuf::internal::WireFormatLite::MessageSize(
  707. *this->laser_msg_);
  708. }
  709. // optional .globalmsg.plcMsg plc_msg = 3;
  710. if (has_plc_msg()) {
  711. total_size += 1 +
  712. ::google::protobuf::internal::WireFormatLite::MessageSize(
  713. *this->plc_msg_);
  714. }
  715. // optional .globalmsg.algMsg alg_msg = 4;
  716. if (has_alg_msg()) {
  717. total_size += 1 +
  718. ::google::protobuf::internal::WireFormatLite::MessageSize(
  719. *this->alg_msg_);
  720. }
  721. // optional .globalmsg.SysMsg sys_msg = 5;
  722. if (has_sys_msg()) {
  723. total_size += 1 +
  724. ::google::protobuf::internal::WireFormatLite::MessageSize(
  725. *this->sys_msg_);
  726. }
  727. }
  728. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  729. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  730. _cached_size_ = cached_size;
  731. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  732. return total_size;
  733. }
  734. void msg::MergeFrom(const ::google::protobuf::Message& from) {
  735. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.msg)
  736. GOOGLE_DCHECK_NE(&from, this);
  737. const msg* source =
  738. ::google::protobuf::internal::DynamicCastToGenerated<const msg>(
  739. &from);
  740. if (source == NULL) {
  741. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.msg)
  742. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  743. } else {
  744. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.msg)
  745. MergeFrom(*source);
  746. }
  747. }
  748. void msg::MergeFrom(const msg& from) {
  749. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.msg)
  750. GOOGLE_DCHECK_NE(&from, this);
  751. _internal_metadata_.MergeFrom(from._internal_metadata_);
  752. ::google::protobuf::uint32 cached_has_bits = 0;
  753. (void) cached_has_bits;
  754. cached_has_bits = from._has_bits_[0];
  755. if (cached_has_bits & 31u) {
  756. if (cached_has_bits & 0x00000001u) {
  757. mutable_laser_msg()->::globalmsg::laserMsg::MergeFrom(from.laser_msg());
  758. }
  759. if (cached_has_bits & 0x00000002u) {
  760. mutable_plc_msg()->::globalmsg::plcMsg::MergeFrom(from.plc_msg());
  761. }
  762. if (cached_has_bits & 0x00000004u) {
  763. mutable_alg_msg()->::globalmsg::algMsg::MergeFrom(from.alg_msg());
  764. }
  765. if (cached_has_bits & 0x00000008u) {
  766. mutable_sys_msg()->::globalmsg::SysMsg::MergeFrom(from.sys_msg());
  767. }
  768. if (cached_has_bits & 0x00000010u) {
  769. msg_type_ = from.msg_type_;
  770. }
  771. _has_bits_[0] |= cached_has_bits;
  772. }
  773. }
  774. void msg::CopyFrom(const ::google::protobuf::Message& from) {
  775. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.msg)
  776. if (&from == this) return;
  777. Clear();
  778. MergeFrom(from);
  779. }
  780. void msg::CopyFrom(const msg& from) {
  781. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.msg)
  782. if (&from == this) return;
  783. Clear();
  784. MergeFrom(from);
  785. }
  786. bool msg::IsInitialized() const {
  787. if ((_has_bits_[0] & 0x00000010) != 0x00000010) return false;
  788. if (has_laser_msg()) {
  789. if (!this->laser_msg_->IsInitialized()) return false;
  790. }
  791. if (has_alg_msg()) {
  792. if (!this->alg_msg_->IsInitialized()) return false;
  793. }
  794. if (has_sys_msg()) {
  795. if (!this->sys_msg_->IsInitialized()) return false;
  796. }
  797. return true;
  798. }
  799. void msg::Swap(msg* other) {
  800. if (other == this) return;
  801. InternalSwap(other);
  802. }
  803. void msg::InternalSwap(msg* other) {
  804. using std::swap;
  805. swap(laser_msg_, other->laser_msg_);
  806. swap(plc_msg_, other->plc_msg_);
  807. swap(alg_msg_, other->alg_msg_);
  808. swap(sys_msg_, other->sys_msg_);
  809. swap(msg_type_, other->msg_type_);
  810. swap(_has_bits_[0], other->_has_bits_[0]);
  811. _internal_metadata_.Swap(&other->_internal_metadata_);
  812. swap(_cached_size_, other->_cached_size_);
  813. }
  814. ::google::protobuf::Metadata msg::GetMetadata() const {
  815. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  816. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  817. }
  818. // ===================================================================
  819. void laserMsg::InitAsDefaultInstance() {
  820. }
  821. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  822. const int laserMsg::kLaserStatusFieldNumber;
  823. const int laserMsg::kQueueDataCountFieldNumber;
  824. const int laserMsg::kCloudCountFieldNumber;
  825. const int laserMsg::kIdFieldNumber;
  826. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  827. laserMsg::laserMsg()
  828. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  829. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  830. ::protobuf_globalmsg_2eproto::InitDefaultslaserMsg();
  831. }
  832. SharedCtor();
  833. // @@protoc_insertion_point(constructor:globalmsg.laserMsg)
  834. }
  835. laserMsg::laserMsg(const laserMsg& from)
  836. : ::google::protobuf::Message(),
  837. _internal_metadata_(NULL),
  838. _has_bits_(from._has_bits_),
  839. _cached_size_(0) {
  840. _internal_metadata_.MergeFrom(from._internal_metadata_);
  841. ::memcpy(&laser_status_, &from.laser_status_,
  842. static_cast<size_t>(reinterpret_cast<char*>(&id_) -
  843. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  844. // @@protoc_insertion_point(copy_constructor:globalmsg.laserMsg)
  845. }
  846. void laserMsg::SharedCtor() {
  847. _cached_size_ = 0;
  848. ::memset(&laser_status_, 0, static_cast<size_t>(
  849. reinterpret_cast<char*>(&id_) -
  850. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  851. }
  852. laserMsg::~laserMsg() {
  853. // @@protoc_insertion_point(destructor:globalmsg.laserMsg)
  854. SharedDtor();
  855. }
  856. void laserMsg::SharedDtor() {
  857. }
  858. void laserMsg::SetCachedSize(int size) const {
  859. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  860. _cached_size_ = size;
  861. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  862. }
  863. const ::google::protobuf::Descriptor* laserMsg::descriptor() {
  864. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  865. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  866. }
  867. const laserMsg& laserMsg::default_instance() {
  868. ::protobuf_globalmsg_2eproto::InitDefaultslaserMsg();
  869. return *internal_default_instance();
  870. }
  871. laserMsg* laserMsg::New(::google::protobuf::Arena* arena) const {
  872. laserMsg* n = new laserMsg;
  873. if (arena != NULL) {
  874. arena->Own(n);
  875. }
  876. return n;
  877. }
  878. void laserMsg::Clear() {
  879. // @@protoc_insertion_point(message_clear_start:globalmsg.laserMsg)
  880. ::google::protobuf::uint32 cached_has_bits = 0;
  881. // Prevent compiler warnings about cached_has_bits being unused
  882. (void) cached_has_bits;
  883. cached_has_bits = _has_bits_[0];
  884. if (cached_has_bits & 15u) {
  885. ::memset(&laser_status_, 0, static_cast<size_t>(
  886. reinterpret_cast<char*>(&id_) -
  887. reinterpret_cast<char*>(&laser_status_)) + sizeof(id_));
  888. }
  889. _has_bits_.Clear();
  890. _internal_metadata_.Clear();
  891. }
  892. bool laserMsg::MergePartialFromCodedStream(
  893. ::google::protobuf::io::CodedInputStream* input) {
  894. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  895. ::google::protobuf::uint32 tag;
  896. // @@protoc_insertion_point(parse_start:globalmsg.laserMsg)
  897. for (;;) {
  898. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  899. tag = p.first;
  900. if (!p.second) goto handle_unusual;
  901. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  902. // optional .globalmsg.laserStatus laser_status = 1;
  903. case 1: {
  904. if (static_cast< ::google::protobuf::uint8>(tag) ==
  905. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  906. int value;
  907. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  908. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  909. input, &value)));
  910. if (::globalmsg::laserStatus_IsValid(value)) {
  911. set_laser_status(static_cast< ::globalmsg::laserStatus >(value));
  912. } else {
  913. mutable_unknown_fields()->AddVarint(
  914. 1, static_cast< ::google::protobuf::uint64>(value));
  915. }
  916. } else {
  917. goto handle_unusual;
  918. }
  919. break;
  920. }
  921. // optional int32 queue_data_count = 2;
  922. case 2: {
  923. if (static_cast< ::google::protobuf::uint8>(tag) ==
  924. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  925. set_has_queue_data_count();
  926. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  927. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  928. input, &queue_data_count_)));
  929. } else {
  930. goto handle_unusual;
  931. }
  932. break;
  933. }
  934. // optional int32 cloud_count = 3;
  935. case 3: {
  936. if (static_cast< ::google::protobuf::uint8>(tag) ==
  937. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  938. set_has_cloud_count();
  939. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  940. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  941. input, &cloud_count_)));
  942. } else {
  943. goto handle_unusual;
  944. }
  945. break;
  946. }
  947. // required int32 id = 4;
  948. case 4: {
  949. if (static_cast< ::google::protobuf::uint8>(tag) ==
  950. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  951. set_has_id();
  952. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  953. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  954. input, &id_)));
  955. } else {
  956. goto handle_unusual;
  957. }
  958. break;
  959. }
  960. default: {
  961. handle_unusual:
  962. if (tag == 0) {
  963. goto success;
  964. }
  965. DO_(::google::protobuf::internal::WireFormat::SkipField(
  966. input, tag, _internal_metadata_.mutable_unknown_fields()));
  967. break;
  968. }
  969. }
  970. }
  971. success:
  972. // @@protoc_insertion_point(parse_success:globalmsg.laserMsg)
  973. return true;
  974. failure:
  975. // @@protoc_insertion_point(parse_failure:globalmsg.laserMsg)
  976. return false;
  977. #undef DO_
  978. }
  979. void laserMsg::SerializeWithCachedSizes(
  980. ::google::protobuf::io::CodedOutputStream* output) const {
  981. // @@protoc_insertion_point(serialize_start:globalmsg.laserMsg)
  982. ::google::protobuf::uint32 cached_has_bits = 0;
  983. (void) cached_has_bits;
  984. cached_has_bits = _has_bits_[0];
  985. // optional .globalmsg.laserStatus laser_status = 1;
  986. if (cached_has_bits & 0x00000001u) {
  987. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  988. 1, this->laser_status(), output);
  989. }
  990. // optional int32 queue_data_count = 2;
  991. if (cached_has_bits & 0x00000002u) {
  992. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->queue_data_count(), output);
  993. }
  994. // optional int32 cloud_count = 3;
  995. if (cached_has_bits & 0x00000004u) {
  996. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->cloud_count(), output);
  997. }
  998. // required int32 id = 4;
  999. if (cached_has_bits & 0x00000008u) {
  1000. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->id(), output);
  1001. }
  1002. if (_internal_metadata_.have_unknown_fields()) {
  1003. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1004. _internal_metadata_.unknown_fields(), output);
  1005. }
  1006. // @@protoc_insertion_point(serialize_end:globalmsg.laserMsg)
  1007. }
  1008. ::google::protobuf::uint8* laserMsg::InternalSerializeWithCachedSizesToArray(
  1009. bool deterministic, ::google::protobuf::uint8* target) const {
  1010. (void)deterministic; // Unused
  1011. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.laserMsg)
  1012. ::google::protobuf::uint32 cached_has_bits = 0;
  1013. (void) cached_has_bits;
  1014. cached_has_bits = _has_bits_[0];
  1015. // optional .globalmsg.laserStatus laser_status = 1;
  1016. if (cached_has_bits & 0x00000001u) {
  1017. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1018. 1, this->laser_status(), target);
  1019. }
  1020. // optional int32 queue_data_count = 2;
  1021. if (cached_has_bits & 0x00000002u) {
  1022. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->queue_data_count(), target);
  1023. }
  1024. // optional int32 cloud_count = 3;
  1025. if (cached_has_bits & 0x00000004u) {
  1026. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->cloud_count(), target);
  1027. }
  1028. // required int32 id = 4;
  1029. if (cached_has_bits & 0x00000008u) {
  1030. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->id(), target);
  1031. }
  1032. if (_internal_metadata_.have_unknown_fields()) {
  1033. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1034. _internal_metadata_.unknown_fields(), target);
  1035. }
  1036. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.laserMsg)
  1037. return target;
  1038. }
  1039. size_t laserMsg::ByteSizeLong() const {
  1040. // @@protoc_insertion_point(message_byte_size_start:globalmsg.laserMsg)
  1041. size_t total_size = 0;
  1042. if (_internal_metadata_.have_unknown_fields()) {
  1043. total_size +=
  1044. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1045. _internal_metadata_.unknown_fields());
  1046. }
  1047. // required int32 id = 4;
  1048. if (has_id()) {
  1049. total_size += 1 +
  1050. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1051. this->id());
  1052. }
  1053. if (_has_bits_[0 / 32] & 7u) {
  1054. // optional .globalmsg.laserStatus laser_status = 1;
  1055. if (has_laser_status()) {
  1056. total_size += 1 +
  1057. ::google::protobuf::internal::WireFormatLite::EnumSize(this->laser_status());
  1058. }
  1059. // optional int32 queue_data_count = 2;
  1060. if (has_queue_data_count()) {
  1061. total_size += 1 +
  1062. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1063. this->queue_data_count());
  1064. }
  1065. // optional int32 cloud_count = 3;
  1066. if (has_cloud_count()) {
  1067. total_size += 1 +
  1068. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1069. this->cloud_count());
  1070. }
  1071. }
  1072. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1073. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1074. _cached_size_ = cached_size;
  1075. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1076. return total_size;
  1077. }
  1078. void laserMsg::MergeFrom(const ::google::protobuf::Message& from) {
  1079. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.laserMsg)
  1080. GOOGLE_DCHECK_NE(&from, this);
  1081. const laserMsg* source =
  1082. ::google::protobuf::internal::DynamicCastToGenerated<const laserMsg>(
  1083. &from);
  1084. if (source == NULL) {
  1085. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.laserMsg)
  1086. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1087. } else {
  1088. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.laserMsg)
  1089. MergeFrom(*source);
  1090. }
  1091. }
  1092. void laserMsg::MergeFrom(const laserMsg& from) {
  1093. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.laserMsg)
  1094. GOOGLE_DCHECK_NE(&from, this);
  1095. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1096. ::google::protobuf::uint32 cached_has_bits = 0;
  1097. (void) cached_has_bits;
  1098. cached_has_bits = from._has_bits_[0];
  1099. if (cached_has_bits & 15u) {
  1100. if (cached_has_bits & 0x00000001u) {
  1101. laser_status_ = from.laser_status_;
  1102. }
  1103. if (cached_has_bits & 0x00000002u) {
  1104. queue_data_count_ = from.queue_data_count_;
  1105. }
  1106. if (cached_has_bits & 0x00000004u) {
  1107. cloud_count_ = from.cloud_count_;
  1108. }
  1109. if (cached_has_bits & 0x00000008u) {
  1110. id_ = from.id_;
  1111. }
  1112. _has_bits_[0] |= cached_has_bits;
  1113. }
  1114. }
  1115. void laserMsg::CopyFrom(const ::google::protobuf::Message& from) {
  1116. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.laserMsg)
  1117. if (&from == this) return;
  1118. Clear();
  1119. MergeFrom(from);
  1120. }
  1121. void laserMsg::CopyFrom(const laserMsg& from) {
  1122. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.laserMsg)
  1123. if (&from == this) return;
  1124. Clear();
  1125. MergeFrom(from);
  1126. }
  1127. bool laserMsg::IsInitialized() const {
  1128. if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
  1129. return true;
  1130. }
  1131. void laserMsg::Swap(laserMsg* other) {
  1132. if (other == this) return;
  1133. InternalSwap(other);
  1134. }
  1135. void laserMsg::InternalSwap(laserMsg* other) {
  1136. using std::swap;
  1137. swap(laser_status_, other->laser_status_);
  1138. swap(queue_data_count_, other->queue_data_count_);
  1139. swap(cloud_count_, other->cloud_count_);
  1140. swap(id_, other->id_);
  1141. swap(_has_bits_[0], other->_has_bits_[0]);
  1142. _internal_metadata_.Swap(&other->_internal_metadata_);
  1143. swap(_cached_size_, other->_cached_size_);
  1144. }
  1145. ::google::protobuf::Metadata laserMsg::GetMetadata() const {
  1146. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1147. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  1148. }
  1149. // ===================================================================
  1150. void plcMsg::InitAsDefaultInstance() {
  1151. }
  1152. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1153. const int plcMsg::kPlcStatusFieldNumber;
  1154. const int plcMsg::kPlcValuesFieldNumber;
  1155. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1156. plcMsg::plcMsg()
  1157. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1158. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1159. ::protobuf_globalmsg_2eproto::InitDefaultsplcMsg();
  1160. }
  1161. SharedCtor();
  1162. // @@protoc_insertion_point(constructor:globalmsg.plcMsg)
  1163. }
  1164. plcMsg::plcMsg(const plcMsg& from)
  1165. : ::google::protobuf::Message(),
  1166. _internal_metadata_(NULL),
  1167. _has_bits_(from._has_bits_),
  1168. _cached_size_(0),
  1169. plc_values_(from.plc_values_) {
  1170. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1171. plc_status_ = from.plc_status_;
  1172. // @@protoc_insertion_point(copy_constructor:globalmsg.plcMsg)
  1173. }
  1174. void plcMsg::SharedCtor() {
  1175. _cached_size_ = 0;
  1176. plc_status_ = 0;
  1177. }
  1178. plcMsg::~plcMsg() {
  1179. // @@protoc_insertion_point(destructor:globalmsg.plcMsg)
  1180. SharedDtor();
  1181. }
  1182. void plcMsg::SharedDtor() {
  1183. }
  1184. void plcMsg::SetCachedSize(int size) const {
  1185. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1186. _cached_size_ = size;
  1187. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1188. }
  1189. const ::google::protobuf::Descriptor* plcMsg::descriptor() {
  1190. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1191. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1192. }
  1193. const plcMsg& plcMsg::default_instance() {
  1194. ::protobuf_globalmsg_2eproto::InitDefaultsplcMsg();
  1195. return *internal_default_instance();
  1196. }
  1197. plcMsg* plcMsg::New(::google::protobuf::Arena* arena) const {
  1198. plcMsg* n = new plcMsg;
  1199. if (arena != NULL) {
  1200. arena->Own(n);
  1201. }
  1202. return n;
  1203. }
  1204. void plcMsg::Clear() {
  1205. // @@protoc_insertion_point(message_clear_start:globalmsg.plcMsg)
  1206. ::google::protobuf::uint32 cached_has_bits = 0;
  1207. // Prevent compiler warnings about cached_has_bits being unused
  1208. (void) cached_has_bits;
  1209. plc_values_.Clear();
  1210. plc_status_ = 0;
  1211. _has_bits_.Clear();
  1212. _internal_metadata_.Clear();
  1213. }
  1214. bool plcMsg::MergePartialFromCodedStream(
  1215. ::google::protobuf::io::CodedInputStream* input) {
  1216. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1217. ::google::protobuf::uint32 tag;
  1218. // @@protoc_insertion_point(parse_start:globalmsg.plcMsg)
  1219. for (;;) {
  1220. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1221. tag = p.first;
  1222. if (!p.second) goto handle_unusual;
  1223. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1224. // optional .globalmsg.plcStatus plc_status = 1;
  1225. case 1: {
  1226. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1227. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1228. int value;
  1229. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1230. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1231. input, &value)));
  1232. if (::globalmsg::plcStatus_IsValid(value)) {
  1233. set_plc_status(static_cast< ::globalmsg::plcStatus >(value));
  1234. } else {
  1235. mutable_unknown_fields()->AddVarint(
  1236. 1, static_cast< ::google::protobuf::uint64>(value));
  1237. }
  1238. } else {
  1239. goto handle_unusual;
  1240. }
  1241. break;
  1242. }
  1243. // repeated int32 plc_values = 2;
  1244. case 2: {
  1245. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1246. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1247. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1248. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1249. 1, 16u, input, this->mutable_plc_values())));
  1250. } else if (
  1251. static_cast< ::google::protobuf::uint8>(tag) ==
  1252. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1253. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1254. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1255. input, this->mutable_plc_values())));
  1256. } else {
  1257. goto handle_unusual;
  1258. }
  1259. break;
  1260. }
  1261. default: {
  1262. handle_unusual:
  1263. if (tag == 0) {
  1264. goto success;
  1265. }
  1266. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1267. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1268. break;
  1269. }
  1270. }
  1271. }
  1272. success:
  1273. // @@protoc_insertion_point(parse_success:globalmsg.plcMsg)
  1274. return true;
  1275. failure:
  1276. // @@protoc_insertion_point(parse_failure:globalmsg.plcMsg)
  1277. return false;
  1278. #undef DO_
  1279. }
  1280. void plcMsg::SerializeWithCachedSizes(
  1281. ::google::protobuf::io::CodedOutputStream* output) const {
  1282. // @@protoc_insertion_point(serialize_start:globalmsg.plcMsg)
  1283. ::google::protobuf::uint32 cached_has_bits = 0;
  1284. (void) cached_has_bits;
  1285. cached_has_bits = _has_bits_[0];
  1286. // optional .globalmsg.plcStatus plc_status = 1;
  1287. if (cached_has_bits & 0x00000001u) {
  1288. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1289. 1, this->plc_status(), output);
  1290. }
  1291. // repeated int32 plc_values = 2;
  1292. for (int i = 0, n = this->plc_values_size(); i < n; i++) {
  1293. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1294. 2, this->plc_values(i), output);
  1295. }
  1296. if (_internal_metadata_.have_unknown_fields()) {
  1297. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1298. _internal_metadata_.unknown_fields(), output);
  1299. }
  1300. // @@protoc_insertion_point(serialize_end:globalmsg.plcMsg)
  1301. }
  1302. ::google::protobuf::uint8* plcMsg::InternalSerializeWithCachedSizesToArray(
  1303. bool deterministic, ::google::protobuf::uint8* target) const {
  1304. (void)deterministic; // Unused
  1305. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.plcMsg)
  1306. ::google::protobuf::uint32 cached_has_bits = 0;
  1307. (void) cached_has_bits;
  1308. cached_has_bits = _has_bits_[0];
  1309. // optional .globalmsg.plcStatus plc_status = 1;
  1310. if (cached_has_bits & 0x00000001u) {
  1311. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1312. 1, this->plc_status(), target);
  1313. }
  1314. // repeated int32 plc_values = 2;
  1315. target = ::google::protobuf::internal::WireFormatLite::
  1316. WriteInt32ToArray(2, this->plc_values_, target);
  1317. if (_internal_metadata_.have_unknown_fields()) {
  1318. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1319. _internal_metadata_.unknown_fields(), target);
  1320. }
  1321. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.plcMsg)
  1322. return target;
  1323. }
  1324. size_t plcMsg::ByteSizeLong() const {
  1325. // @@protoc_insertion_point(message_byte_size_start:globalmsg.plcMsg)
  1326. size_t total_size = 0;
  1327. if (_internal_metadata_.have_unknown_fields()) {
  1328. total_size +=
  1329. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1330. _internal_metadata_.unknown_fields());
  1331. }
  1332. // repeated int32 plc_values = 2;
  1333. {
  1334. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  1335. Int32Size(this->plc_values_);
  1336. total_size += 1 *
  1337. ::google::protobuf::internal::FromIntSize(this->plc_values_size());
  1338. total_size += data_size;
  1339. }
  1340. // optional .globalmsg.plcStatus plc_status = 1;
  1341. if (has_plc_status()) {
  1342. total_size += 1 +
  1343. ::google::protobuf::internal::WireFormatLite::EnumSize(this->plc_status());
  1344. }
  1345. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1346. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1347. _cached_size_ = cached_size;
  1348. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1349. return total_size;
  1350. }
  1351. void plcMsg::MergeFrom(const ::google::protobuf::Message& from) {
  1352. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.plcMsg)
  1353. GOOGLE_DCHECK_NE(&from, this);
  1354. const plcMsg* source =
  1355. ::google::protobuf::internal::DynamicCastToGenerated<const plcMsg>(
  1356. &from);
  1357. if (source == NULL) {
  1358. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.plcMsg)
  1359. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1360. } else {
  1361. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.plcMsg)
  1362. MergeFrom(*source);
  1363. }
  1364. }
  1365. void plcMsg::MergeFrom(const plcMsg& from) {
  1366. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.plcMsg)
  1367. GOOGLE_DCHECK_NE(&from, this);
  1368. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1369. ::google::protobuf::uint32 cached_has_bits = 0;
  1370. (void) cached_has_bits;
  1371. plc_values_.MergeFrom(from.plc_values_);
  1372. if (from.has_plc_status()) {
  1373. set_plc_status(from.plc_status());
  1374. }
  1375. }
  1376. void plcMsg::CopyFrom(const ::google::protobuf::Message& from) {
  1377. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.plcMsg)
  1378. if (&from == this) return;
  1379. Clear();
  1380. MergeFrom(from);
  1381. }
  1382. void plcMsg::CopyFrom(const plcMsg& from) {
  1383. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.plcMsg)
  1384. if (&from == this) return;
  1385. Clear();
  1386. MergeFrom(from);
  1387. }
  1388. bool plcMsg::IsInitialized() const {
  1389. return true;
  1390. }
  1391. void plcMsg::Swap(plcMsg* other) {
  1392. if (other == this) return;
  1393. InternalSwap(other);
  1394. }
  1395. void plcMsg::InternalSwap(plcMsg* other) {
  1396. using std::swap;
  1397. plc_values_.InternalSwap(&other->plc_values_);
  1398. swap(plc_status_, other->plc_status_);
  1399. swap(_has_bits_[0], other->_has_bits_[0]);
  1400. _internal_metadata_.Swap(&other->_internal_metadata_);
  1401. swap(_cached_size_, other->_cached_size_);
  1402. }
  1403. ::google::protobuf::Metadata plcMsg::GetMetadata() const {
  1404. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1405. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  1406. }
  1407. // ===================================================================
  1408. void resultInfo::InitAsDefaultInstance() {
  1409. }
  1410. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1411. const int resultInfo::kTimeFieldNumber;
  1412. const int resultInfo::kCorrectnessFieldNumber;
  1413. const int resultInfo::kParkSpaceIdFieldNumber;
  1414. const int resultInfo::kLaserIdsFieldNumber;
  1415. const int resultInfo::kXFieldNumber;
  1416. const int resultInfo::kYFieldNumber;
  1417. const int resultInfo::kCFieldNumber;
  1418. const int resultInfo::kWheelBaseFieldNumber;
  1419. const int resultInfo::kLengthFieldNumber;
  1420. const int resultInfo::kWidthFieldNumber;
  1421. const int resultInfo::kHeightFieldNumber;
  1422. const int resultInfo::kErrorFieldNumber;
  1423. const int resultInfo::kFrontThetaFieldNumber;
  1424. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1425. resultInfo::resultInfo()
  1426. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1427. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1428. ::protobuf_globalmsg_2eproto::InitDefaultsresultInfo();
  1429. }
  1430. SharedCtor();
  1431. // @@protoc_insertion_point(constructor:globalmsg.resultInfo)
  1432. }
  1433. resultInfo::resultInfo(const resultInfo& from)
  1434. : ::google::protobuf::Message(),
  1435. _internal_metadata_(NULL),
  1436. _has_bits_(from._has_bits_),
  1437. _cached_size_(0) {
  1438. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1439. time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1440. if (from.has_time()) {
  1441. time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
  1442. }
  1443. error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1444. if (from.has_error()) {
  1445. error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
  1446. }
  1447. ::memcpy(&correctness_, &from.correctness_,
  1448. static_cast<size_t>(reinterpret_cast<char*>(&laser_ids_) -
  1449. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  1450. // @@protoc_insertion_point(copy_constructor:globalmsg.resultInfo)
  1451. }
  1452. void resultInfo::SharedCtor() {
  1453. _cached_size_ = 0;
  1454. time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1455. error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1456. ::memset(&correctness_, 0, static_cast<size_t>(
  1457. reinterpret_cast<char*>(&laser_ids_) -
  1458. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  1459. }
  1460. resultInfo::~resultInfo() {
  1461. // @@protoc_insertion_point(destructor:globalmsg.resultInfo)
  1462. SharedDtor();
  1463. }
  1464. void resultInfo::SharedDtor() {
  1465. time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1466. error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1467. }
  1468. void resultInfo::SetCachedSize(int size) const {
  1469. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1470. _cached_size_ = size;
  1471. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1472. }
  1473. const ::google::protobuf::Descriptor* resultInfo::descriptor() {
  1474. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  1475. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1476. }
  1477. const resultInfo& resultInfo::default_instance() {
  1478. ::protobuf_globalmsg_2eproto::InitDefaultsresultInfo();
  1479. return *internal_default_instance();
  1480. }
  1481. resultInfo* resultInfo::New(::google::protobuf::Arena* arena) const {
  1482. resultInfo* n = new resultInfo;
  1483. if (arena != NULL) {
  1484. arena->Own(n);
  1485. }
  1486. return n;
  1487. }
  1488. void resultInfo::Clear() {
  1489. // @@protoc_insertion_point(message_clear_start:globalmsg.resultInfo)
  1490. ::google::protobuf::uint32 cached_has_bits = 0;
  1491. // Prevent compiler warnings about cached_has_bits being unused
  1492. (void) cached_has_bits;
  1493. cached_has_bits = _has_bits_[0];
  1494. if (cached_has_bits & 3u) {
  1495. if (cached_has_bits & 0x00000001u) {
  1496. GOOGLE_DCHECK(!time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1497. (*time_.UnsafeRawStringPointer())->clear();
  1498. }
  1499. if (cached_has_bits & 0x00000002u) {
  1500. GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  1501. (*error_.UnsafeRawStringPointer())->clear();
  1502. }
  1503. }
  1504. if (cached_has_bits & 252u) {
  1505. ::memset(&correctness_, 0, static_cast<size_t>(
  1506. reinterpret_cast<char*>(&wheel_base_) -
  1507. reinterpret_cast<char*>(&correctness_)) + sizeof(wheel_base_));
  1508. }
  1509. if (cached_has_bits & 7936u) {
  1510. ::memset(&length_, 0, static_cast<size_t>(
  1511. reinterpret_cast<char*>(&laser_ids_) -
  1512. reinterpret_cast<char*>(&length_)) + sizeof(laser_ids_));
  1513. }
  1514. _has_bits_.Clear();
  1515. _internal_metadata_.Clear();
  1516. }
  1517. bool resultInfo::MergePartialFromCodedStream(
  1518. ::google::protobuf::io::CodedInputStream* input) {
  1519. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1520. ::google::protobuf::uint32 tag;
  1521. // @@protoc_insertion_point(parse_start:globalmsg.resultInfo)
  1522. for (;;) {
  1523. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1524. tag = p.first;
  1525. if (!p.second) goto handle_unusual;
  1526. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1527. // required string time = 1 [default = ""];
  1528. case 1: {
  1529. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1530. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1531. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1532. input, this->mutable_time()));
  1533. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1534. this->time().data(), static_cast<int>(this->time().length()),
  1535. ::google::protobuf::internal::WireFormat::PARSE,
  1536. "globalmsg.resultInfo.time");
  1537. } else {
  1538. goto handle_unusual;
  1539. }
  1540. break;
  1541. }
  1542. // required bool correctness = 2;
  1543. case 2: {
  1544. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1545. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1546. set_has_correctness();
  1547. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1548. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  1549. input, &correctness_)));
  1550. } else {
  1551. goto handle_unusual;
  1552. }
  1553. break;
  1554. }
  1555. // optional int32 park_space_id = 3;
  1556. case 3: {
  1557. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1558. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1559. set_has_park_space_id();
  1560. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1561. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1562. input, &park_space_id_)));
  1563. } else {
  1564. goto handle_unusual;
  1565. }
  1566. break;
  1567. }
  1568. // optional int32 laser_ids = 4;
  1569. case 4: {
  1570. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1571. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1572. set_has_laser_ids();
  1573. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1574. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1575. input, &laser_ids_)));
  1576. } else {
  1577. goto handle_unusual;
  1578. }
  1579. break;
  1580. }
  1581. // optional double x = 5;
  1582. case 5: {
  1583. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1584. static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
  1585. set_has_x();
  1586. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1587. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1588. input, &x_)));
  1589. } else {
  1590. goto handle_unusual;
  1591. }
  1592. break;
  1593. }
  1594. // optional double y = 6;
  1595. case 6: {
  1596. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1597. static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
  1598. set_has_y();
  1599. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1600. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1601. input, &y_)));
  1602. } else {
  1603. goto handle_unusual;
  1604. }
  1605. break;
  1606. }
  1607. // optional double c = 7;
  1608. case 7: {
  1609. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1610. static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
  1611. set_has_c();
  1612. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1613. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1614. input, &c_)));
  1615. } else {
  1616. goto handle_unusual;
  1617. }
  1618. break;
  1619. }
  1620. // optional double wheel_base = 8;
  1621. case 8: {
  1622. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1623. static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
  1624. set_has_wheel_base();
  1625. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1626. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1627. input, &wheel_base_)));
  1628. } else {
  1629. goto handle_unusual;
  1630. }
  1631. break;
  1632. }
  1633. // optional double length = 9;
  1634. case 9: {
  1635. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1636. static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
  1637. set_has_length();
  1638. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1639. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1640. input, &length_)));
  1641. } else {
  1642. goto handle_unusual;
  1643. }
  1644. break;
  1645. }
  1646. // optional double width = 10;
  1647. case 10: {
  1648. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1649. static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
  1650. set_has_width();
  1651. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1652. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1653. input, &width_)));
  1654. } else {
  1655. goto handle_unusual;
  1656. }
  1657. break;
  1658. }
  1659. // optional double height = 11;
  1660. case 11: {
  1661. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1662. static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
  1663. set_has_height();
  1664. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1665. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1666. input, &height_)));
  1667. } else {
  1668. goto handle_unusual;
  1669. }
  1670. break;
  1671. }
  1672. // optional string error = 12 [default = ""];
  1673. case 12: {
  1674. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1675. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  1676. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1677. input, this->mutable_error()));
  1678. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1679. this->error().data(), static_cast<int>(this->error().length()),
  1680. ::google::protobuf::internal::WireFormat::PARSE,
  1681. "globalmsg.resultInfo.error");
  1682. } else {
  1683. goto handle_unusual;
  1684. }
  1685. break;
  1686. }
  1687. // optional double front_theta = 13;
  1688. case 13: {
  1689. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1690. static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) {
  1691. set_has_front_theta();
  1692. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1693. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  1694. input, &front_theta_)));
  1695. } else {
  1696. goto handle_unusual;
  1697. }
  1698. break;
  1699. }
  1700. default: {
  1701. handle_unusual:
  1702. if (tag == 0) {
  1703. goto success;
  1704. }
  1705. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1706. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1707. break;
  1708. }
  1709. }
  1710. }
  1711. success:
  1712. // @@protoc_insertion_point(parse_success:globalmsg.resultInfo)
  1713. return true;
  1714. failure:
  1715. // @@protoc_insertion_point(parse_failure:globalmsg.resultInfo)
  1716. return false;
  1717. #undef DO_
  1718. }
  1719. void resultInfo::SerializeWithCachedSizes(
  1720. ::google::protobuf::io::CodedOutputStream* output) const {
  1721. // @@protoc_insertion_point(serialize_start:globalmsg.resultInfo)
  1722. ::google::protobuf::uint32 cached_has_bits = 0;
  1723. (void) cached_has_bits;
  1724. cached_has_bits = _has_bits_[0];
  1725. // required string time = 1 [default = ""];
  1726. if (cached_has_bits & 0x00000001u) {
  1727. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1728. this->time().data(), static_cast<int>(this->time().length()),
  1729. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1730. "globalmsg.resultInfo.time");
  1731. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1732. 1, this->time(), output);
  1733. }
  1734. // required bool correctness = 2;
  1735. if (cached_has_bits & 0x00000004u) {
  1736. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->correctness(), output);
  1737. }
  1738. // optional int32 park_space_id = 3;
  1739. if (cached_has_bits & 0x00000008u) {
  1740. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->park_space_id(), output);
  1741. }
  1742. // optional int32 laser_ids = 4;
  1743. if (cached_has_bits & 0x00001000u) {
  1744. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->laser_ids(), output);
  1745. }
  1746. // optional double x = 5;
  1747. if (cached_has_bits & 0x00000010u) {
  1748. ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->x(), output);
  1749. }
  1750. // optional double y = 6;
  1751. if (cached_has_bits & 0x00000020u) {
  1752. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->y(), output);
  1753. }
  1754. // optional double c = 7;
  1755. if (cached_has_bits & 0x00000040u) {
  1756. ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->c(), output);
  1757. }
  1758. // optional double wheel_base = 8;
  1759. if (cached_has_bits & 0x00000080u) {
  1760. ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->wheel_base(), output);
  1761. }
  1762. // optional double length = 9;
  1763. if (cached_has_bits & 0x00000100u) {
  1764. ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->length(), output);
  1765. }
  1766. // optional double width = 10;
  1767. if (cached_has_bits & 0x00000200u) {
  1768. ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->width(), output);
  1769. }
  1770. // optional double height = 11;
  1771. if (cached_has_bits & 0x00000400u) {
  1772. ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->height(), output);
  1773. }
  1774. // optional string error = 12 [default = ""];
  1775. if (cached_has_bits & 0x00000002u) {
  1776. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1777. this->error().data(), static_cast<int>(this->error().length()),
  1778. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1779. "globalmsg.resultInfo.error");
  1780. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1781. 12, this->error(), output);
  1782. }
  1783. // optional double front_theta = 13;
  1784. if (cached_has_bits & 0x00000800u) {
  1785. ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->front_theta(), output);
  1786. }
  1787. if (_internal_metadata_.have_unknown_fields()) {
  1788. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1789. _internal_metadata_.unknown_fields(), output);
  1790. }
  1791. // @@protoc_insertion_point(serialize_end:globalmsg.resultInfo)
  1792. }
  1793. ::google::protobuf::uint8* resultInfo::InternalSerializeWithCachedSizesToArray(
  1794. bool deterministic, ::google::protobuf::uint8* target) const {
  1795. (void)deterministic; // Unused
  1796. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.resultInfo)
  1797. ::google::protobuf::uint32 cached_has_bits = 0;
  1798. (void) cached_has_bits;
  1799. cached_has_bits = _has_bits_[0];
  1800. // required string time = 1 [default = ""];
  1801. if (cached_has_bits & 0x00000001u) {
  1802. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1803. this->time().data(), static_cast<int>(this->time().length()),
  1804. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1805. "globalmsg.resultInfo.time");
  1806. target =
  1807. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1808. 1, this->time(), target);
  1809. }
  1810. // required bool correctness = 2;
  1811. if (cached_has_bits & 0x00000004u) {
  1812. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->correctness(), target);
  1813. }
  1814. // optional int32 park_space_id = 3;
  1815. if (cached_has_bits & 0x00000008u) {
  1816. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->park_space_id(), target);
  1817. }
  1818. // optional int32 laser_ids = 4;
  1819. if (cached_has_bits & 0x00001000u) {
  1820. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->laser_ids(), target);
  1821. }
  1822. // optional double x = 5;
  1823. if (cached_has_bits & 0x00000010u) {
  1824. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->x(), target);
  1825. }
  1826. // optional double y = 6;
  1827. if (cached_has_bits & 0x00000020u) {
  1828. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->y(), target);
  1829. }
  1830. // optional double c = 7;
  1831. if (cached_has_bits & 0x00000040u) {
  1832. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->c(), target);
  1833. }
  1834. // optional double wheel_base = 8;
  1835. if (cached_has_bits & 0x00000080u) {
  1836. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->wheel_base(), target);
  1837. }
  1838. // optional double length = 9;
  1839. if (cached_has_bits & 0x00000100u) {
  1840. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->length(), target);
  1841. }
  1842. // optional double width = 10;
  1843. if (cached_has_bits & 0x00000200u) {
  1844. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->width(), target);
  1845. }
  1846. // optional double height = 11;
  1847. if (cached_has_bits & 0x00000400u) {
  1848. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->height(), target);
  1849. }
  1850. // optional string error = 12 [default = ""];
  1851. if (cached_has_bits & 0x00000002u) {
  1852. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1853. this->error().data(), static_cast<int>(this->error().length()),
  1854. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1855. "globalmsg.resultInfo.error");
  1856. target =
  1857. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1858. 12, this->error(), target);
  1859. }
  1860. // optional double front_theta = 13;
  1861. if (cached_has_bits & 0x00000800u) {
  1862. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->front_theta(), target);
  1863. }
  1864. if (_internal_metadata_.have_unknown_fields()) {
  1865. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1866. _internal_metadata_.unknown_fields(), target);
  1867. }
  1868. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.resultInfo)
  1869. return target;
  1870. }
  1871. size_t resultInfo::RequiredFieldsByteSizeFallback() const {
  1872. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:globalmsg.resultInfo)
  1873. size_t total_size = 0;
  1874. if (has_time()) {
  1875. // required string time = 1 [default = ""];
  1876. total_size += 1 +
  1877. ::google::protobuf::internal::WireFormatLite::StringSize(
  1878. this->time());
  1879. }
  1880. if (has_correctness()) {
  1881. // required bool correctness = 2;
  1882. total_size += 1 + 1;
  1883. }
  1884. return total_size;
  1885. }
  1886. size_t resultInfo::ByteSizeLong() const {
  1887. // @@protoc_insertion_point(message_byte_size_start:globalmsg.resultInfo)
  1888. size_t total_size = 0;
  1889. if (_internal_metadata_.have_unknown_fields()) {
  1890. total_size +=
  1891. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1892. _internal_metadata_.unknown_fields());
  1893. }
  1894. if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
  1895. // required string time = 1 [default = ""];
  1896. total_size += 1 +
  1897. ::google::protobuf::internal::WireFormatLite::StringSize(
  1898. this->time());
  1899. // required bool correctness = 2;
  1900. total_size += 1 + 1;
  1901. } else {
  1902. total_size += RequiredFieldsByteSizeFallback();
  1903. }
  1904. // optional string error = 12 [default = ""];
  1905. if (has_error()) {
  1906. total_size += 1 +
  1907. ::google::protobuf::internal::WireFormatLite::StringSize(
  1908. this->error());
  1909. }
  1910. if (_has_bits_[0 / 32] & 248u) {
  1911. // optional int32 park_space_id = 3;
  1912. if (has_park_space_id()) {
  1913. total_size += 1 +
  1914. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1915. this->park_space_id());
  1916. }
  1917. // optional double x = 5;
  1918. if (has_x()) {
  1919. total_size += 1 + 8;
  1920. }
  1921. // optional double y = 6;
  1922. if (has_y()) {
  1923. total_size += 1 + 8;
  1924. }
  1925. // optional double c = 7;
  1926. if (has_c()) {
  1927. total_size += 1 + 8;
  1928. }
  1929. // optional double wheel_base = 8;
  1930. if (has_wheel_base()) {
  1931. total_size += 1 + 8;
  1932. }
  1933. }
  1934. if (_has_bits_[8 / 32] & 7936u) {
  1935. // optional double length = 9;
  1936. if (has_length()) {
  1937. total_size += 1 + 8;
  1938. }
  1939. // optional double width = 10;
  1940. if (has_width()) {
  1941. total_size += 1 + 8;
  1942. }
  1943. // optional double height = 11;
  1944. if (has_height()) {
  1945. total_size += 1 + 8;
  1946. }
  1947. // optional double front_theta = 13;
  1948. if (has_front_theta()) {
  1949. total_size += 1 + 8;
  1950. }
  1951. // optional int32 laser_ids = 4;
  1952. if (has_laser_ids()) {
  1953. total_size += 1 +
  1954. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1955. this->laser_ids());
  1956. }
  1957. }
  1958. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1959. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1960. _cached_size_ = cached_size;
  1961. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1962. return total_size;
  1963. }
  1964. void resultInfo::MergeFrom(const ::google::protobuf::Message& from) {
  1965. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.resultInfo)
  1966. GOOGLE_DCHECK_NE(&from, this);
  1967. const resultInfo* source =
  1968. ::google::protobuf::internal::DynamicCastToGenerated<const resultInfo>(
  1969. &from);
  1970. if (source == NULL) {
  1971. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.resultInfo)
  1972. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1973. } else {
  1974. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.resultInfo)
  1975. MergeFrom(*source);
  1976. }
  1977. }
  1978. void resultInfo::MergeFrom(const resultInfo& from) {
  1979. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.resultInfo)
  1980. GOOGLE_DCHECK_NE(&from, this);
  1981. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1982. ::google::protobuf::uint32 cached_has_bits = 0;
  1983. (void) cached_has_bits;
  1984. cached_has_bits = from._has_bits_[0];
  1985. if (cached_has_bits & 255u) {
  1986. if (cached_has_bits & 0x00000001u) {
  1987. set_has_time();
  1988. time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
  1989. }
  1990. if (cached_has_bits & 0x00000002u) {
  1991. set_has_error();
  1992. error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
  1993. }
  1994. if (cached_has_bits & 0x00000004u) {
  1995. correctness_ = from.correctness_;
  1996. }
  1997. if (cached_has_bits & 0x00000008u) {
  1998. park_space_id_ = from.park_space_id_;
  1999. }
  2000. if (cached_has_bits & 0x00000010u) {
  2001. x_ = from.x_;
  2002. }
  2003. if (cached_has_bits & 0x00000020u) {
  2004. y_ = from.y_;
  2005. }
  2006. if (cached_has_bits & 0x00000040u) {
  2007. c_ = from.c_;
  2008. }
  2009. if (cached_has_bits & 0x00000080u) {
  2010. wheel_base_ = from.wheel_base_;
  2011. }
  2012. _has_bits_[0] |= cached_has_bits;
  2013. }
  2014. if (cached_has_bits & 7936u) {
  2015. if (cached_has_bits & 0x00000100u) {
  2016. length_ = from.length_;
  2017. }
  2018. if (cached_has_bits & 0x00000200u) {
  2019. width_ = from.width_;
  2020. }
  2021. if (cached_has_bits & 0x00000400u) {
  2022. height_ = from.height_;
  2023. }
  2024. if (cached_has_bits & 0x00000800u) {
  2025. front_theta_ = from.front_theta_;
  2026. }
  2027. if (cached_has_bits & 0x00001000u) {
  2028. laser_ids_ = from.laser_ids_;
  2029. }
  2030. _has_bits_[0] |= cached_has_bits;
  2031. }
  2032. }
  2033. void resultInfo::CopyFrom(const ::google::protobuf::Message& from) {
  2034. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.resultInfo)
  2035. if (&from == this) return;
  2036. Clear();
  2037. MergeFrom(from);
  2038. }
  2039. void resultInfo::CopyFrom(const resultInfo& from) {
  2040. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.resultInfo)
  2041. if (&from == this) return;
  2042. Clear();
  2043. MergeFrom(from);
  2044. }
  2045. bool resultInfo::IsInitialized() const {
  2046. if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false;
  2047. return true;
  2048. }
  2049. void resultInfo::Swap(resultInfo* other) {
  2050. if (other == this) return;
  2051. InternalSwap(other);
  2052. }
  2053. void resultInfo::InternalSwap(resultInfo* other) {
  2054. using std::swap;
  2055. time_.Swap(&other->time_);
  2056. error_.Swap(&other->error_);
  2057. swap(correctness_, other->correctness_);
  2058. swap(park_space_id_, other->park_space_id_);
  2059. swap(x_, other->x_);
  2060. swap(y_, other->y_);
  2061. swap(c_, other->c_);
  2062. swap(wheel_base_, other->wheel_base_);
  2063. swap(length_, other->length_);
  2064. swap(width_, other->width_);
  2065. swap(height_, other->height_);
  2066. swap(front_theta_, other->front_theta_);
  2067. swap(laser_ids_, other->laser_ids_);
  2068. swap(_has_bits_[0], other->_has_bits_[0]);
  2069. _internal_metadata_.Swap(&other->_internal_metadata_);
  2070. swap(_cached_size_, other->_cached_size_);
  2071. }
  2072. ::google::protobuf::Metadata resultInfo::GetMetadata() const {
  2073. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2074. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  2075. }
  2076. // ===================================================================
  2077. void algMsg::InitAsDefaultInstance() {
  2078. }
  2079. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2080. const int algMsg::kResultFieldNumber;
  2081. const int algMsg::kThreadQueueSizeFieldNumber;
  2082. const int algMsg::kLogPathFieldNumber;
  2083. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2084. algMsg::algMsg()
  2085. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2086. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2087. ::protobuf_globalmsg_2eproto::InitDefaultsalgMsg();
  2088. }
  2089. SharedCtor();
  2090. // @@protoc_insertion_point(constructor:globalmsg.algMsg)
  2091. }
  2092. algMsg::algMsg(const algMsg& from)
  2093. : ::google::protobuf::Message(),
  2094. _internal_metadata_(NULL),
  2095. _has_bits_(from._has_bits_),
  2096. _cached_size_(0),
  2097. result_(from.result_) {
  2098. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2099. log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2100. if (from.has_log_path()) {
  2101. log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.log_path_);
  2102. }
  2103. thread_queue_size_ = from.thread_queue_size_;
  2104. // @@protoc_insertion_point(copy_constructor:globalmsg.algMsg)
  2105. }
  2106. void algMsg::SharedCtor() {
  2107. _cached_size_ = 0;
  2108. log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2109. thread_queue_size_ = 0;
  2110. }
  2111. algMsg::~algMsg() {
  2112. // @@protoc_insertion_point(destructor:globalmsg.algMsg)
  2113. SharedDtor();
  2114. }
  2115. void algMsg::SharedDtor() {
  2116. log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2117. }
  2118. void algMsg::SetCachedSize(int size) const {
  2119. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2120. _cached_size_ = size;
  2121. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2122. }
  2123. const ::google::protobuf::Descriptor* algMsg::descriptor() {
  2124. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2125. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2126. }
  2127. const algMsg& algMsg::default_instance() {
  2128. ::protobuf_globalmsg_2eproto::InitDefaultsalgMsg();
  2129. return *internal_default_instance();
  2130. }
  2131. algMsg* algMsg::New(::google::protobuf::Arena* arena) const {
  2132. algMsg* n = new algMsg;
  2133. if (arena != NULL) {
  2134. arena->Own(n);
  2135. }
  2136. return n;
  2137. }
  2138. void algMsg::Clear() {
  2139. // @@protoc_insertion_point(message_clear_start:globalmsg.algMsg)
  2140. ::google::protobuf::uint32 cached_has_bits = 0;
  2141. // Prevent compiler warnings about cached_has_bits being unused
  2142. (void) cached_has_bits;
  2143. result_.Clear();
  2144. cached_has_bits = _has_bits_[0];
  2145. if (cached_has_bits & 0x00000001u) {
  2146. GOOGLE_DCHECK(!log_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2147. (*log_path_.UnsafeRawStringPointer())->clear();
  2148. }
  2149. thread_queue_size_ = 0;
  2150. _has_bits_.Clear();
  2151. _internal_metadata_.Clear();
  2152. }
  2153. bool algMsg::MergePartialFromCodedStream(
  2154. ::google::protobuf::io::CodedInputStream* input) {
  2155. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2156. ::google::protobuf::uint32 tag;
  2157. // @@protoc_insertion_point(parse_start:globalmsg.algMsg)
  2158. for (;;) {
  2159. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2160. tag = p.first;
  2161. if (!p.second) goto handle_unusual;
  2162. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2163. // repeated .globalmsg.resultInfo result = 1;
  2164. case 1: {
  2165. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2166. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2167. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_result()));
  2168. } else {
  2169. goto handle_unusual;
  2170. }
  2171. break;
  2172. }
  2173. // optional int32 thread_queue_size = 2;
  2174. case 2: {
  2175. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2176. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2177. set_has_thread_queue_size();
  2178. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2179. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2180. input, &thread_queue_size_)));
  2181. } else {
  2182. goto handle_unusual;
  2183. }
  2184. break;
  2185. }
  2186. // optional string log_path = 3 [default = ""];
  2187. case 3: {
  2188. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2189. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2190. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2191. input, this->mutable_log_path()));
  2192. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2193. this->log_path().data(), static_cast<int>(this->log_path().length()),
  2194. ::google::protobuf::internal::WireFormat::PARSE,
  2195. "globalmsg.algMsg.log_path");
  2196. } else {
  2197. goto handle_unusual;
  2198. }
  2199. break;
  2200. }
  2201. default: {
  2202. handle_unusual:
  2203. if (tag == 0) {
  2204. goto success;
  2205. }
  2206. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2207. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2208. break;
  2209. }
  2210. }
  2211. }
  2212. success:
  2213. // @@protoc_insertion_point(parse_success:globalmsg.algMsg)
  2214. return true;
  2215. failure:
  2216. // @@protoc_insertion_point(parse_failure:globalmsg.algMsg)
  2217. return false;
  2218. #undef DO_
  2219. }
  2220. void algMsg::SerializeWithCachedSizes(
  2221. ::google::protobuf::io::CodedOutputStream* output) const {
  2222. // @@protoc_insertion_point(serialize_start:globalmsg.algMsg)
  2223. ::google::protobuf::uint32 cached_has_bits = 0;
  2224. (void) cached_has_bits;
  2225. // repeated .globalmsg.resultInfo result = 1;
  2226. for (unsigned int i = 0,
  2227. n = static_cast<unsigned int>(this->result_size()); i < n; i++) {
  2228. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2229. 1, this->result(static_cast<int>(i)), output);
  2230. }
  2231. cached_has_bits = _has_bits_[0];
  2232. // optional int32 thread_queue_size = 2;
  2233. if (cached_has_bits & 0x00000002u) {
  2234. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->thread_queue_size(), output);
  2235. }
  2236. // optional string log_path = 3 [default = ""];
  2237. if (cached_has_bits & 0x00000001u) {
  2238. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2239. this->log_path().data(), static_cast<int>(this->log_path().length()),
  2240. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2241. "globalmsg.algMsg.log_path");
  2242. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2243. 3, this->log_path(), output);
  2244. }
  2245. if (_internal_metadata_.have_unknown_fields()) {
  2246. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2247. _internal_metadata_.unknown_fields(), output);
  2248. }
  2249. // @@protoc_insertion_point(serialize_end:globalmsg.algMsg)
  2250. }
  2251. ::google::protobuf::uint8* algMsg::InternalSerializeWithCachedSizesToArray(
  2252. bool deterministic, ::google::protobuf::uint8* target) const {
  2253. (void)deterministic; // Unused
  2254. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.algMsg)
  2255. ::google::protobuf::uint32 cached_has_bits = 0;
  2256. (void) cached_has_bits;
  2257. // repeated .globalmsg.resultInfo result = 1;
  2258. for (unsigned int i = 0,
  2259. n = static_cast<unsigned int>(this->result_size()); i < n; i++) {
  2260. target = ::google::protobuf::internal::WireFormatLite::
  2261. InternalWriteMessageToArray(
  2262. 1, this->result(static_cast<int>(i)), deterministic, target);
  2263. }
  2264. cached_has_bits = _has_bits_[0];
  2265. // optional int32 thread_queue_size = 2;
  2266. if (cached_has_bits & 0x00000002u) {
  2267. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->thread_queue_size(), target);
  2268. }
  2269. // optional string log_path = 3 [default = ""];
  2270. if (cached_has_bits & 0x00000001u) {
  2271. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2272. this->log_path().data(), static_cast<int>(this->log_path().length()),
  2273. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2274. "globalmsg.algMsg.log_path");
  2275. target =
  2276. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2277. 3, this->log_path(), target);
  2278. }
  2279. if (_internal_metadata_.have_unknown_fields()) {
  2280. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2281. _internal_metadata_.unknown_fields(), target);
  2282. }
  2283. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.algMsg)
  2284. return target;
  2285. }
  2286. size_t algMsg::ByteSizeLong() const {
  2287. // @@protoc_insertion_point(message_byte_size_start:globalmsg.algMsg)
  2288. size_t total_size = 0;
  2289. if (_internal_metadata_.have_unknown_fields()) {
  2290. total_size +=
  2291. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2292. _internal_metadata_.unknown_fields());
  2293. }
  2294. // repeated .globalmsg.resultInfo result = 1;
  2295. {
  2296. unsigned int count = static_cast<unsigned int>(this->result_size());
  2297. total_size += 1UL * count;
  2298. for (unsigned int i = 0; i < count; i++) {
  2299. total_size +=
  2300. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2301. this->result(static_cast<int>(i)));
  2302. }
  2303. }
  2304. if (_has_bits_[0 / 32] & 3u) {
  2305. // optional string log_path = 3 [default = ""];
  2306. if (has_log_path()) {
  2307. total_size += 1 +
  2308. ::google::protobuf::internal::WireFormatLite::StringSize(
  2309. this->log_path());
  2310. }
  2311. // optional int32 thread_queue_size = 2;
  2312. if (has_thread_queue_size()) {
  2313. total_size += 1 +
  2314. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2315. this->thread_queue_size());
  2316. }
  2317. }
  2318. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2319. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2320. _cached_size_ = cached_size;
  2321. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2322. return total_size;
  2323. }
  2324. void algMsg::MergeFrom(const ::google::protobuf::Message& from) {
  2325. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.algMsg)
  2326. GOOGLE_DCHECK_NE(&from, this);
  2327. const algMsg* source =
  2328. ::google::protobuf::internal::DynamicCastToGenerated<const algMsg>(
  2329. &from);
  2330. if (source == NULL) {
  2331. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.algMsg)
  2332. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2333. } else {
  2334. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.algMsg)
  2335. MergeFrom(*source);
  2336. }
  2337. }
  2338. void algMsg::MergeFrom(const algMsg& from) {
  2339. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.algMsg)
  2340. GOOGLE_DCHECK_NE(&from, this);
  2341. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2342. ::google::protobuf::uint32 cached_has_bits = 0;
  2343. (void) cached_has_bits;
  2344. result_.MergeFrom(from.result_);
  2345. cached_has_bits = from._has_bits_[0];
  2346. if (cached_has_bits & 3u) {
  2347. if (cached_has_bits & 0x00000001u) {
  2348. set_has_log_path();
  2349. log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.log_path_);
  2350. }
  2351. if (cached_has_bits & 0x00000002u) {
  2352. thread_queue_size_ = from.thread_queue_size_;
  2353. }
  2354. _has_bits_[0] |= cached_has_bits;
  2355. }
  2356. }
  2357. void algMsg::CopyFrom(const ::google::protobuf::Message& from) {
  2358. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.algMsg)
  2359. if (&from == this) return;
  2360. Clear();
  2361. MergeFrom(from);
  2362. }
  2363. void algMsg::CopyFrom(const algMsg& from) {
  2364. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.algMsg)
  2365. if (&from == this) return;
  2366. Clear();
  2367. MergeFrom(from);
  2368. }
  2369. bool algMsg::IsInitialized() const {
  2370. if (!::google::protobuf::internal::AllAreInitialized(this->result())) return false;
  2371. return true;
  2372. }
  2373. void algMsg::Swap(algMsg* other) {
  2374. if (other == this) return;
  2375. InternalSwap(other);
  2376. }
  2377. void algMsg::InternalSwap(algMsg* other) {
  2378. using std::swap;
  2379. result_.InternalSwap(&other->result_);
  2380. log_path_.Swap(&other->log_path_);
  2381. swap(thread_queue_size_, other->thread_queue_size_);
  2382. swap(_has_bits_[0], other->_has_bits_[0]);
  2383. _internal_metadata_.Swap(&other->_internal_metadata_);
  2384. swap(_cached_size_, other->_cached_size_);
  2385. }
  2386. ::google::protobuf::Metadata algMsg::GetMetadata() const {
  2387. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2388. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  2389. }
  2390. // ===================================================================
  2391. void SysMsg::InitAsDefaultInstance() {
  2392. }
  2393. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2394. const int SysMsg::kLogFieldNumber;
  2395. const int SysMsg::kLevelFieldNumber;
  2396. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2397. SysMsg::SysMsg()
  2398. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2399. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2400. ::protobuf_globalmsg_2eproto::InitDefaultsSysMsg();
  2401. }
  2402. SharedCtor();
  2403. // @@protoc_insertion_point(constructor:globalmsg.SysMsg)
  2404. }
  2405. SysMsg::SysMsg(const SysMsg& from)
  2406. : ::google::protobuf::Message(),
  2407. _internal_metadata_(NULL),
  2408. _has_bits_(from._has_bits_),
  2409. _cached_size_(0) {
  2410. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2411. log_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2412. if (from.has_log()) {
  2413. log_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.log_);
  2414. }
  2415. level_ = from.level_;
  2416. // @@protoc_insertion_point(copy_constructor:globalmsg.SysMsg)
  2417. }
  2418. void SysMsg::SharedCtor() {
  2419. _cached_size_ = 0;
  2420. log_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2421. level_ = 0;
  2422. }
  2423. SysMsg::~SysMsg() {
  2424. // @@protoc_insertion_point(destructor:globalmsg.SysMsg)
  2425. SharedDtor();
  2426. }
  2427. void SysMsg::SharedDtor() {
  2428. log_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2429. }
  2430. void SysMsg::SetCachedSize(int size) const {
  2431. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2432. _cached_size_ = size;
  2433. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2434. }
  2435. const ::google::protobuf::Descriptor* SysMsg::descriptor() {
  2436. ::protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2437. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2438. }
  2439. const SysMsg& SysMsg::default_instance() {
  2440. ::protobuf_globalmsg_2eproto::InitDefaultsSysMsg();
  2441. return *internal_default_instance();
  2442. }
  2443. SysMsg* SysMsg::New(::google::protobuf::Arena* arena) const {
  2444. SysMsg* n = new SysMsg;
  2445. if (arena != NULL) {
  2446. arena->Own(n);
  2447. }
  2448. return n;
  2449. }
  2450. void SysMsg::Clear() {
  2451. // @@protoc_insertion_point(message_clear_start:globalmsg.SysMsg)
  2452. ::google::protobuf::uint32 cached_has_bits = 0;
  2453. // Prevent compiler warnings about cached_has_bits being unused
  2454. (void) cached_has_bits;
  2455. cached_has_bits = _has_bits_[0];
  2456. if (cached_has_bits & 0x00000001u) {
  2457. GOOGLE_DCHECK(!log_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2458. (*log_.UnsafeRawStringPointer())->clear();
  2459. }
  2460. level_ = 0;
  2461. _has_bits_.Clear();
  2462. _internal_metadata_.Clear();
  2463. }
  2464. bool SysMsg::MergePartialFromCodedStream(
  2465. ::google::protobuf::io::CodedInputStream* input) {
  2466. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2467. ::google::protobuf::uint32 tag;
  2468. // @@protoc_insertion_point(parse_start:globalmsg.SysMsg)
  2469. for (;;) {
  2470. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2471. tag = p.first;
  2472. if (!p.second) goto handle_unusual;
  2473. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2474. // required string log = 1 [default = ""];
  2475. case 1: {
  2476. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2477. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2478. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2479. input, this->mutable_log()));
  2480. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2481. this->log().data(), static_cast<int>(this->log().length()),
  2482. ::google::protobuf::internal::WireFormat::PARSE,
  2483. "globalmsg.SysMsg.log");
  2484. } else {
  2485. goto handle_unusual;
  2486. }
  2487. break;
  2488. }
  2489. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2490. case 2: {
  2491. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2492. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2493. int value;
  2494. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2495. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2496. input, &value)));
  2497. if (::globalmsg::logLevel_IsValid(value)) {
  2498. set_level(static_cast< ::globalmsg::logLevel >(value));
  2499. } else {
  2500. mutable_unknown_fields()->AddVarint(
  2501. 2, static_cast< ::google::protobuf::uint64>(value));
  2502. }
  2503. } else {
  2504. goto handle_unusual;
  2505. }
  2506. break;
  2507. }
  2508. default: {
  2509. handle_unusual:
  2510. if (tag == 0) {
  2511. goto success;
  2512. }
  2513. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2514. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2515. break;
  2516. }
  2517. }
  2518. }
  2519. success:
  2520. // @@protoc_insertion_point(parse_success:globalmsg.SysMsg)
  2521. return true;
  2522. failure:
  2523. // @@protoc_insertion_point(parse_failure:globalmsg.SysMsg)
  2524. return false;
  2525. #undef DO_
  2526. }
  2527. void SysMsg::SerializeWithCachedSizes(
  2528. ::google::protobuf::io::CodedOutputStream* output) const {
  2529. // @@protoc_insertion_point(serialize_start:globalmsg.SysMsg)
  2530. ::google::protobuf::uint32 cached_has_bits = 0;
  2531. (void) cached_has_bits;
  2532. cached_has_bits = _has_bits_[0];
  2533. // required string log = 1 [default = ""];
  2534. if (cached_has_bits & 0x00000001u) {
  2535. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2536. this->log().data(), static_cast<int>(this->log().length()),
  2537. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2538. "globalmsg.SysMsg.log");
  2539. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2540. 1, this->log(), output);
  2541. }
  2542. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2543. if (cached_has_bits & 0x00000002u) {
  2544. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2545. 2, this->level(), output);
  2546. }
  2547. if (_internal_metadata_.have_unknown_fields()) {
  2548. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2549. _internal_metadata_.unknown_fields(), output);
  2550. }
  2551. // @@protoc_insertion_point(serialize_end:globalmsg.SysMsg)
  2552. }
  2553. ::google::protobuf::uint8* SysMsg::InternalSerializeWithCachedSizesToArray(
  2554. bool deterministic, ::google::protobuf::uint8* target) const {
  2555. (void)deterministic; // Unused
  2556. // @@protoc_insertion_point(serialize_to_array_start:globalmsg.SysMsg)
  2557. ::google::protobuf::uint32 cached_has_bits = 0;
  2558. (void) cached_has_bits;
  2559. cached_has_bits = _has_bits_[0];
  2560. // required string log = 1 [default = ""];
  2561. if (cached_has_bits & 0x00000001u) {
  2562. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2563. this->log().data(), static_cast<int>(this->log().length()),
  2564. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2565. "globalmsg.SysMsg.log");
  2566. target =
  2567. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2568. 1, this->log(), target);
  2569. }
  2570. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2571. if (cached_has_bits & 0x00000002u) {
  2572. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2573. 2, this->level(), target);
  2574. }
  2575. if (_internal_metadata_.have_unknown_fields()) {
  2576. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2577. _internal_metadata_.unknown_fields(), target);
  2578. }
  2579. // @@protoc_insertion_point(serialize_to_array_end:globalmsg.SysMsg)
  2580. return target;
  2581. }
  2582. size_t SysMsg::ByteSizeLong() const {
  2583. // @@protoc_insertion_point(message_byte_size_start:globalmsg.SysMsg)
  2584. size_t total_size = 0;
  2585. if (_internal_metadata_.have_unknown_fields()) {
  2586. total_size +=
  2587. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2588. _internal_metadata_.unknown_fields());
  2589. }
  2590. // required string log = 1 [default = ""];
  2591. if (has_log()) {
  2592. total_size += 1 +
  2593. ::google::protobuf::internal::WireFormatLite::StringSize(
  2594. this->log());
  2595. }
  2596. // optional .globalmsg.logLevel level = 2 [default = eSysInfo];
  2597. if (has_level()) {
  2598. total_size += 1 +
  2599. ::google::protobuf::internal::WireFormatLite::EnumSize(this->level());
  2600. }
  2601. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2602. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2603. _cached_size_ = cached_size;
  2604. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2605. return total_size;
  2606. }
  2607. void SysMsg::MergeFrom(const ::google::protobuf::Message& from) {
  2608. // @@protoc_insertion_point(generalized_merge_from_start:globalmsg.SysMsg)
  2609. GOOGLE_DCHECK_NE(&from, this);
  2610. const SysMsg* source =
  2611. ::google::protobuf::internal::DynamicCastToGenerated<const SysMsg>(
  2612. &from);
  2613. if (source == NULL) {
  2614. // @@protoc_insertion_point(generalized_merge_from_cast_fail:globalmsg.SysMsg)
  2615. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2616. } else {
  2617. // @@protoc_insertion_point(generalized_merge_from_cast_success:globalmsg.SysMsg)
  2618. MergeFrom(*source);
  2619. }
  2620. }
  2621. void SysMsg::MergeFrom(const SysMsg& from) {
  2622. // @@protoc_insertion_point(class_specific_merge_from_start:globalmsg.SysMsg)
  2623. GOOGLE_DCHECK_NE(&from, this);
  2624. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2625. ::google::protobuf::uint32 cached_has_bits = 0;
  2626. (void) cached_has_bits;
  2627. cached_has_bits = from._has_bits_[0];
  2628. if (cached_has_bits & 3u) {
  2629. if (cached_has_bits & 0x00000001u) {
  2630. set_has_log();
  2631. log_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.log_);
  2632. }
  2633. if (cached_has_bits & 0x00000002u) {
  2634. level_ = from.level_;
  2635. }
  2636. _has_bits_[0] |= cached_has_bits;
  2637. }
  2638. }
  2639. void SysMsg::CopyFrom(const ::google::protobuf::Message& from) {
  2640. // @@protoc_insertion_point(generalized_copy_from_start:globalmsg.SysMsg)
  2641. if (&from == this) return;
  2642. Clear();
  2643. MergeFrom(from);
  2644. }
  2645. void SysMsg::CopyFrom(const SysMsg& from) {
  2646. // @@protoc_insertion_point(class_specific_copy_from_start:globalmsg.SysMsg)
  2647. if (&from == this) return;
  2648. Clear();
  2649. MergeFrom(from);
  2650. }
  2651. bool SysMsg::IsInitialized() const {
  2652. if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  2653. return true;
  2654. }
  2655. void SysMsg::Swap(SysMsg* other) {
  2656. if (other == this) return;
  2657. InternalSwap(other);
  2658. }
  2659. void SysMsg::InternalSwap(SysMsg* other) {
  2660. using std::swap;
  2661. log_.Swap(&other->log_);
  2662. swap(level_, other->level_);
  2663. swap(_has_bits_[0], other->_has_bits_[0]);
  2664. _internal_metadata_.Swap(&other->_internal_metadata_);
  2665. swap(_cached_size_, other->_cached_size_);
  2666. }
  2667. ::google::protobuf::Metadata SysMsg::GetMetadata() const {
  2668. protobuf_globalmsg_2eproto::protobuf_AssignDescriptorsOnce();
  2669. return ::protobuf_globalmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  2670. }
  2671. // @@protoc_insertion_point(namespace_scope)
  2672. } // namespace globalmsg
  2673. // @@protoc_insertion_point(global_scope)