parameter.pb.cc 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: parameter.proto
  3. #include "parameter.pb.h"
  4. #include <algorithm>
  5. #include "google/protobuf/io/coded_stream.h"
  6. #include "google/protobuf/extension_set.h"
  7. #include "google/protobuf/wire_format_lite.h"
  8. #include "google/protobuf/descriptor.h"
  9. #include "google/protobuf/generated_message_reflection.h"
  10. #include "google/protobuf/reflection_ops.h"
  11. #include "google/protobuf/wire_format.h"
  12. // @@protoc_insertion_point(includes)
  13. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace NavParameter {
  19. template <typename>
  20. PROTOBUF_CONSTEXPR AgvEmqx_parameter::AgvEmqx_parameter(
  21. ::_pbi::ConstantInitialized): _impl_{
  22. /*decltype(_impl_.nodeid_)*/ {
  23. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  24. }
  25. , /*decltype(_impl_.ip_)*/ {
  26. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  27. }
  28. , /*decltype(_impl_.pubspeedtopic_)*/ {
  29. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  30. }
  31. , /*decltype(_impl_.subposetopic_)*/ {
  32. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  33. }
  34. , /*decltype(_impl_.subspeedtopic_)*/ {
  35. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  36. }
  37. , /*decltype(_impl_.port_)*/ 0
  38. , /*decltype(_impl_._cached_size_)*/{}} {}
  39. struct AgvEmqx_parameterDefaultTypeInternal {
  40. PROTOBUF_CONSTEXPR AgvEmqx_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  41. ~AgvEmqx_parameterDefaultTypeInternal() {}
  42. union {
  43. AgvEmqx_parameter _instance;
  44. };
  45. };
  46. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  47. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvEmqx_parameterDefaultTypeInternal _AgvEmqx_parameter_default_instance_;
  48. template <typename>
  49. PROTOBUF_CONSTEXPR Emqx_parameter::Emqx_parameter(
  50. ::_pbi::ConstantInitialized): _impl_{
  51. /*decltype(_impl_.nodeid_)*/ {
  52. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  53. }
  54. , /*decltype(_impl_.ip_)*/ {
  55. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  56. }
  57. , /*decltype(_impl_.pubstatutopic_)*/ {
  58. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  59. }
  60. , /*decltype(_impl_.pubnavstatutopic_)*/ {
  61. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  62. }
  63. , /*decltype(_impl_.port_)*/ 0
  64. , /*decltype(_impl_._cached_size_)*/{}} {}
  65. struct Emqx_parameterDefaultTypeInternal {
  66. PROTOBUF_CONSTEXPR Emqx_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  67. ~Emqx_parameterDefaultTypeInternal() {}
  68. union {
  69. Emqx_parameter _instance;
  70. };
  71. };
  72. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  73. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Emqx_parameterDefaultTypeInternal _Emqx_parameter_default_instance_;
  74. template <typename>
  75. PROTOBUF_CONSTEXPR BrotherEmqx::BrotherEmqx(
  76. ::_pbi::ConstantInitialized): _impl_{
  77. /*decltype(_impl_.nodeid_)*/ {
  78. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  79. }
  80. , /*decltype(_impl_.ip_)*/ {
  81. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  82. }
  83. , /*decltype(_impl_.subbrotherstatutopic_)*/ {
  84. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  85. }
  86. , /*decltype(_impl_.port_)*/ 0
  87. , /*decltype(_impl_._cached_size_)*/{}} {}
  88. struct BrotherEmqxDefaultTypeInternal {
  89. PROTOBUF_CONSTEXPR BrotherEmqxDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  90. ~BrotherEmqxDefaultTypeInternal() {}
  91. union {
  92. BrotherEmqx _instance;
  93. };
  94. };
  95. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  96. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BrotherEmqxDefaultTypeInternal _BrotherEmqx_default_instance_;
  97. template <typename>
  98. PROTOBUF_CONSTEXPR MPC_parameter::MPC_parameter(
  99. ::_pbi::ConstantInitialized): _impl_{
  100. /*decltype(_impl_.shortest_radius_)*/ 0
  101. , /*decltype(_impl_.dt_)*/ 0
  102. , /*decltype(_impl_.acc_velocity_)*/ 0
  103. , /*decltype(_impl_.acc_angular_)*/ 0
  104. , /*decltype(_impl_._cached_size_)*/{}} {}
  105. struct MPC_parameterDefaultTypeInternal {
  106. PROTOBUF_CONSTEXPR MPC_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  107. ~MPC_parameterDefaultTypeInternal() {}
  108. union {
  109. MPC_parameter _instance;
  110. };
  111. };
  112. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  113. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPC_parameterDefaultTypeInternal _MPC_parameter_default_instance_;
  114. template <typename>
  115. PROTOBUF_CONSTEXPR SpeedLimit::SpeedLimit(
  116. ::_pbi::ConstantInitialized): _impl_{
  117. /*decltype(_impl_.min_)*/ 0
  118. , /*decltype(_impl_.max_)*/ 0
  119. , /*decltype(_impl_._cached_size_)*/{}} {}
  120. struct SpeedLimitDefaultTypeInternal {
  121. PROTOBUF_CONSTEXPR SpeedLimitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  122. ~SpeedLimitDefaultTypeInternal() {}
  123. union {
  124. SpeedLimit _instance;
  125. };
  126. };
  127. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  128. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpeedLimitDefaultTypeInternal _SpeedLimit_default_instance_;
  129. template <typename>
  130. PROTOBUF_CONSTEXPR Accuracy::Accuracy(
  131. ::_pbi::ConstantInitialized): _impl_{
  132. /*decltype(_impl_.l_)*/ 0
  133. , /*decltype(_impl_.w_)*/ 0
  134. , /*decltype(_impl_._cached_size_)*/{}} {}
  135. struct AccuracyDefaultTypeInternal {
  136. PROTOBUF_CONSTEXPR AccuracyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  137. ~AccuracyDefaultTypeInternal() {}
  138. union {
  139. Accuracy _instance;
  140. };
  141. };
  142. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  143. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AccuracyDefaultTypeInternal _Accuracy_default_instance_;
  144. template <typename>
  145. PROTOBUF_CONSTEXPR Navigation_parameter::Navigation_parameter(
  146. ::_pbi::ConstantInitialized): _impl_{
  147. /*decltype(_impl_._has_bits_)*/{}
  148. , /*decltype(_impl_._cached_size_)*/{}
  149. , /*decltype(_impl_.rpc_ipport_)*/ {
  150. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  151. }
  152. , /*decltype(_impl_.agv_emqx_)*/nullptr
  153. , /*decltype(_impl_.terminal_emqx_)*/nullptr
  154. , /*decltype(_impl_.brother_emqx_)*/nullptr
  155. , /*decltype(_impl_.x_mpc_parameter_)*/nullptr
  156. , /*decltype(_impl_.y_mpc_parameter_)*/nullptr
  157. , /*decltype(_impl_.inoutvlimit_)*/nullptr
  158. , /*decltype(_impl_.nodevelocitylimit_)*/nullptr
  159. , /*decltype(_impl_.nodeangularlimit_)*/nullptr
  160. , /*decltype(_impl_.main_agv_)*/ false
  161. } {}
  162. struct Navigation_parameterDefaultTypeInternal {
  163. PROTOBUF_CONSTEXPR Navigation_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  164. ~Navigation_parameterDefaultTypeInternal() {}
  165. union {
  166. Navigation_parameter _instance;
  167. };
  168. };
  169. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  170. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Navigation_parameterDefaultTypeInternal _Navigation_parameter_default_instance_;
  171. } // namespace NavParameter
  172. static ::_pb::Metadata file_level_metadata_parameter_2eproto[7];
  173. static constexpr const ::_pb::EnumDescriptor**
  174. file_level_enum_descriptors_parameter_2eproto = nullptr;
  175. static constexpr const ::_pb::ServiceDescriptor**
  176. file_level_service_descriptors_parameter_2eproto = nullptr;
  177. const ::uint32_t TableStruct_parameter_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  178. protodesc_cold) = {
  179. ~0u, // no _has_bits_
  180. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _internal_metadata_),
  181. ~0u, // no _extensions_
  182. ~0u, // no _oneof_case_
  183. ~0u, // no _weak_field_map_
  184. ~0u, // no _inlined_string_donated_
  185. ~0u, // no _split_
  186. ~0u, // no sizeof(Split)
  187. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.nodeid_),
  188. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.ip_),
  189. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.port_),
  190. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.pubspeedtopic_),
  191. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.subposetopic_),
  192. PROTOBUF_FIELD_OFFSET(::NavParameter::AgvEmqx_parameter, _impl_.subspeedtopic_),
  193. ~0u, // no _has_bits_
  194. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _internal_metadata_),
  195. ~0u, // no _extensions_
  196. ~0u, // no _oneof_case_
  197. ~0u, // no _weak_field_map_
  198. ~0u, // no _inlined_string_donated_
  199. ~0u, // no _split_
  200. ~0u, // no sizeof(Split)
  201. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.nodeid_),
  202. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.ip_),
  203. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.port_),
  204. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.pubstatutopic_),
  205. PROTOBUF_FIELD_OFFSET(::NavParameter::Emqx_parameter, _impl_.pubnavstatutopic_),
  206. ~0u, // no _has_bits_
  207. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _internal_metadata_),
  208. ~0u, // no _extensions_
  209. ~0u, // no _oneof_case_
  210. ~0u, // no _weak_field_map_
  211. ~0u, // no _inlined_string_donated_
  212. ~0u, // no _split_
  213. ~0u, // no sizeof(Split)
  214. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.nodeid_),
  215. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.ip_),
  216. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.port_),
  217. PROTOBUF_FIELD_OFFSET(::NavParameter::BrotherEmqx, _impl_.subbrotherstatutopic_),
  218. ~0u, // no _has_bits_
  219. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _internal_metadata_),
  220. ~0u, // no _extensions_
  221. ~0u, // no _oneof_case_
  222. ~0u, // no _weak_field_map_
  223. ~0u, // no _inlined_string_donated_
  224. ~0u, // no _split_
  225. ~0u, // no sizeof(Split)
  226. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.shortest_radius_),
  227. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.dt_),
  228. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.acc_velocity_),
  229. PROTOBUF_FIELD_OFFSET(::NavParameter::MPC_parameter, _impl_.acc_angular_),
  230. ~0u, // no _has_bits_
  231. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _internal_metadata_),
  232. ~0u, // no _extensions_
  233. ~0u, // no _oneof_case_
  234. ~0u, // no _weak_field_map_
  235. ~0u, // no _inlined_string_donated_
  236. ~0u, // no _split_
  237. ~0u, // no sizeof(Split)
  238. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _impl_.min_),
  239. PROTOBUF_FIELD_OFFSET(::NavParameter::SpeedLimit, _impl_.max_),
  240. ~0u, // no _has_bits_
  241. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _internal_metadata_),
  242. ~0u, // no _extensions_
  243. ~0u, // no _oneof_case_
  244. ~0u, // no _weak_field_map_
  245. ~0u, // no _inlined_string_donated_
  246. ~0u, // no _split_
  247. ~0u, // no sizeof(Split)
  248. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.l_),
  249. PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.w_),
  250. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_._has_bits_),
  251. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _internal_metadata_),
  252. ~0u, // no _extensions_
  253. ~0u, // no _oneof_case_
  254. ~0u, // no _weak_field_map_
  255. ~0u, // no _inlined_string_donated_
  256. ~0u, // no _split_
  257. ~0u, // no sizeof(Split)
  258. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.main_agv_),
  259. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.agv_emqx_),
  260. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.terminal_emqx_),
  261. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.brother_emqx_),
  262. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.x_mpc_parameter_),
  263. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.y_mpc_parameter_),
  264. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.inoutvlimit_),
  265. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodevelocitylimit_),
  266. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodeangularlimit_),
  267. PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.rpc_ipport_),
  268. ~0u,
  269. 0,
  270. 1,
  271. 2,
  272. 3,
  273. 4,
  274. 5,
  275. 6,
  276. 7,
  277. ~0u,
  278. };
  279. static const ::_pbi::MigrationSchema
  280. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  281. { 0, -1, -1, sizeof(::NavParameter::AgvEmqx_parameter)},
  282. { 14, -1, -1, sizeof(::NavParameter::Emqx_parameter)},
  283. { 27, -1, -1, sizeof(::NavParameter::BrotherEmqx)},
  284. { 39, -1, -1, sizeof(::NavParameter::MPC_parameter)},
  285. { 51, -1, -1, sizeof(::NavParameter::SpeedLimit)},
  286. { 61, -1, -1, sizeof(::NavParameter::Accuracy)},
  287. { 71, 89, -1, sizeof(::NavParameter::Navigation_parameter)},
  288. };
  289. static const ::_pb::Message* const file_default_instances[] = {
  290. &::NavParameter::_AgvEmqx_parameter_default_instance_._instance,
  291. &::NavParameter::_Emqx_parameter_default_instance_._instance,
  292. &::NavParameter::_BrotherEmqx_default_instance_._instance,
  293. &::NavParameter::_MPC_parameter_default_instance_._instance,
  294. &::NavParameter::_SpeedLimit_default_instance_._instance,
  295. &::NavParameter::_Accuracy_default_instance_._instance,
  296. &::NavParameter::_Navigation_parameter_default_instance_._instance,
  297. };
  298. const char descriptor_table_protodef_parameter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  299. "\n\017parameter.proto\022\014NavParameter\"\201\001\n\021AgvE"
  300. "mqx_parameter\022\016\n\006NodeId\030\001 \001(\t\022\n\n\002ip\030\002 \001("
  301. "\t\022\014\n\004port\030\003 \001(\005\022\025\n\rpubSpeedTopic\030\004 \001(\t\022\024"
  302. "\n\014subPoseTopic\030\005 \001(\t\022\025\n\rsubSpeedTopic\030\006 "
  303. "\001(\t\"k\n\016Emqx_parameter\022\016\n\006NodeId\030\001 \001(\t\022\n\n"
  304. "\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\025\n\rpubStatuTopic"
  305. "\030\004 \001(\t\022\030\n\020pubNavStatuTopic\030\005 \001(\t\"U\n\013Brot"
  306. "herEmqx\022\016\n\006NodeId\030\001 \001(\t\022\n\n\002ip\030\002 \001(\t\022\014\n\004p"
  307. "ort\030\003 \001(\005\022\034\n\024subBrotherStatuTopic\030\004 \001(\t\""
  308. "_\n\rMPC_parameter\022\027\n\017shortest_radius\030\001 \001("
  309. "\002\022\n\n\002dt\030\002 \001(\002\022\024\n\014acc_velocity\030\003 \001(\002\022\023\n\013a"
  310. "cc_angular\030\004 \001(\002\"&\n\nSpeedLimit\022\013\n\003min\030\001 "
  311. "\001(\002\022\013\n\003max\030\002 \001(\002\" \n\010Accuracy\022\t\n\001l\030\001 \001(\002\022"
  312. "\t\n\001w\030\002 \001(\002\"\331\003\n\024Navigation_parameter\022\020\n\010m"
  313. "ain_agv\030\001 \001(\010\0221\n\010Agv_emqx\030\002 \001(\0132\037.NavPar"
  314. "ameter.AgvEmqx_parameter\0223\n\rTerminal_emq"
  315. "x\030\003 \001(\0132\034.NavParameter.Emqx_parameter\022/\n"
  316. "\014brother_emqx\030\004 \001(\0132\031.NavParameter.Broth"
  317. "erEmqx\0224\n\017x_mpc_parameter\030\005 \001(\0132\033.NavPar"
  318. "ameter.MPC_parameter\0224\n\017y_mpc_parameter\030"
  319. "\006 \001(\0132\033.NavParameter.MPC_parameter\022-\n\013In"
  320. "OutVLimit\030\007 \001(\0132\030.NavParameter.SpeedLimi"
  321. "t\0223\n\021NodeVelocityLimit\030\010 \001(\0132\030.NavParame"
  322. "ter.SpeedLimit\0222\n\020NodeAngularLimit\030\t \001(\013"
  323. "2\030.NavParameter.SpeedLimit\022\022\n\nrpc_ipport"
  324. "\030\n \001(\tb\006proto3"
  325. };
  326. static ::absl::once_flag descriptor_table_parameter_2eproto_once;
  327. const ::_pbi::DescriptorTable descriptor_table_parameter_2eproto = {
  328. false,
  329. false,
  330. 1014,
  331. descriptor_table_protodef_parameter_2eproto,
  332. "parameter.proto",
  333. &descriptor_table_parameter_2eproto_once,
  334. nullptr,
  335. 0,
  336. 7,
  337. schemas,
  338. file_default_instances,
  339. TableStruct_parameter_2eproto::offsets,
  340. file_level_metadata_parameter_2eproto,
  341. file_level_enum_descriptors_parameter_2eproto,
  342. file_level_service_descriptors_parameter_2eproto,
  343. };
  344. // This function exists to be marked as weak.
  345. // It can significantly speed up compilation by breaking up LLVM's SCC
  346. // in the .pb.cc translation units. Large translation units see a
  347. // reduction of more than 35% of walltime for optimized builds. Without
  348. // the weak attribute all the messages in the file, including all the
  349. // vtables and everything they use become part of the same SCC through
  350. // a cycle like:
  351. // GetMetadata -> descriptor table -> default instances ->
  352. // vtables -> GetMetadata
  353. // By adding a weak function here we break the connection from the
  354. // individual vtables back into the descriptor table.
  355. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_parameter_2eproto_getter() {
  356. return &descriptor_table_parameter_2eproto;
  357. }
  358. // Force running AddDescriptors() at dynamic initialization time.
  359. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  360. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_parameter_2eproto(&descriptor_table_parameter_2eproto);
  361. namespace NavParameter {
  362. // ===================================================================
  363. class AgvEmqx_parameter::_Internal {
  364. public:
  365. };
  366. AgvEmqx_parameter::AgvEmqx_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  367. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  368. SharedCtor(arena);
  369. // @@protoc_insertion_point(arena_constructor:NavParameter.AgvEmqx_parameter)
  370. }
  371. AgvEmqx_parameter::AgvEmqx_parameter(const AgvEmqx_parameter& from)
  372. : ::PROTOBUF_NAMESPACE_ID::Message() {
  373. AgvEmqx_parameter* const _this = this; (void)_this;
  374. new (&_impl_) Impl_{
  375. decltype(_impl_.nodeid_) {}
  376. , decltype(_impl_.ip_) {}
  377. , decltype(_impl_.pubspeedtopic_) {}
  378. , decltype(_impl_.subposetopic_) {}
  379. , decltype(_impl_.subspeedtopic_) {}
  380. , decltype(_impl_.port_) {}
  381. , /*decltype(_impl_._cached_size_)*/{}};
  382. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  383. _impl_.nodeid_.InitDefault();
  384. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  385. _impl_.nodeid_.Set("", GetArenaForAllocation());
  386. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  387. if (!from._internal_nodeid().empty()) {
  388. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  389. }
  390. _impl_.ip_.InitDefault();
  391. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  392. _impl_.ip_.Set("", GetArenaForAllocation());
  393. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  394. if (!from._internal_ip().empty()) {
  395. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  396. }
  397. _impl_.pubspeedtopic_.InitDefault();
  398. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  399. _impl_.pubspeedtopic_.Set("", GetArenaForAllocation());
  400. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  401. if (!from._internal_pubspeedtopic().empty()) {
  402. _this->_impl_.pubspeedtopic_.Set(from._internal_pubspeedtopic(), _this->GetArenaForAllocation());
  403. }
  404. _impl_.subposetopic_.InitDefault();
  405. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  406. _impl_.subposetopic_.Set("", GetArenaForAllocation());
  407. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  408. if (!from._internal_subposetopic().empty()) {
  409. _this->_impl_.subposetopic_.Set(from._internal_subposetopic(), _this->GetArenaForAllocation());
  410. }
  411. _impl_.subspeedtopic_.InitDefault();
  412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  413. _impl_.subspeedtopic_.Set("", GetArenaForAllocation());
  414. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  415. if (!from._internal_subspeedtopic().empty()) {
  416. _this->_impl_.subspeedtopic_.Set(from._internal_subspeedtopic(), _this->GetArenaForAllocation());
  417. }
  418. _this->_impl_.port_ = from._impl_.port_;
  419. // @@protoc_insertion_point(copy_constructor:NavParameter.AgvEmqx_parameter)
  420. }
  421. inline void AgvEmqx_parameter::SharedCtor(::_pb::Arena* arena) {
  422. (void)arena;
  423. new (&_impl_) Impl_{
  424. decltype(_impl_.nodeid_) {}
  425. , decltype(_impl_.ip_) {}
  426. , decltype(_impl_.pubspeedtopic_) {}
  427. , decltype(_impl_.subposetopic_) {}
  428. , decltype(_impl_.subspeedtopic_) {}
  429. , decltype(_impl_.port_) { 0 }
  430. , /*decltype(_impl_._cached_size_)*/{}
  431. };
  432. _impl_.nodeid_.InitDefault();
  433. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  434. _impl_.nodeid_.Set("", GetArenaForAllocation());
  435. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  436. _impl_.ip_.InitDefault();
  437. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  438. _impl_.ip_.Set("", GetArenaForAllocation());
  439. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  440. _impl_.pubspeedtopic_.InitDefault();
  441. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  442. _impl_.pubspeedtopic_.Set("", GetArenaForAllocation());
  443. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  444. _impl_.subposetopic_.InitDefault();
  445. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  446. _impl_.subposetopic_.Set("", GetArenaForAllocation());
  447. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  448. _impl_.subspeedtopic_.InitDefault();
  449. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  450. _impl_.subspeedtopic_.Set("", GetArenaForAllocation());
  451. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  452. }
  453. AgvEmqx_parameter::~AgvEmqx_parameter() {
  454. // @@protoc_insertion_point(destructor:NavParameter.AgvEmqx_parameter)
  455. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  456. (void)arena;
  457. return;
  458. }
  459. SharedDtor();
  460. }
  461. inline void AgvEmqx_parameter::SharedDtor() {
  462. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  463. _impl_.nodeid_.Destroy();
  464. _impl_.ip_.Destroy();
  465. _impl_.pubspeedtopic_.Destroy();
  466. _impl_.subposetopic_.Destroy();
  467. _impl_.subspeedtopic_.Destroy();
  468. }
  469. void AgvEmqx_parameter::SetCachedSize(int size) const {
  470. _impl_._cached_size_.Set(size);
  471. }
  472. void AgvEmqx_parameter::Clear() {
  473. // @@protoc_insertion_point(message_clear_start:NavParameter.AgvEmqx_parameter)
  474. ::uint32_t cached_has_bits = 0;
  475. // Prevent compiler warnings about cached_has_bits being unused
  476. (void) cached_has_bits;
  477. _impl_.nodeid_.ClearToEmpty();
  478. _impl_.ip_.ClearToEmpty();
  479. _impl_.pubspeedtopic_.ClearToEmpty();
  480. _impl_.subposetopic_.ClearToEmpty();
  481. _impl_.subspeedtopic_.ClearToEmpty();
  482. _impl_.port_ = 0;
  483. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  484. }
  485. const char* AgvEmqx_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  486. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  487. while (!ctx->Done(&ptr)) {
  488. ::uint32_t tag;
  489. ptr = ::_pbi::ReadTag(ptr, &tag);
  490. switch (tag >> 3) {
  491. // string NodeId = 1;
  492. case 1:
  493. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  494. auto str = _internal_mutable_nodeid();
  495. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  496. CHK_(ptr);
  497. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.NodeId"));
  498. } else {
  499. goto handle_unusual;
  500. }
  501. continue;
  502. // string ip = 2;
  503. case 2:
  504. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  505. auto str = _internal_mutable_ip();
  506. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  507. CHK_(ptr);
  508. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.ip"));
  509. } else {
  510. goto handle_unusual;
  511. }
  512. continue;
  513. // int32 port = 3;
  514. case 3:
  515. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  516. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  517. CHK_(ptr);
  518. } else {
  519. goto handle_unusual;
  520. }
  521. continue;
  522. // string pubSpeedTopic = 4;
  523. case 4:
  524. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  525. auto str = _internal_mutable_pubspeedtopic();
  526. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  527. CHK_(ptr);
  528. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.pubSpeedTopic"));
  529. } else {
  530. goto handle_unusual;
  531. }
  532. continue;
  533. // string subPoseTopic = 5;
  534. case 5:
  535. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  536. auto str = _internal_mutable_subposetopic();
  537. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  538. CHK_(ptr);
  539. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.subPoseTopic"));
  540. } else {
  541. goto handle_unusual;
  542. }
  543. continue;
  544. // string subSpeedTopic = 6;
  545. case 6:
  546. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  547. auto str = _internal_mutable_subspeedtopic();
  548. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  549. CHK_(ptr);
  550. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.AgvEmqx_parameter.subSpeedTopic"));
  551. } else {
  552. goto handle_unusual;
  553. }
  554. continue;
  555. default:
  556. goto handle_unusual;
  557. } // switch
  558. handle_unusual:
  559. if ((tag == 0) || ((tag & 7) == 4)) {
  560. CHK_(ptr);
  561. ctx->SetLastTag(tag);
  562. goto message_done;
  563. }
  564. ptr = UnknownFieldParse(
  565. tag,
  566. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  567. ptr, ctx);
  568. CHK_(ptr != nullptr);
  569. } // while
  570. message_done:
  571. return ptr;
  572. failure:
  573. ptr = nullptr;
  574. goto message_done;
  575. #undef CHK_
  576. }
  577. ::uint8_t* AgvEmqx_parameter::_InternalSerialize(
  578. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  579. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.AgvEmqx_parameter)
  580. ::uint32_t cached_has_bits = 0;
  581. (void) cached_has_bits;
  582. // string NodeId = 1;
  583. if (!this->_internal_nodeid().empty()) {
  584. const std::string& _s = this->_internal_nodeid();
  585. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  586. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.NodeId");
  587. target = stream->WriteStringMaybeAliased(1, _s, target);
  588. }
  589. // string ip = 2;
  590. if (!this->_internal_ip().empty()) {
  591. const std::string& _s = this->_internal_ip();
  592. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  593. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.ip");
  594. target = stream->WriteStringMaybeAliased(2, _s, target);
  595. }
  596. // int32 port = 3;
  597. if (this->_internal_port() != 0) {
  598. target = stream->EnsureSpace(target);
  599. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  600. 3, this->_internal_port(), target);
  601. }
  602. // string pubSpeedTopic = 4;
  603. if (!this->_internal_pubspeedtopic().empty()) {
  604. const std::string& _s = this->_internal_pubspeedtopic();
  605. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  606. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.pubSpeedTopic");
  607. target = stream->WriteStringMaybeAliased(4, _s, target);
  608. }
  609. // string subPoseTopic = 5;
  610. if (!this->_internal_subposetopic().empty()) {
  611. const std::string& _s = this->_internal_subposetopic();
  612. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  613. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.subPoseTopic");
  614. target = stream->WriteStringMaybeAliased(5, _s, target);
  615. }
  616. // string subSpeedTopic = 6;
  617. if (!this->_internal_subspeedtopic().empty()) {
  618. const std::string& _s = this->_internal_subspeedtopic();
  619. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  620. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.AgvEmqx_parameter.subSpeedTopic");
  621. target = stream->WriteStringMaybeAliased(6, _s, target);
  622. }
  623. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  624. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  625. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  626. }
  627. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.AgvEmqx_parameter)
  628. return target;
  629. }
  630. ::size_t AgvEmqx_parameter::ByteSizeLong() const {
  631. // @@protoc_insertion_point(message_byte_size_start:NavParameter.AgvEmqx_parameter)
  632. ::size_t total_size = 0;
  633. ::uint32_t cached_has_bits = 0;
  634. // Prevent compiler warnings about cached_has_bits being unused
  635. (void) cached_has_bits;
  636. // string NodeId = 1;
  637. if (!this->_internal_nodeid().empty()) {
  638. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  639. this->_internal_nodeid());
  640. }
  641. // string ip = 2;
  642. if (!this->_internal_ip().empty()) {
  643. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  644. this->_internal_ip());
  645. }
  646. // string pubSpeedTopic = 4;
  647. if (!this->_internal_pubspeedtopic().empty()) {
  648. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  649. this->_internal_pubspeedtopic());
  650. }
  651. // string subPoseTopic = 5;
  652. if (!this->_internal_subposetopic().empty()) {
  653. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  654. this->_internal_subposetopic());
  655. }
  656. // string subSpeedTopic = 6;
  657. if (!this->_internal_subspeedtopic().empty()) {
  658. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  659. this->_internal_subspeedtopic());
  660. }
  661. // int32 port = 3;
  662. if (this->_internal_port() != 0) {
  663. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  664. this->_internal_port());
  665. }
  666. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  667. }
  668. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvEmqx_parameter::_class_data_ = {
  669. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  670. AgvEmqx_parameter::MergeImpl
  671. };
  672. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvEmqx_parameter::GetClassData() const { return &_class_data_; }
  673. void AgvEmqx_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  674. auto* const _this = static_cast<AgvEmqx_parameter*>(&to_msg);
  675. auto& from = static_cast<const AgvEmqx_parameter&>(from_msg);
  676. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.AgvEmqx_parameter)
  677. ABSL_DCHECK_NE(&from, _this);
  678. ::uint32_t cached_has_bits = 0;
  679. (void) cached_has_bits;
  680. if (!from._internal_nodeid().empty()) {
  681. _this->_internal_set_nodeid(from._internal_nodeid());
  682. }
  683. if (!from._internal_ip().empty()) {
  684. _this->_internal_set_ip(from._internal_ip());
  685. }
  686. if (!from._internal_pubspeedtopic().empty()) {
  687. _this->_internal_set_pubspeedtopic(from._internal_pubspeedtopic());
  688. }
  689. if (!from._internal_subposetopic().empty()) {
  690. _this->_internal_set_subposetopic(from._internal_subposetopic());
  691. }
  692. if (!from._internal_subspeedtopic().empty()) {
  693. _this->_internal_set_subspeedtopic(from._internal_subspeedtopic());
  694. }
  695. if (from._internal_port() != 0) {
  696. _this->_internal_set_port(from._internal_port());
  697. }
  698. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  699. }
  700. void AgvEmqx_parameter::CopyFrom(const AgvEmqx_parameter& from) {
  701. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.AgvEmqx_parameter)
  702. if (&from == this) return;
  703. Clear();
  704. MergeFrom(from);
  705. }
  706. bool AgvEmqx_parameter::IsInitialized() const {
  707. return true;
  708. }
  709. void AgvEmqx_parameter::InternalSwap(AgvEmqx_parameter* other) {
  710. using std::swap;
  711. auto* lhs_arena = GetArenaForAllocation();
  712. auto* rhs_arena = other->GetArenaForAllocation();
  713. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  714. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  715. &other->_impl_.nodeid_, rhs_arena);
  716. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  717. &other->_impl_.ip_, rhs_arena);
  718. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubspeedtopic_, lhs_arena,
  719. &other->_impl_.pubspeedtopic_, rhs_arena);
  720. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subposetopic_, lhs_arena,
  721. &other->_impl_.subposetopic_, rhs_arena);
  722. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subspeedtopic_, lhs_arena,
  723. &other->_impl_.subspeedtopic_, rhs_arena);
  724. swap(_impl_.port_, other->_impl_.port_);
  725. }
  726. ::PROTOBUF_NAMESPACE_ID::Metadata AgvEmqx_parameter::GetMetadata() const {
  727. return ::_pbi::AssignDescriptors(
  728. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  729. file_level_metadata_parameter_2eproto[0]);
  730. }
  731. // ===================================================================
  732. class Emqx_parameter::_Internal {
  733. public:
  734. };
  735. Emqx_parameter::Emqx_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  736. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  737. SharedCtor(arena);
  738. // @@protoc_insertion_point(arena_constructor:NavParameter.Emqx_parameter)
  739. }
  740. Emqx_parameter::Emqx_parameter(const Emqx_parameter& from)
  741. : ::PROTOBUF_NAMESPACE_ID::Message() {
  742. Emqx_parameter* const _this = this; (void)_this;
  743. new (&_impl_) Impl_{
  744. decltype(_impl_.nodeid_) {}
  745. , decltype(_impl_.ip_) {}
  746. , decltype(_impl_.pubstatutopic_) {}
  747. , decltype(_impl_.pubnavstatutopic_) {}
  748. , decltype(_impl_.port_) {}
  749. , /*decltype(_impl_._cached_size_)*/{}};
  750. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  751. _impl_.nodeid_.InitDefault();
  752. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  753. _impl_.nodeid_.Set("", GetArenaForAllocation());
  754. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  755. if (!from._internal_nodeid().empty()) {
  756. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  757. }
  758. _impl_.ip_.InitDefault();
  759. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  760. _impl_.ip_.Set("", GetArenaForAllocation());
  761. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  762. if (!from._internal_ip().empty()) {
  763. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  764. }
  765. _impl_.pubstatutopic_.InitDefault();
  766. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  767. _impl_.pubstatutopic_.Set("", GetArenaForAllocation());
  768. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  769. if (!from._internal_pubstatutopic().empty()) {
  770. _this->_impl_.pubstatutopic_.Set(from._internal_pubstatutopic(), _this->GetArenaForAllocation());
  771. }
  772. _impl_.pubnavstatutopic_.InitDefault();
  773. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  774. _impl_.pubnavstatutopic_.Set("", GetArenaForAllocation());
  775. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  776. if (!from._internal_pubnavstatutopic().empty()) {
  777. _this->_impl_.pubnavstatutopic_.Set(from._internal_pubnavstatutopic(), _this->GetArenaForAllocation());
  778. }
  779. _this->_impl_.port_ = from._impl_.port_;
  780. // @@protoc_insertion_point(copy_constructor:NavParameter.Emqx_parameter)
  781. }
  782. inline void Emqx_parameter::SharedCtor(::_pb::Arena* arena) {
  783. (void)arena;
  784. new (&_impl_) Impl_{
  785. decltype(_impl_.nodeid_) {}
  786. , decltype(_impl_.ip_) {}
  787. , decltype(_impl_.pubstatutopic_) {}
  788. , decltype(_impl_.pubnavstatutopic_) {}
  789. , decltype(_impl_.port_) { 0 }
  790. , /*decltype(_impl_._cached_size_)*/{}
  791. };
  792. _impl_.nodeid_.InitDefault();
  793. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  794. _impl_.nodeid_.Set("", GetArenaForAllocation());
  795. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  796. _impl_.ip_.InitDefault();
  797. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  798. _impl_.ip_.Set("", GetArenaForAllocation());
  799. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  800. _impl_.pubstatutopic_.InitDefault();
  801. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  802. _impl_.pubstatutopic_.Set("", GetArenaForAllocation());
  803. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  804. _impl_.pubnavstatutopic_.InitDefault();
  805. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  806. _impl_.pubnavstatutopic_.Set("", GetArenaForAllocation());
  807. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  808. }
  809. Emqx_parameter::~Emqx_parameter() {
  810. // @@protoc_insertion_point(destructor:NavParameter.Emqx_parameter)
  811. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  812. (void)arena;
  813. return;
  814. }
  815. SharedDtor();
  816. }
  817. inline void Emqx_parameter::SharedDtor() {
  818. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  819. _impl_.nodeid_.Destroy();
  820. _impl_.ip_.Destroy();
  821. _impl_.pubstatutopic_.Destroy();
  822. _impl_.pubnavstatutopic_.Destroy();
  823. }
  824. void Emqx_parameter::SetCachedSize(int size) const {
  825. _impl_._cached_size_.Set(size);
  826. }
  827. void Emqx_parameter::Clear() {
  828. // @@protoc_insertion_point(message_clear_start:NavParameter.Emqx_parameter)
  829. ::uint32_t cached_has_bits = 0;
  830. // Prevent compiler warnings about cached_has_bits being unused
  831. (void) cached_has_bits;
  832. _impl_.nodeid_.ClearToEmpty();
  833. _impl_.ip_.ClearToEmpty();
  834. _impl_.pubstatutopic_.ClearToEmpty();
  835. _impl_.pubnavstatutopic_.ClearToEmpty();
  836. _impl_.port_ = 0;
  837. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  838. }
  839. const char* Emqx_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  840. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  841. while (!ctx->Done(&ptr)) {
  842. ::uint32_t tag;
  843. ptr = ::_pbi::ReadTag(ptr, &tag);
  844. switch (tag >> 3) {
  845. // string NodeId = 1;
  846. case 1:
  847. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  848. auto str = _internal_mutable_nodeid();
  849. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  850. CHK_(ptr);
  851. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.NodeId"));
  852. } else {
  853. goto handle_unusual;
  854. }
  855. continue;
  856. // string ip = 2;
  857. case 2:
  858. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  859. auto str = _internal_mutable_ip();
  860. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  861. CHK_(ptr);
  862. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.ip"));
  863. } else {
  864. goto handle_unusual;
  865. }
  866. continue;
  867. // int32 port = 3;
  868. case 3:
  869. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  870. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  871. CHK_(ptr);
  872. } else {
  873. goto handle_unusual;
  874. }
  875. continue;
  876. // string pubStatuTopic = 4;
  877. case 4:
  878. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  879. auto str = _internal_mutable_pubstatutopic();
  880. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  881. CHK_(ptr);
  882. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.pubStatuTopic"));
  883. } else {
  884. goto handle_unusual;
  885. }
  886. continue;
  887. // string pubNavStatuTopic = 5;
  888. case 5:
  889. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  890. auto str = _internal_mutable_pubnavstatutopic();
  891. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  892. CHK_(ptr);
  893. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Emqx_parameter.pubNavStatuTopic"));
  894. } else {
  895. goto handle_unusual;
  896. }
  897. continue;
  898. default:
  899. goto handle_unusual;
  900. } // switch
  901. handle_unusual:
  902. if ((tag == 0) || ((tag & 7) == 4)) {
  903. CHK_(ptr);
  904. ctx->SetLastTag(tag);
  905. goto message_done;
  906. }
  907. ptr = UnknownFieldParse(
  908. tag,
  909. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  910. ptr, ctx);
  911. CHK_(ptr != nullptr);
  912. } // while
  913. message_done:
  914. return ptr;
  915. failure:
  916. ptr = nullptr;
  917. goto message_done;
  918. #undef CHK_
  919. }
  920. ::uint8_t* Emqx_parameter::_InternalSerialize(
  921. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  922. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Emqx_parameter)
  923. ::uint32_t cached_has_bits = 0;
  924. (void) cached_has_bits;
  925. // string NodeId = 1;
  926. if (!this->_internal_nodeid().empty()) {
  927. const std::string& _s = this->_internal_nodeid();
  928. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  929. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.NodeId");
  930. target = stream->WriteStringMaybeAliased(1, _s, target);
  931. }
  932. // string ip = 2;
  933. if (!this->_internal_ip().empty()) {
  934. const std::string& _s = this->_internal_ip();
  935. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  936. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.ip");
  937. target = stream->WriteStringMaybeAliased(2, _s, target);
  938. }
  939. // int32 port = 3;
  940. if (this->_internal_port() != 0) {
  941. target = stream->EnsureSpace(target);
  942. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  943. 3, this->_internal_port(), target);
  944. }
  945. // string pubStatuTopic = 4;
  946. if (!this->_internal_pubstatutopic().empty()) {
  947. const std::string& _s = this->_internal_pubstatutopic();
  948. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  949. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.pubStatuTopic");
  950. target = stream->WriteStringMaybeAliased(4, _s, target);
  951. }
  952. // string pubNavStatuTopic = 5;
  953. if (!this->_internal_pubnavstatutopic().empty()) {
  954. const std::string& _s = this->_internal_pubnavstatutopic();
  955. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  956. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Emqx_parameter.pubNavStatuTopic");
  957. target = stream->WriteStringMaybeAliased(5, _s, target);
  958. }
  959. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  960. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  961. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  962. }
  963. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Emqx_parameter)
  964. return target;
  965. }
  966. ::size_t Emqx_parameter::ByteSizeLong() const {
  967. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Emqx_parameter)
  968. ::size_t total_size = 0;
  969. ::uint32_t cached_has_bits = 0;
  970. // Prevent compiler warnings about cached_has_bits being unused
  971. (void) cached_has_bits;
  972. // string NodeId = 1;
  973. if (!this->_internal_nodeid().empty()) {
  974. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  975. this->_internal_nodeid());
  976. }
  977. // string ip = 2;
  978. if (!this->_internal_ip().empty()) {
  979. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  980. this->_internal_ip());
  981. }
  982. // string pubStatuTopic = 4;
  983. if (!this->_internal_pubstatutopic().empty()) {
  984. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  985. this->_internal_pubstatutopic());
  986. }
  987. // string pubNavStatuTopic = 5;
  988. if (!this->_internal_pubnavstatutopic().empty()) {
  989. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  990. this->_internal_pubnavstatutopic());
  991. }
  992. // int32 port = 3;
  993. if (this->_internal_port() != 0) {
  994. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  995. this->_internal_port());
  996. }
  997. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  998. }
  999. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Emqx_parameter::_class_data_ = {
  1000. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1001. Emqx_parameter::MergeImpl
  1002. };
  1003. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Emqx_parameter::GetClassData() const { return &_class_data_; }
  1004. void Emqx_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1005. auto* const _this = static_cast<Emqx_parameter*>(&to_msg);
  1006. auto& from = static_cast<const Emqx_parameter&>(from_msg);
  1007. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Emqx_parameter)
  1008. ABSL_DCHECK_NE(&from, _this);
  1009. ::uint32_t cached_has_bits = 0;
  1010. (void) cached_has_bits;
  1011. if (!from._internal_nodeid().empty()) {
  1012. _this->_internal_set_nodeid(from._internal_nodeid());
  1013. }
  1014. if (!from._internal_ip().empty()) {
  1015. _this->_internal_set_ip(from._internal_ip());
  1016. }
  1017. if (!from._internal_pubstatutopic().empty()) {
  1018. _this->_internal_set_pubstatutopic(from._internal_pubstatutopic());
  1019. }
  1020. if (!from._internal_pubnavstatutopic().empty()) {
  1021. _this->_internal_set_pubnavstatutopic(from._internal_pubnavstatutopic());
  1022. }
  1023. if (from._internal_port() != 0) {
  1024. _this->_internal_set_port(from._internal_port());
  1025. }
  1026. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1027. }
  1028. void Emqx_parameter::CopyFrom(const Emqx_parameter& from) {
  1029. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Emqx_parameter)
  1030. if (&from == this) return;
  1031. Clear();
  1032. MergeFrom(from);
  1033. }
  1034. bool Emqx_parameter::IsInitialized() const {
  1035. return true;
  1036. }
  1037. void Emqx_parameter::InternalSwap(Emqx_parameter* other) {
  1038. using std::swap;
  1039. auto* lhs_arena = GetArenaForAllocation();
  1040. auto* rhs_arena = other->GetArenaForAllocation();
  1041. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1042. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  1043. &other->_impl_.nodeid_, rhs_arena);
  1044. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  1045. &other->_impl_.ip_, rhs_arena);
  1046. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubstatutopic_, lhs_arena,
  1047. &other->_impl_.pubstatutopic_, rhs_arena);
  1048. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pubnavstatutopic_, lhs_arena,
  1049. &other->_impl_.pubnavstatutopic_, rhs_arena);
  1050. swap(_impl_.port_, other->_impl_.port_);
  1051. }
  1052. ::PROTOBUF_NAMESPACE_ID::Metadata Emqx_parameter::GetMetadata() const {
  1053. return ::_pbi::AssignDescriptors(
  1054. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1055. file_level_metadata_parameter_2eproto[1]);
  1056. }
  1057. // ===================================================================
  1058. class BrotherEmqx::_Internal {
  1059. public:
  1060. };
  1061. BrotherEmqx::BrotherEmqx(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1062. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1063. SharedCtor(arena);
  1064. // @@protoc_insertion_point(arena_constructor:NavParameter.BrotherEmqx)
  1065. }
  1066. BrotherEmqx::BrotherEmqx(const BrotherEmqx& from)
  1067. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1068. BrotherEmqx* const _this = this; (void)_this;
  1069. new (&_impl_) Impl_{
  1070. decltype(_impl_.nodeid_) {}
  1071. , decltype(_impl_.ip_) {}
  1072. , decltype(_impl_.subbrotherstatutopic_) {}
  1073. , decltype(_impl_.port_) {}
  1074. , /*decltype(_impl_._cached_size_)*/{}};
  1075. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1076. _impl_.nodeid_.InitDefault();
  1077. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1078. _impl_.nodeid_.Set("", GetArenaForAllocation());
  1079. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1080. if (!from._internal_nodeid().empty()) {
  1081. _this->_impl_.nodeid_.Set(from._internal_nodeid(), _this->GetArenaForAllocation());
  1082. }
  1083. _impl_.ip_.InitDefault();
  1084. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1085. _impl_.ip_.Set("", GetArenaForAllocation());
  1086. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1087. if (!from._internal_ip().empty()) {
  1088. _this->_impl_.ip_.Set(from._internal_ip(), _this->GetArenaForAllocation());
  1089. }
  1090. _impl_.subbrotherstatutopic_.InitDefault();
  1091. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1092. _impl_.subbrotherstatutopic_.Set("", GetArenaForAllocation());
  1093. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1094. if (!from._internal_subbrotherstatutopic().empty()) {
  1095. _this->_impl_.subbrotherstatutopic_.Set(from._internal_subbrotherstatutopic(), _this->GetArenaForAllocation());
  1096. }
  1097. _this->_impl_.port_ = from._impl_.port_;
  1098. // @@protoc_insertion_point(copy_constructor:NavParameter.BrotherEmqx)
  1099. }
  1100. inline void BrotherEmqx::SharedCtor(::_pb::Arena* arena) {
  1101. (void)arena;
  1102. new (&_impl_) Impl_{
  1103. decltype(_impl_.nodeid_) {}
  1104. , decltype(_impl_.ip_) {}
  1105. , decltype(_impl_.subbrotherstatutopic_) {}
  1106. , decltype(_impl_.port_) { 0 }
  1107. , /*decltype(_impl_._cached_size_)*/{}
  1108. };
  1109. _impl_.nodeid_.InitDefault();
  1110. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1111. _impl_.nodeid_.Set("", GetArenaForAllocation());
  1112. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1113. _impl_.ip_.InitDefault();
  1114. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1115. _impl_.ip_.Set("", GetArenaForAllocation());
  1116. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1117. _impl_.subbrotherstatutopic_.InitDefault();
  1118. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1119. _impl_.subbrotherstatutopic_.Set("", GetArenaForAllocation());
  1120. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1121. }
  1122. BrotherEmqx::~BrotherEmqx() {
  1123. // @@protoc_insertion_point(destructor:NavParameter.BrotherEmqx)
  1124. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1125. (void)arena;
  1126. return;
  1127. }
  1128. SharedDtor();
  1129. }
  1130. inline void BrotherEmqx::SharedDtor() {
  1131. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1132. _impl_.nodeid_.Destroy();
  1133. _impl_.ip_.Destroy();
  1134. _impl_.subbrotherstatutopic_.Destroy();
  1135. }
  1136. void BrotherEmqx::SetCachedSize(int size) const {
  1137. _impl_._cached_size_.Set(size);
  1138. }
  1139. void BrotherEmqx::Clear() {
  1140. // @@protoc_insertion_point(message_clear_start:NavParameter.BrotherEmqx)
  1141. ::uint32_t cached_has_bits = 0;
  1142. // Prevent compiler warnings about cached_has_bits being unused
  1143. (void) cached_has_bits;
  1144. _impl_.nodeid_.ClearToEmpty();
  1145. _impl_.ip_.ClearToEmpty();
  1146. _impl_.subbrotherstatutopic_.ClearToEmpty();
  1147. _impl_.port_ = 0;
  1148. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1149. }
  1150. const char* BrotherEmqx::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1151. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1152. while (!ctx->Done(&ptr)) {
  1153. ::uint32_t tag;
  1154. ptr = ::_pbi::ReadTag(ptr, &tag);
  1155. switch (tag >> 3) {
  1156. // string NodeId = 1;
  1157. case 1:
  1158. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  1159. auto str = _internal_mutable_nodeid();
  1160. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1161. CHK_(ptr);
  1162. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.NodeId"));
  1163. } else {
  1164. goto handle_unusual;
  1165. }
  1166. continue;
  1167. // string ip = 2;
  1168. case 2:
  1169. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  1170. auto str = _internal_mutable_ip();
  1171. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1172. CHK_(ptr);
  1173. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.ip"));
  1174. } else {
  1175. goto handle_unusual;
  1176. }
  1177. continue;
  1178. // int32 port = 3;
  1179. case 3:
  1180. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  1181. _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1182. CHK_(ptr);
  1183. } else {
  1184. goto handle_unusual;
  1185. }
  1186. continue;
  1187. // string subBrotherStatuTopic = 4;
  1188. case 4:
  1189. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  1190. auto str = _internal_mutable_subbrotherstatutopic();
  1191. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  1192. CHK_(ptr);
  1193. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.BrotherEmqx.subBrotherStatuTopic"));
  1194. } else {
  1195. goto handle_unusual;
  1196. }
  1197. continue;
  1198. default:
  1199. goto handle_unusual;
  1200. } // switch
  1201. handle_unusual:
  1202. if ((tag == 0) || ((tag & 7) == 4)) {
  1203. CHK_(ptr);
  1204. ctx->SetLastTag(tag);
  1205. goto message_done;
  1206. }
  1207. ptr = UnknownFieldParse(
  1208. tag,
  1209. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1210. ptr, ctx);
  1211. CHK_(ptr != nullptr);
  1212. } // while
  1213. message_done:
  1214. return ptr;
  1215. failure:
  1216. ptr = nullptr;
  1217. goto message_done;
  1218. #undef CHK_
  1219. }
  1220. ::uint8_t* BrotherEmqx::_InternalSerialize(
  1221. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1222. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.BrotherEmqx)
  1223. ::uint32_t cached_has_bits = 0;
  1224. (void) cached_has_bits;
  1225. // string NodeId = 1;
  1226. if (!this->_internal_nodeid().empty()) {
  1227. const std::string& _s = this->_internal_nodeid();
  1228. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1229. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.NodeId");
  1230. target = stream->WriteStringMaybeAliased(1, _s, target);
  1231. }
  1232. // string ip = 2;
  1233. if (!this->_internal_ip().empty()) {
  1234. const std::string& _s = this->_internal_ip();
  1235. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1236. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.ip");
  1237. target = stream->WriteStringMaybeAliased(2, _s, target);
  1238. }
  1239. // int32 port = 3;
  1240. if (this->_internal_port() != 0) {
  1241. target = stream->EnsureSpace(target);
  1242. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1243. 3, this->_internal_port(), target);
  1244. }
  1245. // string subBrotherStatuTopic = 4;
  1246. if (!this->_internal_subbrotherstatutopic().empty()) {
  1247. const std::string& _s = this->_internal_subbrotherstatutopic();
  1248. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1249. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.BrotherEmqx.subBrotherStatuTopic");
  1250. target = stream->WriteStringMaybeAliased(4, _s, target);
  1251. }
  1252. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1253. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1254. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1255. }
  1256. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.BrotherEmqx)
  1257. return target;
  1258. }
  1259. ::size_t BrotherEmqx::ByteSizeLong() const {
  1260. // @@protoc_insertion_point(message_byte_size_start:NavParameter.BrotherEmqx)
  1261. ::size_t total_size = 0;
  1262. ::uint32_t cached_has_bits = 0;
  1263. // Prevent compiler warnings about cached_has_bits being unused
  1264. (void) cached_has_bits;
  1265. // string NodeId = 1;
  1266. if (!this->_internal_nodeid().empty()) {
  1267. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1268. this->_internal_nodeid());
  1269. }
  1270. // string ip = 2;
  1271. if (!this->_internal_ip().empty()) {
  1272. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1273. this->_internal_ip());
  1274. }
  1275. // string subBrotherStatuTopic = 4;
  1276. if (!this->_internal_subbrotherstatutopic().empty()) {
  1277. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1278. this->_internal_subbrotherstatutopic());
  1279. }
  1280. // int32 port = 3;
  1281. if (this->_internal_port() != 0) {
  1282. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1283. this->_internal_port());
  1284. }
  1285. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1286. }
  1287. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BrotherEmqx::_class_data_ = {
  1288. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1289. BrotherEmqx::MergeImpl
  1290. };
  1291. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BrotherEmqx::GetClassData() const { return &_class_data_; }
  1292. void BrotherEmqx::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1293. auto* const _this = static_cast<BrotherEmqx*>(&to_msg);
  1294. auto& from = static_cast<const BrotherEmqx&>(from_msg);
  1295. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.BrotherEmqx)
  1296. ABSL_DCHECK_NE(&from, _this);
  1297. ::uint32_t cached_has_bits = 0;
  1298. (void) cached_has_bits;
  1299. if (!from._internal_nodeid().empty()) {
  1300. _this->_internal_set_nodeid(from._internal_nodeid());
  1301. }
  1302. if (!from._internal_ip().empty()) {
  1303. _this->_internal_set_ip(from._internal_ip());
  1304. }
  1305. if (!from._internal_subbrotherstatutopic().empty()) {
  1306. _this->_internal_set_subbrotherstatutopic(from._internal_subbrotherstatutopic());
  1307. }
  1308. if (from._internal_port() != 0) {
  1309. _this->_internal_set_port(from._internal_port());
  1310. }
  1311. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1312. }
  1313. void BrotherEmqx::CopyFrom(const BrotherEmqx& from) {
  1314. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.BrotherEmqx)
  1315. if (&from == this) return;
  1316. Clear();
  1317. MergeFrom(from);
  1318. }
  1319. bool BrotherEmqx::IsInitialized() const {
  1320. return true;
  1321. }
  1322. void BrotherEmqx::InternalSwap(BrotherEmqx* other) {
  1323. using std::swap;
  1324. auto* lhs_arena = GetArenaForAllocation();
  1325. auto* rhs_arena = other->GetArenaForAllocation();
  1326. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1327. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.nodeid_, lhs_arena,
  1328. &other->_impl_.nodeid_, rhs_arena);
  1329. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ip_, lhs_arena,
  1330. &other->_impl_.ip_, rhs_arena);
  1331. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.subbrotherstatutopic_, lhs_arena,
  1332. &other->_impl_.subbrotherstatutopic_, rhs_arena);
  1333. swap(_impl_.port_, other->_impl_.port_);
  1334. }
  1335. ::PROTOBUF_NAMESPACE_ID::Metadata BrotherEmqx::GetMetadata() const {
  1336. return ::_pbi::AssignDescriptors(
  1337. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1338. file_level_metadata_parameter_2eproto[2]);
  1339. }
  1340. // ===================================================================
  1341. class MPC_parameter::_Internal {
  1342. public:
  1343. };
  1344. MPC_parameter::MPC_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1345. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1346. SharedCtor(arena);
  1347. // @@protoc_insertion_point(arena_constructor:NavParameter.MPC_parameter)
  1348. }
  1349. MPC_parameter::MPC_parameter(const MPC_parameter& from)
  1350. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1351. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1352. from._internal_metadata_);
  1353. // @@protoc_insertion_point(copy_constructor:NavParameter.MPC_parameter)
  1354. }
  1355. inline void MPC_parameter::SharedCtor(::_pb::Arena* arena) {
  1356. (void)arena;
  1357. new (&_impl_) Impl_{
  1358. decltype(_impl_.shortest_radius_) { 0 }
  1359. , decltype(_impl_.dt_) { 0 }
  1360. , decltype(_impl_.acc_velocity_) { 0 }
  1361. , decltype(_impl_.acc_angular_) { 0 }
  1362. , /*decltype(_impl_._cached_size_)*/{}
  1363. };
  1364. }
  1365. MPC_parameter::~MPC_parameter() {
  1366. // @@protoc_insertion_point(destructor:NavParameter.MPC_parameter)
  1367. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1368. (void)arena;
  1369. return;
  1370. }
  1371. SharedDtor();
  1372. }
  1373. inline void MPC_parameter::SharedDtor() {
  1374. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1375. }
  1376. void MPC_parameter::SetCachedSize(int size) const {
  1377. _impl_._cached_size_.Set(size);
  1378. }
  1379. void MPC_parameter::Clear() {
  1380. // @@protoc_insertion_point(message_clear_start:NavParameter.MPC_parameter)
  1381. ::uint32_t cached_has_bits = 0;
  1382. // Prevent compiler warnings about cached_has_bits being unused
  1383. (void) cached_has_bits;
  1384. ::memset(&_impl_.shortest_radius_, 0, static_cast<::size_t>(
  1385. reinterpret_cast<char*>(&_impl_.acc_angular_) -
  1386. reinterpret_cast<char*>(&_impl_.shortest_radius_)) + sizeof(_impl_.acc_angular_));
  1387. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1388. }
  1389. const char* MPC_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1390. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1391. while (!ctx->Done(&ptr)) {
  1392. ::uint32_t tag;
  1393. ptr = ::_pbi::ReadTag(ptr, &tag);
  1394. switch (tag >> 3) {
  1395. // float shortest_radius = 1;
  1396. case 1:
  1397. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1398. _impl_.shortest_radius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1399. ptr += sizeof(float);
  1400. } else {
  1401. goto handle_unusual;
  1402. }
  1403. continue;
  1404. // float dt = 2;
  1405. case 2:
  1406. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1407. _impl_.dt_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1408. ptr += sizeof(float);
  1409. } else {
  1410. goto handle_unusual;
  1411. }
  1412. continue;
  1413. // float acc_velocity = 3;
  1414. case 3:
  1415. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  1416. _impl_.acc_velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1417. ptr += sizeof(float);
  1418. } else {
  1419. goto handle_unusual;
  1420. }
  1421. continue;
  1422. // float acc_angular = 4;
  1423. case 4:
  1424. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  1425. _impl_.acc_angular_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1426. ptr += sizeof(float);
  1427. } else {
  1428. goto handle_unusual;
  1429. }
  1430. continue;
  1431. default:
  1432. goto handle_unusual;
  1433. } // switch
  1434. handle_unusual:
  1435. if ((tag == 0) || ((tag & 7) == 4)) {
  1436. CHK_(ptr);
  1437. ctx->SetLastTag(tag);
  1438. goto message_done;
  1439. }
  1440. ptr = UnknownFieldParse(
  1441. tag,
  1442. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1443. ptr, ctx);
  1444. CHK_(ptr != nullptr);
  1445. } // while
  1446. message_done:
  1447. return ptr;
  1448. failure:
  1449. ptr = nullptr;
  1450. goto message_done;
  1451. #undef CHK_
  1452. }
  1453. ::uint8_t* MPC_parameter::_InternalSerialize(
  1454. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1455. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.MPC_parameter)
  1456. ::uint32_t cached_has_bits = 0;
  1457. (void) cached_has_bits;
  1458. // float shortest_radius = 1;
  1459. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1460. float tmp_shortest_radius = this->_internal_shortest_radius();
  1461. ::uint32_t raw_shortest_radius;
  1462. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1463. if (raw_shortest_radius != 0) {
  1464. target = stream->EnsureSpace(target);
  1465. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1466. 1, this->_internal_shortest_radius(), target);
  1467. }
  1468. // float dt = 2;
  1469. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1470. float tmp_dt = this->_internal_dt();
  1471. ::uint32_t raw_dt;
  1472. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1473. if (raw_dt != 0) {
  1474. target = stream->EnsureSpace(target);
  1475. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1476. 2, this->_internal_dt(), target);
  1477. }
  1478. // float acc_velocity = 3;
  1479. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1480. float tmp_acc_velocity = this->_internal_acc_velocity();
  1481. ::uint32_t raw_acc_velocity;
  1482. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1483. if (raw_acc_velocity != 0) {
  1484. target = stream->EnsureSpace(target);
  1485. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1486. 3, this->_internal_acc_velocity(), target);
  1487. }
  1488. // float acc_angular = 4;
  1489. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1490. float tmp_acc_angular = this->_internal_acc_angular();
  1491. ::uint32_t raw_acc_angular;
  1492. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1493. if (raw_acc_angular != 0) {
  1494. target = stream->EnsureSpace(target);
  1495. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1496. 4, this->_internal_acc_angular(), target);
  1497. }
  1498. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1499. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1500. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1501. }
  1502. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.MPC_parameter)
  1503. return target;
  1504. }
  1505. ::size_t MPC_parameter::ByteSizeLong() const {
  1506. // @@protoc_insertion_point(message_byte_size_start:NavParameter.MPC_parameter)
  1507. ::size_t total_size = 0;
  1508. ::uint32_t cached_has_bits = 0;
  1509. // Prevent compiler warnings about cached_has_bits being unused
  1510. (void) cached_has_bits;
  1511. // float shortest_radius = 1;
  1512. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1513. float tmp_shortest_radius = this->_internal_shortest_radius();
  1514. ::uint32_t raw_shortest_radius;
  1515. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1516. if (raw_shortest_radius != 0) {
  1517. total_size += 5;
  1518. }
  1519. // float dt = 2;
  1520. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1521. float tmp_dt = this->_internal_dt();
  1522. ::uint32_t raw_dt;
  1523. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1524. if (raw_dt != 0) {
  1525. total_size += 5;
  1526. }
  1527. // float acc_velocity = 3;
  1528. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1529. float tmp_acc_velocity = this->_internal_acc_velocity();
  1530. ::uint32_t raw_acc_velocity;
  1531. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1532. if (raw_acc_velocity != 0) {
  1533. total_size += 5;
  1534. }
  1535. // float acc_angular = 4;
  1536. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1537. float tmp_acc_angular = this->_internal_acc_angular();
  1538. ::uint32_t raw_acc_angular;
  1539. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1540. if (raw_acc_angular != 0) {
  1541. total_size += 5;
  1542. }
  1543. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1544. }
  1545. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MPC_parameter::_class_data_ = {
  1546. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1547. MPC_parameter::MergeImpl
  1548. };
  1549. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MPC_parameter::GetClassData() const { return &_class_data_; }
  1550. void MPC_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1551. auto* const _this = static_cast<MPC_parameter*>(&to_msg);
  1552. auto& from = static_cast<const MPC_parameter&>(from_msg);
  1553. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.MPC_parameter)
  1554. ABSL_DCHECK_NE(&from, _this);
  1555. ::uint32_t cached_has_bits = 0;
  1556. (void) cached_has_bits;
  1557. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1558. float tmp_shortest_radius = from._internal_shortest_radius();
  1559. ::uint32_t raw_shortest_radius;
  1560. memcpy(&raw_shortest_radius, &tmp_shortest_radius, sizeof(tmp_shortest_radius));
  1561. if (raw_shortest_radius != 0) {
  1562. _this->_internal_set_shortest_radius(from._internal_shortest_radius());
  1563. }
  1564. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1565. float tmp_dt = from._internal_dt();
  1566. ::uint32_t raw_dt;
  1567. memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
  1568. if (raw_dt != 0) {
  1569. _this->_internal_set_dt(from._internal_dt());
  1570. }
  1571. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1572. float tmp_acc_velocity = from._internal_acc_velocity();
  1573. ::uint32_t raw_acc_velocity;
  1574. memcpy(&raw_acc_velocity, &tmp_acc_velocity, sizeof(tmp_acc_velocity));
  1575. if (raw_acc_velocity != 0) {
  1576. _this->_internal_set_acc_velocity(from._internal_acc_velocity());
  1577. }
  1578. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1579. float tmp_acc_angular = from._internal_acc_angular();
  1580. ::uint32_t raw_acc_angular;
  1581. memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
  1582. if (raw_acc_angular != 0) {
  1583. _this->_internal_set_acc_angular(from._internal_acc_angular());
  1584. }
  1585. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1586. }
  1587. void MPC_parameter::CopyFrom(const MPC_parameter& from) {
  1588. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.MPC_parameter)
  1589. if (&from == this) return;
  1590. Clear();
  1591. MergeFrom(from);
  1592. }
  1593. bool MPC_parameter::IsInitialized() const {
  1594. return true;
  1595. }
  1596. void MPC_parameter::InternalSwap(MPC_parameter* other) {
  1597. using std::swap;
  1598. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1599. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1600. PROTOBUF_FIELD_OFFSET(MPC_parameter, _impl_.acc_angular_)
  1601. + sizeof(MPC_parameter::_impl_.acc_angular_)
  1602. - PROTOBUF_FIELD_OFFSET(MPC_parameter, _impl_.shortest_radius_)>(
  1603. reinterpret_cast<char*>(&_impl_.shortest_radius_),
  1604. reinterpret_cast<char*>(&other->_impl_.shortest_radius_));
  1605. }
  1606. ::PROTOBUF_NAMESPACE_ID::Metadata MPC_parameter::GetMetadata() const {
  1607. return ::_pbi::AssignDescriptors(
  1608. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1609. file_level_metadata_parameter_2eproto[3]);
  1610. }
  1611. // ===================================================================
  1612. class SpeedLimit::_Internal {
  1613. public:
  1614. };
  1615. SpeedLimit::SpeedLimit(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1616. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1617. SharedCtor(arena);
  1618. // @@protoc_insertion_point(arena_constructor:NavParameter.SpeedLimit)
  1619. }
  1620. SpeedLimit::SpeedLimit(const SpeedLimit& from)
  1621. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1622. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1623. from._internal_metadata_);
  1624. // @@protoc_insertion_point(copy_constructor:NavParameter.SpeedLimit)
  1625. }
  1626. inline void SpeedLimit::SharedCtor(::_pb::Arena* arena) {
  1627. (void)arena;
  1628. new (&_impl_) Impl_{
  1629. decltype(_impl_.min_) { 0 }
  1630. , decltype(_impl_.max_) { 0 }
  1631. , /*decltype(_impl_._cached_size_)*/{}
  1632. };
  1633. }
  1634. SpeedLimit::~SpeedLimit() {
  1635. // @@protoc_insertion_point(destructor:NavParameter.SpeedLimit)
  1636. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1637. (void)arena;
  1638. return;
  1639. }
  1640. SharedDtor();
  1641. }
  1642. inline void SpeedLimit::SharedDtor() {
  1643. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1644. }
  1645. void SpeedLimit::SetCachedSize(int size) const {
  1646. _impl_._cached_size_.Set(size);
  1647. }
  1648. void SpeedLimit::Clear() {
  1649. // @@protoc_insertion_point(message_clear_start:NavParameter.SpeedLimit)
  1650. ::uint32_t cached_has_bits = 0;
  1651. // Prevent compiler warnings about cached_has_bits being unused
  1652. (void) cached_has_bits;
  1653. ::memset(&_impl_.min_, 0, static_cast<::size_t>(
  1654. reinterpret_cast<char*>(&_impl_.max_) -
  1655. reinterpret_cast<char*>(&_impl_.min_)) + sizeof(_impl_.max_));
  1656. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1657. }
  1658. const char* SpeedLimit::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1659. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1660. while (!ctx->Done(&ptr)) {
  1661. ::uint32_t tag;
  1662. ptr = ::_pbi::ReadTag(ptr, &tag);
  1663. switch (tag >> 3) {
  1664. // float min = 1;
  1665. case 1:
  1666. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1667. _impl_.min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1668. ptr += sizeof(float);
  1669. } else {
  1670. goto handle_unusual;
  1671. }
  1672. continue;
  1673. // float max = 2;
  1674. case 2:
  1675. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1676. _impl_.max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1677. ptr += sizeof(float);
  1678. } else {
  1679. goto handle_unusual;
  1680. }
  1681. continue;
  1682. default:
  1683. goto handle_unusual;
  1684. } // switch
  1685. handle_unusual:
  1686. if ((tag == 0) || ((tag & 7) == 4)) {
  1687. CHK_(ptr);
  1688. ctx->SetLastTag(tag);
  1689. goto message_done;
  1690. }
  1691. ptr = UnknownFieldParse(
  1692. tag,
  1693. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1694. ptr, ctx);
  1695. CHK_(ptr != nullptr);
  1696. } // while
  1697. message_done:
  1698. return ptr;
  1699. failure:
  1700. ptr = nullptr;
  1701. goto message_done;
  1702. #undef CHK_
  1703. }
  1704. ::uint8_t* SpeedLimit::_InternalSerialize(
  1705. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1706. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.SpeedLimit)
  1707. ::uint32_t cached_has_bits = 0;
  1708. (void) cached_has_bits;
  1709. // float min = 1;
  1710. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1711. float tmp_min = this->_internal_min();
  1712. ::uint32_t raw_min;
  1713. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1714. if (raw_min != 0) {
  1715. target = stream->EnsureSpace(target);
  1716. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1717. 1, this->_internal_min(), target);
  1718. }
  1719. // float max = 2;
  1720. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1721. float tmp_max = this->_internal_max();
  1722. ::uint32_t raw_max;
  1723. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1724. if (raw_max != 0) {
  1725. target = stream->EnsureSpace(target);
  1726. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1727. 2, this->_internal_max(), target);
  1728. }
  1729. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1730. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1731. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1732. }
  1733. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.SpeedLimit)
  1734. return target;
  1735. }
  1736. ::size_t SpeedLimit::ByteSizeLong() const {
  1737. // @@protoc_insertion_point(message_byte_size_start:NavParameter.SpeedLimit)
  1738. ::size_t total_size = 0;
  1739. ::uint32_t cached_has_bits = 0;
  1740. // Prevent compiler warnings about cached_has_bits being unused
  1741. (void) cached_has_bits;
  1742. // float min = 1;
  1743. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1744. float tmp_min = this->_internal_min();
  1745. ::uint32_t raw_min;
  1746. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1747. if (raw_min != 0) {
  1748. total_size += 5;
  1749. }
  1750. // float max = 2;
  1751. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1752. float tmp_max = this->_internal_max();
  1753. ::uint32_t raw_max;
  1754. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1755. if (raw_max != 0) {
  1756. total_size += 5;
  1757. }
  1758. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1759. }
  1760. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SpeedLimit::_class_data_ = {
  1761. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1762. SpeedLimit::MergeImpl
  1763. };
  1764. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SpeedLimit::GetClassData() const { return &_class_data_; }
  1765. void SpeedLimit::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1766. auto* const _this = static_cast<SpeedLimit*>(&to_msg);
  1767. auto& from = static_cast<const SpeedLimit&>(from_msg);
  1768. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.SpeedLimit)
  1769. ABSL_DCHECK_NE(&from, _this);
  1770. ::uint32_t cached_has_bits = 0;
  1771. (void) cached_has_bits;
  1772. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1773. float tmp_min = from._internal_min();
  1774. ::uint32_t raw_min;
  1775. memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
  1776. if (raw_min != 0) {
  1777. _this->_internal_set_min(from._internal_min());
  1778. }
  1779. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1780. float tmp_max = from._internal_max();
  1781. ::uint32_t raw_max;
  1782. memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
  1783. if (raw_max != 0) {
  1784. _this->_internal_set_max(from._internal_max());
  1785. }
  1786. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1787. }
  1788. void SpeedLimit::CopyFrom(const SpeedLimit& from) {
  1789. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.SpeedLimit)
  1790. if (&from == this) return;
  1791. Clear();
  1792. MergeFrom(from);
  1793. }
  1794. bool SpeedLimit::IsInitialized() const {
  1795. return true;
  1796. }
  1797. void SpeedLimit::InternalSwap(SpeedLimit* other) {
  1798. using std::swap;
  1799. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1800. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1801. PROTOBUF_FIELD_OFFSET(SpeedLimit, _impl_.max_)
  1802. + sizeof(SpeedLimit::_impl_.max_)
  1803. - PROTOBUF_FIELD_OFFSET(SpeedLimit, _impl_.min_)>(
  1804. reinterpret_cast<char*>(&_impl_.min_),
  1805. reinterpret_cast<char*>(&other->_impl_.min_));
  1806. }
  1807. ::PROTOBUF_NAMESPACE_ID::Metadata SpeedLimit::GetMetadata() const {
  1808. return ::_pbi::AssignDescriptors(
  1809. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  1810. file_level_metadata_parameter_2eproto[4]);
  1811. }
  1812. // ===================================================================
  1813. class Accuracy::_Internal {
  1814. public:
  1815. };
  1816. Accuracy::Accuracy(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1817. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1818. SharedCtor(arena);
  1819. // @@protoc_insertion_point(arena_constructor:NavParameter.Accuracy)
  1820. }
  1821. Accuracy::Accuracy(const Accuracy& from)
  1822. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1823. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1824. from._internal_metadata_);
  1825. // @@protoc_insertion_point(copy_constructor:NavParameter.Accuracy)
  1826. }
  1827. inline void Accuracy::SharedCtor(::_pb::Arena* arena) {
  1828. (void)arena;
  1829. new (&_impl_) Impl_{
  1830. decltype(_impl_.l_) { 0 }
  1831. , decltype(_impl_.w_) { 0 }
  1832. , /*decltype(_impl_._cached_size_)*/{}
  1833. };
  1834. }
  1835. Accuracy::~Accuracy() {
  1836. // @@protoc_insertion_point(destructor:NavParameter.Accuracy)
  1837. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1838. (void)arena;
  1839. return;
  1840. }
  1841. SharedDtor();
  1842. }
  1843. inline void Accuracy::SharedDtor() {
  1844. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1845. }
  1846. void Accuracy::SetCachedSize(int size) const {
  1847. _impl_._cached_size_.Set(size);
  1848. }
  1849. void Accuracy::Clear() {
  1850. // @@protoc_insertion_point(message_clear_start:NavParameter.Accuracy)
  1851. ::uint32_t cached_has_bits = 0;
  1852. // Prevent compiler warnings about cached_has_bits being unused
  1853. (void) cached_has_bits;
  1854. ::memset(&_impl_.l_, 0, static_cast<::size_t>(
  1855. reinterpret_cast<char*>(&_impl_.w_) -
  1856. reinterpret_cast<char*>(&_impl_.l_)) + sizeof(_impl_.w_));
  1857. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1858. }
  1859. const char* Accuracy::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1860. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1861. while (!ctx->Done(&ptr)) {
  1862. ::uint32_t tag;
  1863. ptr = ::_pbi::ReadTag(ptr, &tag);
  1864. switch (tag >> 3) {
  1865. // float l = 1;
  1866. case 1:
  1867. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1868. _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1869. ptr += sizeof(float);
  1870. } else {
  1871. goto handle_unusual;
  1872. }
  1873. continue;
  1874. // float w = 2;
  1875. case 2:
  1876. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1877. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1878. ptr += sizeof(float);
  1879. } else {
  1880. goto handle_unusual;
  1881. }
  1882. continue;
  1883. default:
  1884. goto handle_unusual;
  1885. } // switch
  1886. handle_unusual:
  1887. if ((tag == 0) || ((tag & 7) == 4)) {
  1888. CHK_(ptr);
  1889. ctx->SetLastTag(tag);
  1890. goto message_done;
  1891. }
  1892. ptr = UnknownFieldParse(
  1893. tag,
  1894. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1895. ptr, ctx);
  1896. CHK_(ptr != nullptr);
  1897. } // while
  1898. message_done:
  1899. return ptr;
  1900. failure:
  1901. ptr = nullptr;
  1902. goto message_done;
  1903. #undef CHK_
  1904. }
  1905. ::uint8_t* Accuracy::_InternalSerialize(
  1906. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1907. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Accuracy)
  1908. ::uint32_t cached_has_bits = 0;
  1909. (void) cached_has_bits;
  1910. // float l = 1;
  1911. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1912. float tmp_l = this->_internal_l();
  1913. ::uint32_t raw_l;
  1914. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  1915. if (raw_l != 0) {
  1916. target = stream->EnsureSpace(target);
  1917. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1918. 1, this->_internal_l(), target);
  1919. }
  1920. // float w = 2;
  1921. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1922. float tmp_w = this->_internal_w();
  1923. ::uint32_t raw_w;
  1924. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1925. if (raw_w != 0) {
  1926. target = stream->EnsureSpace(target);
  1927. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1928. 2, this->_internal_w(), target);
  1929. }
  1930. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1931. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1932. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1933. }
  1934. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Accuracy)
  1935. return target;
  1936. }
  1937. ::size_t Accuracy::ByteSizeLong() const {
  1938. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Accuracy)
  1939. ::size_t total_size = 0;
  1940. ::uint32_t cached_has_bits = 0;
  1941. // Prevent compiler warnings about cached_has_bits being unused
  1942. (void) cached_has_bits;
  1943. // float l = 1;
  1944. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1945. float tmp_l = this->_internal_l();
  1946. ::uint32_t raw_l;
  1947. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  1948. if (raw_l != 0) {
  1949. total_size += 5;
  1950. }
  1951. // float w = 2;
  1952. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1953. float tmp_w = this->_internal_w();
  1954. ::uint32_t raw_w;
  1955. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1956. if (raw_w != 0) {
  1957. total_size += 5;
  1958. }
  1959. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1960. }
  1961. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Accuracy::_class_data_ = {
  1962. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1963. Accuracy::MergeImpl
  1964. };
  1965. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Accuracy::GetClassData() const { return &_class_data_; }
  1966. void Accuracy::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1967. auto* const _this = static_cast<Accuracy*>(&to_msg);
  1968. auto& from = static_cast<const Accuracy&>(from_msg);
  1969. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Accuracy)
  1970. ABSL_DCHECK_NE(&from, _this);
  1971. ::uint32_t cached_has_bits = 0;
  1972. (void) cached_has_bits;
  1973. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1974. float tmp_l = from._internal_l();
  1975. ::uint32_t raw_l;
  1976. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  1977. if (raw_l != 0) {
  1978. _this->_internal_set_l(from._internal_l());
  1979. }
  1980. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1981. float tmp_w = from._internal_w();
  1982. ::uint32_t raw_w;
  1983. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1984. if (raw_w != 0) {
  1985. _this->_internal_set_w(from._internal_w());
  1986. }
  1987. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1988. }
  1989. void Accuracy::CopyFrom(const Accuracy& from) {
  1990. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Accuracy)
  1991. if (&from == this) return;
  1992. Clear();
  1993. MergeFrom(from);
  1994. }
  1995. bool Accuracy::IsInitialized() const {
  1996. return true;
  1997. }
  1998. void Accuracy::InternalSwap(Accuracy* other) {
  1999. using std::swap;
  2000. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2001. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2002. PROTOBUF_FIELD_OFFSET(Accuracy, _impl_.w_)
  2003. + sizeof(Accuracy::_impl_.w_)
  2004. - PROTOBUF_FIELD_OFFSET(Accuracy, _impl_.l_)>(
  2005. reinterpret_cast<char*>(&_impl_.l_),
  2006. reinterpret_cast<char*>(&other->_impl_.l_));
  2007. }
  2008. ::PROTOBUF_NAMESPACE_ID::Metadata Accuracy::GetMetadata() const {
  2009. return ::_pbi::AssignDescriptors(
  2010. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  2011. file_level_metadata_parameter_2eproto[5]);
  2012. }
  2013. // ===================================================================
  2014. class Navigation_parameter::_Internal {
  2015. public:
  2016. using HasBits = decltype(std::declval<Navigation_parameter>()._impl_._has_bits_);
  2017. static constexpr ::int32_t kHasBitsOffset =
  2018. 8 * PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_._has_bits_);
  2019. static const ::NavParameter::AgvEmqx_parameter& agv_emqx(const Navigation_parameter* msg);
  2020. static void set_has_agv_emqx(HasBits* has_bits) {
  2021. (*has_bits)[0] |= 1u;
  2022. }
  2023. static const ::NavParameter::Emqx_parameter& terminal_emqx(const Navigation_parameter* msg);
  2024. static void set_has_terminal_emqx(HasBits* has_bits) {
  2025. (*has_bits)[0] |= 2u;
  2026. }
  2027. static const ::NavParameter::BrotherEmqx& brother_emqx(const Navigation_parameter* msg);
  2028. static void set_has_brother_emqx(HasBits* has_bits) {
  2029. (*has_bits)[0] |= 4u;
  2030. }
  2031. static const ::NavParameter::MPC_parameter& x_mpc_parameter(const Navigation_parameter* msg);
  2032. static void set_has_x_mpc_parameter(HasBits* has_bits) {
  2033. (*has_bits)[0] |= 8u;
  2034. }
  2035. static const ::NavParameter::MPC_parameter& y_mpc_parameter(const Navigation_parameter* msg);
  2036. static void set_has_y_mpc_parameter(HasBits* has_bits) {
  2037. (*has_bits)[0] |= 16u;
  2038. }
  2039. static const ::NavParameter::SpeedLimit& inoutvlimit(const Navigation_parameter* msg);
  2040. static void set_has_inoutvlimit(HasBits* has_bits) {
  2041. (*has_bits)[0] |= 32u;
  2042. }
  2043. static const ::NavParameter::SpeedLimit& nodevelocitylimit(const Navigation_parameter* msg);
  2044. static void set_has_nodevelocitylimit(HasBits* has_bits) {
  2045. (*has_bits)[0] |= 64u;
  2046. }
  2047. static const ::NavParameter::SpeedLimit& nodeangularlimit(const Navigation_parameter* msg);
  2048. static void set_has_nodeangularlimit(HasBits* has_bits) {
  2049. (*has_bits)[0] |= 128u;
  2050. }
  2051. };
  2052. const ::NavParameter::AgvEmqx_parameter&
  2053. Navigation_parameter::_Internal::agv_emqx(const Navigation_parameter* msg) {
  2054. return *msg->_impl_.agv_emqx_;
  2055. }
  2056. const ::NavParameter::Emqx_parameter&
  2057. Navigation_parameter::_Internal::terminal_emqx(const Navigation_parameter* msg) {
  2058. return *msg->_impl_.terminal_emqx_;
  2059. }
  2060. const ::NavParameter::BrotherEmqx&
  2061. Navigation_parameter::_Internal::brother_emqx(const Navigation_parameter* msg) {
  2062. return *msg->_impl_.brother_emqx_;
  2063. }
  2064. const ::NavParameter::MPC_parameter&
  2065. Navigation_parameter::_Internal::x_mpc_parameter(const Navigation_parameter* msg) {
  2066. return *msg->_impl_.x_mpc_parameter_;
  2067. }
  2068. const ::NavParameter::MPC_parameter&
  2069. Navigation_parameter::_Internal::y_mpc_parameter(const Navigation_parameter* msg) {
  2070. return *msg->_impl_.y_mpc_parameter_;
  2071. }
  2072. const ::NavParameter::SpeedLimit&
  2073. Navigation_parameter::_Internal::inoutvlimit(const Navigation_parameter* msg) {
  2074. return *msg->_impl_.inoutvlimit_;
  2075. }
  2076. const ::NavParameter::SpeedLimit&
  2077. Navigation_parameter::_Internal::nodevelocitylimit(const Navigation_parameter* msg) {
  2078. return *msg->_impl_.nodevelocitylimit_;
  2079. }
  2080. const ::NavParameter::SpeedLimit&
  2081. Navigation_parameter::_Internal::nodeangularlimit(const Navigation_parameter* msg) {
  2082. return *msg->_impl_.nodeangularlimit_;
  2083. }
  2084. Navigation_parameter::Navigation_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2085. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2086. SharedCtor(arena);
  2087. // @@protoc_insertion_point(arena_constructor:NavParameter.Navigation_parameter)
  2088. }
  2089. Navigation_parameter::Navigation_parameter(const Navigation_parameter& from)
  2090. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2091. Navigation_parameter* const _this = this; (void)_this;
  2092. new (&_impl_) Impl_{
  2093. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  2094. , /*decltype(_impl_._cached_size_)*/{}
  2095. , decltype(_impl_.rpc_ipport_) {}
  2096. , decltype(_impl_.agv_emqx_){nullptr}
  2097. , decltype(_impl_.terminal_emqx_){nullptr}
  2098. , decltype(_impl_.brother_emqx_){nullptr}
  2099. , decltype(_impl_.x_mpc_parameter_){nullptr}
  2100. , decltype(_impl_.y_mpc_parameter_){nullptr}
  2101. , decltype(_impl_.inoutvlimit_){nullptr}
  2102. , decltype(_impl_.nodevelocitylimit_){nullptr}
  2103. , decltype(_impl_.nodeangularlimit_){nullptr}
  2104. , decltype(_impl_.main_agv_) {}
  2105. };
  2106. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2107. _impl_.rpc_ipport_.InitDefault();
  2108. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2109. _impl_.rpc_ipport_.Set("", GetArenaForAllocation());
  2110. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2111. if (!from._internal_rpc_ipport().empty()) {
  2112. _this->_impl_.rpc_ipport_.Set(from._internal_rpc_ipport(), _this->GetArenaForAllocation());
  2113. }
  2114. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2115. _this->_impl_.agv_emqx_ = new ::NavParameter::AgvEmqx_parameter(*from._impl_.agv_emqx_);
  2116. }
  2117. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  2118. _this->_impl_.terminal_emqx_ = new ::NavParameter::Emqx_parameter(*from._impl_.terminal_emqx_);
  2119. }
  2120. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  2121. _this->_impl_.brother_emqx_ = new ::NavParameter::BrotherEmqx(*from._impl_.brother_emqx_);
  2122. }
  2123. if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) {
  2124. _this->_impl_.x_mpc_parameter_ = new ::NavParameter::MPC_parameter(*from._impl_.x_mpc_parameter_);
  2125. }
  2126. if ((from._impl_._has_bits_[0] & 0x00000010u) != 0) {
  2127. _this->_impl_.y_mpc_parameter_ = new ::NavParameter::MPC_parameter(*from._impl_.y_mpc_parameter_);
  2128. }
  2129. if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) {
  2130. _this->_impl_.inoutvlimit_ = new ::NavParameter::SpeedLimit(*from._impl_.inoutvlimit_);
  2131. }
  2132. if ((from._impl_._has_bits_[0] & 0x00000040u) != 0) {
  2133. _this->_impl_.nodevelocitylimit_ = new ::NavParameter::SpeedLimit(*from._impl_.nodevelocitylimit_);
  2134. }
  2135. if ((from._impl_._has_bits_[0] & 0x00000080u) != 0) {
  2136. _this->_impl_.nodeangularlimit_ = new ::NavParameter::SpeedLimit(*from._impl_.nodeangularlimit_);
  2137. }
  2138. _this->_impl_.main_agv_ = from._impl_.main_agv_;
  2139. // @@protoc_insertion_point(copy_constructor:NavParameter.Navigation_parameter)
  2140. }
  2141. inline void Navigation_parameter::SharedCtor(::_pb::Arena* arena) {
  2142. (void)arena;
  2143. new (&_impl_) Impl_{
  2144. decltype(_impl_._has_bits_){}
  2145. , /*decltype(_impl_._cached_size_)*/{}
  2146. , decltype(_impl_.rpc_ipport_) {}
  2147. , decltype(_impl_.agv_emqx_){nullptr}
  2148. , decltype(_impl_.terminal_emqx_){nullptr}
  2149. , decltype(_impl_.brother_emqx_){nullptr}
  2150. , decltype(_impl_.x_mpc_parameter_){nullptr}
  2151. , decltype(_impl_.y_mpc_parameter_){nullptr}
  2152. , decltype(_impl_.inoutvlimit_){nullptr}
  2153. , decltype(_impl_.nodevelocitylimit_){nullptr}
  2154. , decltype(_impl_.nodeangularlimit_){nullptr}
  2155. , decltype(_impl_.main_agv_) { false }
  2156. };
  2157. _impl_.rpc_ipport_.InitDefault();
  2158. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2159. _impl_.rpc_ipport_.Set("", GetArenaForAllocation());
  2160. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2161. }
  2162. Navigation_parameter::~Navigation_parameter() {
  2163. // @@protoc_insertion_point(destructor:NavParameter.Navigation_parameter)
  2164. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2165. (void)arena;
  2166. return;
  2167. }
  2168. SharedDtor();
  2169. }
  2170. inline void Navigation_parameter::SharedDtor() {
  2171. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2172. _impl_.rpc_ipport_.Destroy();
  2173. if (this != internal_default_instance()) delete _impl_.agv_emqx_;
  2174. if (this != internal_default_instance()) delete _impl_.terminal_emqx_;
  2175. if (this != internal_default_instance()) delete _impl_.brother_emqx_;
  2176. if (this != internal_default_instance()) delete _impl_.x_mpc_parameter_;
  2177. if (this != internal_default_instance()) delete _impl_.y_mpc_parameter_;
  2178. if (this != internal_default_instance()) delete _impl_.inoutvlimit_;
  2179. if (this != internal_default_instance()) delete _impl_.nodevelocitylimit_;
  2180. if (this != internal_default_instance()) delete _impl_.nodeangularlimit_;
  2181. }
  2182. void Navigation_parameter::SetCachedSize(int size) const {
  2183. _impl_._cached_size_.Set(size);
  2184. }
  2185. void Navigation_parameter::Clear() {
  2186. // @@protoc_insertion_point(message_clear_start:NavParameter.Navigation_parameter)
  2187. ::uint32_t cached_has_bits = 0;
  2188. // Prevent compiler warnings about cached_has_bits being unused
  2189. (void) cached_has_bits;
  2190. _impl_.rpc_ipport_.ClearToEmpty();
  2191. cached_has_bits = _impl_._has_bits_[0];
  2192. if (cached_has_bits & 0x000000ffu) {
  2193. if (cached_has_bits & 0x00000001u) {
  2194. ABSL_DCHECK(_impl_.agv_emqx_ != nullptr);
  2195. _impl_.agv_emqx_->Clear();
  2196. }
  2197. if (cached_has_bits & 0x00000002u) {
  2198. ABSL_DCHECK(_impl_.terminal_emqx_ != nullptr);
  2199. _impl_.terminal_emqx_->Clear();
  2200. }
  2201. if (cached_has_bits & 0x00000004u) {
  2202. ABSL_DCHECK(_impl_.brother_emqx_ != nullptr);
  2203. _impl_.brother_emqx_->Clear();
  2204. }
  2205. if (cached_has_bits & 0x00000008u) {
  2206. ABSL_DCHECK(_impl_.x_mpc_parameter_ != nullptr);
  2207. _impl_.x_mpc_parameter_->Clear();
  2208. }
  2209. if (cached_has_bits & 0x00000010u) {
  2210. ABSL_DCHECK(_impl_.y_mpc_parameter_ != nullptr);
  2211. _impl_.y_mpc_parameter_->Clear();
  2212. }
  2213. if (cached_has_bits & 0x00000020u) {
  2214. ABSL_DCHECK(_impl_.inoutvlimit_ != nullptr);
  2215. _impl_.inoutvlimit_->Clear();
  2216. }
  2217. if (cached_has_bits & 0x00000040u) {
  2218. ABSL_DCHECK(_impl_.nodevelocitylimit_ != nullptr);
  2219. _impl_.nodevelocitylimit_->Clear();
  2220. }
  2221. if (cached_has_bits & 0x00000080u) {
  2222. ABSL_DCHECK(_impl_.nodeangularlimit_ != nullptr);
  2223. _impl_.nodeangularlimit_->Clear();
  2224. }
  2225. }
  2226. _impl_.main_agv_ = false;
  2227. _impl_._has_bits_.Clear();
  2228. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2229. }
  2230. const char* Navigation_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2231. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2232. _Internal::HasBits has_bits{};
  2233. while (!ctx->Done(&ptr)) {
  2234. ::uint32_t tag;
  2235. ptr = ::_pbi::ReadTag(ptr, &tag);
  2236. switch (tag >> 3) {
  2237. // bool main_agv = 1;
  2238. case 1:
  2239. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2240. _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2241. CHK_(ptr);
  2242. } else {
  2243. goto handle_unusual;
  2244. }
  2245. continue;
  2246. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2247. case 2:
  2248. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2249. ptr = ctx->ParseMessage(_internal_mutable_agv_emqx(), ptr);
  2250. CHK_(ptr);
  2251. } else {
  2252. goto handle_unusual;
  2253. }
  2254. continue;
  2255. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2256. case 3:
  2257. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
  2258. ptr = ctx->ParseMessage(_internal_mutable_terminal_emqx(), ptr);
  2259. CHK_(ptr);
  2260. } else {
  2261. goto handle_unusual;
  2262. }
  2263. continue;
  2264. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2265. case 4:
  2266. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  2267. ptr = ctx->ParseMessage(_internal_mutable_brother_emqx(), ptr);
  2268. CHK_(ptr);
  2269. } else {
  2270. goto handle_unusual;
  2271. }
  2272. continue;
  2273. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2274. case 5:
  2275. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  2276. ptr = ctx->ParseMessage(_internal_mutable_x_mpc_parameter(), ptr);
  2277. CHK_(ptr);
  2278. } else {
  2279. goto handle_unusual;
  2280. }
  2281. continue;
  2282. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2283. case 6:
  2284. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  2285. ptr = ctx->ParseMessage(_internal_mutable_y_mpc_parameter(), ptr);
  2286. CHK_(ptr);
  2287. } else {
  2288. goto handle_unusual;
  2289. }
  2290. continue;
  2291. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2292. case 7:
  2293. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
  2294. ptr = ctx->ParseMessage(_internal_mutable_inoutvlimit(), ptr);
  2295. CHK_(ptr);
  2296. } else {
  2297. goto handle_unusual;
  2298. }
  2299. continue;
  2300. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2301. case 8:
  2302. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
  2303. ptr = ctx->ParseMessage(_internal_mutable_nodevelocitylimit(), ptr);
  2304. CHK_(ptr);
  2305. } else {
  2306. goto handle_unusual;
  2307. }
  2308. continue;
  2309. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2310. case 9:
  2311. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
  2312. ptr = ctx->ParseMessage(_internal_mutable_nodeangularlimit(), ptr);
  2313. CHK_(ptr);
  2314. } else {
  2315. goto handle_unusual;
  2316. }
  2317. continue;
  2318. // string rpc_ipport = 10;
  2319. case 10:
  2320. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
  2321. auto str = _internal_mutable_rpc_ipport();
  2322. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  2323. CHK_(ptr);
  2324. CHK_(::_pbi::VerifyUTF8(str, "NavParameter.Navigation_parameter.rpc_ipport"));
  2325. } else {
  2326. goto handle_unusual;
  2327. }
  2328. continue;
  2329. default:
  2330. goto handle_unusual;
  2331. } // switch
  2332. handle_unusual:
  2333. if ((tag == 0) || ((tag & 7) == 4)) {
  2334. CHK_(ptr);
  2335. ctx->SetLastTag(tag);
  2336. goto message_done;
  2337. }
  2338. ptr = UnknownFieldParse(
  2339. tag,
  2340. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2341. ptr, ctx);
  2342. CHK_(ptr != nullptr);
  2343. } // while
  2344. message_done:
  2345. _impl_._has_bits_.Or(has_bits);
  2346. return ptr;
  2347. failure:
  2348. ptr = nullptr;
  2349. goto message_done;
  2350. #undef CHK_
  2351. }
  2352. ::uint8_t* Navigation_parameter::_InternalSerialize(
  2353. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2354. // @@protoc_insertion_point(serialize_to_array_start:NavParameter.Navigation_parameter)
  2355. ::uint32_t cached_has_bits = 0;
  2356. (void) cached_has_bits;
  2357. // bool main_agv = 1;
  2358. if (this->_internal_main_agv() != 0) {
  2359. target = stream->EnsureSpace(target);
  2360. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  2361. 1, this->_internal_main_agv(), target);
  2362. }
  2363. cached_has_bits = _impl_._has_bits_[0];
  2364. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2365. if (cached_has_bits & 0x00000001u) {
  2366. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2367. InternalWriteMessage(2, _Internal::agv_emqx(this),
  2368. _Internal::agv_emqx(this).GetCachedSize(), target, stream);
  2369. }
  2370. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2371. if (cached_has_bits & 0x00000002u) {
  2372. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2373. InternalWriteMessage(3, _Internal::terminal_emqx(this),
  2374. _Internal::terminal_emqx(this).GetCachedSize(), target, stream);
  2375. }
  2376. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2377. if (cached_has_bits & 0x00000004u) {
  2378. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2379. InternalWriteMessage(4, _Internal::brother_emqx(this),
  2380. _Internal::brother_emqx(this).GetCachedSize(), target, stream);
  2381. }
  2382. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2383. if (cached_has_bits & 0x00000008u) {
  2384. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2385. InternalWriteMessage(5, _Internal::x_mpc_parameter(this),
  2386. _Internal::x_mpc_parameter(this).GetCachedSize(), target, stream);
  2387. }
  2388. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2389. if (cached_has_bits & 0x00000010u) {
  2390. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2391. InternalWriteMessage(6, _Internal::y_mpc_parameter(this),
  2392. _Internal::y_mpc_parameter(this).GetCachedSize(), target, stream);
  2393. }
  2394. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2395. if (cached_has_bits & 0x00000020u) {
  2396. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2397. InternalWriteMessage(7, _Internal::inoutvlimit(this),
  2398. _Internal::inoutvlimit(this).GetCachedSize(), target, stream);
  2399. }
  2400. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2401. if (cached_has_bits & 0x00000040u) {
  2402. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2403. InternalWriteMessage(8, _Internal::nodevelocitylimit(this),
  2404. _Internal::nodevelocitylimit(this).GetCachedSize(), target, stream);
  2405. }
  2406. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2407. if (cached_has_bits & 0x00000080u) {
  2408. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2409. InternalWriteMessage(9, _Internal::nodeangularlimit(this),
  2410. _Internal::nodeangularlimit(this).GetCachedSize(), target, stream);
  2411. }
  2412. // string rpc_ipport = 10;
  2413. if (!this->_internal_rpc_ipport().empty()) {
  2414. const std::string& _s = this->_internal_rpc_ipport();
  2415. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2416. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavParameter.Navigation_parameter.rpc_ipport");
  2417. target = stream->WriteStringMaybeAliased(10, _s, target);
  2418. }
  2419. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2420. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2421. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2422. }
  2423. // @@protoc_insertion_point(serialize_to_array_end:NavParameter.Navigation_parameter)
  2424. return target;
  2425. }
  2426. ::size_t Navigation_parameter::ByteSizeLong() const {
  2427. // @@protoc_insertion_point(message_byte_size_start:NavParameter.Navigation_parameter)
  2428. ::size_t total_size = 0;
  2429. ::uint32_t cached_has_bits = 0;
  2430. // Prevent compiler warnings about cached_has_bits being unused
  2431. (void) cached_has_bits;
  2432. // string rpc_ipport = 10;
  2433. if (!this->_internal_rpc_ipport().empty()) {
  2434. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2435. this->_internal_rpc_ipport());
  2436. }
  2437. cached_has_bits = _impl_._has_bits_[0];
  2438. if (cached_has_bits & 0x000000ffu) {
  2439. // .NavParameter.AgvEmqx_parameter Agv_emqx = 2;
  2440. if (cached_has_bits & 0x00000001u) {
  2441. total_size += 1 +
  2442. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2443. *_impl_.agv_emqx_);
  2444. }
  2445. // .NavParameter.Emqx_parameter Terminal_emqx = 3;
  2446. if (cached_has_bits & 0x00000002u) {
  2447. total_size += 1 +
  2448. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2449. *_impl_.terminal_emqx_);
  2450. }
  2451. // .NavParameter.BrotherEmqx brother_emqx = 4;
  2452. if (cached_has_bits & 0x00000004u) {
  2453. total_size += 1 +
  2454. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2455. *_impl_.brother_emqx_);
  2456. }
  2457. // .NavParameter.MPC_parameter x_mpc_parameter = 5;
  2458. if (cached_has_bits & 0x00000008u) {
  2459. total_size += 1 +
  2460. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2461. *_impl_.x_mpc_parameter_);
  2462. }
  2463. // .NavParameter.MPC_parameter y_mpc_parameter = 6;
  2464. if (cached_has_bits & 0x00000010u) {
  2465. total_size += 1 +
  2466. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2467. *_impl_.y_mpc_parameter_);
  2468. }
  2469. // .NavParameter.SpeedLimit InOutVLimit = 7;
  2470. if (cached_has_bits & 0x00000020u) {
  2471. total_size += 1 +
  2472. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2473. *_impl_.inoutvlimit_);
  2474. }
  2475. // .NavParameter.SpeedLimit NodeVelocityLimit = 8;
  2476. if (cached_has_bits & 0x00000040u) {
  2477. total_size += 1 +
  2478. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2479. *_impl_.nodevelocitylimit_);
  2480. }
  2481. // .NavParameter.SpeedLimit NodeAngularLimit = 9;
  2482. if (cached_has_bits & 0x00000080u) {
  2483. total_size += 1 +
  2484. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2485. *_impl_.nodeangularlimit_);
  2486. }
  2487. }
  2488. // bool main_agv = 1;
  2489. if (this->_internal_main_agv() != 0) {
  2490. total_size += 2;
  2491. }
  2492. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2493. }
  2494. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Navigation_parameter::_class_data_ = {
  2495. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2496. Navigation_parameter::MergeImpl
  2497. };
  2498. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Navigation_parameter::GetClassData() const { return &_class_data_; }
  2499. void Navigation_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2500. auto* const _this = static_cast<Navigation_parameter*>(&to_msg);
  2501. auto& from = static_cast<const Navigation_parameter&>(from_msg);
  2502. // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.Navigation_parameter)
  2503. ABSL_DCHECK_NE(&from, _this);
  2504. ::uint32_t cached_has_bits = 0;
  2505. (void) cached_has_bits;
  2506. if (!from._internal_rpc_ipport().empty()) {
  2507. _this->_internal_set_rpc_ipport(from._internal_rpc_ipport());
  2508. }
  2509. cached_has_bits = from._impl_._has_bits_[0];
  2510. if (cached_has_bits & 0x000000ffu) {
  2511. if (cached_has_bits & 0x00000001u) {
  2512. _this->_internal_mutable_agv_emqx()->::NavParameter::AgvEmqx_parameter::MergeFrom(
  2513. from._internal_agv_emqx());
  2514. }
  2515. if (cached_has_bits & 0x00000002u) {
  2516. _this->_internal_mutable_terminal_emqx()->::NavParameter::Emqx_parameter::MergeFrom(
  2517. from._internal_terminal_emqx());
  2518. }
  2519. if (cached_has_bits & 0x00000004u) {
  2520. _this->_internal_mutable_brother_emqx()->::NavParameter::BrotherEmqx::MergeFrom(
  2521. from._internal_brother_emqx());
  2522. }
  2523. if (cached_has_bits & 0x00000008u) {
  2524. _this->_internal_mutable_x_mpc_parameter()->::NavParameter::MPC_parameter::MergeFrom(
  2525. from._internal_x_mpc_parameter());
  2526. }
  2527. if (cached_has_bits & 0x00000010u) {
  2528. _this->_internal_mutable_y_mpc_parameter()->::NavParameter::MPC_parameter::MergeFrom(
  2529. from._internal_y_mpc_parameter());
  2530. }
  2531. if (cached_has_bits & 0x00000020u) {
  2532. _this->_internal_mutable_inoutvlimit()->::NavParameter::SpeedLimit::MergeFrom(
  2533. from._internal_inoutvlimit());
  2534. }
  2535. if (cached_has_bits & 0x00000040u) {
  2536. _this->_internal_mutable_nodevelocitylimit()->::NavParameter::SpeedLimit::MergeFrom(
  2537. from._internal_nodevelocitylimit());
  2538. }
  2539. if (cached_has_bits & 0x00000080u) {
  2540. _this->_internal_mutable_nodeangularlimit()->::NavParameter::SpeedLimit::MergeFrom(
  2541. from._internal_nodeangularlimit());
  2542. }
  2543. }
  2544. if (from._internal_main_agv() != 0) {
  2545. _this->_internal_set_main_agv(from._internal_main_agv());
  2546. }
  2547. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2548. }
  2549. void Navigation_parameter::CopyFrom(const Navigation_parameter& from) {
  2550. // @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.Navigation_parameter)
  2551. if (&from == this) return;
  2552. Clear();
  2553. MergeFrom(from);
  2554. }
  2555. bool Navigation_parameter::IsInitialized() const {
  2556. return true;
  2557. }
  2558. void Navigation_parameter::InternalSwap(Navigation_parameter* other) {
  2559. using std::swap;
  2560. auto* lhs_arena = GetArenaForAllocation();
  2561. auto* rhs_arena = other->GetArenaForAllocation();
  2562. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2563. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2564. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_ipport_, lhs_arena,
  2565. &other->_impl_.rpc_ipport_, rhs_arena);
  2566. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2567. PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_.main_agv_)
  2568. + sizeof(Navigation_parameter::_impl_.main_agv_)
  2569. - PROTOBUF_FIELD_OFFSET(Navigation_parameter, _impl_.agv_emqx_)>(
  2570. reinterpret_cast<char*>(&_impl_.agv_emqx_),
  2571. reinterpret_cast<char*>(&other->_impl_.agv_emqx_));
  2572. }
  2573. ::PROTOBUF_NAMESPACE_ID::Metadata Navigation_parameter::GetMetadata() const {
  2574. return ::_pbi::AssignDescriptors(
  2575. &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
  2576. file_level_metadata_parameter_2eproto[6]);
  2577. }
  2578. // @@protoc_insertion_point(namespace_scope)
  2579. } // namespace NavParameter
  2580. PROTOBUF_NAMESPACE_OPEN
  2581. template<> PROTOBUF_NOINLINE ::NavParameter::AgvEmqx_parameter*
  2582. Arena::CreateMaybeMessage< ::NavParameter::AgvEmqx_parameter >(Arena* arena) {
  2583. return Arena::CreateMessageInternal< ::NavParameter::AgvEmqx_parameter >(arena);
  2584. }
  2585. template<> PROTOBUF_NOINLINE ::NavParameter::Emqx_parameter*
  2586. Arena::CreateMaybeMessage< ::NavParameter::Emqx_parameter >(Arena* arena) {
  2587. return Arena::CreateMessageInternal< ::NavParameter::Emqx_parameter >(arena);
  2588. }
  2589. template<> PROTOBUF_NOINLINE ::NavParameter::BrotherEmqx*
  2590. Arena::CreateMaybeMessage< ::NavParameter::BrotherEmqx >(Arena* arena) {
  2591. return Arena::CreateMessageInternal< ::NavParameter::BrotherEmqx >(arena);
  2592. }
  2593. template<> PROTOBUF_NOINLINE ::NavParameter::MPC_parameter*
  2594. Arena::CreateMaybeMessage< ::NavParameter::MPC_parameter >(Arena* arena) {
  2595. return Arena::CreateMessageInternal< ::NavParameter::MPC_parameter >(arena);
  2596. }
  2597. template<> PROTOBUF_NOINLINE ::NavParameter::SpeedLimit*
  2598. Arena::CreateMaybeMessage< ::NavParameter::SpeedLimit >(Arena* arena) {
  2599. return Arena::CreateMessageInternal< ::NavParameter::SpeedLimit >(arena);
  2600. }
  2601. template<> PROTOBUF_NOINLINE ::NavParameter::Accuracy*
  2602. Arena::CreateMaybeMessage< ::NavParameter::Accuracy >(Arena* arena) {
  2603. return Arena::CreateMessageInternal< ::NavParameter::Accuracy >(arena);
  2604. }
  2605. template<> PROTOBUF_NOINLINE ::NavParameter::Navigation_parameter*
  2606. Arena::CreateMaybeMessage< ::NavParameter::Navigation_parameter >(Arena* arena) {
  2607. return Arena::CreateMessageInternal< ::NavParameter::Navigation_parameter >(arena);
  2608. }
  2609. PROTOBUF_NAMESPACE_CLOSE
  2610. // @@protoc_insertion_point(global_scope)
  2611. #include "google/protobuf/port_undef.inc"