// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SystemStateOrder.proto #include "SystemStateOrder.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::PROTOBUF_NAMESPACE_ID; namespace _pbi = _pb::internal; namespace messages { namespace entity { namespace order { PROTOBUF_CONSTEXPR SystemStateOrder::SystemStateOrder( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_._has_bits_)*/{} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_.systemid_)*/nullptr , /*decltype(_impl_.statur_)*/false , /*decltype(_impl_.effector_)*/false , /*decltype(_impl_.sensor_)*/false} {} struct SystemStateOrderDefaultTypeInternal { PROTOBUF_CONSTEXPR SystemStateOrderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SystemStateOrderDefaultTypeInternal() {} union { SystemStateOrder _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemStateOrderDefaultTypeInternal _SystemStateOrder_default_instance_; } // namespace order } // namespace entity } // namespace messages static ::_pb::Metadata file_level_metadata_SystemStateOrder_2eproto[1]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_SystemStateOrder_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_SystemStateOrder_2eproto = nullptr; const uint32_t TableStruct_SystemStateOrder_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _impl_.systemid_), PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _impl_.statur_), PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _impl_.effector_), PROTOBUF_FIELD_OFFSET(::messages::entity::order::SystemStateOrder, _impl_.sensor_), ~0u, ~0u, 0, 1, }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 10, -1, sizeof(::messages::entity::order::SystemStateOrder)}, }; static const ::_pb::Message* const file_default_instances[] = { &::messages::entity::order::_SystemStateOrder_default_instance_._instance, }; const char descriptor_table_protodef_SystemStateOrder_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\026SystemStateOrder.proto\022\025messages.entit" "y.order\032\020Identifier.proto\"\224\001\n\020SystemStat" "eOrder\022,\n\010SystemID\030\001 \001(\0132\032.messages.trac" "k.Identifier\022\016\n\006Statur\030\002 \001(\010\022\025\n\010Effector" "\030\003 \001(\010H\000\210\001\001\022\023\n\006Sensor\030\004 \001(\010H\001\210\001\001B\013\n\t_Eff" "ectorB\t\n\007_Sensorb\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_SystemStateOrder_2eproto_deps[1] = { &::descriptor_table_Identifier_2eproto, }; static ::_pbi::once_flag descriptor_table_SystemStateOrder_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_SystemStateOrder_2eproto = { false, false, 224, descriptor_table_protodef_SystemStateOrder_2eproto, "SystemStateOrder.proto", &descriptor_table_SystemStateOrder_2eproto_once, descriptor_table_SystemStateOrder_2eproto_deps, 1, 1, schemas, file_default_instances, TableStruct_SystemStateOrder_2eproto::offsets, file_level_metadata_SystemStateOrder_2eproto, file_level_enum_descriptors_SystemStateOrder_2eproto, file_level_service_descriptors_SystemStateOrder_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SystemStateOrder_2eproto_getter() { return &descriptor_table_SystemStateOrder_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_SystemStateOrder_2eproto(&descriptor_table_SystemStateOrder_2eproto); namespace messages { namespace entity { namespace order { // =================================================================== class SystemStateOrder::_Internal { public: using HasBits = decltype(std::declval()._impl_._has_bits_); static const ::messages::track::Identifier& systemid(const SystemStateOrder* msg); static void set_has_effector(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_sensor(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::messages::track::Identifier& SystemStateOrder::_Internal::systemid(const SystemStateOrder* msg) { return *msg->_impl_.systemid_; } void SystemStateOrder::clear_systemid() { if (GetArenaForAllocation() == nullptr && _impl_.systemid_ != nullptr) { delete _impl_.systemid_; } _impl_.systemid_ = nullptr; } SystemStateOrder::SystemStateOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:messages.entity.order.SystemStateOrder) } SystemStateOrder::SystemStateOrder(const SystemStateOrder& from) : ::PROTOBUF_NAMESPACE_ID::Message() { SystemStateOrder* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.systemid_){nullptr} , decltype(_impl_.statur_){} , decltype(_impl_.effector_){} , decltype(_impl_.sensor_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_systemid()) { _this->_impl_.systemid_ = new ::messages::track::Identifier(*from._impl_.systemid_); } ::memcpy(&_impl_.statur_, &from._impl_.statur_, static_cast(reinterpret_cast(&_impl_.sensor_) - reinterpret_cast(&_impl_.statur_)) + sizeof(_impl_.sensor_)); // @@protoc_insertion_point(copy_constructor:messages.entity.order.SystemStateOrder) } inline void SystemStateOrder::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.systemid_){nullptr} , decltype(_impl_.statur_){false} , decltype(_impl_.effector_){false} , decltype(_impl_.sensor_){false} }; } SystemStateOrder::~SystemStateOrder() { // @@protoc_insertion_point(destructor:messages.entity.order.SystemStateOrder) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; } SharedDtor(); } inline void SystemStateOrder::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.systemid_; } void SystemStateOrder::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void SystemStateOrder::Clear() { // @@protoc_insertion_point(message_clear_start:messages.entity.order.SystemStateOrder) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && _impl_.systemid_ != nullptr) { delete _impl_.systemid_; } _impl_.systemid_ = nullptr; _impl_.statur_ = false; ::memset(&_impl_.effector_, 0, static_cast( reinterpret_cast(&_impl_.sensor_) - reinterpret_cast(&_impl_.effector_)) + sizeof(_impl_.sensor_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SystemStateOrder::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .messages.track.Identifier SystemID = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_systemid(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // bool Statur = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _impl_.statur_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool Effector = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { _Internal::set_has_effector(&has_bits); _impl_.effector_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool Sensor = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _Internal::set_has_sensor(&has_bits); _impl_.sensor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SystemStateOrder::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:messages.entity.order.SystemStateOrder) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .messages.track.Identifier SystemID = 1; if (this->_internal_has_systemid()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::systemid(this), _Internal::systemid(this).GetCachedSize(), target, stream); } // bool Statur = 2; if (this->_internal_statur() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_statur(), target); } // optional bool Effector = 3; if (_internal_has_effector()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_effector(), target); } // optional bool Sensor = 4; if (_internal_has_sensor()) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_sensor(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:messages.entity.order.SystemStateOrder) return target; } size_t SystemStateOrder::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:messages.entity.order.SystemStateOrder) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .messages.track.Identifier SystemID = 1; if (this->_internal_has_systemid()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.systemid_); } // bool Statur = 2; if (this->_internal_statur() != 0) { total_size += 1 + 1; } cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional bool Effector = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + 1; } // optional bool Sensor = 4; if (cached_has_bits & 0x00000002u) { total_size += 1 + 1; } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SystemStateOrder::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SystemStateOrder::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SystemStateOrder::GetClassData() const { return &_class_data_; } void SystemStateOrder::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:messages.entity.order.SystemStateOrder) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_systemid()) { _this->_internal_mutable_systemid()->::messages::track::Identifier::MergeFrom( from._internal_systemid()); } if (from._internal_statur() != 0) { _this->_internal_set_statur(from._internal_statur()); } cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _this->_impl_.effector_ = from._impl_.effector_; } if (cached_has_bits & 0x00000002u) { _this->_impl_.sensor_ = from._impl_.sensor_; } _this->_impl_._has_bits_[0] |= cached_has_bits; } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SystemStateOrder::CopyFrom(const SystemStateOrder& from) { // @@protoc_insertion_point(class_specific_copy_from_start:messages.entity.order.SystemStateOrder) if (&from == this) return; Clear(); MergeFrom(from); } bool SystemStateOrder::IsInitialized() const { return true; } void SystemStateOrder::InternalSwap(SystemStateOrder* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SystemStateOrder, _impl_.sensor_) + sizeof(SystemStateOrder::_impl_.sensor_) - PROTOBUF_FIELD_OFFSET(SystemStateOrder, _impl_.systemid_)>( reinterpret_cast(&_impl_.systemid_), reinterpret_cast(&other->_impl_.systemid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SystemStateOrder::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_SystemStateOrder_2eproto_getter, &descriptor_table_SystemStateOrder_2eproto_once, file_level_metadata_SystemStateOrder_2eproto[0]); } // @@protoc_insertion_point(namespace_scope) } // namespace order } // namespace entity } // namespace messages PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::messages::entity::order::SystemStateOrder* Arena::CreateMaybeMessage< ::messages::entity::order::SystemStateOrder >(Arena* arena) { return Arena::CreateMessageInternal< ::messages::entity::order::SystemStateOrder >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include