clamp_parameter.pb.h 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: clamp_parameter.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_clamp_5fparameter_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_clamp_5fparameter_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3013000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_clamp_5fparameter_2eproto
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct TableStruct_clamp_5fparameter_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  50. };
  51. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_clamp_5fparameter_2eproto;
  52. namespace clamp_safety {
  53. class LidarParameter;
  54. class LidarParameterDefaultTypeInternal;
  55. extern LidarParameterDefaultTypeInternal _LidarParameter_default_instance_;
  56. class clamp_parameter;
  57. class clamp_parameterDefaultTypeInternal;
  58. extern clamp_parameterDefaultTypeInternal _clamp_parameter_default_instance_;
  59. class lidar_box_limit;
  60. class lidar_box_limitDefaultTypeInternal;
  61. extern lidar_box_limitDefaultTypeInternal _lidar_box_limit_default_instance_;
  62. class lidar_net;
  63. class lidar_netDefaultTypeInternal;
  64. extern lidar_netDefaultTypeInternal _lidar_net_default_instance_;
  65. class local_net;
  66. class local_netDefaultTypeInternal;
  67. extern local_netDefaultTypeInternal _local_net_default_instance_;
  68. class plc_net;
  69. class plc_netDefaultTypeInternal;
  70. extern plc_netDefaultTypeInternal _plc_net_default_instance_;
  71. } // namespace clamp_safety
  72. PROTOBUF_NAMESPACE_OPEN
  73. template<> ::clamp_safety::LidarParameter* Arena::CreateMaybeMessage<::clamp_safety::LidarParameter>(Arena*);
  74. template<> ::clamp_safety::clamp_parameter* Arena::CreateMaybeMessage<::clamp_safety::clamp_parameter>(Arena*);
  75. template<> ::clamp_safety::lidar_box_limit* Arena::CreateMaybeMessage<::clamp_safety::lidar_box_limit>(Arena*);
  76. template<> ::clamp_safety::lidar_net* Arena::CreateMaybeMessage<::clamp_safety::lidar_net>(Arena*);
  77. template<> ::clamp_safety::local_net* Arena::CreateMaybeMessage<::clamp_safety::local_net>(Arena*);
  78. template<> ::clamp_safety::plc_net* Arena::CreateMaybeMessage<::clamp_safety::plc_net>(Arena*);
  79. PROTOBUF_NAMESPACE_CLOSE
  80. namespace clamp_safety {
  81. // ===================================================================
  82. class lidar_net PROTOBUF_FINAL :
  83. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.lidar_net) */ {
  84. public:
  85. inline lidar_net() : lidar_net(nullptr) {}
  86. virtual ~lidar_net();
  87. lidar_net(const lidar_net& from);
  88. lidar_net(lidar_net&& from) noexcept
  89. : lidar_net() {
  90. *this = ::std::move(from);
  91. }
  92. inline lidar_net& operator=(const lidar_net& from) {
  93. CopyFrom(from);
  94. return *this;
  95. }
  96. inline lidar_net& operator=(lidar_net&& from) noexcept {
  97. if (GetArena() == from.GetArena()) {
  98. if (this != &from) InternalSwap(&from);
  99. } else {
  100. CopyFrom(from);
  101. }
  102. return *this;
  103. }
  104. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  105. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  106. }
  107. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  108. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  109. }
  110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  111. return GetDescriptor();
  112. }
  113. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  114. return GetMetadataStatic().descriptor;
  115. }
  116. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  117. return GetMetadataStatic().reflection;
  118. }
  119. static const lidar_net& default_instance();
  120. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  121. static inline const lidar_net* internal_default_instance() {
  122. return reinterpret_cast<const lidar_net*>(
  123. &_lidar_net_default_instance_);
  124. }
  125. static constexpr int kIndexInFileMessages =
  126. 0;
  127. friend void swap(lidar_net& a, lidar_net& b) {
  128. a.Swap(&b);
  129. }
  130. inline void Swap(lidar_net* other) {
  131. if (other == this) return;
  132. if (GetArena() == other->GetArena()) {
  133. InternalSwap(other);
  134. } else {
  135. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  136. }
  137. }
  138. void UnsafeArenaSwap(lidar_net* other) {
  139. if (other == this) return;
  140. GOOGLE_DCHECK(GetArena() == other->GetArena());
  141. InternalSwap(other);
  142. }
  143. // implements Message ----------------------------------------------
  144. inline lidar_net* New() const final {
  145. return CreateMaybeMessage<lidar_net>(nullptr);
  146. }
  147. lidar_net* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  148. return CreateMaybeMessage<lidar_net>(arena);
  149. }
  150. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  151. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  152. void CopyFrom(const lidar_net& from);
  153. void MergeFrom(const lidar_net& from);
  154. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  155. bool IsInitialized() const final;
  156. size_t ByteSizeLong() const final;
  157. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  158. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  159. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  160. int GetCachedSize() const final { return _cached_size_.Get(); }
  161. private:
  162. inline void SharedCtor();
  163. inline void SharedDtor();
  164. void SetCachedSize(int size) const final;
  165. void InternalSwap(lidar_net* other);
  166. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  167. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  168. return "clamp_safety.lidar_net";
  169. }
  170. protected:
  171. explicit lidar_net(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  172. private:
  173. static void ArenaDtor(void* object);
  174. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  175. public:
  176. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  177. private:
  178. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  179. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  180. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  181. }
  182. public:
  183. // nested types ----------------------------------------------------
  184. // accessors -------------------------------------------------------
  185. enum : int {
  186. kIpAddressFieldNumber = 1,
  187. kPortFieldNumber = 2,
  188. };
  189. // optional string ip_address = 1 [default = ""];
  190. bool has_ip_address() const;
  191. private:
  192. bool _internal_has_ip_address() const;
  193. public:
  194. void clear_ip_address();
  195. const std::string& ip_address() const;
  196. void set_ip_address(const std::string& value);
  197. void set_ip_address(std::string&& value);
  198. void set_ip_address(const char* value);
  199. void set_ip_address(const char* value, size_t size);
  200. std::string* mutable_ip_address();
  201. std::string* release_ip_address();
  202. void set_allocated_ip_address(std::string* ip_address);
  203. private:
  204. const std::string& _internal_ip_address() const;
  205. void _internal_set_ip_address(const std::string& value);
  206. std::string* _internal_mutable_ip_address();
  207. public:
  208. // optional int32 port = 2 [default = 8000];
  209. bool has_port() const;
  210. private:
  211. bool _internal_has_port() const;
  212. public:
  213. void clear_port();
  214. ::PROTOBUF_NAMESPACE_ID::int32 port() const;
  215. void set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  216. private:
  217. ::PROTOBUF_NAMESPACE_ID::int32 _internal_port() const;
  218. void _internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
  219. public:
  220. // @@protoc_insertion_point(class_scope:clamp_safety.lidar_net)
  221. private:
  222. class _Internal;
  223. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  224. typedef void InternalArenaConstructable_;
  225. typedef void DestructorSkippable_;
  226. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  227. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  228. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_;
  229. ::PROTOBUF_NAMESPACE_ID::int32 port_;
  230. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  231. };
  232. // -------------------------------------------------------------------
  233. class lidar_box_limit PROTOBUF_FINAL :
  234. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.lidar_box_limit) */ {
  235. public:
  236. inline lidar_box_limit() : lidar_box_limit(nullptr) {}
  237. virtual ~lidar_box_limit();
  238. lidar_box_limit(const lidar_box_limit& from);
  239. lidar_box_limit(lidar_box_limit&& from) noexcept
  240. : lidar_box_limit() {
  241. *this = ::std::move(from);
  242. }
  243. inline lidar_box_limit& operator=(const lidar_box_limit& from) {
  244. CopyFrom(from);
  245. return *this;
  246. }
  247. inline lidar_box_limit& operator=(lidar_box_limit&& from) noexcept {
  248. if (GetArena() == from.GetArena()) {
  249. if (this != &from) InternalSwap(&from);
  250. } else {
  251. CopyFrom(from);
  252. }
  253. return *this;
  254. }
  255. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  256. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  257. }
  258. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  259. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  260. }
  261. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  262. return GetDescriptor();
  263. }
  264. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  265. return GetMetadataStatic().descriptor;
  266. }
  267. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  268. return GetMetadataStatic().reflection;
  269. }
  270. static const lidar_box_limit& default_instance();
  271. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  272. static inline const lidar_box_limit* internal_default_instance() {
  273. return reinterpret_cast<const lidar_box_limit*>(
  274. &_lidar_box_limit_default_instance_);
  275. }
  276. static constexpr int kIndexInFileMessages =
  277. 1;
  278. friend void swap(lidar_box_limit& a, lidar_box_limit& b) {
  279. a.Swap(&b);
  280. }
  281. inline void Swap(lidar_box_limit* other) {
  282. if (other == this) return;
  283. if (GetArena() == other->GetArena()) {
  284. InternalSwap(other);
  285. } else {
  286. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  287. }
  288. }
  289. void UnsafeArenaSwap(lidar_box_limit* other) {
  290. if (other == this) return;
  291. GOOGLE_DCHECK(GetArena() == other->GetArena());
  292. InternalSwap(other);
  293. }
  294. // implements Message ----------------------------------------------
  295. inline lidar_box_limit* New() const final {
  296. return CreateMaybeMessage<lidar_box_limit>(nullptr);
  297. }
  298. lidar_box_limit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  299. return CreateMaybeMessage<lidar_box_limit>(arena);
  300. }
  301. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  302. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  303. void CopyFrom(const lidar_box_limit& from);
  304. void MergeFrom(const lidar_box_limit& from);
  305. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  306. bool IsInitialized() const final;
  307. size_t ByteSizeLong() const final;
  308. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  309. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  310. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  311. int GetCachedSize() const final { return _cached_size_.Get(); }
  312. private:
  313. inline void SharedCtor();
  314. inline void SharedDtor();
  315. void SetCachedSize(int size) const final;
  316. void InternalSwap(lidar_box_limit* other);
  317. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  318. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  319. return "clamp_safety.lidar_box_limit";
  320. }
  321. protected:
  322. explicit lidar_box_limit(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  323. private:
  324. static void ArenaDtor(void* object);
  325. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  326. public:
  327. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  328. private:
  329. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  330. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  331. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  332. }
  333. public:
  334. // nested types ----------------------------------------------------
  335. // accessors -------------------------------------------------------
  336. enum : int {
  337. kMaxyFieldNumber = 5,
  338. kDistLimitFieldNumber = 1,
  339. kMinxFieldNumber = 2,
  340. kMaxxFieldNumber = 3,
  341. kMinyFieldNumber = 4,
  342. };
  343. // optional float maxy = 5 [default = 3.5];
  344. bool has_maxy() const;
  345. private:
  346. bool _internal_has_maxy() const;
  347. public:
  348. void clear_maxy();
  349. float maxy() const;
  350. void set_maxy(float value);
  351. private:
  352. float _internal_maxy() const;
  353. void _internal_set_maxy(float value);
  354. public:
  355. // optional float dist_limit = 1 [default = 8];
  356. bool has_dist_limit() const;
  357. private:
  358. bool _internal_has_dist_limit() const;
  359. public:
  360. void clear_dist_limit();
  361. float dist_limit() const;
  362. void set_dist_limit(float value);
  363. private:
  364. float _internal_dist_limit() const;
  365. void _internal_set_dist_limit(float value);
  366. public:
  367. // optional float minx = 2 [default = -6];
  368. bool has_minx() const;
  369. private:
  370. bool _internal_has_minx() const;
  371. public:
  372. void clear_minx();
  373. float minx() const;
  374. void set_minx(float value);
  375. private:
  376. float _internal_minx() const;
  377. void _internal_set_minx(float value);
  378. public:
  379. // optional float maxx = 3 [default = -0.2];
  380. bool has_maxx() const;
  381. private:
  382. bool _internal_has_maxx() const;
  383. public:
  384. void clear_maxx();
  385. float maxx() const;
  386. void set_maxx(float value);
  387. private:
  388. float _internal_maxx() const;
  389. void _internal_set_maxx(float value);
  390. public:
  391. // optional float miny = 4 [default = -3.5];
  392. bool has_miny() const;
  393. private:
  394. bool _internal_has_miny() const;
  395. public:
  396. void clear_miny();
  397. float miny() const;
  398. void set_miny(float value);
  399. private:
  400. float _internal_miny() const;
  401. void _internal_set_miny(float value);
  402. public:
  403. // @@protoc_insertion_point(class_scope:clamp_safety.lidar_box_limit)
  404. private:
  405. class _Internal;
  406. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  407. typedef void InternalArenaConstructable_;
  408. typedef void DestructorSkippable_;
  409. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  410. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  411. float maxy_;
  412. float dist_limit_;
  413. float minx_;
  414. float maxx_;
  415. float miny_;
  416. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  417. };
  418. // -------------------------------------------------------------------
  419. class LidarParameter PROTOBUF_FINAL :
  420. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.LidarParameter) */ {
  421. public:
  422. inline LidarParameter() : LidarParameter(nullptr) {}
  423. virtual ~LidarParameter();
  424. LidarParameter(const LidarParameter& from);
  425. LidarParameter(LidarParameter&& from) noexcept
  426. : LidarParameter() {
  427. *this = ::std::move(from);
  428. }
  429. inline LidarParameter& operator=(const LidarParameter& from) {
  430. CopyFrom(from);
  431. return *this;
  432. }
  433. inline LidarParameter& operator=(LidarParameter&& from) noexcept {
  434. if (GetArena() == from.GetArena()) {
  435. if (this != &from) InternalSwap(&from);
  436. } else {
  437. CopyFrom(from);
  438. }
  439. return *this;
  440. }
  441. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  442. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  443. }
  444. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  445. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  446. }
  447. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  448. return GetDescriptor();
  449. }
  450. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  451. return GetMetadataStatic().descriptor;
  452. }
  453. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  454. return GetMetadataStatic().reflection;
  455. }
  456. static const LidarParameter& default_instance();
  457. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  458. static inline const LidarParameter* internal_default_instance() {
  459. return reinterpret_cast<const LidarParameter*>(
  460. &_LidarParameter_default_instance_);
  461. }
  462. static constexpr int kIndexInFileMessages =
  463. 2;
  464. friend void swap(LidarParameter& a, LidarParameter& b) {
  465. a.Swap(&b);
  466. }
  467. inline void Swap(LidarParameter* other) {
  468. if (other == this) return;
  469. if (GetArena() == other->GetArena()) {
  470. InternalSwap(other);
  471. } else {
  472. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  473. }
  474. }
  475. void UnsafeArenaSwap(LidarParameter* other) {
  476. if (other == this) return;
  477. GOOGLE_DCHECK(GetArena() == other->GetArena());
  478. InternalSwap(other);
  479. }
  480. // implements Message ----------------------------------------------
  481. inline LidarParameter* New() const final {
  482. return CreateMaybeMessage<LidarParameter>(nullptr);
  483. }
  484. LidarParameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  485. return CreateMaybeMessage<LidarParameter>(arena);
  486. }
  487. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  488. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  489. void CopyFrom(const LidarParameter& from);
  490. void MergeFrom(const LidarParameter& from);
  491. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  492. bool IsInitialized() const final;
  493. size_t ByteSizeLong() const final;
  494. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  495. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  496. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  497. int GetCachedSize() const final { return _cached_size_.Get(); }
  498. private:
  499. inline void SharedCtor();
  500. inline void SharedDtor();
  501. void SetCachedSize(int size) const final;
  502. void InternalSwap(LidarParameter* other);
  503. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  504. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  505. return "clamp_safety.LidarParameter";
  506. }
  507. protected:
  508. explicit LidarParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  509. private:
  510. static void ArenaDtor(void* object);
  511. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  512. public:
  513. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  514. private:
  515. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  516. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  517. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  518. }
  519. public:
  520. // nested types ----------------------------------------------------
  521. // accessors -------------------------------------------------------
  522. enum : int {
  523. kNetConfigFieldNumber = 7,
  524. kScanBoxLimitFieldNumber = 8,
  525. kRangeMinFieldNumber = 5,
  526. kRangeMaxFieldNumber = 6,
  527. kAngleMinFieldNumber = 1,
  528. kAngleMaxFieldNumber = 2,
  529. kAngleIncrementFieldNumber = 3,
  530. kTimeIncrementFieldNumber = 4,
  531. };
  532. // required .clamp_safety.lidar_net net_config = 7;
  533. bool has_net_config() const;
  534. private:
  535. bool _internal_has_net_config() const;
  536. public:
  537. void clear_net_config();
  538. const ::clamp_safety::lidar_net& net_config() const;
  539. ::clamp_safety::lidar_net* release_net_config();
  540. ::clamp_safety::lidar_net* mutable_net_config();
  541. void set_allocated_net_config(::clamp_safety::lidar_net* net_config);
  542. private:
  543. const ::clamp_safety::lidar_net& _internal_net_config() const;
  544. ::clamp_safety::lidar_net* _internal_mutable_net_config();
  545. public:
  546. void unsafe_arena_set_allocated_net_config(
  547. ::clamp_safety::lidar_net* net_config);
  548. ::clamp_safety::lidar_net* unsafe_arena_release_net_config();
  549. // required .clamp_safety.lidar_box_limit scan_box_limit = 8;
  550. bool has_scan_box_limit() const;
  551. private:
  552. bool _internal_has_scan_box_limit() const;
  553. public:
  554. void clear_scan_box_limit();
  555. const ::clamp_safety::lidar_box_limit& scan_box_limit() const;
  556. ::clamp_safety::lidar_box_limit* release_scan_box_limit();
  557. ::clamp_safety::lidar_box_limit* mutable_scan_box_limit();
  558. void set_allocated_scan_box_limit(::clamp_safety::lidar_box_limit* scan_box_limit);
  559. private:
  560. const ::clamp_safety::lidar_box_limit& _internal_scan_box_limit() const;
  561. ::clamp_safety::lidar_box_limit* _internal_mutable_scan_box_limit();
  562. public:
  563. void unsafe_arena_set_allocated_scan_box_limit(
  564. ::clamp_safety::lidar_box_limit* scan_box_limit);
  565. ::clamp_safety::lidar_box_limit* unsafe_arena_release_scan_box_limit();
  566. // optional int32 range_min = 5 [default = 0];
  567. bool has_range_min() const;
  568. private:
  569. bool _internal_has_range_min() const;
  570. public:
  571. void clear_range_min();
  572. ::PROTOBUF_NAMESPACE_ID::int32 range_min() const;
  573. void set_range_min(::PROTOBUF_NAMESPACE_ID::int32 value);
  574. private:
  575. ::PROTOBUF_NAMESPACE_ID::int32 _internal_range_min() const;
  576. void _internal_set_range_min(::PROTOBUF_NAMESPACE_ID::int32 value);
  577. public:
  578. // optional int32 range_max = 6 [default = 30];
  579. bool has_range_max() const;
  580. private:
  581. bool _internal_has_range_max() const;
  582. public:
  583. void clear_range_max();
  584. ::PROTOBUF_NAMESPACE_ID::int32 range_max() const;
  585. void set_range_max(::PROTOBUF_NAMESPACE_ID::int32 value);
  586. private:
  587. ::PROTOBUF_NAMESPACE_ID::int32 _internal_range_max() const;
  588. void _internal_set_range_max(::PROTOBUF_NAMESPACE_ID::int32 value);
  589. public:
  590. // optional float angle_min = 1 [default = -2.3561945];
  591. bool has_angle_min() const;
  592. private:
  593. bool _internal_has_angle_min() const;
  594. public:
  595. void clear_angle_min();
  596. float angle_min() const;
  597. void set_angle_min(float value);
  598. private:
  599. float _internal_angle_min() const;
  600. void _internal_set_angle_min(float value);
  601. public:
  602. // optional float angle_max = 2 [default = 2.3561945];
  603. bool has_angle_max() const;
  604. private:
  605. bool _internal_has_angle_max() const;
  606. public:
  607. void clear_angle_max();
  608. float angle_max() const;
  609. void set_angle_max(float value);
  610. private:
  611. float _internal_angle_max() const;
  612. void _internal_set_angle_max(float value);
  613. public:
  614. // optional float angle_increment = 3 [default = 0.00582];
  615. bool has_angle_increment() const;
  616. private:
  617. bool _internal_has_angle_increment() const;
  618. public:
  619. void clear_angle_increment();
  620. float angle_increment() const;
  621. void set_angle_increment(float value);
  622. private:
  623. float _internal_angle_increment() const;
  624. void _internal_set_angle_increment(float value);
  625. public:
  626. // optional float time_increment = 4 [default = 6.2e-05];
  627. bool has_time_increment() const;
  628. private:
  629. bool _internal_has_time_increment() const;
  630. public:
  631. void clear_time_increment();
  632. float time_increment() const;
  633. void set_time_increment(float value);
  634. private:
  635. float _internal_time_increment() const;
  636. void _internal_set_time_increment(float value);
  637. public:
  638. // @@protoc_insertion_point(class_scope:clamp_safety.LidarParameter)
  639. private:
  640. class _Internal;
  641. // helper for ByteSizeLong()
  642. size_t RequiredFieldsByteSizeFallback() const;
  643. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  644. typedef void InternalArenaConstructable_;
  645. typedef void DestructorSkippable_;
  646. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  647. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  648. ::clamp_safety::lidar_net* net_config_;
  649. ::clamp_safety::lidar_box_limit* scan_box_limit_;
  650. ::PROTOBUF_NAMESPACE_ID::int32 range_min_;
  651. ::PROTOBUF_NAMESPACE_ID::int32 range_max_;
  652. float angle_min_;
  653. float angle_max_;
  654. float angle_increment_;
  655. float time_increment_;
  656. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  657. };
  658. // -------------------------------------------------------------------
  659. class plc_net PROTOBUF_FINAL :
  660. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.plc_net) */ {
  661. public:
  662. inline plc_net() : plc_net(nullptr) {}
  663. virtual ~plc_net();
  664. plc_net(const plc_net& from);
  665. plc_net(plc_net&& from) noexcept
  666. : plc_net() {
  667. *this = ::std::move(from);
  668. }
  669. inline plc_net& operator=(const plc_net& from) {
  670. CopyFrom(from);
  671. return *this;
  672. }
  673. inline plc_net& operator=(plc_net&& from) noexcept {
  674. if (GetArena() == from.GetArena()) {
  675. if (this != &from) InternalSwap(&from);
  676. } else {
  677. CopyFrom(from);
  678. }
  679. return *this;
  680. }
  681. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  682. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  683. }
  684. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  685. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  686. }
  687. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  688. return GetDescriptor();
  689. }
  690. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  691. return GetMetadataStatic().descriptor;
  692. }
  693. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  694. return GetMetadataStatic().reflection;
  695. }
  696. static const plc_net& default_instance();
  697. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  698. static inline const plc_net* internal_default_instance() {
  699. return reinterpret_cast<const plc_net*>(
  700. &_plc_net_default_instance_);
  701. }
  702. static constexpr int kIndexInFileMessages =
  703. 3;
  704. friend void swap(plc_net& a, plc_net& b) {
  705. a.Swap(&b);
  706. }
  707. inline void Swap(plc_net* other) {
  708. if (other == this) return;
  709. if (GetArena() == other->GetArena()) {
  710. InternalSwap(other);
  711. } else {
  712. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  713. }
  714. }
  715. void UnsafeArenaSwap(plc_net* other) {
  716. if (other == this) return;
  717. GOOGLE_DCHECK(GetArena() == other->GetArena());
  718. InternalSwap(other);
  719. }
  720. // implements Message ----------------------------------------------
  721. inline plc_net* New() const final {
  722. return CreateMaybeMessage<plc_net>(nullptr);
  723. }
  724. plc_net* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  725. return CreateMaybeMessage<plc_net>(arena);
  726. }
  727. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  728. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  729. void CopyFrom(const plc_net& from);
  730. void MergeFrom(const plc_net& from);
  731. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  732. bool IsInitialized() const final;
  733. size_t ByteSizeLong() const final;
  734. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  735. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  736. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  737. int GetCachedSize() const final { return _cached_size_.Get(); }
  738. private:
  739. inline void SharedCtor();
  740. inline void SharedDtor();
  741. void SetCachedSize(int size) const final;
  742. void InternalSwap(plc_net* other);
  743. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  744. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  745. return "clamp_safety.plc_net";
  746. }
  747. protected:
  748. explicit plc_net(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  749. private:
  750. static void ArenaDtor(void* object);
  751. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  752. public:
  753. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  754. private:
  755. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  756. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  757. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  758. }
  759. public:
  760. // nested types ----------------------------------------------------
  761. // accessors -------------------------------------------------------
  762. enum : int {
  763. kIpAddressFieldNumber = 1,
  764. };
  765. // optional string ip_address = 1 [default = ""];
  766. bool has_ip_address() const;
  767. private:
  768. bool _internal_has_ip_address() const;
  769. public:
  770. void clear_ip_address();
  771. const std::string& ip_address() const;
  772. void set_ip_address(const std::string& value);
  773. void set_ip_address(std::string&& value);
  774. void set_ip_address(const char* value);
  775. void set_ip_address(const char* value, size_t size);
  776. std::string* mutable_ip_address();
  777. std::string* release_ip_address();
  778. void set_allocated_ip_address(std::string* ip_address);
  779. private:
  780. const std::string& _internal_ip_address() const;
  781. void _internal_set_ip_address(const std::string& value);
  782. std::string* _internal_mutable_ip_address();
  783. public:
  784. // @@protoc_insertion_point(class_scope:clamp_safety.plc_net)
  785. private:
  786. class _Internal;
  787. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  788. typedef void InternalArenaConstructable_;
  789. typedef void DestructorSkippable_;
  790. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  791. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  792. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_;
  793. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  794. };
  795. // -------------------------------------------------------------------
  796. class local_net PROTOBUF_FINAL :
  797. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.local_net) */ {
  798. public:
  799. inline local_net() : local_net(nullptr) {}
  800. virtual ~local_net();
  801. local_net(const local_net& from);
  802. local_net(local_net&& from) noexcept
  803. : local_net() {
  804. *this = ::std::move(from);
  805. }
  806. inline local_net& operator=(const local_net& from) {
  807. CopyFrom(from);
  808. return *this;
  809. }
  810. inline local_net& operator=(local_net&& from) noexcept {
  811. if (GetArena() == from.GetArena()) {
  812. if (this != &from) InternalSwap(&from);
  813. } else {
  814. CopyFrom(from);
  815. }
  816. return *this;
  817. }
  818. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  819. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  820. }
  821. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  822. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  823. }
  824. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  825. return GetDescriptor();
  826. }
  827. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  828. return GetMetadataStatic().descriptor;
  829. }
  830. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  831. return GetMetadataStatic().reflection;
  832. }
  833. static const local_net& default_instance();
  834. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  835. static inline const local_net* internal_default_instance() {
  836. return reinterpret_cast<const local_net*>(
  837. &_local_net_default_instance_);
  838. }
  839. static constexpr int kIndexInFileMessages =
  840. 4;
  841. friend void swap(local_net& a, local_net& b) {
  842. a.Swap(&b);
  843. }
  844. inline void Swap(local_net* other) {
  845. if (other == this) return;
  846. if (GetArena() == other->GetArena()) {
  847. InternalSwap(other);
  848. } else {
  849. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  850. }
  851. }
  852. void UnsafeArenaSwap(local_net* other) {
  853. if (other == this) return;
  854. GOOGLE_DCHECK(GetArena() == other->GetArena());
  855. InternalSwap(other);
  856. }
  857. // implements Message ----------------------------------------------
  858. inline local_net* New() const final {
  859. return CreateMaybeMessage<local_net>(nullptr);
  860. }
  861. local_net* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  862. return CreateMaybeMessage<local_net>(arena);
  863. }
  864. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  865. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  866. void CopyFrom(const local_net& from);
  867. void MergeFrom(const local_net& from);
  868. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  869. bool IsInitialized() const final;
  870. size_t ByteSizeLong() const final;
  871. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  872. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  873. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  874. int GetCachedSize() const final { return _cached_size_.Get(); }
  875. private:
  876. inline void SharedCtor();
  877. inline void SharedDtor();
  878. void SetCachedSize(int size) const final;
  879. void InternalSwap(local_net* other);
  880. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  881. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  882. return "clamp_safety.local_net";
  883. }
  884. protected:
  885. explicit local_net(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  886. private:
  887. static void ArenaDtor(void* object);
  888. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  889. public:
  890. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  891. private:
  892. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  893. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  894. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  895. }
  896. public:
  897. // nested types ----------------------------------------------------
  898. // accessors -------------------------------------------------------
  899. enum : int {
  900. kLocalIpFieldNumber = 1,
  901. kEthNameFieldNumber = 2,
  902. };
  903. // optional string local_ip = 1 [default = "10.211.0.1"];
  904. bool has_local_ip() const;
  905. private:
  906. bool _internal_has_local_ip() const;
  907. public:
  908. void clear_local_ip();
  909. const std::string& local_ip() const;
  910. void set_local_ip(const std::string& value);
  911. void set_local_ip(std::string&& value);
  912. void set_local_ip(const char* value);
  913. void set_local_ip(const char* value, size_t size);
  914. std::string* mutable_local_ip();
  915. std::string* release_local_ip();
  916. void set_allocated_local_ip(std::string* local_ip);
  917. private:
  918. const std::string& _internal_local_ip() const;
  919. void _internal_set_local_ip(const std::string& value);
  920. std::string* _internal_mutable_local_ip();
  921. public:
  922. // optional string eth_name = 2 [default = "eth0"];
  923. bool has_eth_name() const;
  924. private:
  925. bool _internal_has_eth_name() const;
  926. public:
  927. void clear_eth_name();
  928. const std::string& eth_name() const;
  929. void set_eth_name(const std::string& value);
  930. void set_eth_name(std::string&& value);
  931. void set_eth_name(const char* value);
  932. void set_eth_name(const char* value, size_t size);
  933. std::string* mutable_eth_name();
  934. std::string* release_eth_name();
  935. void set_allocated_eth_name(std::string* eth_name);
  936. private:
  937. const std::string& _internal_eth_name() const;
  938. void _internal_set_eth_name(const std::string& value);
  939. std::string* _internal_mutable_eth_name();
  940. public:
  941. // @@protoc_insertion_point(class_scope:clamp_safety.local_net)
  942. private:
  943. class _Internal;
  944. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  945. typedef void InternalArenaConstructable_;
  946. typedef void DestructorSkippable_;
  947. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  948. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  949. public:
  950. static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_local_ip_;
  951. private:
  952. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_ip_;
  953. public:
  954. static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_eth_name_;
  955. private:
  956. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr eth_name_;
  957. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  958. };
  959. // -------------------------------------------------------------------
  960. class clamp_parameter PROTOBUF_FINAL :
  961. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:clamp_safety.clamp_parameter) */ {
  962. public:
  963. inline clamp_parameter() : clamp_parameter(nullptr) {}
  964. virtual ~clamp_parameter();
  965. clamp_parameter(const clamp_parameter& from);
  966. clamp_parameter(clamp_parameter&& from) noexcept
  967. : clamp_parameter() {
  968. *this = ::std::move(from);
  969. }
  970. inline clamp_parameter& operator=(const clamp_parameter& from) {
  971. CopyFrom(from);
  972. return *this;
  973. }
  974. inline clamp_parameter& operator=(clamp_parameter&& from) noexcept {
  975. if (GetArena() == from.GetArena()) {
  976. if (this != &from) InternalSwap(&from);
  977. } else {
  978. CopyFrom(from);
  979. }
  980. return *this;
  981. }
  982. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  983. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  984. }
  985. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  986. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  987. }
  988. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  989. return GetDescriptor();
  990. }
  991. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  992. return GetMetadataStatic().descriptor;
  993. }
  994. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  995. return GetMetadataStatic().reflection;
  996. }
  997. static const clamp_parameter& default_instance();
  998. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  999. static inline const clamp_parameter* internal_default_instance() {
  1000. return reinterpret_cast<const clamp_parameter*>(
  1001. &_clamp_parameter_default_instance_);
  1002. }
  1003. static constexpr int kIndexInFileMessages =
  1004. 5;
  1005. friend void swap(clamp_parameter& a, clamp_parameter& b) {
  1006. a.Swap(&b);
  1007. }
  1008. inline void Swap(clamp_parameter* other) {
  1009. if (other == this) return;
  1010. if (GetArena() == other->GetArena()) {
  1011. InternalSwap(other);
  1012. } else {
  1013. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1014. }
  1015. }
  1016. void UnsafeArenaSwap(clamp_parameter* other) {
  1017. if (other == this) return;
  1018. GOOGLE_DCHECK(GetArena() == other->GetArena());
  1019. InternalSwap(other);
  1020. }
  1021. // implements Message ----------------------------------------------
  1022. inline clamp_parameter* New() const final {
  1023. return CreateMaybeMessage<clamp_parameter>(nullptr);
  1024. }
  1025. clamp_parameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1026. return CreateMaybeMessage<clamp_parameter>(arena);
  1027. }
  1028. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1029. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1030. void CopyFrom(const clamp_parameter& from);
  1031. void MergeFrom(const clamp_parameter& from);
  1032. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1033. bool IsInitialized() const final;
  1034. size_t ByteSizeLong() const final;
  1035. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1036. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  1037. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1038. int GetCachedSize() const final { return _cached_size_.Get(); }
  1039. private:
  1040. inline void SharedCtor();
  1041. inline void SharedDtor();
  1042. void SetCachedSize(int size) const final;
  1043. void InternalSwap(clamp_parameter* other);
  1044. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1045. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1046. return "clamp_safety.clamp_parameter";
  1047. }
  1048. protected:
  1049. explicit clamp_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1050. private:
  1051. static void ArenaDtor(void* object);
  1052. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1053. public:
  1054. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1055. private:
  1056. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1057. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_clamp_5fparameter_2eproto);
  1058. return ::descriptor_table_clamp_5fparameter_2eproto.file_level_metadata[kIndexInFileMessages];
  1059. }
  1060. public:
  1061. // nested types ----------------------------------------------------
  1062. // accessors -------------------------------------------------------
  1063. enum : int {
  1064. kLidarsFieldNumber = 1,
  1065. kPlcParameterFieldNumber = 2,
  1066. kLocalParameterFieldNumber = 3,
  1067. };
  1068. // repeated .clamp_safety.LidarParameter lidars = 1;
  1069. int lidars_size() const;
  1070. private:
  1071. int _internal_lidars_size() const;
  1072. public:
  1073. void clear_lidars();
  1074. ::clamp_safety::LidarParameter* mutable_lidars(int index);
  1075. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::clamp_safety::LidarParameter >*
  1076. mutable_lidars();
  1077. private:
  1078. const ::clamp_safety::LidarParameter& _internal_lidars(int index) const;
  1079. ::clamp_safety::LidarParameter* _internal_add_lidars();
  1080. public:
  1081. const ::clamp_safety::LidarParameter& lidars(int index) const;
  1082. ::clamp_safety::LidarParameter* add_lidars();
  1083. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::clamp_safety::LidarParameter >&
  1084. lidars() const;
  1085. // required .clamp_safety.plc_net plc_parameter = 2;
  1086. bool has_plc_parameter() const;
  1087. private:
  1088. bool _internal_has_plc_parameter() const;
  1089. public:
  1090. void clear_plc_parameter();
  1091. const ::clamp_safety::plc_net& plc_parameter() const;
  1092. ::clamp_safety::plc_net* release_plc_parameter();
  1093. ::clamp_safety::plc_net* mutable_plc_parameter();
  1094. void set_allocated_plc_parameter(::clamp_safety::plc_net* plc_parameter);
  1095. private:
  1096. const ::clamp_safety::plc_net& _internal_plc_parameter() const;
  1097. ::clamp_safety::plc_net* _internal_mutable_plc_parameter();
  1098. public:
  1099. void unsafe_arena_set_allocated_plc_parameter(
  1100. ::clamp_safety::plc_net* plc_parameter);
  1101. ::clamp_safety::plc_net* unsafe_arena_release_plc_parameter();
  1102. // required .clamp_safety.local_net local_parameter = 3;
  1103. bool has_local_parameter() const;
  1104. private:
  1105. bool _internal_has_local_parameter() const;
  1106. public:
  1107. void clear_local_parameter();
  1108. const ::clamp_safety::local_net& local_parameter() const;
  1109. ::clamp_safety::local_net* release_local_parameter();
  1110. ::clamp_safety::local_net* mutable_local_parameter();
  1111. void set_allocated_local_parameter(::clamp_safety::local_net* local_parameter);
  1112. private:
  1113. const ::clamp_safety::local_net& _internal_local_parameter() const;
  1114. ::clamp_safety::local_net* _internal_mutable_local_parameter();
  1115. public:
  1116. void unsafe_arena_set_allocated_local_parameter(
  1117. ::clamp_safety::local_net* local_parameter);
  1118. ::clamp_safety::local_net* unsafe_arena_release_local_parameter();
  1119. // @@protoc_insertion_point(class_scope:clamp_safety.clamp_parameter)
  1120. private:
  1121. class _Internal;
  1122. // helper for ByteSizeLong()
  1123. size_t RequiredFieldsByteSizeFallback() const;
  1124. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1125. typedef void InternalArenaConstructable_;
  1126. typedef void DestructorSkippable_;
  1127. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1128. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1129. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::clamp_safety::LidarParameter > lidars_;
  1130. ::clamp_safety::plc_net* plc_parameter_;
  1131. ::clamp_safety::local_net* local_parameter_;
  1132. friend struct ::TableStruct_clamp_5fparameter_2eproto;
  1133. };
  1134. // ===================================================================
  1135. // ===================================================================
  1136. #ifdef __GNUC__
  1137. #pragma GCC diagnostic push
  1138. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1139. #endif // __GNUC__
  1140. // lidar_net
  1141. // optional string ip_address = 1 [default = ""];
  1142. inline bool lidar_net::_internal_has_ip_address() const {
  1143. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1144. return value;
  1145. }
  1146. inline bool lidar_net::has_ip_address() const {
  1147. return _internal_has_ip_address();
  1148. }
  1149. inline void lidar_net::clear_ip_address() {
  1150. ip_address_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1151. _has_bits_[0] &= ~0x00000001u;
  1152. }
  1153. inline const std::string& lidar_net::ip_address() const {
  1154. // @@protoc_insertion_point(field_get:clamp_safety.lidar_net.ip_address)
  1155. return _internal_ip_address();
  1156. }
  1157. inline void lidar_net::set_ip_address(const std::string& value) {
  1158. _internal_set_ip_address(value);
  1159. // @@protoc_insertion_point(field_set:clamp_safety.lidar_net.ip_address)
  1160. }
  1161. inline std::string* lidar_net::mutable_ip_address() {
  1162. // @@protoc_insertion_point(field_mutable:clamp_safety.lidar_net.ip_address)
  1163. return _internal_mutable_ip_address();
  1164. }
  1165. inline const std::string& lidar_net::_internal_ip_address() const {
  1166. return ip_address_.Get();
  1167. }
  1168. inline void lidar_net::_internal_set_ip_address(const std::string& value) {
  1169. _has_bits_[0] |= 0x00000001u;
  1170. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1171. }
  1172. inline void lidar_net::set_ip_address(std::string&& value) {
  1173. _has_bits_[0] |= 0x00000001u;
  1174. ip_address_.Set(
  1175. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1176. // @@protoc_insertion_point(field_set_rvalue:clamp_safety.lidar_net.ip_address)
  1177. }
  1178. inline void lidar_net::set_ip_address(const char* value) {
  1179. GOOGLE_DCHECK(value != nullptr);
  1180. _has_bits_[0] |= 0x00000001u;
  1181. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1182. GetArena());
  1183. // @@protoc_insertion_point(field_set_char:clamp_safety.lidar_net.ip_address)
  1184. }
  1185. inline void lidar_net::set_ip_address(const char* value,
  1186. size_t size) {
  1187. _has_bits_[0] |= 0x00000001u;
  1188. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1189. reinterpret_cast<const char*>(value), size), GetArena());
  1190. // @@protoc_insertion_point(field_set_pointer:clamp_safety.lidar_net.ip_address)
  1191. }
  1192. inline std::string* lidar_net::_internal_mutable_ip_address() {
  1193. _has_bits_[0] |= 0x00000001u;
  1194. return ip_address_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1195. }
  1196. inline std::string* lidar_net::release_ip_address() {
  1197. // @@protoc_insertion_point(field_release:clamp_safety.lidar_net.ip_address)
  1198. if (!_internal_has_ip_address()) {
  1199. return nullptr;
  1200. }
  1201. _has_bits_[0] &= ~0x00000001u;
  1202. return ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1203. }
  1204. inline void lidar_net::set_allocated_ip_address(std::string* ip_address) {
  1205. if (ip_address != nullptr) {
  1206. _has_bits_[0] |= 0x00000001u;
  1207. } else {
  1208. _has_bits_[0] &= ~0x00000001u;
  1209. }
  1210. ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address,
  1211. GetArena());
  1212. // @@protoc_insertion_point(field_set_allocated:clamp_safety.lidar_net.ip_address)
  1213. }
  1214. // optional int32 port = 2 [default = 8000];
  1215. inline bool lidar_net::_internal_has_port() const {
  1216. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1217. return value;
  1218. }
  1219. inline bool lidar_net::has_port() const {
  1220. return _internal_has_port();
  1221. }
  1222. inline void lidar_net::clear_port() {
  1223. port_ = 8000;
  1224. _has_bits_[0] &= ~0x00000002u;
  1225. }
  1226. inline ::PROTOBUF_NAMESPACE_ID::int32 lidar_net::_internal_port() const {
  1227. return port_;
  1228. }
  1229. inline ::PROTOBUF_NAMESPACE_ID::int32 lidar_net::port() const {
  1230. // @@protoc_insertion_point(field_get:clamp_safety.lidar_net.port)
  1231. return _internal_port();
  1232. }
  1233. inline void lidar_net::_internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1234. _has_bits_[0] |= 0x00000002u;
  1235. port_ = value;
  1236. }
  1237. inline void lidar_net::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1238. _internal_set_port(value);
  1239. // @@protoc_insertion_point(field_set:clamp_safety.lidar_net.port)
  1240. }
  1241. // -------------------------------------------------------------------
  1242. // lidar_box_limit
  1243. // optional float dist_limit = 1 [default = 8];
  1244. inline bool lidar_box_limit::_internal_has_dist_limit() const {
  1245. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1246. return value;
  1247. }
  1248. inline bool lidar_box_limit::has_dist_limit() const {
  1249. return _internal_has_dist_limit();
  1250. }
  1251. inline void lidar_box_limit::clear_dist_limit() {
  1252. dist_limit_ = 8;
  1253. _has_bits_[0] &= ~0x00000002u;
  1254. }
  1255. inline float lidar_box_limit::_internal_dist_limit() const {
  1256. return dist_limit_;
  1257. }
  1258. inline float lidar_box_limit::dist_limit() const {
  1259. // @@protoc_insertion_point(field_get:clamp_safety.lidar_box_limit.dist_limit)
  1260. return _internal_dist_limit();
  1261. }
  1262. inline void lidar_box_limit::_internal_set_dist_limit(float value) {
  1263. _has_bits_[0] |= 0x00000002u;
  1264. dist_limit_ = value;
  1265. }
  1266. inline void lidar_box_limit::set_dist_limit(float value) {
  1267. _internal_set_dist_limit(value);
  1268. // @@protoc_insertion_point(field_set:clamp_safety.lidar_box_limit.dist_limit)
  1269. }
  1270. // optional float minx = 2 [default = -6];
  1271. inline bool lidar_box_limit::_internal_has_minx() const {
  1272. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1273. return value;
  1274. }
  1275. inline bool lidar_box_limit::has_minx() const {
  1276. return _internal_has_minx();
  1277. }
  1278. inline void lidar_box_limit::clear_minx() {
  1279. minx_ = -6;
  1280. _has_bits_[0] &= ~0x00000004u;
  1281. }
  1282. inline float lidar_box_limit::_internal_minx() const {
  1283. return minx_;
  1284. }
  1285. inline float lidar_box_limit::minx() const {
  1286. // @@protoc_insertion_point(field_get:clamp_safety.lidar_box_limit.minx)
  1287. return _internal_minx();
  1288. }
  1289. inline void lidar_box_limit::_internal_set_minx(float value) {
  1290. _has_bits_[0] |= 0x00000004u;
  1291. minx_ = value;
  1292. }
  1293. inline void lidar_box_limit::set_minx(float value) {
  1294. _internal_set_minx(value);
  1295. // @@protoc_insertion_point(field_set:clamp_safety.lidar_box_limit.minx)
  1296. }
  1297. // optional float maxx = 3 [default = -0.2];
  1298. inline bool lidar_box_limit::_internal_has_maxx() const {
  1299. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  1300. return value;
  1301. }
  1302. inline bool lidar_box_limit::has_maxx() const {
  1303. return _internal_has_maxx();
  1304. }
  1305. inline void lidar_box_limit::clear_maxx() {
  1306. maxx_ = -0.2f;
  1307. _has_bits_[0] &= ~0x00000008u;
  1308. }
  1309. inline float lidar_box_limit::_internal_maxx() const {
  1310. return maxx_;
  1311. }
  1312. inline float lidar_box_limit::maxx() const {
  1313. // @@protoc_insertion_point(field_get:clamp_safety.lidar_box_limit.maxx)
  1314. return _internal_maxx();
  1315. }
  1316. inline void lidar_box_limit::_internal_set_maxx(float value) {
  1317. _has_bits_[0] |= 0x00000008u;
  1318. maxx_ = value;
  1319. }
  1320. inline void lidar_box_limit::set_maxx(float value) {
  1321. _internal_set_maxx(value);
  1322. // @@protoc_insertion_point(field_set:clamp_safety.lidar_box_limit.maxx)
  1323. }
  1324. // optional float miny = 4 [default = -3.5];
  1325. inline bool lidar_box_limit::_internal_has_miny() const {
  1326. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  1327. return value;
  1328. }
  1329. inline bool lidar_box_limit::has_miny() const {
  1330. return _internal_has_miny();
  1331. }
  1332. inline void lidar_box_limit::clear_miny() {
  1333. miny_ = -3.5f;
  1334. _has_bits_[0] &= ~0x00000010u;
  1335. }
  1336. inline float lidar_box_limit::_internal_miny() const {
  1337. return miny_;
  1338. }
  1339. inline float lidar_box_limit::miny() const {
  1340. // @@protoc_insertion_point(field_get:clamp_safety.lidar_box_limit.miny)
  1341. return _internal_miny();
  1342. }
  1343. inline void lidar_box_limit::_internal_set_miny(float value) {
  1344. _has_bits_[0] |= 0x00000010u;
  1345. miny_ = value;
  1346. }
  1347. inline void lidar_box_limit::set_miny(float value) {
  1348. _internal_set_miny(value);
  1349. // @@protoc_insertion_point(field_set:clamp_safety.lidar_box_limit.miny)
  1350. }
  1351. // optional float maxy = 5 [default = 3.5];
  1352. inline bool lidar_box_limit::_internal_has_maxy() const {
  1353. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1354. return value;
  1355. }
  1356. inline bool lidar_box_limit::has_maxy() const {
  1357. return _internal_has_maxy();
  1358. }
  1359. inline void lidar_box_limit::clear_maxy() {
  1360. maxy_ = 3.5f;
  1361. _has_bits_[0] &= ~0x00000001u;
  1362. }
  1363. inline float lidar_box_limit::_internal_maxy() const {
  1364. return maxy_;
  1365. }
  1366. inline float lidar_box_limit::maxy() const {
  1367. // @@protoc_insertion_point(field_get:clamp_safety.lidar_box_limit.maxy)
  1368. return _internal_maxy();
  1369. }
  1370. inline void lidar_box_limit::_internal_set_maxy(float value) {
  1371. _has_bits_[0] |= 0x00000001u;
  1372. maxy_ = value;
  1373. }
  1374. inline void lidar_box_limit::set_maxy(float value) {
  1375. _internal_set_maxy(value);
  1376. // @@protoc_insertion_point(field_set:clamp_safety.lidar_box_limit.maxy)
  1377. }
  1378. // -------------------------------------------------------------------
  1379. // LidarParameter
  1380. // optional float angle_min = 1 [default = -2.3561945];
  1381. inline bool LidarParameter::_internal_has_angle_min() const {
  1382. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  1383. return value;
  1384. }
  1385. inline bool LidarParameter::has_angle_min() const {
  1386. return _internal_has_angle_min();
  1387. }
  1388. inline void LidarParameter::clear_angle_min() {
  1389. angle_min_ = -2.3561945f;
  1390. _has_bits_[0] &= ~0x00000010u;
  1391. }
  1392. inline float LidarParameter::_internal_angle_min() const {
  1393. return angle_min_;
  1394. }
  1395. inline float LidarParameter::angle_min() const {
  1396. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.angle_min)
  1397. return _internal_angle_min();
  1398. }
  1399. inline void LidarParameter::_internal_set_angle_min(float value) {
  1400. _has_bits_[0] |= 0x00000010u;
  1401. angle_min_ = value;
  1402. }
  1403. inline void LidarParameter::set_angle_min(float value) {
  1404. _internal_set_angle_min(value);
  1405. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.angle_min)
  1406. }
  1407. // optional float angle_max = 2 [default = 2.3561945];
  1408. inline bool LidarParameter::_internal_has_angle_max() const {
  1409. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  1410. return value;
  1411. }
  1412. inline bool LidarParameter::has_angle_max() const {
  1413. return _internal_has_angle_max();
  1414. }
  1415. inline void LidarParameter::clear_angle_max() {
  1416. angle_max_ = 2.3561945f;
  1417. _has_bits_[0] &= ~0x00000020u;
  1418. }
  1419. inline float LidarParameter::_internal_angle_max() const {
  1420. return angle_max_;
  1421. }
  1422. inline float LidarParameter::angle_max() const {
  1423. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.angle_max)
  1424. return _internal_angle_max();
  1425. }
  1426. inline void LidarParameter::_internal_set_angle_max(float value) {
  1427. _has_bits_[0] |= 0x00000020u;
  1428. angle_max_ = value;
  1429. }
  1430. inline void LidarParameter::set_angle_max(float value) {
  1431. _internal_set_angle_max(value);
  1432. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.angle_max)
  1433. }
  1434. // optional float angle_increment = 3 [default = 0.00582];
  1435. inline bool LidarParameter::_internal_has_angle_increment() const {
  1436. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  1437. return value;
  1438. }
  1439. inline bool LidarParameter::has_angle_increment() const {
  1440. return _internal_has_angle_increment();
  1441. }
  1442. inline void LidarParameter::clear_angle_increment() {
  1443. angle_increment_ = 0.00582f;
  1444. _has_bits_[0] &= ~0x00000040u;
  1445. }
  1446. inline float LidarParameter::_internal_angle_increment() const {
  1447. return angle_increment_;
  1448. }
  1449. inline float LidarParameter::angle_increment() const {
  1450. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.angle_increment)
  1451. return _internal_angle_increment();
  1452. }
  1453. inline void LidarParameter::_internal_set_angle_increment(float value) {
  1454. _has_bits_[0] |= 0x00000040u;
  1455. angle_increment_ = value;
  1456. }
  1457. inline void LidarParameter::set_angle_increment(float value) {
  1458. _internal_set_angle_increment(value);
  1459. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.angle_increment)
  1460. }
  1461. // optional float time_increment = 4 [default = 6.2e-05];
  1462. inline bool LidarParameter::_internal_has_time_increment() const {
  1463. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  1464. return value;
  1465. }
  1466. inline bool LidarParameter::has_time_increment() const {
  1467. return _internal_has_time_increment();
  1468. }
  1469. inline void LidarParameter::clear_time_increment() {
  1470. time_increment_ = 6.2e-05f;
  1471. _has_bits_[0] &= ~0x00000080u;
  1472. }
  1473. inline float LidarParameter::_internal_time_increment() const {
  1474. return time_increment_;
  1475. }
  1476. inline float LidarParameter::time_increment() const {
  1477. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.time_increment)
  1478. return _internal_time_increment();
  1479. }
  1480. inline void LidarParameter::_internal_set_time_increment(float value) {
  1481. _has_bits_[0] |= 0x00000080u;
  1482. time_increment_ = value;
  1483. }
  1484. inline void LidarParameter::set_time_increment(float value) {
  1485. _internal_set_time_increment(value);
  1486. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.time_increment)
  1487. }
  1488. // optional int32 range_min = 5 [default = 0];
  1489. inline bool LidarParameter::_internal_has_range_min() const {
  1490. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1491. return value;
  1492. }
  1493. inline bool LidarParameter::has_range_min() const {
  1494. return _internal_has_range_min();
  1495. }
  1496. inline void LidarParameter::clear_range_min() {
  1497. range_min_ = 0;
  1498. _has_bits_[0] &= ~0x00000004u;
  1499. }
  1500. inline ::PROTOBUF_NAMESPACE_ID::int32 LidarParameter::_internal_range_min() const {
  1501. return range_min_;
  1502. }
  1503. inline ::PROTOBUF_NAMESPACE_ID::int32 LidarParameter::range_min() const {
  1504. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.range_min)
  1505. return _internal_range_min();
  1506. }
  1507. inline void LidarParameter::_internal_set_range_min(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1508. _has_bits_[0] |= 0x00000004u;
  1509. range_min_ = value;
  1510. }
  1511. inline void LidarParameter::set_range_min(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1512. _internal_set_range_min(value);
  1513. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.range_min)
  1514. }
  1515. // optional int32 range_max = 6 [default = 30];
  1516. inline bool LidarParameter::_internal_has_range_max() const {
  1517. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  1518. return value;
  1519. }
  1520. inline bool LidarParameter::has_range_max() const {
  1521. return _internal_has_range_max();
  1522. }
  1523. inline void LidarParameter::clear_range_max() {
  1524. range_max_ = 30;
  1525. _has_bits_[0] &= ~0x00000008u;
  1526. }
  1527. inline ::PROTOBUF_NAMESPACE_ID::int32 LidarParameter::_internal_range_max() const {
  1528. return range_max_;
  1529. }
  1530. inline ::PROTOBUF_NAMESPACE_ID::int32 LidarParameter::range_max() const {
  1531. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.range_max)
  1532. return _internal_range_max();
  1533. }
  1534. inline void LidarParameter::_internal_set_range_max(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1535. _has_bits_[0] |= 0x00000008u;
  1536. range_max_ = value;
  1537. }
  1538. inline void LidarParameter::set_range_max(::PROTOBUF_NAMESPACE_ID::int32 value) {
  1539. _internal_set_range_max(value);
  1540. // @@protoc_insertion_point(field_set:clamp_safety.LidarParameter.range_max)
  1541. }
  1542. // required .clamp_safety.lidar_net net_config = 7;
  1543. inline bool LidarParameter::_internal_has_net_config() const {
  1544. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1545. PROTOBUF_ASSUME(!value || net_config_ != nullptr);
  1546. return value;
  1547. }
  1548. inline bool LidarParameter::has_net_config() const {
  1549. return _internal_has_net_config();
  1550. }
  1551. inline void LidarParameter::clear_net_config() {
  1552. if (net_config_ != nullptr) net_config_->Clear();
  1553. _has_bits_[0] &= ~0x00000001u;
  1554. }
  1555. inline const ::clamp_safety::lidar_net& LidarParameter::_internal_net_config() const {
  1556. const ::clamp_safety::lidar_net* p = net_config_;
  1557. return p != nullptr ? *p : *reinterpret_cast<const ::clamp_safety::lidar_net*>(
  1558. &::clamp_safety::_lidar_net_default_instance_);
  1559. }
  1560. inline const ::clamp_safety::lidar_net& LidarParameter::net_config() const {
  1561. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.net_config)
  1562. return _internal_net_config();
  1563. }
  1564. inline void LidarParameter::unsafe_arena_set_allocated_net_config(
  1565. ::clamp_safety::lidar_net* net_config) {
  1566. if (GetArena() == nullptr) {
  1567. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(net_config_);
  1568. }
  1569. net_config_ = net_config;
  1570. if (net_config) {
  1571. _has_bits_[0] |= 0x00000001u;
  1572. } else {
  1573. _has_bits_[0] &= ~0x00000001u;
  1574. }
  1575. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:clamp_safety.LidarParameter.net_config)
  1576. }
  1577. inline ::clamp_safety::lidar_net* LidarParameter::release_net_config() {
  1578. _has_bits_[0] &= ~0x00000001u;
  1579. ::clamp_safety::lidar_net* temp = net_config_;
  1580. net_config_ = nullptr;
  1581. if (GetArena() != nullptr) {
  1582. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1583. }
  1584. return temp;
  1585. }
  1586. inline ::clamp_safety::lidar_net* LidarParameter::unsafe_arena_release_net_config() {
  1587. // @@protoc_insertion_point(field_release:clamp_safety.LidarParameter.net_config)
  1588. _has_bits_[0] &= ~0x00000001u;
  1589. ::clamp_safety::lidar_net* temp = net_config_;
  1590. net_config_ = nullptr;
  1591. return temp;
  1592. }
  1593. inline ::clamp_safety::lidar_net* LidarParameter::_internal_mutable_net_config() {
  1594. _has_bits_[0] |= 0x00000001u;
  1595. if (net_config_ == nullptr) {
  1596. auto* p = CreateMaybeMessage<::clamp_safety::lidar_net>(GetArena());
  1597. net_config_ = p;
  1598. }
  1599. return net_config_;
  1600. }
  1601. inline ::clamp_safety::lidar_net* LidarParameter::mutable_net_config() {
  1602. // @@protoc_insertion_point(field_mutable:clamp_safety.LidarParameter.net_config)
  1603. return _internal_mutable_net_config();
  1604. }
  1605. inline void LidarParameter::set_allocated_net_config(::clamp_safety::lidar_net* net_config) {
  1606. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1607. if (message_arena == nullptr) {
  1608. delete net_config_;
  1609. }
  1610. if (net_config) {
  1611. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1612. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(net_config);
  1613. if (message_arena != submessage_arena) {
  1614. net_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1615. message_arena, net_config, submessage_arena);
  1616. }
  1617. _has_bits_[0] |= 0x00000001u;
  1618. } else {
  1619. _has_bits_[0] &= ~0x00000001u;
  1620. }
  1621. net_config_ = net_config;
  1622. // @@protoc_insertion_point(field_set_allocated:clamp_safety.LidarParameter.net_config)
  1623. }
  1624. // required .clamp_safety.lidar_box_limit scan_box_limit = 8;
  1625. inline bool LidarParameter::_internal_has_scan_box_limit() const {
  1626. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1627. PROTOBUF_ASSUME(!value || scan_box_limit_ != nullptr);
  1628. return value;
  1629. }
  1630. inline bool LidarParameter::has_scan_box_limit() const {
  1631. return _internal_has_scan_box_limit();
  1632. }
  1633. inline void LidarParameter::clear_scan_box_limit() {
  1634. if (scan_box_limit_ != nullptr) scan_box_limit_->Clear();
  1635. _has_bits_[0] &= ~0x00000002u;
  1636. }
  1637. inline const ::clamp_safety::lidar_box_limit& LidarParameter::_internal_scan_box_limit() const {
  1638. const ::clamp_safety::lidar_box_limit* p = scan_box_limit_;
  1639. return p != nullptr ? *p : *reinterpret_cast<const ::clamp_safety::lidar_box_limit*>(
  1640. &::clamp_safety::_lidar_box_limit_default_instance_);
  1641. }
  1642. inline const ::clamp_safety::lidar_box_limit& LidarParameter::scan_box_limit() const {
  1643. // @@protoc_insertion_point(field_get:clamp_safety.LidarParameter.scan_box_limit)
  1644. return _internal_scan_box_limit();
  1645. }
  1646. inline void LidarParameter::unsafe_arena_set_allocated_scan_box_limit(
  1647. ::clamp_safety::lidar_box_limit* scan_box_limit) {
  1648. if (GetArena() == nullptr) {
  1649. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(scan_box_limit_);
  1650. }
  1651. scan_box_limit_ = scan_box_limit;
  1652. if (scan_box_limit) {
  1653. _has_bits_[0] |= 0x00000002u;
  1654. } else {
  1655. _has_bits_[0] &= ~0x00000002u;
  1656. }
  1657. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:clamp_safety.LidarParameter.scan_box_limit)
  1658. }
  1659. inline ::clamp_safety::lidar_box_limit* LidarParameter::release_scan_box_limit() {
  1660. _has_bits_[0] &= ~0x00000002u;
  1661. ::clamp_safety::lidar_box_limit* temp = scan_box_limit_;
  1662. scan_box_limit_ = nullptr;
  1663. if (GetArena() != nullptr) {
  1664. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1665. }
  1666. return temp;
  1667. }
  1668. inline ::clamp_safety::lidar_box_limit* LidarParameter::unsafe_arena_release_scan_box_limit() {
  1669. // @@protoc_insertion_point(field_release:clamp_safety.LidarParameter.scan_box_limit)
  1670. _has_bits_[0] &= ~0x00000002u;
  1671. ::clamp_safety::lidar_box_limit* temp = scan_box_limit_;
  1672. scan_box_limit_ = nullptr;
  1673. return temp;
  1674. }
  1675. inline ::clamp_safety::lidar_box_limit* LidarParameter::_internal_mutable_scan_box_limit() {
  1676. _has_bits_[0] |= 0x00000002u;
  1677. if (scan_box_limit_ == nullptr) {
  1678. auto* p = CreateMaybeMessage<::clamp_safety::lidar_box_limit>(GetArena());
  1679. scan_box_limit_ = p;
  1680. }
  1681. return scan_box_limit_;
  1682. }
  1683. inline ::clamp_safety::lidar_box_limit* LidarParameter::mutable_scan_box_limit() {
  1684. // @@protoc_insertion_point(field_mutable:clamp_safety.LidarParameter.scan_box_limit)
  1685. return _internal_mutable_scan_box_limit();
  1686. }
  1687. inline void LidarParameter::set_allocated_scan_box_limit(::clamp_safety::lidar_box_limit* scan_box_limit) {
  1688. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  1689. if (message_arena == nullptr) {
  1690. delete scan_box_limit_;
  1691. }
  1692. if (scan_box_limit) {
  1693. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1694. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(scan_box_limit);
  1695. if (message_arena != submessage_arena) {
  1696. scan_box_limit = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1697. message_arena, scan_box_limit, submessage_arena);
  1698. }
  1699. _has_bits_[0] |= 0x00000002u;
  1700. } else {
  1701. _has_bits_[0] &= ~0x00000002u;
  1702. }
  1703. scan_box_limit_ = scan_box_limit;
  1704. // @@protoc_insertion_point(field_set_allocated:clamp_safety.LidarParameter.scan_box_limit)
  1705. }
  1706. // -------------------------------------------------------------------
  1707. // plc_net
  1708. // optional string ip_address = 1 [default = ""];
  1709. inline bool plc_net::_internal_has_ip_address() const {
  1710. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1711. return value;
  1712. }
  1713. inline bool plc_net::has_ip_address() const {
  1714. return _internal_has_ip_address();
  1715. }
  1716. inline void plc_net::clear_ip_address() {
  1717. ip_address_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1718. _has_bits_[0] &= ~0x00000001u;
  1719. }
  1720. inline const std::string& plc_net::ip_address() const {
  1721. // @@protoc_insertion_point(field_get:clamp_safety.plc_net.ip_address)
  1722. return _internal_ip_address();
  1723. }
  1724. inline void plc_net::set_ip_address(const std::string& value) {
  1725. _internal_set_ip_address(value);
  1726. // @@protoc_insertion_point(field_set:clamp_safety.plc_net.ip_address)
  1727. }
  1728. inline std::string* plc_net::mutable_ip_address() {
  1729. // @@protoc_insertion_point(field_mutable:clamp_safety.plc_net.ip_address)
  1730. return _internal_mutable_ip_address();
  1731. }
  1732. inline const std::string& plc_net::_internal_ip_address() const {
  1733. return ip_address_.Get();
  1734. }
  1735. inline void plc_net::_internal_set_ip_address(const std::string& value) {
  1736. _has_bits_[0] |= 0x00000001u;
  1737. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1738. }
  1739. inline void plc_net::set_ip_address(std::string&& value) {
  1740. _has_bits_[0] |= 0x00000001u;
  1741. ip_address_.Set(
  1742. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1743. // @@protoc_insertion_point(field_set_rvalue:clamp_safety.plc_net.ip_address)
  1744. }
  1745. inline void plc_net::set_ip_address(const char* value) {
  1746. GOOGLE_DCHECK(value != nullptr);
  1747. _has_bits_[0] |= 0x00000001u;
  1748. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1749. GetArena());
  1750. // @@protoc_insertion_point(field_set_char:clamp_safety.plc_net.ip_address)
  1751. }
  1752. inline void plc_net::set_ip_address(const char* value,
  1753. size_t size) {
  1754. _has_bits_[0] |= 0x00000001u;
  1755. ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1756. reinterpret_cast<const char*>(value), size), GetArena());
  1757. // @@protoc_insertion_point(field_set_pointer:clamp_safety.plc_net.ip_address)
  1758. }
  1759. inline std::string* plc_net::_internal_mutable_ip_address() {
  1760. _has_bits_[0] |= 0x00000001u;
  1761. return ip_address_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1762. }
  1763. inline std::string* plc_net::release_ip_address() {
  1764. // @@protoc_insertion_point(field_release:clamp_safety.plc_net.ip_address)
  1765. if (!_internal_has_ip_address()) {
  1766. return nullptr;
  1767. }
  1768. _has_bits_[0] &= ~0x00000001u;
  1769. return ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1770. }
  1771. inline void plc_net::set_allocated_ip_address(std::string* ip_address) {
  1772. if (ip_address != nullptr) {
  1773. _has_bits_[0] |= 0x00000001u;
  1774. } else {
  1775. _has_bits_[0] &= ~0x00000001u;
  1776. }
  1777. ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address,
  1778. GetArena());
  1779. // @@protoc_insertion_point(field_set_allocated:clamp_safety.plc_net.ip_address)
  1780. }
  1781. // -------------------------------------------------------------------
  1782. // local_net
  1783. // optional string local_ip = 1 [default = "10.211.0.1"];
  1784. inline bool local_net::_internal_has_local_ip() const {
  1785. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1786. return value;
  1787. }
  1788. inline bool local_net::has_local_ip() const {
  1789. return _internal_has_local_ip();
  1790. }
  1791. inline void local_net::clear_local_ip() {
  1792. local_ip_.ClearToDefault(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), GetArena());
  1793. _has_bits_[0] &= ~0x00000001u;
  1794. }
  1795. inline const std::string& local_net::local_ip() const {
  1796. // @@protoc_insertion_point(field_get:clamp_safety.local_net.local_ip)
  1797. return _internal_local_ip();
  1798. }
  1799. inline void local_net::set_local_ip(const std::string& value) {
  1800. _internal_set_local_ip(value);
  1801. // @@protoc_insertion_point(field_set:clamp_safety.local_net.local_ip)
  1802. }
  1803. inline std::string* local_net::mutable_local_ip() {
  1804. // @@protoc_insertion_point(field_mutable:clamp_safety.local_net.local_ip)
  1805. return _internal_mutable_local_ip();
  1806. }
  1807. inline const std::string& local_net::_internal_local_ip() const {
  1808. return local_ip_.Get();
  1809. }
  1810. inline void local_net::_internal_set_local_ip(const std::string& value) {
  1811. _has_bits_[0] |= 0x00000001u;
  1812. local_ip_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), value, GetArena());
  1813. }
  1814. inline void local_net::set_local_ip(std::string&& value) {
  1815. _has_bits_[0] |= 0x00000001u;
  1816. local_ip_.Set(
  1817. &::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), ::std::move(value), GetArena());
  1818. // @@protoc_insertion_point(field_set_rvalue:clamp_safety.local_net.local_ip)
  1819. }
  1820. inline void local_net::set_local_ip(const char* value) {
  1821. GOOGLE_DCHECK(value != nullptr);
  1822. _has_bits_[0] |= 0x00000001u;
  1823. local_ip_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), ::std::string(value),
  1824. GetArena());
  1825. // @@protoc_insertion_point(field_set_char:clamp_safety.local_net.local_ip)
  1826. }
  1827. inline void local_net::set_local_ip(const char* value,
  1828. size_t size) {
  1829. _has_bits_[0] |= 0x00000001u;
  1830. local_ip_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), ::std::string(
  1831. reinterpret_cast<const char*>(value), size), GetArena());
  1832. // @@protoc_insertion_point(field_set_pointer:clamp_safety.local_net.local_ip)
  1833. }
  1834. inline std::string* local_net::_internal_mutable_local_ip() {
  1835. _has_bits_[0] |= 0x00000001u;
  1836. return local_ip_.Mutable(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), GetArena());
  1837. }
  1838. inline std::string* local_net::release_local_ip() {
  1839. // @@protoc_insertion_point(field_release:clamp_safety.local_net.local_ip)
  1840. if (!_internal_has_local_ip()) {
  1841. return nullptr;
  1842. }
  1843. _has_bits_[0] &= ~0x00000001u;
  1844. return local_ip_.ReleaseNonDefault(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), GetArena());
  1845. }
  1846. inline void local_net::set_allocated_local_ip(std::string* local_ip) {
  1847. if (local_ip != nullptr) {
  1848. _has_bits_[0] |= 0x00000001u;
  1849. } else {
  1850. _has_bits_[0] &= ~0x00000001u;
  1851. }
  1852. local_ip_.SetAllocated(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_local_ip_.get(), local_ip,
  1853. GetArena());
  1854. // @@protoc_insertion_point(field_set_allocated:clamp_safety.local_net.local_ip)
  1855. }
  1856. // optional string eth_name = 2 [default = "eth0"];
  1857. inline bool local_net::_internal_has_eth_name() const {
  1858. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1859. return value;
  1860. }
  1861. inline bool local_net::has_eth_name() const {
  1862. return _internal_has_eth_name();
  1863. }
  1864. inline void local_net::clear_eth_name() {
  1865. eth_name_.ClearToDefault(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), GetArena());
  1866. _has_bits_[0] &= ~0x00000002u;
  1867. }
  1868. inline const std::string& local_net::eth_name() const {
  1869. // @@protoc_insertion_point(field_get:clamp_safety.local_net.eth_name)
  1870. return _internal_eth_name();
  1871. }
  1872. inline void local_net::set_eth_name(const std::string& value) {
  1873. _internal_set_eth_name(value);
  1874. // @@protoc_insertion_point(field_set:clamp_safety.local_net.eth_name)
  1875. }
  1876. inline std::string* local_net::mutable_eth_name() {
  1877. // @@protoc_insertion_point(field_mutable:clamp_safety.local_net.eth_name)
  1878. return _internal_mutable_eth_name();
  1879. }
  1880. inline const std::string& local_net::_internal_eth_name() const {
  1881. return eth_name_.Get();
  1882. }
  1883. inline void local_net::_internal_set_eth_name(const std::string& value) {
  1884. _has_bits_[0] |= 0x00000002u;
  1885. eth_name_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), value, GetArena());
  1886. }
  1887. inline void local_net::set_eth_name(std::string&& value) {
  1888. _has_bits_[0] |= 0x00000002u;
  1889. eth_name_.Set(
  1890. &::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), ::std::move(value), GetArena());
  1891. // @@protoc_insertion_point(field_set_rvalue:clamp_safety.local_net.eth_name)
  1892. }
  1893. inline void local_net::set_eth_name(const char* value) {
  1894. GOOGLE_DCHECK(value != nullptr);
  1895. _has_bits_[0] |= 0x00000002u;
  1896. eth_name_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), ::std::string(value),
  1897. GetArena());
  1898. // @@protoc_insertion_point(field_set_char:clamp_safety.local_net.eth_name)
  1899. }
  1900. inline void local_net::set_eth_name(const char* value,
  1901. size_t size) {
  1902. _has_bits_[0] |= 0x00000002u;
  1903. eth_name_.Set(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), ::std::string(
  1904. reinterpret_cast<const char*>(value), size), GetArena());
  1905. // @@protoc_insertion_point(field_set_pointer:clamp_safety.local_net.eth_name)
  1906. }
  1907. inline std::string* local_net::_internal_mutable_eth_name() {
  1908. _has_bits_[0] |= 0x00000002u;
  1909. return eth_name_.Mutable(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), GetArena());
  1910. }
  1911. inline std::string* local_net::release_eth_name() {
  1912. // @@protoc_insertion_point(field_release:clamp_safety.local_net.eth_name)
  1913. if (!_internal_has_eth_name()) {
  1914. return nullptr;
  1915. }
  1916. _has_bits_[0] &= ~0x00000002u;
  1917. return eth_name_.ReleaseNonDefault(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), GetArena());
  1918. }
  1919. inline void local_net::set_allocated_eth_name(std::string* eth_name) {
  1920. if (eth_name != nullptr) {
  1921. _has_bits_[0] |= 0x00000002u;
  1922. } else {
  1923. _has_bits_[0] &= ~0x00000002u;
  1924. }
  1925. eth_name_.SetAllocated(&::clamp_safety::local_net::_i_give_permission_to_break_this_code_default_eth_name_.get(), eth_name,
  1926. GetArena());
  1927. // @@protoc_insertion_point(field_set_allocated:clamp_safety.local_net.eth_name)
  1928. }
  1929. // -------------------------------------------------------------------
  1930. // clamp_parameter
  1931. // repeated .clamp_safety.LidarParameter lidars = 1;
  1932. inline int clamp_parameter::_internal_lidars_size() const {
  1933. return lidars_.size();
  1934. }
  1935. inline int clamp_parameter::lidars_size() const {
  1936. return _internal_lidars_size();
  1937. }
  1938. inline void clamp_parameter::clear_lidars() {
  1939. lidars_.Clear();
  1940. }
  1941. inline ::clamp_safety::LidarParameter* clamp_parameter::mutable_lidars(int index) {
  1942. // @@protoc_insertion_point(field_mutable:clamp_safety.clamp_parameter.lidars)
  1943. return lidars_.Mutable(index);
  1944. }
  1945. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::clamp_safety::LidarParameter >*
  1946. clamp_parameter::mutable_lidars() {
  1947. // @@protoc_insertion_point(field_mutable_list:clamp_safety.clamp_parameter.lidars)
  1948. return &lidars_;
  1949. }
  1950. inline const ::clamp_safety::LidarParameter& clamp_parameter::_internal_lidars(int index) const {
  1951. return lidars_.Get(index);
  1952. }
  1953. inline const ::clamp_safety::LidarParameter& clamp_parameter::lidars(int index) const {
  1954. // @@protoc_insertion_point(field_get:clamp_safety.clamp_parameter.lidars)
  1955. return _internal_lidars(index);
  1956. }
  1957. inline ::clamp_safety::LidarParameter* clamp_parameter::_internal_add_lidars() {
  1958. return lidars_.Add();
  1959. }
  1960. inline ::clamp_safety::LidarParameter* clamp_parameter::add_lidars() {
  1961. // @@protoc_insertion_point(field_add:clamp_safety.clamp_parameter.lidars)
  1962. return _internal_add_lidars();
  1963. }
  1964. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::clamp_safety::LidarParameter >&
  1965. clamp_parameter::lidars() const {
  1966. // @@protoc_insertion_point(field_list:clamp_safety.clamp_parameter.lidars)
  1967. return lidars_;
  1968. }
  1969. // required .clamp_safety.plc_net plc_parameter = 2;
  1970. inline bool clamp_parameter::_internal_has_plc_parameter() const {
  1971. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1972. PROTOBUF_ASSUME(!value || plc_parameter_ != nullptr);
  1973. return value;
  1974. }
  1975. inline bool clamp_parameter::has_plc_parameter() const {
  1976. return _internal_has_plc_parameter();
  1977. }
  1978. inline void clamp_parameter::clear_plc_parameter() {
  1979. if (plc_parameter_ != nullptr) plc_parameter_->Clear();
  1980. _has_bits_[0] &= ~0x00000001u;
  1981. }
  1982. inline const ::clamp_safety::plc_net& clamp_parameter::_internal_plc_parameter() const {
  1983. const ::clamp_safety::plc_net* p = plc_parameter_;
  1984. return p != nullptr ? *p : *reinterpret_cast<const ::clamp_safety::plc_net*>(
  1985. &::clamp_safety::_plc_net_default_instance_);
  1986. }
  1987. inline const ::clamp_safety::plc_net& clamp_parameter::plc_parameter() const {
  1988. // @@protoc_insertion_point(field_get:clamp_safety.clamp_parameter.plc_parameter)
  1989. return _internal_plc_parameter();
  1990. }
  1991. inline void clamp_parameter::unsafe_arena_set_allocated_plc_parameter(
  1992. ::clamp_safety::plc_net* plc_parameter) {
  1993. if (GetArena() == nullptr) {
  1994. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(plc_parameter_);
  1995. }
  1996. plc_parameter_ = plc_parameter;
  1997. if (plc_parameter) {
  1998. _has_bits_[0] |= 0x00000001u;
  1999. } else {
  2000. _has_bits_[0] &= ~0x00000001u;
  2001. }
  2002. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:clamp_safety.clamp_parameter.plc_parameter)
  2003. }
  2004. inline ::clamp_safety::plc_net* clamp_parameter::release_plc_parameter() {
  2005. _has_bits_[0] &= ~0x00000001u;
  2006. ::clamp_safety::plc_net* temp = plc_parameter_;
  2007. plc_parameter_ = nullptr;
  2008. if (GetArena() != nullptr) {
  2009. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  2010. }
  2011. return temp;
  2012. }
  2013. inline ::clamp_safety::plc_net* clamp_parameter::unsafe_arena_release_plc_parameter() {
  2014. // @@protoc_insertion_point(field_release:clamp_safety.clamp_parameter.plc_parameter)
  2015. _has_bits_[0] &= ~0x00000001u;
  2016. ::clamp_safety::plc_net* temp = plc_parameter_;
  2017. plc_parameter_ = nullptr;
  2018. return temp;
  2019. }
  2020. inline ::clamp_safety::plc_net* clamp_parameter::_internal_mutable_plc_parameter() {
  2021. _has_bits_[0] |= 0x00000001u;
  2022. if (plc_parameter_ == nullptr) {
  2023. auto* p = CreateMaybeMessage<::clamp_safety::plc_net>(GetArena());
  2024. plc_parameter_ = p;
  2025. }
  2026. return plc_parameter_;
  2027. }
  2028. inline ::clamp_safety::plc_net* clamp_parameter::mutable_plc_parameter() {
  2029. // @@protoc_insertion_point(field_mutable:clamp_safety.clamp_parameter.plc_parameter)
  2030. return _internal_mutable_plc_parameter();
  2031. }
  2032. inline void clamp_parameter::set_allocated_plc_parameter(::clamp_safety::plc_net* plc_parameter) {
  2033. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  2034. if (message_arena == nullptr) {
  2035. delete plc_parameter_;
  2036. }
  2037. if (plc_parameter) {
  2038. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  2039. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(plc_parameter);
  2040. if (message_arena != submessage_arena) {
  2041. plc_parameter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  2042. message_arena, plc_parameter, submessage_arena);
  2043. }
  2044. _has_bits_[0] |= 0x00000001u;
  2045. } else {
  2046. _has_bits_[0] &= ~0x00000001u;
  2047. }
  2048. plc_parameter_ = plc_parameter;
  2049. // @@protoc_insertion_point(field_set_allocated:clamp_safety.clamp_parameter.plc_parameter)
  2050. }
  2051. // required .clamp_safety.local_net local_parameter = 3;
  2052. inline bool clamp_parameter::_internal_has_local_parameter() const {
  2053. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  2054. PROTOBUF_ASSUME(!value || local_parameter_ != nullptr);
  2055. return value;
  2056. }
  2057. inline bool clamp_parameter::has_local_parameter() const {
  2058. return _internal_has_local_parameter();
  2059. }
  2060. inline void clamp_parameter::clear_local_parameter() {
  2061. if (local_parameter_ != nullptr) local_parameter_->Clear();
  2062. _has_bits_[0] &= ~0x00000002u;
  2063. }
  2064. inline const ::clamp_safety::local_net& clamp_parameter::_internal_local_parameter() const {
  2065. const ::clamp_safety::local_net* p = local_parameter_;
  2066. return p != nullptr ? *p : *reinterpret_cast<const ::clamp_safety::local_net*>(
  2067. &::clamp_safety::_local_net_default_instance_);
  2068. }
  2069. inline const ::clamp_safety::local_net& clamp_parameter::local_parameter() const {
  2070. // @@protoc_insertion_point(field_get:clamp_safety.clamp_parameter.local_parameter)
  2071. return _internal_local_parameter();
  2072. }
  2073. inline void clamp_parameter::unsafe_arena_set_allocated_local_parameter(
  2074. ::clamp_safety::local_net* local_parameter) {
  2075. if (GetArena() == nullptr) {
  2076. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(local_parameter_);
  2077. }
  2078. local_parameter_ = local_parameter;
  2079. if (local_parameter) {
  2080. _has_bits_[0] |= 0x00000002u;
  2081. } else {
  2082. _has_bits_[0] &= ~0x00000002u;
  2083. }
  2084. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:clamp_safety.clamp_parameter.local_parameter)
  2085. }
  2086. inline ::clamp_safety::local_net* clamp_parameter::release_local_parameter() {
  2087. _has_bits_[0] &= ~0x00000002u;
  2088. ::clamp_safety::local_net* temp = local_parameter_;
  2089. local_parameter_ = nullptr;
  2090. if (GetArena() != nullptr) {
  2091. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  2092. }
  2093. return temp;
  2094. }
  2095. inline ::clamp_safety::local_net* clamp_parameter::unsafe_arena_release_local_parameter() {
  2096. // @@protoc_insertion_point(field_release:clamp_safety.clamp_parameter.local_parameter)
  2097. _has_bits_[0] &= ~0x00000002u;
  2098. ::clamp_safety::local_net* temp = local_parameter_;
  2099. local_parameter_ = nullptr;
  2100. return temp;
  2101. }
  2102. inline ::clamp_safety::local_net* clamp_parameter::_internal_mutable_local_parameter() {
  2103. _has_bits_[0] |= 0x00000002u;
  2104. if (local_parameter_ == nullptr) {
  2105. auto* p = CreateMaybeMessage<::clamp_safety::local_net>(GetArena());
  2106. local_parameter_ = p;
  2107. }
  2108. return local_parameter_;
  2109. }
  2110. inline ::clamp_safety::local_net* clamp_parameter::mutable_local_parameter() {
  2111. // @@protoc_insertion_point(field_mutable:clamp_safety.clamp_parameter.local_parameter)
  2112. return _internal_mutable_local_parameter();
  2113. }
  2114. inline void clamp_parameter::set_allocated_local_parameter(::clamp_safety::local_net* local_parameter) {
  2115. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  2116. if (message_arena == nullptr) {
  2117. delete local_parameter_;
  2118. }
  2119. if (local_parameter) {
  2120. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  2121. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(local_parameter);
  2122. if (message_arena != submessage_arena) {
  2123. local_parameter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  2124. message_arena, local_parameter, submessage_arena);
  2125. }
  2126. _has_bits_[0] |= 0x00000002u;
  2127. } else {
  2128. _has_bits_[0] &= ~0x00000002u;
  2129. }
  2130. local_parameter_ = local_parameter;
  2131. // @@protoc_insertion_point(field_set_allocated:clamp_safety.clamp_parameter.local_parameter)
  2132. }
  2133. #ifdef __GNUC__
  2134. #pragma GCC diagnostic pop
  2135. #endif // __GNUC__
  2136. // -------------------------------------------------------------------
  2137. // -------------------------------------------------------------------
  2138. // -------------------------------------------------------------------
  2139. // -------------------------------------------------------------------
  2140. // -------------------------------------------------------------------
  2141. // @@protoc_insertion_point(namespace_scope)
  2142. } // namespace clamp_safety
  2143. // @@protoc_insertion_point(global_scope)
  2144. #include <google/protobuf/port_undef.inc>
  2145. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_clamp_5fparameter_2eproto