clamp_parameter.pb.cc 86 KB

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