laser_message.pb.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: laser_message.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_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/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_laser_5fmessage_2eproto
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct TableStruct_laser_5fmessage_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_laser_5fmessage_2eproto;
  53. namespace laser_message {
  54. class laserMsg;
  55. class laserMsgDefaultTypeInternal;
  56. extern laserMsgDefaultTypeInternal _laserMsg_default_instance_;
  57. } // namespace laser_message
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> ::laser_message::laserMsg* Arena::CreateMaybeMessage<::laser_message::laserMsg>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. namespace laser_message {
  62. enum laserStatus : int {
  63. eLaserConnected = 0,
  64. eLaserDisconnected = 1,
  65. eLaserBusy = 2,
  66. eLaserUnknown = 3
  67. };
  68. bool laserStatus_IsValid(int value);
  69. constexpr laserStatus laserStatus_MIN = eLaserConnected;
  70. constexpr laserStatus laserStatus_MAX = eLaserUnknown;
  71. constexpr int laserStatus_ARRAYSIZE = laserStatus_MAX + 1;
  72. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* laserStatus_descriptor();
  73. template<typename T>
  74. inline const std::string& laserStatus_Name(T enum_t_value) {
  75. static_assert(::std::is_same<T, laserStatus>::value ||
  76. ::std::is_integral<T>::value,
  77. "Incorrect type passed to function laserStatus_Name.");
  78. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  79. laserStatus_descriptor(), enum_t_value);
  80. }
  81. inline bool laserStatus_Parse(
  82. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, laserStatus* value) {
  83. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<laserStatus>(
  84. laserStatus_descriptor(), name, value);
  85. }
  86. // ===================================================================
  87. class laserMsg PROTOBUF_FINAL :
  88. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:laser_message.laserMsg) */ {
  89. public:
  90. inline laserMsg() : laserMsg(nullptr) {}
  91. virtual ~laserMsg();
  92. laserMsg(const laserMsg& from);
  93. laserMsg(laserMsg&& from) noexcept
  94. : laserMsg() {
  95. *this = ::std::move(from);
  96. }
  97. inline laserMsg& operator=(const laserMsg& from) {
  98. CopyFrom(from);
  99. return *this;
  100. }
  101. inline laserMsg& operator=(laserMsg&& from) noexcept {
  102. if (GetArena() == from.GetArena()) {
  103. if (this != &from) InternalSwap(&from);
  104. } else {
  105. CopyFrom(from);
  106. }
  107. return *this;
  108. }
  109. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  110. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  111. }
  112. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  113. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  114. }
  115. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  116. return GetDescriptor();
  117. }
  118. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  119. return GetMetadataStatic().descriptor;
  120. }
  121. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  122. return GetMetadataStatic().reflection;
  123. }
  124. static const laserMsg& default_instance();
  125. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  126. static inline const laserMsg* internal_default_instance() {
  127. return reinterpret_cast<const laserMsg*>(
  128. &_laserMsg_default_instance_);
  129. }
  130. static constexpr int kIndexInFileMessages =
  131. 0;
  132. friend void swap(laserMsg& a, laserMsg& b) {
  133. a.Swap(&b);
  134. }
  135. inline void Swap(laserMsg* other) {
  136. if (other == this) return;
  137. if (GetArena() == other->GetArena()) {
  138. InternalSwap(other);
  139. } else {
  140. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  141. }
  142. }
  143. void UnsafeArenaSwap(laserMsg* other) {
  144. if (other == this) return;
  145. GOOGLE_DCHECK(GetArena() == other->GetArena());
  146. InternalSwap(other);
  147. }
  148. // implements Message ----------------------------------------------
  149. inline laserMsg* New() const final {
  150. return CreateMaybeMessage<laserMsg>(nullptr);
  151. }
  152. laserMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  153. return CreateMaybeMessage<laserMsg>(arena);
  154. }
  155. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  156. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  157. void CopyFrom(const laserMsg& from);
  158. void MergeFrom(const laserMsg& from);
  159. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  160. bool IsInitialized() const final;
  161. size_t ByteSizeLong() const final;
  162. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  163. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  164. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  165. int GetCachedSize() const final { return _cached_size_.Get(); }
  166. private:
  167. inline void SharedCtor();
  168. inline void SharedDtor();
  169. void SetCachedSize(int size) const final;
  170. void InternalSwap(laserMsg* other);
  171. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  172. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  173. return "laser_message.laserMsg";
  174. }
  175. protected:
  176. explicit laserMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  177. private:
  178. static void ArenaDtor(void* object);
  179. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  180. public:
  181. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  182. private:
  183. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  184. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_laser_5fmessage_2eproto);
  185. return ::descriptor_table_laser_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages];
  186. }
  187. public:
  188. // nested types ----------------------------------------------------
  189. // accessors -------------------------------------------------------
  190. enum : int {
  191. kLaserStatusFieldNumber = 1,
  192. kQueueDataCountFieldNumber = 2,
  193. kCloudCountFieldNumber = 3,
  194. kIdFieldNumber = 4,
  195. };
  196. // optional .laser_message.laserStatus laser_status = 1;
  197. bool has_laser_status() const;
  198. private:
  199. bool _internal_has_laser_status() const;
  200. public:
  201. void clear_laser_status();
  202. ::laser_message::laserStatus laser_status() const;
  203. void set_laser_status(::laser_message::laserStatus value);
  204. private:
  205. ::laser_message::laserStatus _internal_laser_status() const;
  206. void _internal_set_laser_status(::laser_message::laserStatus value);
  207. public:
  208. // optional int32 queue_data_count = 2;
  209. bool has_queue_data_count() const;
  210. private:
  211. bool _internal_has_queue_data_count() const;
  212. public:
  213. void clear_queue_data_count();
  214. ::PROTOBUF_NAMESPACE_ID::int32 queue_data_count() const;
  215. void set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  216. private:
  217. ::PROTOBUF_NAMESPACE_ID::int32 _internal_queue_data_count() const;
  218. void _internal_set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  219. public:
  220. // optional int32 cloud_count = 3;
  221. bool has_cloud_count() const;
  222. private:
  223. bool _internal_has_cloud_count() const;
  224. public:
  225. void clear_cloud_count();
  226. ::PROTOBUF_NAMESPACE_ID::int32 cloud_count() const;
  227. void set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  228. private:
  229. ::PROTOBUF_NAMESPACE_ID::int32 _internal_cloud_count() const;
  230. void _internal_set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  231. public:
  232. // required int32 id = 4;
  233. bool has_id() const;
  234. private:
  235. bool _internal_has_id() const;
  236. public:
  237. void clear_id();
  238. ::PROTOBUF_NAMESPACE_ID::int32 id() const;
  239. void set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  240. private:
  241. ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const;
  242. void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  243. public:
  244. // @@protoc_insertion_point(class_scope:laser_message.laserMsg)
  245. private:
  246. class _Internal;
  247. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  248. typedef void InternalArenaConstructable_;
  249. typedef void DestructorSkippable_;
  250. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  251. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  252. int laser_status_;
  253. ::PROTOBUF_NAMESPACE_ID::int32 queue_data_count_;
  254. ::PROTOBUF_NAMESPACE_ID::int32 cloud_count_;
  255. ::PROTOBUF_NAMESPACE_ID::int32 id_;
  256. friend struct ::TableStruct_laser_5fmessage_2eproto;
  257. };
  258. // ===================================================================
  259. // ===================================================================
  260. #ifdef __GNUC__
  261. #pragma GCC diagnostic push
  262. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  263. #endif // __GNUC__
  264. // laserMsg
  265. // optional .laser_message.laserStatus laser_status = 1;
  266. inline bool laserMsg::_internal_has_laser_status() const {
  267. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  268. return value;
  269. }
  270. inline bool laserMsg::has_laser_status() const {
  271. return _internal_has_laser_status();
  272. }
  273. inline void laserMsg::clear_laser_status() {
  274. laser_status_ = 0;
  275. _has_bits_[0] &= ~0x00000001u;
  276. }
  277. inline ::laser_message::laserStatus laserMsg::_internal_laser_status() const {
  278. return static_cast< ::laser_message::laserStatus >(laser_status_);
  279. }
  280. inline ::laser_message::laserStatus laserMsg::laser_status() const {
  281. // @@protoc_insertion_point(field_get:laser_message.laserMsg.laser_status)
  282. return _internal_laser_status();
  283. }
  284. inline void laserMsg::_internal_set_laser_status(::laser_message::laserStatus value) {
  285. assert(::laser_message::laserStatus_IsValid(value));
  286. _has_bits_[0] |= 0x00000001u;
  287. laser_status_ = value;
  288. }
  289. inline void laserMsg::set_laser_status(::laser_message::laserStatus value) {
  290. _internal_set_laser_status(value);
  291. // @@protoc_insertion_point(field_set:laser_message.laserMsg.laser_status)
  292. }
  293. // optional int32 queue_data_count = 2;
  294. inline bool laserMsg::_internal_has_queue_data_count() const {
  295. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  296. return value;
  297. }
  298. inline bool laserMsg::has_queue_data_count() const {
  299. return _internal_has_queue_data_count();
  300. }
  301. inline void laserMsg::clear_queue_data_count() {
  302. queue_data_count_ = 0;
  303. _has_bits_[0] &= ~0x00000002u;
  304. }
  305. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_queue_data_count() const {
  306. return queue_data_count_;
  307. }
  308. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::queue_data_count() const {
  309. // @@protoc_insertion_point(field_get:laser_message.laserMsg.queue_data_count)
  310. return _internal_queue_data_count();
  311. }
  312. inline void laserMsg::_internal_set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  313. _has_bits_[0] |= 0x00000002u;
  314. queue_data_count_ = value;
  315. }
  316. inline void laserMsg::set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  317. _internal_set_queue_data_count(value);
  318. // @@protoc_insertion_point(field_set:laser_message.laserMsg.queue_data_count)
  319. }
  320. // optional int32 cloud_count = 3;
  321. inline bool laserMsg::_internal_has_cloud_count() const {
  322. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  323. return value;
  324. }
  325. inline bool laserMsg::has_cloud_count() const {
  326. return _internal_has_cloud_count();
  327. }
  328. inline void laserMsg::clear_cloud_count() {
  329. cloud_count_ = 0;
  330. _has_bits_[0] &= ~0x00000004u;
  331. }
  332. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_cloud_count() const {
  333. return cloud_count_;
  334. }
  335. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::cloud_count() const {
  336. // @@protoc_insertion_point(field_get:laser_message.laserMsg.cloud_count)
  337. return _internal_cloud_count();
  338. }
  339. inline void laserMsg::_internal_set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  340. _has_bits_[0] |= 0x00000004u;
  341. cloud_count_ = value;
  342. }
  343. inline void laserMsg::set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  344. _internal_set_cloud_count(value);
  345. // @@protoc_insertion_point(field_set:laser_message.laserMsg.cloud_count)
  346. }
  347. // required int32 id = 4;
  348. inline bool laserMsg::_internal_has_id() const {
  349. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  350. return value;
  351. }
  352. inline bool laserMsg::has_id() const {
  353. return _internal_has_id();
  354. }
  355. inline void laserMsg::clear_id() {
  356. id_ = 0;
  357. _has_bits_[0] &= ~0x00000008u;
  358. }
  359. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_id() const {
  360. return id_;
  361. }
  362. inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::id() const {
  363. // @@protoc_insertion_point(field_get:laser_message.laserMsg.id)
  364. return _internal_id();
  365. }
  366. inline void laserMsg::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  367. _has_bits_[0] |= 0x00000008u;
  368. id_ = value;
  369. }
  370. inline void laserMsg::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  371. _internal_set_id(value);
  372. // @@protoc_insertion_point(field_set:laser_message.laserMsg.id)
  373. }
  374. #ifdef __GNUC__
  375. #pragma GCC diagnostic pop
  376. #endif // __GNUC__
  377. // @@protoc_insertion_point(namespace_scope)
  378. } // namespace laser_message
  379. PROTOBUF_NAMESPACE_OPEN
  380. template <> struct is_proto_enum< ::laser_message::laserStatus> : ::std::true_type {};
  381. template <>
  382. inline const EnumDescriptor* GetEnumDescriptor< ::laser_message::laserStatus>() {
  383. return ::laser_message::laserStatus_descriptor();
  384. }
  385. PROTOBUF_NAMESPACE_CLOSE
  386. // @@protoc_insertion_point(global_scope)
  387. #include <google/protobuf/port_undef.inc>
  388. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_2eproto