// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SystemStateOrder.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_SystemStateOrder_2eproto #define GOOGLE_PROTOBUF_INCLUDED_SystemStateOrder_2eproto #include #include #include #if PROTOBUF_VERSION < 3021000 #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 3021012 < 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 // IWYU pragma: export #include // IWYU pragma: export #include #include "Identifier.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_SystemStateOrder_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_SystemStateOrder_2eproto { static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_SystemStateOrder_2eproto; namespace messages { namespace entity { namespace order { class SystemStateOrder; struct SystemStateOrderDefaultTypeInternal; extern SystemStateOrderDefaultTypeInternal _SystemStateOrder_default_instance_; } // namespace order } // namespace entity } // namespace messages PROTOBUF_NAMESPACE_OPEN template<> ::messages::entity::order::SystemStateOrder* Arena::CreateMaybeMessage<::messages::entity::order::SystemStateOrder>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace messages { namespace entity { namespace order { // =================================================================== class SystemStateOrder final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.entity.order.SystemStateOrder) */ { public: inline SystemStateOrder() : SystemStateOrder(nullptr) {} ~SystemStateOrder() override; explicit PROTOBUF_CONSTEXPR SystemStateOrder(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SystemStateOrder(const SystemStateOrder& from); SystemStateOrder(SystemStateOrder&& from) noexcept : SystemStateOrder() { *this = ::std::move(from); } inline SystemStateOrder& operator=(const SystemStateOrder& from) { CopyFrom(from); return *this; } inline SystemStateOrder& operator=(SystemStateOrder&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE && GetOwningArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const SystemStateOrder& default_instance() { return *internal_default_instance(); } static inline const SystemStateOrder* internal_default_instance() { return reinterpret_cast( &_SystemStateOrder_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(SystemStateOrder& a, SystemStateOrder& b) { a.Swap(&b); } inline void Swap(SystemStateOrder* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() == other->GetOwningArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SystemStateOrder* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- SystemStateOrder* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SystemStateOrder& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom( const SystemStateOrder& from) { SystemStateOrder::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: 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; uint8_t* _InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SystemStateOrder* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "messages.entity.order.SystemStateOrder"; } protected: explicit SystemStateOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: static const ClassData _class_data_; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kSystemIDFieldNumber = 1, kStaturFieldNumber = 2, kEffectorFieldNumber = 3, kSensorFieldNumber = 4, }; // .messages.track.Identifier SystemID = 1; bool has_systemid() const; private: bool _internal_has_systemid() const; public: void clear_systemid(); const ::messages::track::Identifier& systemid() const; PROTOBUF_NODISCARD ::messages::track::Identifier* release_systemid(); ::messages::track::Identifier* mutable_systemid(); void set_allocated_systemid(::messages::track::Identifier* systemid); private: const ::messages::track::Identifier& _internal_systemid() const; ::messages::track::Identifier* _internal_mutable_systemid(); public: void unsafe_arena_set_allocated_systemid( ::messages::track::Identifier* systemid); ::messages::track::Identifier* unsafe_arena_release_systemid(); // bool Statur = 2; void clear_statur(); bool statur() const; void set_statur(bool value); private: bool _internal_statur() const; void _internal_set_statur(bool value); public: // optional bool Effector = 3; bool has_effector() const; private: bool _internal_has_effector() const; public: void clear_effector(); bool effector() const; void set_effector(bool value); private: bool _internal_effector() const; void _internal_set_effector(bool value); public: // optional bool Sensor = 4; bool has_sensor() const; private: bool _internal_has_sensor() const; public: void clear_sensor(); bool sensor() const; void set_sensor(bool value); private: bool _internal_sensor() const; void _internal_set_sensor(bool value); public: // @@protoc_insertion_point(class_scope:messages.entity.order.SystemStateOrder) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::messages::track::Identifier* systemid_; bool statur_; bool effector_; bool sensor_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_SystemStateOrder_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // SystemStateOrder // .messages.track.Identifier SystemID = 1; inline bool SystemStateOrder::_internal_has_systemid() const { return this != internal_default_instance() && _impl_.systemid_ != nullptr; } inline bool SystemStateOrder::has_systemid() const { return _internal_has_systemid(); } inline const ::messages::track::Identifier& SystemStateOrder::_internal_systemid() const { const ::messages::track::Identifier* p = _impl_.systemid_; return p != nullptr ? *p : reinterpret_cast( ::messages::track::_Identifier_default_instance_); } inline const ::messages::track::Identifier& SystemStateOrder::systemid() const { // @@protoc_insertion_point(field_get:messages.entity.order.SystemStateOrder.SystemID) return _internal_systemid(); } inline void SystemStateOrder::unsafe_arena_set_allocated_systemid( ::messages::track::Identifier* systemid) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.systemid_); } _impl_.systemid_ = systemid; if (systemid) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.SystemStateOrder.SystemID) } inline ::messages::track::Identifier* SystemStateOrder::release_systemid() { ::messages::track::Identifier* temp = _impl_.systemid_; _impl_.systemid_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); if (GetArenaForAllocation() == nullptr) { delete old; } #else // PROTOBUF_FORCE_COPY_IN_RELEASE if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::messages::track::Identifier* SystemStateOrder::unsafe_arena_release_systemid() { // @@protoc_insertion_point(field_release:messages.entity.order.SystemStateOrder.SystemID) ::messages::track::Identifier* temp = _impl_.systemid_; _impl_.systemid_ = nullptr; return temp; } inline ::messages::track::Identifier* SystemStateOrder::_internal_mutable_systemid() { if (_impl_.systemid_ == nullptr) { auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation()); _impl_.systemid_ = p; } return _impl_.systemid_; } inline ::messages::track::Identifier* SystemStateOrder::mutable_systemid() { ::messages::track::Identifier* _msg = _internal_mutable_systemid(); // @@protoc_insertion_point(field_mutable:messages.entity.order.SystemStateOrder.SystemID) return _msg; } inline void SystemStateOrder::set_allocated_systemid(::messages::track::Identifier* systemid) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.systemid_); } if (systemid) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(systemid)); if (message_arena != submessage_arena) { systemid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, systemid, submessage_arena); } } else { } _impl_.systemid_ = systemid; // @@protoc_insertion_point(field_set_allocated:messages.entity.order.SystemStateOrder.SystemID) } // bool Statur = 2; inline void SystemStateOrder::clear_statur() { _impl_.statur_ = false; } inline bool SystemStateOrder::_internal_statur() const { return _impl_.statur_; } inline bool SystemStateOrder::statur() const { // @@protoc_insertion_point(field_get:messages.entity.order.SystemStateOrder.Statur) return _internal_statur(); } inline void SystemStateOrder::_internal_set_statur(bool value) { _impl_.statur_ = value; } inline void SystemStateOrder::set_statur(bool value) { _internal_set_statur(value); // @@protoc_insertion_point(field_set:messages.entity.order.SystemStateOrder.Statur) } // optional bool Effector = 3; inline bool SystemStateOrder::_internal_has_effector() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } inline bool SystemStateOrder::has_effector() const { return _internal_has_effector(); } inline void SystemStateOrder::clear_effector() { _impl_.effector_ = false; _impl_._has_bits_[0] &= ~0x00000001u; } inline bool SystemStateOrder::_internal_effector() const { return _impl_.effector_; } inline bool SystemStateOrder::effector() const { // @@protoc_insertion_point(field_get:messages.entity.order.SystemStateOrder.Effector) return _internal_effector(); } inline void SystemStateOrder::_internal_set_effector(bool value) { _impl_._has_bits_[0] |= 0x00000001u; _impl_.effector_ = value; } inline void SystemStateOrder::set_effector(bool value) { _internal_set_effector(value); // @@protoc_insertion_point(field_set:messages.entity.order.SystemStateOrder.Effector) } // optional bool Sensor = 4; inline bool SystemStateOrder::_internal_has_sensor() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } inline bool SystemStateOrder::has_sensor() const { return _internal_has_sensor(); } inline void SystemStateOrder::clear_sensor() { _impl_.sensor_ = false; _impl_._has_bits_[0] &= ~0x00000002u; } inline bool SystemStateOrder::_internal_sensor() const { return _impl_.sensor_; } inline bool SystemStateOrder::sensor() const { // @@protoc_insertion_point(field_get:messages.entity.order.SystemStateOrder.Sensor) return _internal_sensor(); } inline void SystemStateOrder::_internal_set_sensor(bool value) { _impl_._has_bits_[0] |= 0x00000002u; _impl_.sensor_ = value; } inline void SystemStateOrder::set_sensor(bool value) { _internal_set_sensor(value); // @@protoc_insertion_point(field_set:messages.entity.order.SystemStateOrder.Sensor) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace order } // namespace entity } // namespace messages // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_SystemStateOrder_2eproto