globalmsg.pb.cc 100 KB

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