laser_message.pb.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: laser_message.proto
  3. #ifndef PROTOBUF_laser_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_laser_5fmessage_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. namespace protobuf_laser_5fmessage_2eproto {
  30. // Internal implementation detail -- do not use these members.
  31. struct TableStruct {
  32. static const ::google::protobuf::internal::ParseTableField entries[];
  33. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  34. static const ::google::protobuf::internal::ParseTable schema[1];
  35. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  36. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  37. static const ::google::protobuf::uint32 offsets[];
  38. };
  39. void AddDescriptors();
  40. void InitDefaultslaserMsgImpl();
  41. void InitDefaultslaserMsg();
  42. inline void InitDefaults() {
  43. InitDefaultslaserMsg();
  44. }
  45. } // namespace protobuf_laser_5fmessage_2eproto
  46. namespace laser_message {
  47. class laserMsg;
  48. class laserMsgDefaultTypeInternal;
  49. extern laserMsgDefaultTypeInternal _laserMsg_default_instance_;
  50. } // namespace laser_message
  51. namespace laser_message {
  52. enum laserStatus {
  53. eLaserConnected = 0,
  54. eLaserDisconnected = 1,
  55. eLaserBusy = 2,
  56. eLaserUnknown = 3
  57. };
  58. bool laserStatus_IsValid(int value);
  59. const laserStatus laserStatus_MIN = eLaserConnected;
  60. const laserStatus laserStatus_MAX = eLaserUnknown;
  61. const int laserStatus_ARRAYSIZE = laserStatus_MAX + 1;
  62. const ::google::protobuf::EnumDescriptor* laserStatus_descriptor();
  63. inline const ::std::string& laserStatus_Name(laserStatus value) {
  64. return ::google::protobuf::internal::NameOfEnum(
  65. laserStatus_descriptor(), value);
  66. }
  67. inline bool laserStatus_Parse(
  68. const ::std::string& name, laserStatus* value) {
  69. return ::google::protobuf::internal::ParseNamedEnum<laserStatus>(
  70. laserStatus_descriptor(), name, value);
  71. }
  72. // ===================================================================
  73. class laserMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:laser_message.laserMsg) */ {
  74. public:
  75. laserMsg();
  76. virtual ~laserMsg();
  77. laserMsg(const laserMsg& from);
  78. inline laserMsg& operator=(const laserMsg& from) {
  79. CopyFrom(from);
  80. return *this;
  81. }
  82. #if LANG_CXX11
  83. laserMsg(laserMsg&& from) noexcept
  84. : laserMsg() {
  85. *this = ::std::move(from);
  86. }
  87. inline laserMsg& operator=(laserMsg&& from) noexcept {
  88. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  89. if (this != &from) InternalSwap(&from);
  90. } else {
  91. CopyFrom(from);
  92. }
  93. return *this;
  94. }
  95. #endif
  96. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  97. return _internal_metadata_.unknown_fields();
  98. }
  99. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  100. return _internal_metadata_.mutable_unknown_fields();
  101. }
  102. static const ::google::protobuf::Descriptor* descriptor();
  103. static const laserMsg& default_instance();
  104. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  105. static inline const laserMsg* internal_default_instance() {
  106. return reinterpret_cast<const laserMsg*>(
  107. &_laserMsg_default_instance_);
  108. }
  109. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  110. 0;
  111. void Swap(laserMsg* other);
  112. friend void swap(laserMsg& a, laserMsg& b) {
  113. a.Swap(&b);
  114. }
  115. // implements Message ----------------------------------------------
  116. inline laserMsg* New() const PROTOBUF_FINAL { return New(NULL); }
  117. laserMsg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  118. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  119. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  120. void CopyFrom(const laserMsg& from);
  121. void MergeFrom(const laserMsg& from);
  122. void Clear() PROTOBUF_FINAL;
  123. bool IsInitialized() const PROTOBUF_FINAL;
  124. size_t ByteSizeLong() const PROTOBUF_FINAL;
  125. bool MergePartialFromCodedStream(
  126. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  127. void SerializeWithCachedSizes(
  128. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  129. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  130. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  131. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  132. private:
  133. void SharedCtor();
  134. void SharedDtor();
  135. void SetCachedSize(int size) const PROTOBUF_FINAL;
  136. void InternalSwap(laserMsg* other);
  137. private:
  138. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  139. return NULL;
  140. }
  141. inline void* MaybeArenaPtr() const {
  142. return NULL;
  143. }
  144. public:
  145. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  146. // nested types ----------------------------------------------------
  147. // accessors -------------------------------------------------------
  148. // optional .laser_message.laserStatus laser_status = 1;
  149. bool has_laser_status() const;
  150. void clear_laser_status();
  151. static const int kLaserStatusFieldNumber = 1;
  152. ::laser_message::laserStatus laser_status() const;
  153. void set_laser_status(::laser_message::laserStatus value);
  154. // optional int32 queue_data_count = 2;
  155. bool has_queue_data_count() const;
  156. void clear_queue_data_count();
  157. static const int kQueueDataCountFieldNumber = 2;
  158. ::google::protobuf::int32 queue_data_count() const;
  159. void set_queue_data_count(::google::protobuf::int32 value);
  160. // optional int32 cloud_count = 3;
  161. bool has_cloud_count() const;
  162. void clear_cloud_count();
  163. static const int kCloudCountFieldNumber = 3;
  164. ::google::protobuf::int32 cloud_count() const;
  165. void set_cloud_count(::google::protobuf::int32 value);
  166. // required int32 id = 4;
  167. bool has_id() const;
  168. void clear_id();
  169. static const int kIdFieldNumber = 4;
  170. ::google::protobuf::int32 id() const;
  171. void set_id(::google::protobuf::int32 value);
  172. // @@protoc_insertion_point(class_scope:laser_message.laserMsg)
  173. private:
  174. void set_has_laser_status();
  175. void clear_has_laser_status();
  176. void set_has_queue_data_count();
  177. void clear_has_queue_data_count();
  178. void set_has_cloud_count();
  179. void clear_has_cloud_count();
  180. void set_has_id();
  181. void clear_has_id();
  182. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  183. ::google::protobuf::internal::HasBits<1> _has_bits_;
  184. mutable int _cached_size_;
  185. int laser_status_;
  186. ::google::protobuf::int32 queue_data_count_;
  187. ::google::protobuf::int32 cloud_count_;
  188. ::google::protobuf::int32 id_;
  189. friend struct ::protobuf_laser_5fmessage_2eproto::TableStruct;
  190. friend void ::protobuf_laser_5fmessage_2eproto::InitDefaultslaserMsgImpl();
  191. };
  192. // ===================================================================
  193. // ===================================================================
  194. #ifdef __GNUC__
  195. #pragma GCC diagnostic push
  196. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  197. #endif // __GNUC__
  198. // laserMsg
  199. // optional .laser_message.laserStatus laser_status = 1;
  200. inline bool laserMsg::has_laser_status() const {
  201. return (_has_bits_[0] & 0x00000001u) != 0;
  202. }
  203. inline void laserMsg::set_has_laser_status() {
  204. _has_bits_[0] |= 0x00000001u;
  205. }
  206. inline void laserMsg::clear_has_laser_status() {
  207. _has_bits_[0] &= ~0x00000001u;
  208. }
  209. inline void laserMsg::clear_laser_status() {
  210. laser_status_ = 0;
  211. clear_has_laser_status();
  212. }
  213. inline ::laser_message::laserStatus laserMsg::laser_status() const {
  214. // @@protoc_insertion_point(field_get:laser_message.laserMsg.laser_status)
  215. return static_cast< ::laser_message::laserStatus >(laser_status_);
  216. }
  217. inline void laserMsg::set_laser_status(::laser_message::laserStatus value) {
  218. assert(::laser_message::laserStatus_IsValid(value));
  219. set_has_laser_status();
  220. laser_status_ = value;
  221. // @@protoc_insertion_point(field_set:laser_message.laserMsg.laser_status)
  222. }
  223. // optional int32 queue_data_count = 2;
  224. inline bool laserMsg::has_queue_data_count() const {
  225. return (_has_bits_[0] & 0x00000002u) != 0;
  226. }
  227. inline void laserMsg::set_has_queue_data_count() {
  228. _has_bits_[0] |= 0x00000002u;
  229. }
  230. inline void laserMsg::clear_has_queue_data_count() {
  231. _has_bits_[0] &= ~0x00000002u;
  232. }
  233. inline void laserMsg::clear_queue_data_count() {
  234. queue_data_count_ = 0;
  235. clear_has_queue_data_count();
  236. }
  237. inline ::google::protobuf::int32 laserMsg::queue_data_count() const {
  238. // @@protoc_insertion_point(field_get:laser_message.laserMsg.queue_data_count)
  239. return queue_data_count_;
  240. }
  241. inline void laserMsg::set_queue_data_count(::google::protobuf::int32 value) {
  242. set_has_queue_data_count();
  243. queue_data_count_ = value;
  244. // @@protoc_insertion_point(field_set:laser_message.laserMsg.queue_data_count)
  245. }
  246. // optional int32 cloud_count = 3;
  247. inline bool laserMsg::has_cloud_count() const {
  248. return (_has_bits_[0] & 0x00000004u) != 0;
  249. }
  250. inline void laserMsg::set_has_cloud_count() {
  251. _has_bits_[0] |= 0x00000004u;
  252. }
  253. inline void laserMsg::clear_has_cloud_count() {
  254. _has_bits_[0] &= ~0x00000004u;
  255. }
  256. inline void laserMsg::clear_cloud_count() {
  257. cloud_count_ = 0;
  258. clear_has_cloud_count();
  259. }
  260. inline ::google::protobuf::int32 laserMsg::cloud_count() const {
  261. // @@protoc_insertion_point(field_get:laser_message.laserMsg.cloud_count)
  262. return cloud_count_;
  263. }
  264. inline void laserMsg::set_cloud_count(::google::protobuf::int32 value) {
  265. set_has_cloud_count();
  266. cloud_count_ = value;
  267. // @@protoc_insertion_point(field_set:laser_message.laserMsg.cloud_count)
  268. }
  269. // required int32 id = 4;
  270. inline bool laserMsg::has_id() const {
  271. return (_has_bits_[0] & 0x00000008u) != 0;
  272. }
  273. inline void laserMsg::set_has_id() {
  274. _has_bits_[0] |= 0x00000008u;
  275. }
  276. inline void laserMsg::clear_has_id() {
  277. _has_bits_[0] &= ~0x00000008u;
  278. }
  279. inline void laserMsg::clear_id() {
  280. id_ = 0;
  281. clear_has_id();
  282. }
  283. inline ::google::protobuf::int32 laserMsg::id() const {
  284. // @@protoc_insertion_point(field_get:laser_message.laserMsg.id)
  285. return id_;
  286. }
  287. inline void laserMsg::set_id(::google::protobuf::int32 value) {
  288. set_has_id();
  289. id_ = value;
  290. // @@protoc_insertion_point(field_set:laser_message.laserMsg.id)
  291. }
  292. #ifdef __GNUC__
  293. #pragma GCC diagnostic pop
  294. #endif // __GNUC__
  295. // @@protoc_insertion_point(namespace_scope)
  296. } // namespace laser_message
  297. namespace google {
  298. namespace protobuf {
  299. template <> struct is_proto_enum< ::laser_message::laserStatus> : ::google::protobuf::internal::true_type {};
  300. template <>
  301. inline const EnumDescriptor* GetEnumDescriptor< ::laser_message::laserStatus>() {
  302. return ::laser_message::laserStatus_descriptor();
  303. }
  304. } // namespace protobuf
  305. } // namespace google
  306. // @@protoc_insertion_point(global_scope)
  307. #endif // PROTOBUF_laser_5fmessage_2eproto__INCLUDED