wj_lidar_conf.pb.cc 93 KB

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