// Generated by the protocol buffer compiler. DO NOT EDIT! // source: laser_message.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_2eproto #define GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_2eproto #include #include #include #if PROTOBUF_VERSION < 3013000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_laser_5fmessage_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_laser_5fmessage_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_laser_5fmessage_2eproto; namespace laser_message { class laserMsg; class laserMsgDefaultTypeInternal; extern laserMsgDefaultTypeInternal _laserMsg_default_instance_; } // namespace laser_message PROTOBUF_NAMESPACE_OPEN template<> ::laser_message::laserMsg* Arena::CreateMaybeMessage<::laser_message::laserMsg>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace laser_message { enum laserStatus : int { eLaserConnected = 0, eLaserDisconnected = 1, eLaserBusy = 2, eLaserUnknown = 3 }; bool laserStatus_IsValid(int value); constexpr laserStatus laserStatus_MIN = eLaserConnected; constexpr laserStatus laserStatus_MAX = eLaserUnknown; constexpr int laserStatus_ARRAYSIZE = laserStatus_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* laserStatus_descriptor(); template inline const std::string& laserStatus_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function laserStatus_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( laserStatus_descriptor(), enum_t_value); } inline bool laserStatus_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, laserStatus* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( laserStatus_descriptor(), name, value); } // =================================================================== class laserMsg PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:laser_message.laserMsg) */ { public: inline laserMsg() : laserMsg(nullptr) {} virtual ~laserMsg(); laserMsg(const laserMsg& from); laserMsg(laserMsg&& from) noexcept : laserMsg() { *this = ::std::move(from); } inline laserMsg& operator=(const laserMsg& from) { CopyFrom(from); return *this; } inline laserMsg& operator=(laserMsg&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); } inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const laserMsg& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const laserMsg* internal_default_instance() { return reinterpret_cast( &_laserMsg_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(laserMsg& a, laserMsg& b) { a.Swap(&b); } inline void Swap(laserMsg* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(laserMsg* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline laserMsg* New() const final { return CreateMaybeMessage(nullptr); } laserMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const laserMsg& from); void MergeFrom(const laserMsg& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(laserMsg* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "laser_message.laserMsg"; } protected: explicit laserMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_laser_5fmessage_2eproto); return ::descriptor_table_laser_5fmessage_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kLaserStatusFieldNumber = 1, kQueueDataCountFieldNumber = 2, kCloudCountFieldNumber = 3, kIdFieldNumber = 4, }; // optional .laser_message.laserStatus laser_status = 1; bool has_laser_status() const; private: bool _internal_has_laser_status() const; public: void clear_laser_status(); ::laser_message::laserStatus laser_status() const; void set_laser_status(::laser_message::laserStatus value); private: ::laser_message::laserStatus _internal_laser_status() const; void _internal_set_laser_status(::laser_message::laserStatus value); public: // optional int32 queue_data_count = 2; bool has_queue_data_count() const; private: bool _internal_has_queue_data_count() const; public: void clear_queue_data_count(); ::PROTOBUF_NAMESPACE_ID::int32 queue_data_count() const; void set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_queue_data_count() const; void _internal_set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value); public: // optional int32 cloud_count = 3; bool has_cloud_count() const; private: bool _internal_has_cloud_count() const; public: void clear_cloud_count(); ::PROTOBUF_NAMESPACE_ID::int32 cloud_count() const; void set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_cloud_count() const; void _internal_set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value); public: // required int32 id = 4; bool has_id() const; private: bool _internal_has_id() const; public: void clear_id(); ::PROTOBUF_NAMESPACE_ID::int32 id() const; void set_id(::PROTOBUF_NAMESPACE_ID::int32 value); private: ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const; void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:laser_message.laserMsg) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; int laser_status_; ::PROTOBUF_NAMESPACE_ID::int32 queue_data_count_; ::PROTOBUF_NAMESPACE_ID::int32 cloud_count_; ::PROTOBUF_NAMESPACE_ID::int32 id_; friend struct ::TableStruct_laser_5fmessage_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // laserMsg // optional .laser_message.laserStatus laser_status = 1; inline bool laserMsg::_internal_has_laser_status() const { bool value = (_has_bits_[0] & 0x00000001u) != 0; return value; } inline bool laserMsg::has_laser_status() const { return _internal_has_laser_status(); } inline void laserMsg::clear_laser_status() { laser_status_ = 0; _has_bits_[0] &= ~0x00000001u; } inline ::laser_message::laserStatus laserMsg::_internal_laser_status() const { return static_cast< ::laser_message::laserStatus >(laser_status_); } inline ::laser_message::laserStatus laserMsg::laser_status() const { // @@protoc_insertion_point(field_get:laser_message.laserMsg.laser_status) return _internal_laser_status(); } inline void laserMsg::_internal_set_laser_status(::laser_message::laserStatus value) { assert(::laser_message::laserStatus_IsValid(value)); _has_bits_[0] |= 0x00000001u; laser_status_ = value; } inline void laserMsg::set_laser_status(::laser_message::laserStatus value) { _internal_set_laser_status(value); // @@protoc_insertion_point(field_set:laser_message.laserMsg.laser_status) } // optional int32 queue_data_count = 2; inline bool laserMsg::_internal_has_queue_data_count() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; return value; } inline bool laserMsg::has_queue_data_count() const { return _internal_has_queue_data_count(); } inline void laserMsg::clear_queue_data_count() { queue_data_count_ = 0; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_queue_data_count() const { return queue_data_count_; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::queue_data_count() const { // @@protoc_insertion_point(field_get:laser_message.laserMsg.queue_data_count) return _internal_queue_data_count(); } inline void laserMsg::_internal_set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value) { _has_bits_[0] |= 0x00000002u; queue_data_count_ = value; } inline void laserMsg::set_queue_data_count(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_queue_data_count(value); // @@protoc_insertion_point(field_set:laser_message.laserMsg.queue_data_count) } // optional int32 cloud_count = 3; inline bool laserMsg::_internal_has_cloud_count() const { bool value = (_has_bits_[0] & 0x00000004u) != 0; return value; } inline bool laserMsg::has_cloud_count() const { return _internal_has_cloud_count(); } inline void laserMsg::clear_cloud_count() { cloud_count_ = 0; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_cloud_count() const { return cloud_count_; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::cloud_count() const { // @@protoc_insertion_point(field_get:laser_message.laserMsg.cloud_count) return _internal_cloud_count(); } inline void laserMsg::_internal_set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value) { _has_bits_[0] |= 0x00000004u; cloud_count_ = value; } inline void laserMsg::set_cloud_count(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_cloud_count(value); // @@protoc_insertion_point(field_set:laser_message.laserMsg.cloud_count) } // required int32 id = 4; inline bool laserMsg::_internal_has_id() const { bool value = (_has_bits_[0] & 0x00000008u) != 0; return value; } inline bool laserMsg::has_id() const { return _internal_has_id(); } inline void laserMsg::clear_id() { id_ = 0; _has_bits_[0] &= ~0x00000008u; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::_internal_id() const { return id_; } inline ::PROTOBUF_NAMESPACE_ID::int32 laserMsg::id() const { // @@protoc_insertion_point(field_get:laser_message.laserMsg.id) return _internal_id(); } inline void laserMsg::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { _has_bits_[0] |= 0x00000008u; id_ = value; } inline void laserMsg::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:laser_message.laserMsg.id) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace laser_message PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::laser_message::laserStatus> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::laser_message::laserStatus>() { return ::laser_message::laserStatus_descriptor(); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_laser_5fmessage_2eproto