wj_lidar_conf.pb.cc 102 KB

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