diff --git a/.gitignore b/.gitignore index 1feee30..994123a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ build/ .cache +*.pb.cc +*.pb.h + diff --git a/include/SimCore/Messages/Protos/Control.pb.cc b/include/SimCore/Messages/Protos/Control.pb.cc deleted file mode 100644 index e552edc..0000000 --- a/include/SimCore/Messages/Protos/Control.pb.cc +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Control.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "Control.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace control { - -inline constexpr control::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - identifier_{nullptr}, - timestamp_{::uint64_t{0u}}, - type_{0u} {} - -template -PROTOBUF_CONSTEXPR control::control(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct controlDefaultTypeInternal { - PROTOBUF_CONSTEXPR controlDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~controlDefaultTypeInternal() {} - union { - control _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 controlDefaultTypeInternal _control_default_instance_; -} // namespace control -} // namespace messages -static ::_pb::Metadata file_level_metadata_Control_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_Control_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_Control_2eproto = nullptr; -const ::uint32_t - TableStruct_Control_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.identifier_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.timestamp_), - 0, - ~0u, - ~0u, - 1, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 12, -1, sizeof(::messages::control::control)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::control::_control_default_instance_._instance, -}; -const char descriptor_table_protodef_Control_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\rControl.proto\022\020messages.control\032\020Ident" - "ifier.proto\"{\n\007control\022.\n\nIdentifier\030\001 \001" - "(\0132\032.messages.track.Identifier\022\014\n\004type\030\002" - " \001(\r\022\014\n\004data\030\003 \001(\t\022\026\n\ttimestamp\030\004 \001(\004H\000\210" - "\001\001B\014\n\n_timestampb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_Control_2eproto_deps[1] = - { - &::descriptor_table_Identifier_2eproto, -}; -static ::absl::once_flag descriptor_table_Control_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Control_2eproto = { - false, - false, - 184, - descriptor_table_protodef_Control_2eproto, - "Control.proto", - &descriptor_table_Control_2eproto_once, - descriptor_table_Control_2eproto_deps, - 1, - 1, - schemas, - file_default_instances, - TableStruct_Control_2eproto::offsets, - file_level_metadata_Control_2eproto, - file_level_enum_descriptors_Control_2eproto, - file_level_service_descriptors_Control_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Control_2eproto_getter() { - return &descriptor_table_Control_2eproto; -} -namespace messages { -namespace control { -// =================================================================== - -class control::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(control, _impl_._has_bits_); -}; - -void control::clear_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.identifier_ != nullptr) _impl_.identifier_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -control::control(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.control.control) -} -inline PROTOBUF_NDEBUG_INLINE control::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - data_(arena, from.data_) {} - -control::control( - ::google::protobuf::Arena* arena, - const control& from) - : ::google::protobuf::Message(arena) { - control* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.identifier_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.identifier_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, timestamp_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, timestamp_), - offsetof(Impl_, type_) - - offsetof(Impl_, timestamp_) + - sizeof(Impl_::type_)); - - // @@protoc_insertion_point(copy_constructor:messages.control.control) -} -inline PROTOBUF_NDEBUG_INLINE control::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - data_(arena) {} - -inline void control::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, identifier_), - 0, - offsetof(Impl_, type_) - - offsetof(Impl_, identifier_) + - sizeof(Impl_::type_)); -} -control::~control() { - // @@protoc_insertion_point(destructor:messages.control.control) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void control::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.data_.Destroy(); - delete _impl_.identifier_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -control::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(control, _impl_._cached_size_), - false, - }, - &control::MergeImpl, - &control::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void control::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.control.control) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.identifier_ != nullptr); - _impl_.identifier_->Clear(); - } - _impl_.timestamp_ = ::uint64_t{0u}; - _impl_.type_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* control::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 37, 2> control::_table_ = { - { - PROTOBUF_FIELD_OFFSET(control, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_control_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::control::control>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional uint64 timestamp = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(control, _impl_.timestamp_), 1>(), - {32, 1, 0, PROTOBUF_FIELD_OFFSET(control, _impl_.timestamp_)}}, - // .messages.track.Identifier Identifier = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(control, _impl_.identifier_)}}, - // uint32 type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(control, _impl_.type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(control, _impl_.type_)}}, - // string data = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(control, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier Identifier = 1; - {PROTOBUF_FIELD_OFFSET(control, _impl_.identifier_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint32 type = 2; - {PROTOBUF_FIELD_OFFSET(control, _impl_.type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // string data = 3; - {PROTOBUF_FIELD_OFFSET(control, _impl_.data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional uint64 timestamp = 4; - {PROTOBUF_FIELD_OFFSET(control, _impl_.timestamp_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - }}, {{ - "\30\0\0\4\0\0\0\0" - "messages.control.control" - "data" - }}, -}; - -::uint8_t* control::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.control.control) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier Identifier = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.identifier_, _impl_.identifier_->GetCachedSize(), target, stream); - } - - // uint32 type = 2; - if (this->_internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_type(), target); - } - - // string data = 3; - if (!this->_internal_data().empty()) { - const std::string& _s = this->_internal_data(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.control.control.data"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // optional uint64 timestamp = 4; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_timestamp(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.control.control) - return target; -} - -::size_t control::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.control.control) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string data = 3; - if (!this->_internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_data()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .messages.track.Identifier Identifier = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.identifier_); - } - - // optional uint64 timestamp = 4; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - } - // uint32 type = 2; - if (this->_internal_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void control::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.control.control) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.identifier_ != nullptr); - if (_this->_impl_.identifier_ == nullptr) { - _this->_impl_.identifier_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.identifier_); - } else { - _this->_impl_.identifier_->MergeFrom(*from._impl_.identifier_); - } - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - } - if (from._internal_type() != 0) { - _this->_impl_.type_ = from._impl_.type_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void control::CopyFrom(const control& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.control.control) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool control::IsInitialized() const { - return true; -} - -void control::InternalSwap(control* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(control, _impl_.type_) - + sizeof(control::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(control, _impl_.identifier_)>( - reinterpret_cast(&_impl_.identifier_), - reinterpret_cast(&other->_impl_.identifier_)); -} - -::google::protobuf::Metadata control::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_Control_2eproto_getter, - &descriptor_table_Control_2eproto_once, - file_level_metadata_Control_2eproto[0]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace control -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_Control_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/Control.pb.h b/include/SimCore/Messages/Protos/Control.pb.h deleted file mode 100644 index 52b136e..0000000 --- a/include/SimCore/Messages/Protos/Control.pb.h +++ /dev/null @@ -1,508 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Control.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "Identifier.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_Control_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_Control_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_Control_2eproto; -namespace messages { -namespace control { -class control; -struct controlDefaultTypeInternal; -extern controlDefaultTypeInternal _control_default_instance_; -} // namespace control -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace control { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class control final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.control.control) */ { - public: - inline control() : control(nullptr) {} - ~control() override; - template - explicit PROTOBUF_CONSTEXPR control( - ::google::protobuf::internal::ConstantInitialized); - - inline control(const control& from) : control(nullptr, from) {} - inline control(control&& from) noexcept - : control(nullptr, std::move(from)) {} - inline control& operator=(const control& from) { - CopyFrom(from); - return *this; - } - inline control& operator=(control&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const control& default_instance() { - return *internal_default_instance(); - } - static inline const control* internal_default_instance() { - return reinterpret_cast( - &_control_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(control& a, control& b) { a.Swap(&b); } - inline void Swap(control* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(control* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - control* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const control& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const control& from) { control::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(control* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.control.control"; } - - protected: - explicit control(::google::protobuf::Arena* arena); - control(::google::protobuf::Arena* arena, const control& from); - control(::google::protobuf::Arena* arena, control&& from) noexcept - : control(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kDataFieldNumber = 3, - kIdentifierFieldNumber = 1, - kTimestampFieldNumber = 4, - kTypeFieldNumber = 2, - }; - // string data = 3; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); - - private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); - - public: - // .messages.track.Identifier Identifier = 1; - bool has_identifier() const; - void clear_identifier() ; - const ::messages::track::Identifier& identifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_identifier(); - ::messages::track::Identifier* mutable_identifier(); - void set_allocated_identifier(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_identifier(); - - private: - const ::messages::track::Identifier& _internal_identifier() const; - ::messages::track::Identifier* _internal_mutable_identifier(); - - public: - // optional uint64 timestamp = 4; - bool has_timestamp() const; - void clear_timestamp() ; - ::uint64_t timestamp() const; - void set_timestamp(::uint64_t value); - - private: - ::uint64_t _internal_timestamp() const; - void _internal_set_timestamp(::uint64_t value); - - public: - // uint32 type = 2; - void clear_type() ; - ::uint32_t type() const; - void set_type(::uint32_t value); - - private: - ::uint32_t _internal_type() const; - void _internal_set_type(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.control.control) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 1, - 37, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr data_; - ::messages::track::Identifier* identifier_; - ::uint64_t timestamp_; - ::uint32_t type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_Control_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// control - -// .messages.track.Identifier Identifier = 1; -inline bool control::has_identifier() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.identifier_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& control::_internal_identifier() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.identifier_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& control::identifier() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.control.control.Identifier) - return _internal_identifier(); -} -inline void control::unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_); - } - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.control.control.Identifier) -} -inline ::messages::track::Identifier* control::release_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.identifier_; - _impl_.identifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* control::unsafe_arena_release_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.control.control.Identifier) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* control::_internal_mutable_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.identifier_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.identifier_; -} -inline ::messages::track::Identifier* control::mutable_identifier() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_identifier(); - // @@protoc_insertion_point(field_mutable:messages.control.control.Identifier) - return _msg; -} -inline void control::set_allocated_identifier(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.control.control.Identifier) -} - -// uint32 type = 2; -inline void control::clear_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = 0u; -} -inline ::uint32_t control::type() const { - // @@protoc_insertion_point(field_get:messages.control.control.type) - return _internal_type(); -} -inline void control::set_type(::uint32_t value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:messages.control.control.type) -} -inline ::uint32_t control::_internal_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.type_; -} -inline void control::_internal_set_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.type_ = value; -} - -// string data = 3; -inline void control::clear_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.ClearToEmpty(); -} -inline const std::string& control::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.control.control.data) - return _internal_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void control::set_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.control.control.data) -} -inline std::string* control::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:messages.control.control.data) - return _s; -} -inline const std::string& control::_internal_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.data_.Get(); -} -inline void control::_internal_set_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.Set(value, GetArena()); -} -inline std::string* control::_internal_mutable_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.data_.Mutable( GetArena()); -} -inline std::string* control::release_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.control.control.data) - return _impl_.data_.Release(); -} -inline void control::set_allocated_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.control.control.data) -} - -// optional uint64 timestamp = 4; -inline bool control::has_timestamp() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void control::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint64_t control::timestamp() const { - // @@protoc_insertion_point(field_get:messages.control.control.timestamp) - return _internal_timestamp(); -} -inline void control::set_timestamp(::uint64_t value) { - _internal_set_timestamp(value); - _impl_._has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_set:messages.control.control.timestamp) -} -inline ::uint64_t control::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.timestamp_; -} -inline void control::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace control -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh diff --git a/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc b/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc deleted file mode 100644 index fe56e95..0000000 --- a/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc +++ /dev/null @@ -1,407 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GeocentricPosition.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "GeocentricPosition.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace track { - -inline constexpr EntityGeocentricPosition::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : x_{0}, - y_{0}, - z_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR EntityGeocentricPosition::EntityGeocentricPosition(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EntityGeocentricPositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR EntityGeocentricPositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EntityGeocentricPositionDefaultTypeInternal() {} - union { - EntityGeocentricPosition _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EntityGeocentricPositionDefaultTypeInternal _EntityGeocentricPosition_default_instance_; -} // namespace track -} // namespace messages -static ::_pb::Metadata file_level_metadata_GeocentricPosition_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_GeocentricPosition_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_GeocentricPosition_2eproto = nullptr; -const ::uint32_t - TableStruct_GeocentricPosition_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.z_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::messages::track::EntityGeocentricPosition)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::track::_EntityGeocentricPosition_default_instance_._instance, -}; -const char descriptor_table_protodef_GeocentricPosition_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\030GeocentricPosition.proto\022\016messages.tra" - "ck\";\n\030EntityGeocentricPosition\022\t\n\001X\030\001 \001(" - "\001\022\t\n\001Y\030\002 \001(\001\022\t\n\001Z\030\003 \001(\001b\006proto3" -}; -static ::absl::once_flag descriptor_table_GeocentricPosition_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_GeocentricPosition_2eproto = { - false, - false, - 111, - descriptor_table_protodef_GeocentricPosition_2eproto, - "GeocentricPosition.proto", - &descriptor_table_GeocentricPosition_2eproto_once, - nullptr, - 0, - 1, - schemas, - file_default_instances, - TableStruct_GeocentricPosition_2eproto::offsets, - file_level_metadata_GeocentricPosition_2eproto, - file_level_enum_descriptors_GeocentricPosition_2eproto, - file_level_service_descriptors_GeocentricPosition_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_GeocentricPosition_2eproto_getter() { - return &descriptor_table_GeocentricPosition_2eproto; -} -namespace messages { -namespace track { -// =================================================================== - -class EntityGeocentricPosition::_Internal { - public: -}; - -EntityGeocentricPosition::EntityGeocentricPosition(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.track.EntityGeocentricPosition) -} -EntityGeocentricPosition::EntityGeocentricPosition( - ::google::protobuf::Arena* arena, const EntityGeocentricPosition& from) - : EntityGeocentricPosition(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE EntityGeocentricPosition::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void EntityGeocentricPosition::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, x_), - 0, - offsetof(Impl_, z_) - - offsetof(Impl_, x_) + - sizeof(Impl_::z_)); -} -EntityGeocentricPosition::~EntityGeocentricPosition() { - // @@protoc_insertion_point(destructor:messages.track.EntityGeocentricPosition) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void EntityGeocentricPosition::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -EntityGeocentricPosition::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_._cached_size_), - false, - }, - &EntityGeocentricPosition::MergeImpl, - &EntityGeocentricPosition::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void EntityGeocentricPosition::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.track.EntityGeocentricPosition) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EntityGeocentricPosition::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EntityGeocentricPosition::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_EntityGeocentricPosition_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::track::EntityGeocentricPosition>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // double X = 1; - {::_pbi::TcParser::FastF64S1, - {9, 63, 0, PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.x_)}}, - // double Y = 2; - {::_pbi::TcParser::FastF64S1, - {17, 63, 0, PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.y_)}}, - // double Z = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.z_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // double X = 1; - {PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double Y = 2; - {PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double Z = 3; - {PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.z_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* EntityGeocentricPosition::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.track.EntityGeocentricPosition) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double X = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_x = this->_internal_x(); - ::uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_x(), target); - } - - // double Y = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_y = this->_internal_y(); - ::uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_y(), target); - } - - // double Z = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_z = this->_internal_z(); - ::uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_z(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.track.EntityGeocentricPosition) - return target; -} - -::size_t EntityGeocentricPosition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.track.EntityGeocentricPosition) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double X = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_x = this->_internal_x(); - ::uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - total_size += 9; - } - - // double Y = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_y = this->_internal_y(); - ::uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - total_size += 9; - } - - // double Z = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_z = this->_internal_z(); - ::uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - total_size += 9; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void EntityGeocentricPosition::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.track.EntityGeocentricPosition) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_x = from._internal_x(); - ::uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - _this->_impl_.x_ = from._impl_.x_; - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_y = from._internal_y(); - ::uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - _this->_impl_.y_ = from._impl_.y_; - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_z = from._internal_z(); - ::uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - _this->_impl_.z_ = from._impl_.z_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void EntityGeocentricPosition::CopyFrom(const EntityGeocentricPosition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.EntityGeocentricPosition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool EntityGeocentricPosition::IsInitialized() const { - return true; -} - -void EntityGeocentricPosition::InternalSwap(EntityGeocentricPosition* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.z_) - + sizeof(EntityGeocentricPosition::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); -} - -::google::protobuf::Metadata EntityGeocentricPosition::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_GeocentricPosition_2eproto_getter, - &descriptor_table_GeocentricPosition_2eproto_once, - file_level_metadata_GeocentricPosition_2eproto[0]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_GeocentricPosition_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/GeocentricPosition.pb.h b/include/SimCore/Messages/Protos/GeocentricPosition.pb.h deleted file mode 100644 index 3c5e56b..0000000 --- a/include/SimCore/Messages/Protos/GeocentricPosition.pb.h +++ /dev/null @@ -1,357 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GeocentricPosition.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_GeocentricPosition_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_GeocentricPosition_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_GeocentricPosition_2eproto; -namespace messages { -namespace track { -class EntityGeocentricPosition; -struct EntityGeocentricPositionDefaultTypeInternal; -extern EntityGeocentricPositionDefaultTypeInternal _EntityGeocentricPosition_default_instance_; -} // namespace track -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace track { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class EntityGeocentricPosition final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.track.EntityGeocentricPosition) */ { - public: - inline EntityGeocentricPosition() : EntityGeocentricPosition(nullptr) {} - ~EntityGeocentricPosition() override; - template - explicit PROTOBUF_CONSTEXPR EntityGeocentricPosition( - ::google::protobuf::internal::ConstantInitialized); - - inline EntityGeocentricPosition(const EntityGeocentricPosition& from) : EntityGeocentricPosition(nullptr, from) {} - inline EntityGeocentricPosition(EntityGeocentricPosition&& from) noexcept - : EntityGeocentricPosition(nullptr, std::move(from)) {} - inline EntityGeocentricPosition& operator=(const EntityGeocentricPosition& from) { - CopyFrom(from); - return *this; - } - inline EntityGeocentricPosition& operator=(EntityGeocentricPosition&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const EntityGeocentricPosition& default_instance() { - return *internal_default_instance(); - } - static inline const EntityGeocentricPosition* internal_default_instance() { - return reinterpret_cast( - &_EntityGeocentricPosition_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(EntityGeocentricPosition& a, EntityGeocentricPosition& b) { a.Swap(&b); } - inline void Swap(EntityGeocentricPosition* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EntityGeocentricPosition* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EntityGeocentricPosition* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const EntityGeocentricPosition& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const EntityGeocentricPosition& from) { EntityGeocentricPosition::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(EntityGeocentricPosition* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.track.EntityGeocentricPosition"; } - - protected: - explicit EntityGeocentricPosition(::google::protobuf::Arena* arena); - EntityGeocentricPosition(::google::protobuf::Arena* arena, const EntityGeocentricPosition& from); - EntityGeocentricPosition(::google::protobuf::Arena* arena, EntityGeocentricPosition&& from) noexcept - : EntityGeocentricPosition(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, - }; - // double X = 1; - void clear_x() ; - double x() const; - void set_x(double value); - - private: - double _internal_x() const; - void _internal_set_x(double value); - - public: - // double Y = 2; - void clear_y() ; - double y() const; - void set_y(double value); - - private: - double _internal_y() const; - void _internal_set_y(double value); - - public: - // double Z = 3; - void clear_z() ; - double z() const; - void set_z(double value); - - private: - double _internal_z() const; - void _internal_set_z(double value); - - public: - // @@protoc_insertion_point(class_scope:messages.track.EntityGeocentricPosition) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - double x_; - double y_; - double z_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_GeocentricPosition_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// EntityGeocentricPosition - -// double X = 1; -inline void EntityGeocentricPosition::clear_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = 0; -} -inline double EntityGeocentricPosition::x() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.X) - return _internal_x(); -} -inline void EntityGeocentricPosition::set_x(double value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.X) -} -inline double EntityGeocentricPosition::_internal_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.x_; -} -inline void EntityGeocentricPosition::_internal_set_x(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.x_ = value; -} - -// double Y = 2; -inline void EntityGeocentricPosition::clear_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = 0; -} -inline double EntityGeocentricPosition::y() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.Y) - return _internal_y(); -} -inline void EntityGeocentricPosition::set_y(double value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.Y) -} -inline double EntityGeocentricPosition::_internal_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.y_; -} -inline void EntityGeocentricPosition::_internal_set_y(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.y_ = value; -} - -// double Z = 3; -inline void EntityGeocentricPosition::clear_z() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = 0; -} -inline double EntityGeocentricPosition::z() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.Z) - return _internal_z(); -} -inline void EntityGeocentricPosition::set_z(double value) { - _internal_set_z(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.Z) -} -inline double EntityGeocentricPosition::_internal_z() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.z_; -} -inline void EntityGeocentricPosition::_internal_set_z(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.z_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto_2epb_2eh diff --git a/include/SimCore/Messages/Protos/Identifier.pb.cc b/include/SimCore/Messages/Protos/Identifier.pb.cc deleted file mode 100644 index d26326a..0000000 --- a/include/SimCore/Messages/Protos/Identifier.pb.cc +++ /dev/null @@ -1,353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Identifier.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "Identifier.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace track { - -inline constexpr Identifier::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : uuid_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - external_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Identifier::Identifier(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IdentifierDefaultTypeInternal { - PROTOBUF_CONSTEXPR IdentifierDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IdentifierDefaultTypeInternal() {} - union { - Identifier _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentifierDefaultTypeInternal _Identifier_default_instance_; -} // namespace track -} // namespace messages -static ::_pb::Metadata file_level_metadata_Identifier_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_Identifier_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_Identifier_2eproto = nullptr; -const ::uint32_t - TableStruct_Identifier_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _impl_.external_), - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _impl_.uuid_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::messages::track::Identifier)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::track::_Identifier_default_instance_._instance, -}; -const char descriptor_table_protodef_Identifier_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\020Identifier.proto\022\016messages.track\",\n\nId" - "entifier\022\020\n\010external\030\001 \001(\010\022\014\n\004uuid\030\002 \001(\t" - "b\006proto3" -}; -static ::absl::once_flag descriptor_table_Identifier_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Identifier_2eproto = { - false, - false, - 88, - descriptor_table_protodef_Identifier_2eproto, - "Identifier.proto", - &descriptor_table_Identifier_2eproto_once, - nullptr, - 0, - 1, - schemas, - file_default_instances, - TableStruct_Identifier_2eproto::offsets, - file_level_metadata_Identifier_2eproto, - file_level_enum_descriptors_Identifier_2eproto, - file_level_service_descriptors_Identifier_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Identifier_2eproto_getter() { - return &descriptor_table_Identifier_2eproto; -} -namespace messages { -namespace track { -// =================================================================== - -class Identifier::_Internal { - public: -}; - -Identifier::Identifier(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.track.Identifier) -} -inline PROTOBUF_NDEBUG_INLINE Identifier::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : uuid_(arena, from.uuid_), - _cached_size_{0} {} - -Identifier::Identifier( - ::google::protobuf::Arena* arena, - const Identifier& from) - : ::google::protobuf::Message(arena) { - Identifier* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.external_ = from._impl_.external_; - - // @@protoc_insertion_point(copy_constructor:messages.track.Identifier) -} -inline PROTOBUF_NDEBUG_INLINE Identifier::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : uuid_(arena), - _cached_size_{0} {} - -inline void Identifier::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.external_ = {}; -} -Identifier::~Identifier() { - // @@protoc_insertion_point(destructor:messages.track.Identifier) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Identifier::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uuid_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Identifier::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Identifier, _impl_._cached_size_), - false, - }, - &Identifier::MergeImpl, - &Identifier::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Identifier::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.track.Identifier) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.uuid_.ClearToEmpty(); - _impl_.external_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Identifier::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 38, 2> Identifier::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Identifier_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::track::Identifier>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string uuid = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Identifier, _impl_.uuid_)}}, - // bool external = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Identifier, _impl_.external_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool external = 1; - {PROTOBUF_FIELD_OFFSET(Identifier, _impl_.external_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string uuid = 2; - {PROTOBUF_FIELD_OFFSET(Identifier, _impl_.uuid_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\31\0\4\0\0\0\0\0" - "messages.track.Identifier" - "uuid" - }}, -}; - -::uint8_t* Identifier::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.track.Identifier) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool external = 1; - if (this->_internal_external() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_external(), target); - } - - // string uuid = 2; - if (!this->_internal_uuid().empty()) { - const std::string& _s = this->_internal_uuid(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.track.Identifier.uuid"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.track.Identifier) - return target; -} - -::size_t Identifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.track.Identifier) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string uuid = 2; - if (!this->_internal_uuid().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uuid()); - } - - // bool external = 1; - if (this->_internal_external() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Identifier::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.track.Identifier) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); - } - if (from._internal_external() != 0) { - _this->_impl_.external_ = from._impl_.external_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Identifier::CopyFrom(const Identifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.Identifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Identifier::IsInitialized() const { - return true; -} - -void Identifier::InternalSwap(Identifier* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uuid_, &other->_impl_.uuid_, arena); - swap(_impl_.external_, other->_impl_.external_); -} - -::google::protobuf::Metadata Identifier::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_Identifier_2eproto_getter, - &descriptor_table_Identifier_2eproto_once, - file_level_metadata_Identifier_2eproto[0]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_Identifier_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/Identifier.pb.h b/include/SimCore/Messages/Protos/Identifier.pb.h deleted file mode 100644 index 559e642..0000000 --- a/include/SimCore/Messages/Protos/Identifier.pb.h +++ /dev/null @@ -1,357 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Identifier.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_Identifier_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_Identifier_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_Identifier_2eproto; -namespace messages { -namespace track { -class Identifier; -struct IdentifierDefaultTypeInternal; -extern IdentifierDefaultTypeInternal _Identifier_default_instance_; -} // namespace track -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace track { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class Identifier final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.track.Identifier) */ { - public: - inline Identifier() : Identifier(nullptr) {} - ~Identifier() override; - template - explicit PROTOBUF_CONSTEXPR Identifier( - ::google::protobuf::internal::ConstantInitialized); - - inline Identifier(const Identifier& from) : Identifier(nullptr, from) {} - inline Identifier(Identifier&& from) noexcept - : Identifier(nullptr, std::move(from)) {} - inline Identifier& operator=(const Identifier& from) { - CopyFrom(from); - return *this; - } - inline Identifier& operator=(Identifier&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Identifier& default_instance() { - return *internal_default_instance(); - } - static inline const Identifier* internal_default_instance() { - return reinterpret_cast( - &_Identifier_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(Identifier& a, Identifier& b) { a.Swap(&b); } - inline void Swap(Identifier* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Identifier* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Identifier* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Identifier& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Identifier& from) { Identifier::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Identifier* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.track.Identifier"; } - - protected: - explicit Identifier(::google::protobuf::Arena* arena); - Identifier(::google::protobuf::Arena* arena, const Identifier& from); - Identifier(::google::protobuf::Arena* arena, Identifier&& from) noexcept - : Identifier(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUuidFieldNumber = 2, - kExternalFieldNumber = 1, - }; - // string uuid = 2; - void clear_uuid() ; - const std::string& uuid() const; - template - void set_uuid(Arg_&& arg, Args_... args); - std::string* mutable_uuid(); - PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* value); - - private: - const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid( - const std::string& value); - std::string* _internal_mutable_uuid(); - - public: - // bool external = 1; - void clear_external() ; - bool external() const; - void set_external(bool value); - - private: - bool _internal_external() const; - void _internal_set_external(bool value); - - public: - // @@protoc_insertion_point(class_scope:messages.track.Identifier) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 38, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr uuid_; - bool external_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_Identifier_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// Identifier - -// bool external = 1; -inline void Identifier::clear_external() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.external_ = false; -} -inline bool Identifier::external() const { - // @@protoc_insertion_point(field_get:messages.track.Identifier.external) - return _internal_external(); -} -inline void Identifier::set_external(bool value) { - _internal_set_external(value); - // @@protoc_insertion_point(field_set:messages.track.Identifier.external) -} -inline bool Identifier::_internal_external() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.external_; -} -inline void Identifier::_internal_set_external(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.external_ = value; -} - -// string uuid = 2; -inline void Identifier::clear_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.ClearToEmpty(); -} -inline const std::string& Identifier::uuid() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.track.Identifier.uuid) - return _internal_uuid(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Identifier::set_uuid(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.track.Identifier.uuid) -} -inline std::string* Identifier::mutable_uuid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_uuid(); - // @@protoc_insertion_point(field_mutable:messages.track.Identifier.uuid) - return _s; -} -inline const std::string& Identifier::_internal_uuid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.uuid_.Get(); -} -inline void Identifier::_internal_set_uuid(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.Set(value, GetArena()); -} -inline std::string* Identifier::_internal_mutable_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.uuid_.Mutable( GetArena()); -} -inline std::string* Identifier::release_uuid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.track.Identifier.uuid) - return _impl_.uuid_.Release(); -} -inline void Identifier::set_allocated_uuid(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.uuid_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.track.Identifier.uuid) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto_2epb_2eh diff --git a/include/SimCore/Messages/Protos/SimTrack.pb.cc b/include/SimCore/Messages/Protos/SimTrack.pb.cc deleted file mode 100644 index 51a1d73..0000000 --- a/include/SimCore/Messages/Protos/SimTrack.pb.cc +++ /dev/null @@ -1,1247 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SimTrack.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "SimTrack.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace SimTrack { - -inline constexpr Emission::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - identifier_{nullptr}, - frequency_{0}, - range_{0}, - bandwidth_{0u}, - pulsewidth_{0u}, - pulserepitition_{0u}, - radiatedpower_{0u}, - numberofbeams_{0u}, - searchinterval_{0u} {} - -template -PROTOBUF_CONSTEXPR Emission::Emission(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EmissionDefaultTypeInternal { - PROTOBUF_CONSTEXPR EmissionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EmissionDefaultTypeInternal() {} - union { - Emission _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmissionDefaultTypeInternal _Emission_default_instance_; - -inline constexpr SimTrack::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - contactemissions_{}, - conatactname_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - entityidentifier_{nullptr}, - geocentricposition_{nullptr}, - contactspeed_{0}, - contactsourcetype_{0u}, - contactkind_{0u}, - contactcourse_{0}, - conactpitch_{0}, - contactrcs_{0}, - contactside_{0u} {} - -template -PROTOBUF_CONSTEXPR SimTrack::SimTrack(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SimTrackDefaultTypeInternal { - PROTOBUF_CONSTEXPR SimTrackDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SimTrackDefaultTypeInternal() {} - union { - SimTrack _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SimTrackDefaultTypeInternal _SimTrack_default_instance_; -} // namespace SimTrack -} // namespace messages -static ::_pb::Metadata file_level_metadata_SimTrack_2eproto[2]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_SimTrack_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_SimTrack_2eproto = nullptr; -const ::uint32_t - TableStruct_SimTrack_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.entityidentifier_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.conatactname_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactsourcetype_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.geocentricposition_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactspeed_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactcourse_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.conactpitch_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactkind_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactside_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactrcs_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactemissions_), - 0, - ~0u, - 3, - 1, - 2, - 5, - 6, - 4, - 8, - 7, - ~0u, - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.identifier_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.frequency_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.bandwidth_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.pulsewidth_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.pulserepitition_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.radiatedpower_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.numberofbeams_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.searchinterval_), - 0, - ~0u, - ~0u, - ~0u, - 1, - 2, - 3, - 4, - 5, - 6, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 19, -1, sizeof(::messages::SimTrack::SimTrack)}, - {30, 48, -1, sizeof(::messages::SimTrack::Emission)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::SimTrack::_SimTrack_default_instance_._instance, - &::messages::SimTrack::_Emission_default_instance_._instance, -}; -const char descriptor_table_protodef_SimTrack_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\016SimTrack.proto\022\021messages.SimTrack\032\037goo" - "gle/protobuf/timestamp.proto\032\036google/pro" - "tobuf/duration.proto\032\020Identifier.proto\032\030" - "GeocentricPosition.proto\"\245\004\n\010SimTrack\0224\n" - "\020EntityIdentifier\030\001 \001(\0132\032.messages.track" - ".Identifier\022\024\n\014ConatactName\030\002 \001(\t\022\036\n\021Con" - "tactSourceType\030\003 \001(\rH\000\210\001\001\022I\n\022GeocentricP" - "osition\030\004 \001(\0132(.messages.track.EntityGeo" - "centricPositionH\001\210\001\001\022\031\n\014ContactSpeed\030\005 \001" - "(\001H\002\210\001\001\022\032\n\rContactCourse\030\006 \001(\001H\003\210\001\001\022\030\n\013C" - "onactPitch\030\007 \001(\001H\004\210\001\001\022\030\n\013ContactKind\030\010 \001" - "(\rH\005\210\001\001\022\030\n\013ContactSide\030\t \001(\rH\006\210\001\001\022\027\n\nCon" - "tactRCS\030\n \001(\001H\007\210\001\001\0225\n\020ContactEmissions\030\013" - " \003(\0132\033.messages.SimTrack.EmissionB\024\n\022_Co" - "ntactSourceTypeB\025\n\023_GeocentricPositionB\017" - "\n\r_ContactSpeedB\020\n\016_ContactCourseB\016\n\014_Co" - "nactPitchB\016\n\014_ContactKindB\016\n\014_ContactSid" - "eB\r\n\013_ContactRCS\"\366\002\n\010Emission\022.\n\nIdentif" - "ier\030\001 \001(\0132\032.messages.track.Identifier\022\014\n" - "\004name\030\002 \001(\t\022\021\n\tfrequency\030\003 \001(\001\022\r\n\005Range\030" - "\004 \001(\001\022\026\n\tBandwidth\030\005 \001(\rH\000\210\001\001\022\027\n\npulseWi" - "dth\030\006 \001(\rH\001\210\001\001\022\034\n\017pulseRepitition\030\007 \001(\rH" - "\002\210\001\001\022\032\n\rradiatedPower\030\010 \001(\rH\003\210\001\001\022\032\n\rnumb" - "erOfBeams\030\t \001(\rH\004\210\001\001\022\033\n\016searchInterval\030\n" - " \001(\rH\005\210\001\001B\014\n\n_BandwidthB\r\n\013_pulseWidthB\022" - "\n\020_pulseRepititionB\020\n\016_radiatedPowerB\020\n\016" - "_numberOfBeamsB\021\n\017_searchIntervalb\006proto" - "3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_SimTrack_2eproto_deps[4] = - { - &::descriptor_table_GeocentricPosition_2eproto, - &::descriptor_table_Identifier_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::absl::once_flag descriptor_table_SimTrack_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_SimTrack_2eproto = { - false, - false, - 1081, - descriptor_table_protodef_SimTrack_2eproto, - "SimTrack.proto", - &descriptor_table_SimTrack_2eproto_once, - descriptor_table_SimTrack_2eproto_deps, - 4, - 2, - schemas, - file_default_instances, - TableStruct_SimTrack_2eproto::offsets, - file_level_metadata_SimTrack_2eproto, - file_level_enum_descriptors_SimTrack_2eproto, - file_level_service_descriptors_SimTrack_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SimTrack_2eproto_getter() { - return &descriptor_table_SimTrack_2eproto; -} -namespace messages { -namespace SimTrack { -// =================================================================== - -class SimTrack::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SimTrack, _impl_._has_bits_); -}; - -void SimTrack::clear_entityidentifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.entityidentifier_ != nullptr) _impl_.entityidentifier_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -void SimTrack::clear_geocentricposition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.geocentricposition_ != nullptr) _impl_.geocentricposition_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -SimTrack::SimTrack(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.SimTrack.SimTrack) -} -inline PROTOBUF_NDEBUG_INLINE SimTrack::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - contactemissions_{visibility, arena, from.contactemissions_}, - conatactname_(arena, from.conatactname_) {} - -SimTrack::SimTrack( - ::google::protobuf::Arena* arena, - const SimTrack& from) - : ::google::protobuf::Message(arena) { - SimTrack* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.entityidentifier_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.entityidentifier_) - : nullptr; - _impl_.geocentricposition_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::EntityGeocentricPosition>( - arena, *from._impl_.geocentricposition_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, contactspeed_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, contactspeed_), - offsetof(Impl_, contactside_) - - offsetof(Impl_, contactspeed_) + - sizeof(Impl_::contactside_)); - - // @@protoc_insertion_point(copy_constructor:messages.SimTrack.SimTrack) -} -inline PROTOBUF_NDEBUG_INLINE SimTrack::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - contactemissions_{visibility, arena}, - conatactname_(arena) {} - -inline void SimTrack::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, entityidentifier_), - 0, - offsetof(Impl_, contactside_) - - offsetof(Impl_, entityidentifier_) + - sizeof(Impl_::contactside_)); -} -SimTrack::~SimTrack() { - // @@protoc_insertion_point(destructor:messages.SimTrack.SimTrack) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SimTrack::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.conatactname_.Destroy(); - delete _impl_.entityidentifier_; - delete _impl_.geocentricposition_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SimTrack::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_._cached_size_), - false, - }, - &SimTrack::MergeImpl, - &SimTrack::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SimTrack::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.SimTrack.SimTrack) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.contactemissions_.Clear(); - _impl_.conatactname_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.entityidentifier_ != nullptr); - _impl_.entityidentifier_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.geocentricposition_ != nullptr); - _impl_.geocentricposition_->Clear(); - } - } - if (cached_has_bits & 0x000000fcu) { - ::memset(&_impl_.contactspeed_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.contactrcs_) - - reinterpret_cast(&_impl_.contactspeed_)) + sizeof(_impl_.contactrcs_)); - } - _impl_.contactside_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SimTrack::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 3, 55, 2> SimTrack::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_._has_bits_), - 0, // no _extensions_ - 11, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294965248, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SimTrack_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::SimTrack::SimTrack>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .messages.track.Identifier EntityIdentifier = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.entityidentifier_)}}, - // string ConatactName = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.conatactname_)}}, - // optional uint32 ContactSourceType = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SimTrack, _impl_.contactsourcetype_), 3>(), - {24, 3, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactsourcetype_)}}, - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.geocentricposition_)}}, - // optional double ContactSpeed = 5; - {::_pbi::TcParser::FastF64S1, - {41, 2, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactspeed_)}}, - // optional double ContactCourse = 6; - {::_pbi::TcParser::FastF64S1, - {49, 5, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactcourse_)}}, - // optional double ConactPitch = 7; - {::_pbi::TcParser::FastF64S1, - {57, 6, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.conactpitch_)}}, - // optional uint32 ContactKind = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SimTrack, _impl_.contactkind_), 4>(), - {64, 4, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactkind_)}}, - // optional uint32 ContactSide = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SimTrack, _impl_.contactside_), 8>(), - {72, 8, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactside_)}}, - // optional double ContactRCS = 10; - {::_pbi::TcParser::FastF64S1, - {81, 7, 0, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactrcs_)}}, - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - {::_pbi::TcParser::FastMtR1, - {90, 63, 2, PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactemissions_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier EntityIdentifier = 1; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.entityidentifier_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string ConatactName = 2; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.conatactname_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // optional uint32 ContactSourceType = 3; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactsourcetype_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.geocentricposition_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional double ContactSpeed = 5; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactspeed_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double ContactCourse = 6; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactcourse_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional double ConactPitch = 7; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.conactpitch_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // optional uint32 ContactKind = 8; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactkind_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 ContactSide = 9; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactside_), _Internal::kHasBitsOffset + 8, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional double ContactRCS = 10; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactrcs_), _Internal::kHasBitsOffset + 7, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - {PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactemissions_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - {::_pbi::TcParser::GetTable<::messages::track::EntityGeocentricPosition>()}, - {::_pbi::TcParser::GetTable<::messages::SimTrack::Emission>()}, - }}, {{ - "\32\0\14\0\0\0\0\0\0\0\0\0\0\0\0\0" - "messages.SimTrack.SimTrack" - "ConatactName" - }}, -}; - -::uint8_t* SimTrack::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.SimTrack.SimTrack) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier EntityIdentifier = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.entityidentifier_, _impl_.entityidentifier_->GetCachedSize(), target, stream); - } - - // string ConatactName = 2; - if (!this->_internal_conatactname().empty()) { - const std::string& _s = this->_internal_conatactname(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.SimTrack.SimTrack.ConatactName"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // optional uint32 ContactSourceType = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_contactsourcetype(), target); - } - - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *_impl_.geocentricposition_, _impl_.geocentricposition_->GetCachedSize(), target, stream); - } - - // optional double ContactSpeed = 5; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_contactspeed(), target); - } - - // optional double ContactCourse = 6; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_contactcourse(), target); - } - - // optional double ConactPitch = 7; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 7, this->_internal_conactpitch(), target); - } - - // optional uint32 ContactKind = 8; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 8, this->_internal_contactkind(), target); - } - - // optional uint32 ContactSide = 9; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_contactside(), target); - } - - // optional double ContactRCS = 10; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 10, this->_internal_contactrcs(), target); - } - - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_contactemissions_size()); i < n; i++) { - const auto& repfield = this->_internal_contactemissions().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.SimTrack.SimTrack) - return target; -} - -::size_t SimTrack::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.SimTrack.SimTrack) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - total_size += 1UL * this->_internal_contactemissions_size(); - for (const auto& msg : this->_internal_contactemissions()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // string ConatactName = 2; - if (!this->_internal_conatactname().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_conatactname()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // .messages.track.Identifier EntityIdentifier = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.entityidentifier_); - } - - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.geocentricposition_); - } - - // optional double ContactSpeed = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 9; - } - - // optional uint32 ContactSourceType = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_contactsourcetype()); - } - - // optional uint32 ContactKind = 8; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_contactkind()); - } - - // optional double ContactCourse = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 9; - } - - // optional double ConactPitch = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 9; - } - - // optional double ContactRCS = 10; - if (cached_has_bits & 0x00000080u) { - total_size += 9; - } - - } - // optional uint32 ContactSide = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_contactside()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SimTrack::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.SimTrack.SimTrack) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_contactemissions()->MergeFrom( - from._internal_contactemissions()); - if (!from._internal_conatactname().empty()) { - _this->_internal_set_conatactname(from._internal_conatactname()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.entityidentifier_ != nullptr); - if (_this->_impl_.entityidentifier_ == nullptr) { - _this->_impl_.entityidentifier_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.entityidentifier_); - } else { - _this->_impl_.entityidentifier_->MergeFrom(*from._impl_.entityidentifier_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.geocentricposition_ != nullptr); - if (_this->_impl_.geocentricposition_ == nullptr) { - _this->_impl_.geocentricposition_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::EntityGeocentricPosition>(arena, *from._impl_.geocentricposition_); - } else { - _this->_impl_.geocentricposition_->MergeFrom(*from._impl_.geocentricposition_); - } - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.contactspeed_ = from._impl_.contactspeed_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.contactsourcetype_ = from._impl_.contactsourcetype_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.contactkind_ = from._impl_.contactkind_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.contactcourse_ = from._impl_.contactcourse_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.conactpitch_ = from._impl_.conactpitch_; - } - if (cached_has_bits & 0x00000080u) { - _this->_impl_.contactrcs_ = from._impl_.contactrcs_; - } - } - if (cached_has_bits & 0x00000100u) { - _this->_impl_.contactside_ = from._impl_.contactside_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SimTrack::CopyFrom(const SimTrack& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.SimTrack.SimTrack) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SimTrack::IsInitialized() const { - return true; -} - -void SimTrack::InternalSwap(SimTrack* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.contactemissions_.InternalSwap(&other->_impl_.contactemissions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.conatactname_, &other->_impl_.conatactname_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactside_) - + sizeof(SimTrack::_impl_.contactside_) - - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.entityidentifier_)>( - reinterpret_cast(&_impl_.entityidentifier_), - reinterpret_cast(&other->_impl_.entityidentifier_)); -} - -::google::protobuf::Metadata SimTrack::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_SimTrack_2eproto_getter, - &descriptor_table_SimTrack_2eproto_once, - file_level_metadata_SimTrack_2eproto[0]); -} -// =================================================================== - -class Emission::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Emission, _impl_._has_bits_); -}; - -void Emission::clear_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.identifier_ != nullptr) _impl_.identifier_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -Emission::Emission(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.SimTrack.Emission) -} -inline PROTOBUF_NDEBUG_INLINE Emission::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -Emission::Emission( - ::google::protobuf::Arena* arena, - const Emission& from) - : ::google::protobuf::Message(arena) { - Emission* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.identifier_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.identifier_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, frequency_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, frequency_), - offsetof(Impl_, searchinterval_) - - offsetof(Impl_, frequency_) + - sizeof(Impl_::searchinterval_)); - - // @@protoc_insertion_point(copy_constructor:messages.SimTrack.Emission) -} -inline PROTOBUF_NDEBUG_INLINE Emission::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void Emission::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, identifier_), - 0, - offsetof(Impl_, searchinterval_) - - offsetof(Impl_, identifier_) + - sizeof(Impl_::searchinterval_)); -} -Emission::~Emission() { - // @@protoc_insertion_point(destructor:messages.SimTrack.Emission) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Emission::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.identifier_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Emission::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Emission, _impl_._cached_size_), - false, - }, - &Emission::MergeImpl, - &Emission::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Emission::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.SimTrack.Emission) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.identifier_ != nullptr); - _impl_.identifier_->Clear(); - } - ::memset(&_impl_.frequency_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.range_) - - reinterpret_cast(&_impl_.frequency_)) + sizeof(_impl_.range_)); - if (cached_has_bits & 0x0000007eu) { - ::memset(&_impl_.bandwidth_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.searchinterval_) - - reinterpret_cast(&_impl_.bandwidth_)) + sizeof(_impl_.searchinterval_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Emission::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 1, 47, 2> Emission::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Emission, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Emission_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::SimTrack::Emission>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .messages.track.Identifier Identifier = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.identifier_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.name_)}}, - // double frequency = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.frequency_)}}, - // double Range = 4; - {::_pbi::TcParser::FastF64S1, - {33, 63, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.range_)}}, - // optional uint32 Bandwidth = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.bandwidth_), 1>(), - {40, 1, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.bandwidth_)}}, - // optional uint32 pulseWidth = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.pulsewidth_), 2>(), - {48, 2, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.pulsewidth_)}}, - // optional uint32 pulseRepitition = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.pulserepitition_), 3>(), - {56, 3, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.pulserepitition_)}}, - // optional uint32 radiatedPower = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.radiatedpower_), 4>(), - {64, 4, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.radiatedpower_)}}, - // optional uint32 numberOfBeams = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.numberofbeams_), 5>(), - {72, 5, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.numberofbeams_)}}, - // optional uint32 searchInterval = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Emission, _impl_.searchinterval_), 6>(), - {80, 6, 0, PROTOBUF_FIELD_OFFSET(Emission, _impl_.searchinterval_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier Identifier = 1; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.identifier_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double frequency = 3; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.frequency_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // double Range = 4; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.range_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // optional uint32 Bandwidth = 5; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.bandwidth_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 pulseWidth = 6; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.pulsewidth_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 pulseRepitition = 7; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.pulserepitition_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 radiatedPower = 8; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.radiatedpower_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 numberOfBeams = 9; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.numberofbeams_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // optional uint32 searchInterval = 10; - {PROTOBUF_FIELD_OFFSET(Emission, _impl_.searchinterval_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - }}, {{ - "\32\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0" - "messages.SimTrack.Emission" - "name" - }}, -}; - -::uint8_t* Emission::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.SimTrack.Emission) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier Identifier = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.identifier_, _impl_.identifier_->GetCachedSize(), target, stream); - } - - // string name = 2; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.SimTrack.Emission.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // double frequency = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_frequency = this->_internal_frequency(); - ::uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_frequency(), target); - } - - // double Range = 4; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 4, this->_internal_range(), target); - } - - // optional uint32 Bandwidth = 5; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_bandwidth(), target); - } - - // optional uint32 pulseWidth = 6; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this->_internal_pulsewidth(), target); - } - - // optional uint32 pulseRepitition = 7; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 7, this->_internal_pulserepitition(), target); - } - - // optional uint32 radiatedPower = 8; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 8, this->_internal_radiatedpower(), target); - } - - // optional uint32 numberOfBeams = 9; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_numberofbeams(), target); - } - - // optional uint32 searchInterval = 10; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 10, this->_internal_searchinterval(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.SimTrack.Emission) - return target; -} - -::size_t Emission::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.SimTrack.Emission) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .messages.track.Identifier Identifier = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.identifier_); - } - - // double frequency = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_frequency = this->_internal_frequency(); - ::uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - total_size += 9; - } - - // double Range = 4; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 9; - } - - if (cached_has_bits & 0x0000007eu) { - // optional uint32 Bandwidth = 5; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_bandwidth()); - } - - // optional uint32 pulseWidth = 6; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_pulsewidth()); - } - - // optional uint32 pulseRepitition = 7; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_pulserepitition()); - } - - // optional uint32 radiatedPower = 8; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_radiatedpower()); - } - - // optional uint32 numberOfBeams = 9; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_numberofbeams()); - } - - // optional uint32 searchInterval = 10; - if (cached_has_bits & 0x00000040u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_searchinterval()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Emission::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.SimTrack.Emission) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.identifier_ != nullptr); - if (_this->_impl_.identifier_ == nullptr) { - _this->_impl_.identifier_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.identifier_); - } else { - _this->_impl_.identifier_->MergeFrom(*from._impl_.identifier_); - } - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_frequency = from._internal_frequency(); - ::uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - _this->_impl_.frequency_ = from._impl_.frequency_; - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = from._internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_impl_.range_ = from._impl_.range_; - } - if (cached_has_bits & 0x0000007eu) { - if (cached_has_bits & 0x00000002u) { - _this->_impl_.bandwidth_ = from._impl_.bandwidth_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.pulsewidth_ = from._impl_.pulsewidth_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.pulserepitition_ = from._impl_.pulserepitition_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.radiatedpower_ = from._impl_.radiatedpower_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.numberofbeams_ = from._impl_.numberofbeams_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.searchinterval_ = from._impl_.searchinterval_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Emission::CopyFrom(const Emission& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.SimTrack.Emission) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Emission::IsInitialized() const { - return true; -} - -void Emission::InternalSwap(Emission* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Emission, _impl_.searchinterval_) - + sizeof(Emission::_impl_.searchinterval_) - - PROTOBUF_FIELD_OFFSET(Emission, _impl_.identifier_)>( - reinterpret_cast(&_impl_.identifier_), - reinterpret_cast(&other->_impl_.identifier_)); -} - -::google::protobuf::Metadata Emission::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_SimTrack_2eproto_getter, - &descriptor_table_SimTrack_2eproto_once, - file_level_metadata_SimTrack_2eproto[1]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace SimTrack -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_SimTrack_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/SimTrack.pb.h b/include/SimCore/Messages/Protos/SimTrack.pb.h deleted file mode 100644 index ff9812f..0000000 --- a/include/SimCore/Messages/Protos/SimTrack.pb.h +++ /dev/null @@ -1,1552 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SimTrack.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/timestamp.pb.h" -#include "google/protobuf/duration.pb.h" -#include "Identifier.pb.h" -#include "GeocentricPosition.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_SimTrack_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_SimTrack_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_SimTrack_2eproto; -namespace messages { -namespace SimTrack { -class Emission; -struct EmissionDefaultTypeInternal; -extern EmissionDefaultTypeInternal _Emission_default_instance_; -class SimTrack; -struct SimTrackDefaultTypeInternal; -extern SimTrackDefaultTypeInternal _SimTrack_default_instance_; -} // namespace SimTrack -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace SimTrack { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class Emission final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.SimTrack.Emission) */ { - public: - inline Emission() : Emission(nullptr) {} - ~Emission() override; - template - explicit PROTOBUF_CONSTEXPR Emission( - ::google::protobuf::internal::ConstantInitialized); - - inline Emission(const Emission& from) : Emission(nullptr, from) {} - inline Emission(Emission&& from) noexcept - : Emission(nullptr, std::move(from)) {} - inline Emission& operator=(const Emission& from) { - CopyFrom(from); - return *this; - } - inline Emission& operator=(Emission&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Emission& default_instance() { - return *internal_default_instance(); - } - static inline const Emission* internal_default_instance() { - return reinterpret_cast( - &_Emission_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Emission& a, Emission& b) { a.Swap(&b); } - inline void Swap(Emission* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Emission* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Emission* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Emission& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Emission& from) { Emission::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Emission* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.SimTrack.Emission"; } - - protected: - explicit Emission(::google::protobuf::Arena* arena); - Emission(::google::protobuf::Arena* arena, const Emission& from); - Emission(::google::protobuf::Arena* arena, Emission&& from) noexcept - : Emission(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 2, - kIdentifierFieldNumber = 1, - kFrequencyFieldNumber = 3, - kRangeFieldNumber = 4, - kBandwidthFieldNumber = 5, - kPulseWidthFieldNumber = 6, - kPulseRepititionFieldNumber = 7, - kRadiatedPowerFieldNumber = 8, - kNumberOfBeamsFieldNumber = 9, - kSearchIntervalFieldNumber = 10, - }; - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .messages.track.Identifier Identifier = 1; - bool has_identifier() const; - void clear_identifier() ; - const ::messages::track::Identifier& identifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_identifier(); - ::messages::track::Identifier* mutable_identifier(); - void set_allocated_identifier(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_identifier(); - - private: - const ::messages::track::Identifier& _internal_identifier() const; - ::messages::track::Identifier* _internal_mutable_identifier(); - - public: - // double frequency = 3; - void clear_frequency() ; - double frequency() const; - void set_frequency(double value); - - private: - double _internal_frequency() const; - void _internal_set_frequency(double value); - - public: - // double Range = 4; - void clear_range() ; - double range() const; - void set_range(double value); - - private: - double _internal_range() const; - void _internal_set_range(double value); - - public: - // optional uint32 Bandwidth = 5; - bool has_bandwidth() const; - void clear_bandwidth() ; - ::uint32_t bandwidth() const; - void set_bandwidth(::uint32_t value); - - private: - ::uint32_t _internal_bandwidth() const; - void _internal_set_bandwidth(::uint32_t value); - - public: - // optional uint32 pulseWidth = 6; - bool has_pulsewidth() const; - void clear_pulsewidth() ; - ::uint32_t pulsewidth() const; - void set_pulsewidth(::uint32_t value); - - private: - ::uint32_t _internal_pulsewidth() const; - void _internal_set_pulsewidth(::uint32_t value); - - public: - // optional uint32 pulseRepitition = 7; - bool has_pulserepitition() const; - void clear_pulserepitition() ; - ::uint32_t pulserepitition() const; - void set_pulserepitition(::uint32_t value); - - private: - ::uint32_t _internal_pulserepitition() const; - void _internal_set_pulserepitition(::uint32_t value); - - public: - // optional uint32 radiatedPower = 8; - bool has_radiatedpower() const; - void clear_radiatedpower() ; - ::uint32_t radiatedpower() const; - void set_radiatedpower(::uint32_t value); - - private: - ::uint32_t _internal_radiatedpower() const; - void _internal_set_radiatedpower(::uint32_t value); - - public: - // optional uint32 numberOfBeams = 9; - bool has_numberofbeams() const; - void clear_numberofbeams() ; - ::uint32_t numberofbeams() const; - void set_numberofbeams(::uint32_t value); - - private: - ::uint32_t _internal_numberofbeams() const; - void _internal_set_numberofbeams(::uint32_t value); - - public: - // optional uint32 searchInterval = 10; - bool has_searchinterval() const; - void clear_searchinterval() ; - ::uint32_t searchinterval() const; - void set_searchinterval(::uint32_t value); - - private: - ::uint32_t _internal_searchinterval() const; - void _internal_set_searchinterval(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.SimTrack.Emission) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 1, - 47, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::messages::track::Identifier* identifier_; - double frequency_; - double range_; - ::uint32_t bandwidth_; - ::uint32_t pulsewidth_; - ::uint32_t pulserepitition_; - ::uint32_t radiatedpower_; - ::uint32_t numberofbeams_; - ::uint32_t searchinterval_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SimTrack_2eproto; -}; -// ------------------------------------------------------------------- - -class SimTrack final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.SimTrack.SimTrack) */ { - public: - inline SimTrack() : SimTrack(nullptr) {} - ~SimTrack() override; - template - explicit PROTOBUF_CONSTEXPR SimTrack( - ::google::protobuf::internal::ConstantInitialized); - - inline SimTrack(const SimTrack& from) : SimTrack(nullptr, from) {} - inline SimTrack(SimTrack&& from) noexcept - : SimTrack(nullptr, std::move(from)) {} - inline SimTrack& operator=(const SimTrack& from) { - CopyFrom(from); - return *this; - } - inline SimTrack& operator=(SimTrack&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SimTrack& default_instance() { - return *internal_default_instance(); - } - static inline const SimTrack* internal_default_instance() { - return reinterpret_cast( - &_SimTrack_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(SimTrack& a, SimTrack& b) { a.Swap(&b); } - inline void Swap(SimTrack* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SimTrack* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SimTrack* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SimTrack& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SimTrack& from) { SimTrack::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SimTrack* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.SimTrack.SimTrack"; } - - protected: - explicit SimTrack(::google::protobuf::Arena* arena); - SimTrack(::google::protobuf::Arena* arena, const SimTrack& from); - SimTrack(::google::protobuf::Arena* arena, SimTrack&& from) noexcept - : SimTrack(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kContactEmissionsFieldNumber = 11, - kConatactNameFieldNumber = 2, - kEntityIdentifierFieldNumber = 1, - kGeocentricPositionFieldNumber = 4, - kContactSpeedFieldNumber = 5, - kContactSourceTypeFieldNumber = 3, - kContactKindFieldNumber = 8, - kContactCourseFieldNumber = 6, - kConactPitchFieldNumber = 7, - kContactRCSFieldNumber = 10, - kContactSideFieldNumber = 9, - }; - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - int contactemissions_size() const; - private: - int _internal_contactemissions_size() const; - - public: - void clear_contactemissions() ; - ::messages::SimTrack::Emission* mutable_contactemissions(int index); - ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>* mutable_contactemissions(); - - private: - const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>& _internal_contactemissions() const; - ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>* _internal_mutable_contactemissions(); - public: - const ::messages::SimTrack::Emission& contactemissions(int index) const; - ::messages::SimTrack::Emission* add_contactemissions(); - const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>& contactemissions() const; - // string ConatactName = 2; - void clear_conatactname() ; - const std::string& conatactname() const; - template - void set_conatactname(Arg_&& arg, Args_... args); - std::string* mutable_conatactname(); - PROTOBUF_NODISCARD std::string* release_conatactname(); - void set_allocated_conatactname(std::string* value); - - private: - const std::string& _internal_conatactname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conatactname( - const std::string& value); - std::string* _internal_mutable_conatactname(); - - public: - // .messages.track.Identifier EntityIdentifier = 1; - bool has_entityidentifier() const; - void clear_entityidentifier() ; - const ::messages::track::Identifier& entityidentifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_entityidentifier(); - ::messages::track::Identifier* mutable_entityidentifier(); - void set_allocated_entityidentifier(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_entityidentifier(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_entityidentifier(); - - private: - const ::messages::track::Identifier& _internal_entityidentifier() const; - ::messages::track::Identifier* _internal_mutable_entityidentifier(); - - public: - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - bool has_geocentricposition() const; - void clear_geocentricposition() ; - const ::messages::track::EntityGeocentricPosition& geocentricposition() const; - PROTOBUF_NODISCARD ::messages::track::EntityGeocentricPosition* release_geocentricposition(); - ::messages::track::EntityGeocentricPosition* mutable_geocentricposition(); - void set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* value); - void unsafe_arena_set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* value); - ::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition(); - - private: - const ::messages::track::EntityGeocentricPosition& _internal_geocentricposition() const; - ::messages::track::EntityGeocentricPosition* _internal_mutable_geocentricposition(); - - public: - // optional double ContactSpeed = 5; - bool has_contactspeed() const; - void clear_contactspeed() ; - double contactspeed() const; - void set_contactspeed(double value); - - private: - double _internal_contactspeed() const; - void _internal_set_contactspeed(double value); - - public: - // optional uint32 ContactSourceType = 3; - bool has_contactsourcetype() const; - void clear_contactsourcetype() ; - ::uint32_t contactsourcetype() const; - void set_contactsourcetype(::uint32_t value); - - private: - ::uint32_t _internal_contactsourcetype() const; - void _internal_set_contactsourcetype(::uint32_t value); - - public: - // optional uint32 ContactKind = 8; - bool has_contactkind() const; - void clear_contactkind() ; - ::uint32_t contactkind() const; - void set_contactkind(::uint32_t value); - - private: - ::uint32_t _internal_contactkind() const; - void _internal_set_contactkind(::uint32_t value); - - public: - // optional double ContactCourse = 6; - bool has_contactcourse() const; - void clear_contactcourse() ; - double contactcourse() const; - void set_contactcourse(double value); - - private: - double _internal_contactcourse() const; - void _internal_set_contactcourse(double value); - - public: - // optional double ConactPitch = 7; - bool has_conactpitch() const; - void clear_conactpitch() ; - double conactpitch() const; - void set_conactpitch(double value); - - private: - double _internal_conactpitch() const; - void _internal_set_conactpitch(double value); - - public: - // optional double ContactRCS = 10; - bool has_contactrcs() const; - void clear_contactrcs() ; - double contactrcs() const; - void set_contactrcs(double value); - - private: - double _internal_contactrcs() const; - void _internal_set_contactrcs(double value); - - public: - // optional uint32 ContactSide = 9; - bool has_contactside() const; - void clear_contactside() ; - ::uint32_t contactside() const; - void set_contactside(::uint32_t value); - - private: - ::uint32_t _internal_contactside() const; - void _internal_set_contactside(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.SimTrack.SimTrack) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 3, - 55, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::messages::SimTrack::Emission > contactemissions_; - ::google::protobuf::internal::ArenaStringPtr conatactname_; - ::messages::track::Identifier* entityidentifier_; - ::messages::track::EntityGeocentricPosition* geocentricposition_; - double contactspeed_; - ::uint32_t contactsourcetype_; - ::uint32_t contactkind_; - double contactcourse_; - double conactpitch_; - double contactrcs_; - ::uint32_t contactside_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SimTrack_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// SimTrack - -// .messages.track.Identifier EntityIdentifier = 1; -inline bool SimTrack::has_entityidentifier() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.entityidentifier_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& SimTrack::_internal_entityidentifier() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.entityidentifier_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& SimTrack::entityidentifier() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.EntityIdentifier) - return _internal_entityidentifier(); -} -inline void SimTrack::unsafe_arena_set_allocated_entityidentifier(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.entityidentifier_); - } - _impl_.entityidentifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier) -} -inline ::messages::track::Identifier* SimTrack::release_entityidentifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.entityidentifier_; - _impl_.entityidentifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* SimTrack::unsafe_arena_release_entityidentifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.EntityIdentifier) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.entityidentifier_; - _impl_.entityidentifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* SimTrack::_internal_mutable_entityidentifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.entityidentifier_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.entityidentifier_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.entityidentifier_; -} -inline ::messages::track::Identifier* SimTrack::mutable_entityidentifier() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_entityidentifier(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.EntityIdentifier) - return _msg; -} -inline void SimTrack::set_allocated_entityidentifier(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.entityidentifier_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.entityidentifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier) -} - -// string ConatactName = 2; -inline void SimTrack::clear_conatactname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conatactname_.ClearToEmpty(); -} -inline const std::string& SimTrack::conatactname() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ConatactName) - return _internal_conatactname(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SimTrack::set_conatactname(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conatactname_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConatactName) -} -inline std::string* SimTrack::mutable_conatactname() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_conatactname(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.ConatactName) - return _s; -} -inline const std::string& SimTrack::_internal_conatactname() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.conatactname_.Get(); -} -inline void SimTrack::_internal_set_conatactname(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conatactname_.Set(value, GetArena()); -} -inline std::string* SimTrack::_internal_mutable_conatactname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.conatactname_.Mutable( GetArena()); -} -inline std::string* SimTrack::release_conatactname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.ConatactName) - return _impl_.conatactname_.Release(); -} -inline void SimTrack::set_allocated_conatactname(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conatactname_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conatactname_.IsDefault()) { - _impl_.conatactname_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.ConatactName) -} - -// optional uint32 ContactSourceType = 3; -inline bool SimTrack::has_contactsourcetype() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void SimTrack::clear_contactsourcetype() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactsourcetype_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t SimTrack::contactsourcetype() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSourceType) - return _internal_contactsourcetype(); -} -inline void SimTrack::set_contactsourcetype(::uint32_t value) { - _internal_set_contactsourcetype(value); - _impl_._has_bits_[0] |= 0x00000008u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSourceType) -} -inline ::uint32_t SimTrack::_internal_contactsourcetype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactsourcetype_; -} -inline void SimTrack::_internal_set_contactsourcetype(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactsourcetype_ = value; -} - -// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; -inline bool SimTrack::has_geocentricposition() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.geocentricposition_ != nullptr); - return value; -} -inline const ::messages::track::EntityGeocentricPosition& SimTrack::_internal_geocentricposition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::EntityGeocentricPosition* p = _impl_.geocentricposition_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_EntityGeocentricPosition_default_instance_); -} -inline const ::messages::track::EntityGeocentricPosition& SimTrack::geocentricposition() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.GeocentricPosition) - return _internal_geocentricposition(); -} -inline void SimTrack::unsafe_arena_set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.geocentricposition_); - } - _impl_.geocentricposition_ = reinterpret_cast<::messages::track::EntityGeocentricPosition*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition) -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::release_geocentricposition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::messages::track::EntityGeocentricPosition* released = _impl_.geocentricposition_; - _impl_.geocentricposition_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::unsafe_arena_release_geocentricposition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.GeocentricPosition) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_; - _impl_.geocentricposition_ = nullptr; - return temp; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::_internal_mutable_geocentricposition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.geocentricposition_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::EntityGeocentricPosition>(GetArena()); - _impl_.geocentricposition_ = reinterpret_cast<::messages::track::EntityGeocentricPosition*>(p); - } - return _impl_.geocentricposition_; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::mutable_geocentricposition() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::messages::track::EntityGeocentricPosition* _msg = _internal_mutable_geocentricposition(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.GeocentricPosition) - return _msg; -} -inline void SimTrack::set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.geocentricposition_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.geocentricposition_ = reinterpret_cast<::messages::track::EntityGeocentricPosition*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition) -} - -// optional double ContactSpeed = 5; -inline bool SimTrack::has_contactspeed() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void SimTrack::clear_contactspeed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactspeed_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline double SimTrack::contactspeed() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSpeed) - return _internal_contactspeed(); -} -inline void SimTrack::set_contactspeed(double value) { - _internal_set_contactspeed(value); - _impl_._has_bits_[0] |= 0x00000004u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSpeed) -} -inline double SimTrack::_internal_contactspeed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactspeed_; -} -inline void SimTrack::_internal_set_contactspeed(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactspeed_ = value; -} - -// optional double ContactCourse = 6; -inline bool SimTrack::has_contactcourse() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline void SimTrack::clear_contactcourse() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactcourse_ = 0; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline double SimTrack::contactcourse() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactCourse) - return _internal_contactcourse(); -} -inline void SimTrack::set_contactcourse(double value) { - _internal_set_contactcourse(value); - _impl_._has_bits_[0] |= 0x00000020u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactCourse) -} -inline double SimTrack::_internal_contactcourse() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactcourse_; -} -inline void SimTrack::_internal_set_contactcourse(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactcourse_ = value; -} - -// optional double ConactPitch = 7; -inline bool SimTrack::has_conactpitch() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline void SimTrack::clear_conactpitch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conactpitch_ = 0; - _impl_._has_bits_[0] &= ~0x00000040u; -} -inline double SimTrack::conactpitch() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ConactPitch) - return _internal_conactpitch(); -} -inline void SimTrack::set_conactpitch(double value) { - _internal_set_conactpitch(value); - _impl_._has_bits_[0] |= 0x00000040u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConactPitch) -} -inline double SimTrack::_internal_conactpitch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.conactpitch_; -} -inline void SimTrack::_internal_set_conactpitch(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.conactpitch_ = value; -} - -// optional uint32 ContactKind = 8; -inline bool SimTrack::has_contactkind() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void SimTrack::clear_contactkind() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactkind_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::uint32_t SimTrack::contactkind() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactKind) - return _internal_contactkind(); -} -inline void SimTrack::set_contactkind(::uint32_t value) { - _internal_set_contactkind(value); - _impl_._has_bits_[0] |= 0x00000010u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactKind) -} -inline ::uint32_t SimTrack::_internal_contactkind() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactkind_; -} -inline void SimTrack::_internal_set_contactkind(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactkind_ = value; -} - -// optional uint32 ContactSide = 9; -inline bool SimTrack::has_contactside() const { - bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline void SimTrack::clear_contactside() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactside_ = 0u; - _impl_._has_bits_[0] &= ~0x00000100u; -} -inline ::uint32_t SimTrack::contactside() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSide) - return _internal_contactside(); -} -inline void SimTrack::set_contactside(::uint32_t value) { - _internal_set_contactside(value); - _impl_._has_bits_[0] |= 0x00000100u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSide) -} -inline ::uint32_t SimTrack::_internal_contactside() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactside_; -} -inline void SimTrack::_internal_set_contactside(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactside_ = value; -} - -// optional double ContactRCS = 10; -inline bool SimTrack::has_contactrcs() const { - bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline void SimTrack::clear_contactrcs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactrcs_ = 0; - _impl_._has_bits_[0] &= ~0x00000080u; -} -inline double SimTrack::contactrcs() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactRCS) - return _internal_contactrcs(); -} -inline void SimTrack::set_contactrcs(double value) { - _internal_set_contactrcs(value); - _impl_._has_bits_[0] |= 0x00000080u; - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactRCS) -} -inline double SimTrack::_internal_contactrcs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactrcs_; -} -inline void SimTrack::_internal_set_contactrcs(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactrcs_ = value; -} - -// repeated .messages.SimTrack.Emission ContactEmissions = 11; -inline int SimTrack::_internal_contactemissions_size() const { - return _internal_contactemissions().size(); -} -inline int SimTrack::contactemissions_size() const { - return _internal_contactemissions_size(); -} -inline void SimTrack::clear_contactemissions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.contactemissions_.Clear(); -} -inline ::messages::SimTrack::Emission* SimTrack::mutable_contactemissions(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.ContactEmissions) - return _internal_mutable_contactemissions()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>* SimTrack::mutable_contactemissions() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:messages.SimTrack.SimTrack.ContactEmissions) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_contactemissions(); -} -inline const ::messages::SimTrack::Emission& SimTrack::contactemissions(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactEmissions) - return _internal_contactemissions().Get(index); -} -inline ::messages::SimTrack::Emission* SimTrack::add_contactemissions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::messages::SimTrack::Emission* _add = _internal_mutable_contactemissions()->Add(); - // @@protoc_insertion_point(field_add:messages.SimTrack.SimTrack.ContactEmissions) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>& SimTrack::contactemissions() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:messages.SimTrack.SimTrack.ContactEmissions) - return _internal_contactemissions(); -} -inline const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>& -SimTrack::_internal_contactemissions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.contactemissions_; -} -inline ::google::protobuf::RepeatedPtrField<::messages::SimTrack::Emission>* -SimTrack::_internal_mutable_contactemissions() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.contactemissions_; -} - -// ------------------------------------------------------------------- - -// Emission - -// .messages.track.Identifier Identifier = 1; -inline bool Emission::has_identifier() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.identifier_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& Emission::_internal_identifier() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.identifier_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& Emission::identifier() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Identifier) - return _internal_identifier(); -} -inline void Emission::unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_); - } - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.Emission.Identifier) -} -inline ::messages::track::Identifier* Emission::release_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.identifier_; - _impl_.identifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* Emission::unsafe_arena_release_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.SimTrack.Emission.Identifier) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* Emission::_internal_mutable_identifier() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.identifier_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.identifier_; -} -inline ::messages::track::Identifier* Emission::mutable_identifier() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_identifier(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.Emission.Identifier) - return _msg; -} -inline void Emission::set_allocated_identifier(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.Emission.Identifier) -} - -// string name = 2; -inline void Emission::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& Emission::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Emission::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.name) -} -inline std::string* Emission::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.Emission.name) - return _s; -} -inline const std::string& Emission::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Emission::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Emission::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Emission::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.SimTrack.Emission.name) - return _impl_.name_.Release(); -} -inline void Emission::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.Emission.name) -} - -// double frequency = 3; -inline void Emission::clear_frequency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frequency_ = 0; -} -inline double Emission::frequency() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.frequency) - return _internal_frequency(); -} -inline void Emission::set_frequency(double value) { - _internal_set_frequency(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.frequency) -} -inline double Emission::_internal_frequency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.frequency_; -} -inline void Emission::_internal_set_frequency(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.frequency_ = value; -} - -// double Range = 4; -inline void Emission::clear_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = 0; -} -inline double Emission::range() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Range) - return _internal_range(); -} -inline void Emission::set_range(double value) { - _internal_set_range(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.Range) -} -inline double Emission::_internal_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.range_; -} -inline void Emission::_internal_set_range(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = value; -} - -// optional uint32 Bandwidth = 5; -inline bool Emission::has_bandwidth() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline void Emission::clear_bandwidth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bandwidth_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline ::uint32_t Emission::bandwidth() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Bandwidth) - return _internal_bandwidth(); -} -inline void Emission::set_bandwidth(::uint32_t value) { - _internal_set_bandwidth(value); - _impl_._has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.Bandwidth) -} -inline ::uint32_t Emission::_internal_bandwidth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.bandwidth_; -} -inline void Emission::_internal_set_bandwidth(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.bandwidth_ = value; -} - -// optional uint32 pulseWidth = 6; -inline bool Emission::has_pulsewidth() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline void Emission::clear_pulsewidth() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pulsewidth_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline ::uint32_t Emission::pulsewidth() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.pulseWidth) - return _internal_pulsewidth(); -} -inline void Emission::set_pulsewidth(::uint32_t value) { - _internal_set_pulsewidth(value); - _impl_._has_bits_[0] |= 0x00000004u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.pulseWidth) -} -inline ::uint32_t Emission::_internal_pulsewidth() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pulsewidth_; -} -inline void Emission::_internal_set_pulsewidth(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pulsewidth_ = value; -} - -// optional uint32 pulseRepitition = 7; -inline bool Emission::has_pulserepitition() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline void Emission::clear_pulserepitition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pulserepitition_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline ::uint32_t Emission::pulserepitition() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.pulseRepitition) - return _internal_pulserepitition(); -} -inline void Emission::set_pulserepitition(::uint32_t value) { - _internal_set_pulserepitition(value); - _impl_._has_bits_[0] |= 0x00000008u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.pulseRepitition) -} -inline ::uint32_t Emission::_internal_pulserepitition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pulserepitition_; -} -inline void Emission::_internal_set_pulserepitition(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pulserepitition_ = value; -} - -// optional uint32 radiatedPower = 8; -inline bool Emission::has_radiatedpower() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline void Emission::clear_radiatedpower() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.radiatedpower_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline ::uint32_t Emission::radiatedpower() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.radiatedPower) - return _internal_radiatedpower(); -} -inline void Emission::set_radiatedpower(::uint32_t value) { - _internal_set_radiatedpower(value); - _impl_._has_bits_[0] |= 0x00000010u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.radiatedPower) -} -inline ::uint32_t Emission::_internal_radiatedpower() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.radiatedpower_; -} -inline void Emission::_internal_set_radiatedpower(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.radiatedpower_ = value; -} - -// optional uint32 numberOfBeams = 9; -inline bool Emission::has_numberofbeams() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline void Emission::clear_numberofbeams() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.numberofbeams_ = 0u; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline ::uint32_t Emission::numberofbeams() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.numberOfBeams) - return _internal_numberofbeams(); -} -inline void Emission::set_numberofbeams(::uint32_t value) { - _internal_set_numberofbeams(value); - _impl_._has_bits_[0] |= 0x00000020u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.numberOfBeams) -} -inline ::uint32_t Emission::_internal_numberofbeams() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.numberofbeams_; -} -inline void Emission::_internal_set_numberofbeams(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.numberofbeams_ = value; -} - -// optional uint32 searchInterval = 10; -inline bool Emission::has_searchinterval() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline void Emission::clear_searchinterval() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.searchinterval_ = 0u; - _impl_._has_bits_[0] &= ~0x00000040u; -} -inline ::uint32_t Emission::searchinterval() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.searchInterval) - return _internal_searchinterval(); -} -inline void Emission::set_searchinterval(::uint32_t value) { - _internal_set_searchinterval(value); - _impl_._has_bits_[0] |= 0x00000040u; - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.searchInterval) -} -inline ::uint32_t Emission::_internal_searchinterval() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.searchinterval_; -} -inline void Emission::_internal_set_searchinterval(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.searchinterval_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace SimTrack -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto_2epb_2eh diff --git a/include/SimCore/Messages/Protos/SystemStateUpdate.pb.cc b/include/SimCore/Messages/Protos/SystemStateUpdate.pb.cc deleted file mode 100644 index cb70b34..0000000 --- a/include/SimCore/Messages/Protos/SystemStateUpdate.pb.cc +++ /dev/null @@ -1,1245 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SystemStateUpdate.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "SystemStateUpdate.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace data { - -inline constexpr Sensor::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_{nullptr}, - range_{0}, - kind_{0u}, - status_{0u} {} - -template -PROTOBUF_CONSTEXPR Sensor::Sensor(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SensorDefaultTypeInternal { - PROTOBUF_CONSTEXPR SensorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SensorDefaultTypeInternal() {} - union { - Sensor _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorDefaultTypeInternal _Sensor_default_instance_; - -inline constexpr Effector::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_{nullptr}, - range_{0}, - ammunition_{0}, - maxammunition_{0}, - status_{0u} {} - -template -PROTOBUF_CONSTEXPR Effector::Effector(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct EffectorDefaultTypeInternal { - PROTOBUF_CONSTEXPR EffectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EffectorDefaultTypeInternal() {} - union { - Effector _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EffectorDefaultTypeInternal _Effector_default_instance_; - -inline constexpr SystemStateUpdate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sensors_{}, - effectors_{}, - ownid_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SystemStateUpdate::SystemStateUpdate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SystemStateUpdateDefaultTypeInternal { - PROTOBUF_CONSTEXPR SystemStateUpdateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SystemStateUpdateDefaultTypeInternal() {} - union { - SystemStateUpdate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SystemStateUpdateDefaultTypeInternal _SystemStateUpdate_default_instance_; -} // namespace data -} // namespace messages -static ::_pb::Metadata file_level_metadata_SystemStateUpdate_2eproto[3]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_SystemStateUpdate_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_SystemStateUpdate_2eproto = nullptr; -const ::uint32_t - TableStruct_SystemStateUpdate_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::data::SystemStateUpdate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::data::SystemStateUpdate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::data::SystemStateUpdate, _impl_.ownid_), - PROTOBUF_FIELD_OFFSET(::messages::data::SystemStateUpdate, _impl_.sensors_), - PROTOBUF_FIELD_OFFSET(::messages::data::SystemStateUpdate, _impl_.effectors_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_.kind_), - PROTOBUF_FIELD_OFFSET(::messages::data::Sensor, _impl_.status_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.ammunition_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.maxammunition_), - PROTOBUF_FIELD_OFFSET(::messages::data::Effector, _impl_.status_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 11, -1, sizeof(::messages::data::SystemStateUpdate)}, - {14, 27, -1, sizeof(::messages::data::Sensor)}, - {32, 46, -1, sizeof(::messages::data::Effector)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::data::_SystemStateUpdate_default_instance_._instance, - &::messages::data::_Sensor_default_instance_._instance, - &::messages::data::_Effector_default_instance_._instance, -}; -const char descriptor_table_protodef_SystemStateUpdate_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\027SystemStateUpdate.proto\022\rmessages.data" - "\032\020Identifier.proto\"\222\001\n\021SystemStateUpdate" - "\022)\n\005OwnID\030\001 \001(\0132\032.messages.track.Identif" - "ier\022&\n\007sensors\030\002 \003(\0132\025.messages.data.Sen" - "sor\022*\n\teffectors\030\003 \003(\0132\027.messages.data.E" - "ffector\"k\n\006Sensor\022&\n\002ID\030\001 \001(\0132\032.messages" - ".track.Identifier\022\014\n\004name\030\002 \001(\t\022\r\n\005range" - "\030\003 \001(\001\022\014\n\004kind\030\004 \001(\r\022\016\n\006Status\030\005 \001(\r\"\212\001\n" - "\010Effector\022&\n\002ID\030\001 \001(\0132\032.messages.track.I" - "dentifier\022\014\n\004name\030\002 \001(\t\022\r\n\005range\030\003 \001(\001\022\022" - "\n\nammunition\030\004 \001(\005\022\025\n\rmaxammunition\030\006 \001(" - "\005\022\016\n\006Status\030\007 \001(\rb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_SystemStateUpdate_2eproto_deps[1] = - { - &::descriptor_table_Identifier_2eproto, -}; -static ::absl::once_flag descriptor_table_SystemStateUpdate_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_SystemStateUpdate_2eproto = { - false, - false, - 465, - descriptor_table_protodef_SystemStateUpdate_2eproto, - "SystemStateUpdate.proto", - &descriptor_table_SystemStateUpdate_2eproto_once, - descriptor_table_SystemStateUpdate_2eproto_deps, - 1, - 3, - schemas, - file_default_instances, - TableStruct_SystemStateUpdate_2eproto::offsets, - file_level_metadata_SystemStateUpdate_2eproto, - file_level_enum_descriptors_SystemStateUpdate_2eproto, - file_level_service_descriptors_SystemStateUpdate_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SystemStateUpdate_2eproto_getter() { - return &descriptor_table_SystemStateUpdate_2eproto; -} -namespace messages { -namespace data { -// =================================================================== - -class SystemStateUpdate::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_._has_bits_); -}; - -void SystemStateUpdate::clear_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.ownid_ != nullptr) _impl_.ownid_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -SystemStateUpdate::SystemStateUpdate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.data.SystemStateUpdate) -} -inline PROTOBUF_NDEBUG_INLINE SystemStateUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sensors_{visibility, arena, from.sensors_}, - effectors_{visibility, arena, from.effectors_} {} - -SystemStateUpdate::SystemStateUpdate( - ::google::protobuf::Arena* arena, - const SystemStateUpdate& from) - : ::google::protobuf::Message(arena) { - SystemStateUpdate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.ownid_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.ownid_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:messages.data.SystemStateUpdate) -} -inline PROTOBUF_NDEBUG_INLINE SystemStateUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - sensors_{visibility, arena}, - effectors_{visibility, arena} {} - -inline void SystemStateUpdate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.ownid_ = {}; -} -SystemStateUpdate::~SystemStateUpdate() { - // @@protoc_insertion_point(destructor:messages.data.SystemStateUpdate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SystemStateUpdate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.ownid_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SystemStateUpdate::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_._cached_size_), - false, - }, - &SystemStateUpdate::MergeImpl, - &SystemStateUpdate::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SystemStateUpdate::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.data.SystemStateUpdate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.sensors_.Clear(); - _impl_.effectors_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.ownid_ != nullptr); - _impl_.ownid_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SystemStateUpdate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> SystemStateUpdate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SystemStateUpdate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::data::SystemStateUpdate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .messages.track.Identifier OwnID = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.ownid_)}}, - // repeated .messages.data.Sensor sensors = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.sensors_)}}, - // repeated .messages.data.Effector effectors = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.effectors_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier OwnID = 1; - {PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.ownid_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .messages.data.Sensor sensors = 2; - {PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.sensors_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .messages.data.Effector effectors = 3; - {PROTOBUF_FIELD_OFFSET(SystemStateUpdate, _impl_.effectors_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - {::_pbi::TcParser::GetTable<::messages::data::Sensor>()}, - {::_pbi::TcParser::GetTable<::messages::data::Effector>()}, - }}, {{ - }}, -}; - -::uint8_t* SystemStateUpdate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.data.SystemStateUpdate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier OwnID = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.ownid_, _impl_.ownid_->GetCachedSize(), target, stream); - } - - // repeated .messages.data.Sensor sensors = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_sensors_size()); i < n; i++) { - const auto& repfield = this->_internal_sensors().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .messages.data.Effector effectors = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_effectors_size()); i < n; i++) { - const auto& repfield = this->_internal_effectors().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.data.SystemStateUpdate) - return target; -} - -::size_t SystemStateUpdate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.data.SystemStateUpdate) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .messages.data.Sensor sensors = 2; - total_size += 1UL * this->_internal_sensors_size(); - for (const auto& msg : this->_internal_sensors()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .messages.data.Effector effectors = 3; - total_size += 1UL * this->_internal_effectors_size(); - for (const auto& msg : this->_internal_effectors()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // .messages.track.Identifier OwnID = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.ownid_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SystemStateUpdate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.data.SystemStateUpdate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_sensors()->MergeFrom( - from._internal_sensors()); - _this->_internal_mutable_effectors()->MergeFrom( - from._internal_effectors()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.ownid_ != nullptr); - if (_this->_impl_.ownid_ == nullptr) { - _this->_impl_.ownid_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.ownid_); - } else { - _this->_impl_.ownid_->MergeFrom(*from._impl_.ownid_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SystemStateUpdate::CopyFrom(const SystemStateUpdate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.data.SystemStateUpdate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SystemStateUpdate::IsInitialized() const { - return true; -} - -void SystemStateUpdate::InternalSwap(SystemStateUpdate* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sensors_.InternalSwap(&other->_impl_.sensors_); - _impl_.effectors_.InternalSwap(&other->_impl_.effectors_); - swap(_impl_.ownid_, other->_impl_.ownid_); -} - -::google::protobuf::Metadata SystemStateUpdate::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_SystemStateUpdate_2eproto_getter, - &descriptor_table_SystemStateUpdate_2eproto_once, - file_level_metadata_SystemStateUpdate_2eproto[0]); -} -// =================================================================== - -class Sensor::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Sensor, _impl_._has_bits_); -}; - -void Sensor::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.id_ != nullptr) _impl_.id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -Sensor::Sensor(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.data.Sensor) -} -inline PROTOBUF_NDEBUG_INLINE Sensor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -Sensor::Sensor( - ::google::protobuf::Arena* arena, - const Sensor& from) - : ::google::protobuf::Message(arena) { - Sensor* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.id_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, range_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, range_), - offsetof(Impl_, status_) - - offsetof(Impl_, range_) + - sizeof(Impl_::status_)); - - // @@protoc_insertion_point(copy_constructor:messages.data.Sensor) -} -inline PROTOBUF_NDEBUG_INLINE Sensor::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void Sensor::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, id_), - 0, - offsetof(Impl_, status_) - - offsetof(Impl_, id_) + - sizeof(Impl_::status_)); -} -Sensor::~Sensor() { - // @@protoc_insertion_point(destructor:messages.data.Sensor) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Sensor::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.id_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Sensor::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Sensor, _impl_._cached_size_), - false, - }, - &Sensor::MergeImpl, - &Sensor::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Sensor::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.data.Sensor) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.id_ != nullptr); - _impl_.id_->Clear(); - } - ::memset(&_impl_.range_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.status_) - - reinterpret_cast(&_impl_.range_)) + sizeof(_impl_.status_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Sensor::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 33, 2> Sensor::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Sensor, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Sensor_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::data::Sensor>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .messages.track.Identifier ID = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Sensor, _impl_.id_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Sensor, _impl_.name_)}}, - // double range = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Sensor, _impl_.range_)}}, - // uint32 kind = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Sensor, _impl_.kind_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Sensor, _impl_.kind_)}}, - // uint32 Status = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Sensor, _impl_.status_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Sensor, _impl_.status_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier ID = 1; - {PROTOBUF_FIELD_OFFSET(Sensor, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(Sensor, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double range = 3; - {PROTOBUF_FIELD_OFFSET(Sensor, _impl_.range_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // uint32 kind = 4; - {PROTOBUF_FIELD_OFFSET(Sensor, _impl_.kind_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 Status = 5; - {PROTOBUF_FIELD_OFFSET(Sensor, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - }}, {{ - "\24\0\4\0\0\0\0\0" - "messages.data.Sensor" - "name" - }}, -}; - -::uint8_t* Sensor::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.data.Sensor) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier ID = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.id_, _impl_.id_->GetCachedSize(), target, stream); - } - - // string name = 2; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.data.Sensor.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // double range = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_range(), target); - } - - // uint32 kind = 4; - if (this->_internal_kind() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_kind(), target); - } - - // uint32 Status = 5; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.data.Sensor) - return target; -} - -::size_t Sensor::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.data.Sensor) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .messages.track.Identifier ID = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.id_); - } - - // double range = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 9; - } - - // uint32 kind = 4; - if (this->_internal_kind() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_kind()); - } - - // uint32 Status = 5; - if (this->_internal_status() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Sensor::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.data.Sensor) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.id_ != nullptr); - if (_this->_impl_.id_ == nullptr) { - _this->_impl_.id_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.id_); - } else { - _this->_impl_.id_->MergeFrom(*from._impl_.id_); - } - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = from._internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_impl_.range_ = from._impl_.range_; - } - if (from._internal_kind() != 0) { - _this->_impl_.kind_ = from._impl_.kind_; - } - if (from._internal_status() != 0) { - _this->_impl_.status_ = from._impl_.status_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Sensor::CopyFrom(const Sensor& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.data.Sensor) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Sensor::IsInitialized() const { - return true; -} - -void Sensor::InternalSwap(Sensor* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Sensor, _impl_.status_) - + sizeof(Sensor::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(Sensor, _impl_.id_)>( - reinterpret_cast(&_impl_.id_), - reinterpret_cast(&other->_impl_.id_)); -} - -::google::protobuf::Metadata Sensor::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_SystemStateUpdate_2eproto_getter, - &descriptor_table_SystemStateUpdate_2eproto_once, - file_level_metadata_SystemStateUpdate_2eproto[1]); -} -// =================================================================== - -class Effector::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Effector, _impl_._has_bits_); -}; - -void Effector::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.id_ != nullptr) _impl_.id_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -Effector::Effector(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.data.Effector) -} -inline PROTOBUF_NDEBUG_INLINE Effector::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_) {} - -Effector::Effector( - ::google::protobuf::Arena* arena, - const Effector& from) - : ::google::protobuf::Message(arena) { - Effector* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.id_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.id_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, range_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, range_), - offsetof(Impl_, status_) - - offsetof(Impl_, range_) + - sizeof(Impl_::status_)); - - // @@protoc_insertion_point(copy_constructor:messages.data.Effector) -} -inline PROTOBUF_NDEBUG_INLINE Effector::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena) {} - -inline void Effector::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, id_), - 0, - offsetof(Impl_, status_) - - offsetof(Impl_, id_) + - sizeof(Impl_::status_)); -} -Effector::~Effector() { - // @@protoc_insertion_point(destructor:messages.data.Effector) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Effector::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - delete _impl_.id_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Effector::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Effector, _impl_._cached_size_), - false, - }, - &Effector::MergeImpl, - &Effector::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Effector::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.data.Effector) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.id_ != nullptr); - _impl_.id_->Clear(); - } - ::memset(&_impl_.range_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.status_) - - reinterpret_cast(&_impl_.range_)) + sizeof(_impl_.status_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Effector::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 35, 2> Effector::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Effector, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967184, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Effector_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::data::Effector>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .messages.track.Identifier ID = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.id_)}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.name_)}}, - // double range = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.range_)}}, - // int32 ammunition = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Effector, _impl_.ammunition_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.ammunition_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // int32 maxammunition = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Effector, _impl_.maxammunition_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.maxammunition_)}}, - // uint32 Status = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Effector, _impl_.status_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(Effector, _impl_.status_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier ID = 1; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.id_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string name = 2; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double range = 3; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.range_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - // int32 ammunition = 4; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.ammunition_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 maxammunition = 6; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.maxammunition_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // uint32 Status = 7; - {PROTOBUF_FIELD_OFFSET(Effector, _impl_.status_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - }}, {{ - "\26\0\4\0\0\0\0\0" - "messages.data.Effector" - "name" - }}, -}; - -::uint8_t* Effector::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.data.Effector) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier ID = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.id_, _impl_.id_->GetCachedSize(), target, stream); - } - - // string name = 2; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "messages.data.Effector.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // double range = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_range(), target); - } - - // int32 ammunition = 4; - if (this->_internal_ammunition() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this->_internal_ammunition(), target); - } - - // int32 maxammunition = 6; - if (this->_internal_maxammunition() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this->_internal_maxammunition(), target); - } - - // uint32 Status = 7; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 7, this->_internal_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.data.Effector) - return target; -} - -::size_t Effector::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.data.Effector) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .messages.track.Identifier ID = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.id_); - } - - // double range = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 9; - } - - // int32 ammunition = 4; - if (this->_internal_ammunition() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_ammunition()); - } - - // int32 maxammunition = 6; - if (this->_internal_maxammunition() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_maxammunition()); - } - - // uint32 Status = 7; - if (this->_internal_status() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Effector::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.data.Effector) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.id_ != nullptr); - if (_this->_impl_.id_ == nullptr) { - _this->_impl_.id_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.id_); - } else { - _this->_impl_.id_->MergeFrom(*from._impl_.id_); - } - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_range = from._internal_range(); - ::uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_impl_.range_ = from._impl_.range_; - } - if (from._internal_ammunition() != 0) { - _this->_impl_.ammunition_ = from._impl_.ammunition_; - } - if (from._internal_maxammunition() != 0) { - _this->_impl_.maxammunition_ = from._impl_.maxammunition_; - } - if (from._internal_status() != 0) { - _this->_impl_.status_ = from._impl_.status_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Effector::CopyFrom(const Effector& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.data.Effector) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Effector::IsInitialized() const { - return true; -} - -void Effector::InternalSwap(Effector* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Effector, _impl_.status_) - + sizeof(Effector::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(Effector, _impl_.id_)>( - reinterpret_cast(&_impl_.id_), - reinterpret_cast(&other->_impl_.id_)); -} - -::google::protobuf::Metadata Effector::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_SystemStateUpdate_2eproto_getter, - &descriptor_table_SystemStateUpdate_2eproto_once, - file_level_metadata_SystemStateUpdate_2eproto[2]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace data -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_SystemStateUpdate_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/SystemStateUpdate.pb.h b/include/SimCore/Messages/Protos/SystemStateUpdate.pb.h deleted file mode 100644 index 7497a60..0000000 --- a/include/SimCore/Messages/Protos/SystemStateUpdate.pb.h +++ /dev/null @@ -1,1417 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SystemStateUpdate.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_SystemStateUpdate_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_SystemStateUpdate_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "Identifier.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_SystemStateUpdate_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_SystemStateUpdate_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_SystemStateUpdate_2eproto; -namespace messages { -namespace data { -class Effector; -struct EffectorDefaultTypeInternal; -extern EffectorDefaultTypeInternal _Effector_default_instance_; -class Sensor; -struct SensorDefaultTypeInternal; -extern SensorDefaultTypeInternal _Sensor_default_instance_; -class SystemStateUpdate; -struct SystemStateUpdateDefaultTypeInternal; -extern SystemStateUpdateDefaultTypeInternal _SystemStateUpdate_default_instance_; -} // namespace data -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace data { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class Sensor final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.data.Sensor) */ { - public: - inline Sensor() : Sensor(nullptr) {} - ~Sensor() override; - template - explicit PROTOBUF_CONSTEXPR Sensor( - ::google::protobuf::internal::ConstantInitialized); - - inline Sensor(const Sensor& from) : Sensor(nullptr, from) {} - inline Sensor(Sensor&& from) noexcept - : Sensor(nullptr, std::move(from)) {} - inline Sensor& operator=(const Sensor& from) { - CopyFrom(from); - return *this; - } - inline Sensor& operator=(Sensor&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Sensor& default_instance() { - return *internal_default_instance(); - } - static inline const Sensor* internal_default_instance() { - return reinterpret_cast( - &_Sensor_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Sensor& a, Sensor& b) { a.Swap(&b); } - inline void Swap(Sensor* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Sensor* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Sensor* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Sensor& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Sensor& from) { Sensor::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Sensor* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.data.Sensor"; } - - protected: - explicit Sensor(::google::protobuf::Arena* arena); - Sensor(::google::protobuf::Arena* arena, const Sensor& from); - Sensor(::google::protobuf::Arena* arena, Sensor&& from) noexcept - : Sensor(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 2, - kIDFieldNumber = 1, - kRangeFieldNumber = 3, - kKindFieldNumber = 4, - kStatusFieldNumber = 5, - }; - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .messages.track.Identifier ID = 1; - bool has_id() const; - void clear_id() ; - const ::messages::track::Identifier& id() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_id(); - ::messages::track::Identifier* mutable_id(); - void set_allocated_id(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_id(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_id(); - - private: - const ::messages::track::Identifier& _internal_id() const; - ::messages::track::Identifier* _internal_mutable_id(); - - public: - // double range = 3; - void clear_range() ; - double range() const; - void set_range(double value); - - private: - double _internal_range() const; - void _internal_set_range(double value); - - public: - // uint32 kind = 4; - void clear_kind() ; - ::uint32_t kind() const; - void set_kind(::uint32_t value); - - private: - ::uint32_t _internal_kind() const; - void _internal_set_kind(::uint32_t value); - - public: - // uint32 Status = 5; - void clear_status() ; - ::uint32_t status() const; - void set_status(::uint32_t value); - - private: - ::uint32_t _internal_status() const; - void _internal_set_status(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.data.Sensor) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 33, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::messages::track::Identifier* id_; - double range_; - ::uint32_t kind_; - ::uint32_t status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SystemStateUpdate_2eproto; -}; -// ------------------------------------------------------------------- - -class Effector final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.data.Effector) */ { - public: - inline Effector() : Effector(nullptr) {} - ~Effector() override; - template - explicit PROTOBUF_CONSTEXPR Effector( - ::google::protobuf::internal::ConstantInitialized); - - inline Effector(const Effector& from) : Effector(nullptr, from) {} - inline Effector(Effector&& from) noexcept - : Effector(nullptr, std::move(from)) {} - inline Effector& operator=(const Effector& from) { - CopyFrom(from); - return *this; - } - inline Effector& operator=(Effector&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Effector& default_instance() { - return *internal_default_instance(); - } - static inline const Effector* internal_default_instance() { - return reinterpret_cast( - &_Effector_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(Effector& a, Effector& b) { a.Swap(&b); } - inline void Swap(Effector* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Effector* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Effector* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Effector& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Effector& from) { Effector::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Effector* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.data.Effector"; } - - protected: - explicit Effector(::google::protobuf::Arena* arena); - Effector(::google::protobuf::Arena* arena, const Effector& from); - Effector(::google::protobuf::Arena* arena, Effector&& from) noexcept - : Effector(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 2, - kIDFieldNumber = 1, - kRangeFieldNumber = 3, - kAmmunitionFieldNumber = 4, - kMaxammunitionFieldNumber = 6, - kStatusFieldNumber = 7, - }; - // string name = 2; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // .messages.track.Identifier ID = 1; - bool has_id() const; - void clear_id() ; - const ::messages::track::Identifier& id() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_id(); - ::messages::track::Identifier* mutable_id(); - void set_allocated_id(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_id(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_id(); - - private: - const ::messages::track::Identifier& _internal_id() const; - ::messages::track::Identifier* _internal_mutable_id(); - - public: - // double range = 3; - void clear_range() ; - double range() const; - void set_range(double value); - - private: - double _internal_range() const; - void _internal_set_range(double value); - - public: - // int32 ammunition = 4; - void clear_ammunition() ; - ::int32_t ammunition() const; - void set_ammunition(::int32_t value); - - private: - ::int32_t _internal_ammunition() const; - void _internal_set_ammunition(::int32_t value); - - public: - // int32 maxammunition = 6; - void clear_maxammunition() ; - ::int32_t maxammunition() const; - void set_maxammunition(::int32_t value); - - private: - ::int32_t _internal_maxammunition() const; - void _internal_set_maxammunition(::int32_t value); - - public: - // uint32 Status = 7; - void clear_status() ; - ::uint32_t status() const; - void set_status(::uint32_t value); - - private: - ::uint32_t _internal_status() const; - void _internal_set_status(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.data.Effector) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 1, - 35, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::messages::track::Identifier* id_; - double range_; - ::int32_t ammunition_; - ::int32_t maxammunition_; - ::uint32_t status_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SystemStateUpdate_2eproto; -}; -// ------------------------------------------------------------------- - -class SystemStateUpdate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.data.SystemStateUpdate) */ { - public: - inline SystemStateUpdate() : SystemStateUpdate(nullptr) {} - ~SystemStateUpdate() override; - template - explicit PROTOBUF_CONSTEXPR SystemStateUpdate( - ::google::protobuf::internal::ConstantInitialized); - - inline SystemStateUpdate(const SystemStateUpdate& from) : SystemStateUpdate(nullptr, from) {} - inline SystemStateUpdate(SystemStateUpdate&& from) noexcept - : SystemStateUpdate(nullptr, std::move(from)) {} - inline SystemStateUpdate& operator=(const SystemStateUpdate& from) { - CopyFrom(from); - return *this; - } - inline SystemStateUpdate& operator=(SystemStateUpdate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SystemStateUpdate& default_instance() { - return *internal_default_instance(); - } - static inline const SystemStateUpdate* internal_default_instance() { - return reinterpret_cast( - &_SystemStateUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(SystemStateUpdate& a, SystemStateUpdate& b) { a.Swap(&b); } - inline void Swap(SystemStateUpdate* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SystemStateUpdate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SystemStateUpdate* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SystemStateUpdate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SystemStateUpdate& from) { SystemStateUpdate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SystemStateUpdate* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.data.SystemStateUpdate"; } - - protected: - explicit SystemStateUpdate(::google::protobuf::Arena* arena); - SystemStateUpdate(::google::protobuf::Arena* arena, const SystemStateUpdate& from); - SystemStateUpdate(::google::protobuf::Arena* arena, SystemStateUpdate&& from) noexcept - : SystemStateUpdate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSensorsFieldNumber = 2, - kEffectorsFieldNumber = 3, - kOwnIDFieldNumber = 1, - }; - // repeated .messages.data.Sensor sensors = 2; - int sensors_size() const; - private: - int _internal_sensors_size() const; - - public: - void clear_sensors() ; - ::messages::data::Sensor* mutable_sensors(int index); - ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>* mutable_sensors(); - - private: - const ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>& _internal_sensors() const; - ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>* _internal_mutable_sensors(); - public: - const ::messages::data::Sensor& sensors(int index) const; - ::messages::data::Sensor* add_sensors(); - const ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>& sensors() const; - // repeated .messages.data.Effector effectors = 3; - int effectors_size() const; - private: - int _internal_effectors_size() const; - - public: - void clear_effectors() ; - ::messages::data::Effector* mutable_effectors(int index); - ::google::protobuf::RepeatedPtrField<::messages::data::Effector>* mutable_effectors(); - - private: - const ::google::protobuf::RepeatedPtrField<::messages::data::Effector>& _internal_effectors() const; - ::google::protobuf::RepeatedPtrField<::messages::data::Effector>* _internal_mutable_effectors(); - public: - const ::messages::data::Effector& effectors(int index) const; - ::messages::data::Effector* add_effectors(); - const ::google::protobuf::RepeatedPtrField<::messages::data::Effector>& effectors() const; - // .messages.track.Identifier OwnID = 1; - bool has_ownid() const; - void clear_ownid() ; - const ::messages::track::Identifier& ownid() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_ownid(); - ::messages::track::Identifier* mutable_ownid(); - void set_allocated_ownid(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_ownid(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_ownid(); - - private: - const ::messages::track::Identifier& _internal_ownid() const; - ::messages::track::Identifier* _internal_mutable_ownid(); - - public: - // @@protoc_insertion_point(class_scope:messages.data.SystemStateUpdate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::messages::data::Sensor > sensors_; - ::google::protobuf::RepeatedPtrField< ::messages::data::Effector > effectors_; - ::messages::track::Identifier* ownid_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SystemStateUpdate_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// SystemStateUpdate - -// .messages.track.Identifier OwnID = 1; -inline bool SystemStateUpdate::has_ownid() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.ownid_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& SystemStateUpdate::_internal_ownid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.ownid_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& SystemStateUpdate::ownid() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.SystemStateUpdate.OwnID) - return _internal_ownid(); -} -inline void SystemStateUpdate::unsafe_arena_set_allocated_ownid(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ownid_); - } - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.data.SystemStateUpdate.OwnID) -} -inline ::messages::track::Identifier* SystemStateUpdate::release_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.ownid_; - _impl_.ownid_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* SystemStateUpdate::unsafe_arena_release_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.SystemStateUpdate.OwnID) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.ownid_; - _impl_.ownid_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* SystemStateUpdate::_internal_mutable_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.ownid_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.ownid_; -} -inline ::messages::track::Identifier* SystemStateUpdate::mutable_ownid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_ownid(); - // @@protoc_insertion_point(field_mutable:messages.data.SystemStateUpdate.OwnID) - return _msg; -} -inline void SystemStateUpdate::set_allocated_ownid(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ownid_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.data.SystemStateUpdate.OwnID) -} - -// repeated .messages.data.Sensor sensors = 2; -inline int SystemStateUpdate::_internal_sensors_size() const { - return _internal_sensors().size(); -} -inline int SystemStateUpdate::sensors_size() const { - return _internal_sensors_size(); -} -inline void SystemStateUpdate::clear_sensors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sensors_.Clear(); -} -inline ::messages::data::Sensor* SystemStateUpdate::mutable_sensors(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:messages.data.SystemStateUpdate.sensors) - return _internal_mutable_sensors()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>* SystemStateUpdate::mutable_sensors() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:messages.data.SystemStateUpdate.sensors) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_sensors(); -} -inline const ::messages::data::Sensor& SystemStateUpdate::sensors(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.SystemStateUpdate.sensors) - return _internal_sensors().Get(index); -} -inline ::messages::data::Sensor* SystemStateUpdate::add_sensors() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::messages::data::Sensor* _add = _internal_mutable_sensors()->Add(); - // @@protoc_insertion_point(field_add:messages.data.SystemStateUpdate.sensors) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>& SystemStateUpdate::sensors() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:messages.data.SystemStateUpdate.sensors) - return _internal_sensors(); -} -inline const ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>& -SystemStateUpdate::_internal_sensors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sensors_; -} -inline ::google::protobuf::RepeatedPtrField<::messages::data::Sensor>* -SystemStateUpdate::_internal_mutable_sensors() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.sensors_; -} - -// repeated .messages.data.Effector effectors = 3; -inline int SystemStateUpdate::_internal_effectors_size() const { - return _internal_effectors().size(); -} -inline int SystemStateUpdate::effectors_size() const { - return _internal_effectors_size(); -} -inline void SystemStateUpdate::clear_effectors() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.effectors_.Clear(); -} -inline ::messages::data::Effector* SystemStateUpdate::mutable_effectors(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:messages.data.SystemStateUpdate.effectors) - return _internal_mutable_effectors()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::messages::data::Effector>* SystemStateUpdate::mutable_effectors() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:messages.data.SystemStateUpdate.effectors) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_effectors(); -} -inline const ::messages::data::Effector& SystemStateUpdate::effectors(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.SystemStateUpdate.effectors) - return _internal_effectors().Get(index); -} -inline ::messages::data::Effector* SystemStateUpdate::add_effectors() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::messages::data::Effector* _add = _internal_mutable_effectors()->Add(); - // @@protoc_insertion_point(field_add:messages.data.SystemStateUpdate.effectors) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::messages::data::Effector>& SystemStateUpdate::effectors() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:messages.data.SystemStateUpdate.effectors) - return _internal_effectors(); -} -inline const ::google::protobuf::RepeatedPtrField<::messages::data::Effector>& -SystemStateUpdate::_internal_effectors() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.effectors_; -} -inline ::google::protobuf::RepeatedPtrField<::messages::data::Effector>* -SystemStateUpdate::_internal_mutable_effectors() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.effectors_; -} - -// ------------------------------------------------------------------- - -// Sensor - -// .messages.track.Identifier ID = 1; -inline bool Sensor::has_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.id_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& Sensor::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.id_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& Sensor::id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.Sensor.ID) - return _internal_id(); -} -inline void Sensor::unsafe_arena_set_allocated_id(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.id_); - } - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.data.Sensor.ID) -} -inline ::messages::track::Identifier* Sensor::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.id_; - _impl_.id_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* Sensor::unsafe_arena_release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.Sensor.ID) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.id_; - _impl_.id_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* Sensor::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.id_; -} -inline ::messages::track::Identifier* Sensor::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:messages.data.Sensor.ID) - return _msg; -} -inline void Sensor::set_allocated_id(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.id_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.data.Sensor.ID) -} - -// string name = 2; -inline void Sensor::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& Sensor::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.Sensor.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Sensor::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.data.Sensor.name) -} -inline std::string* Sensor::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:messages.data.Sensor.name) - return _s; -} -inline const std::string& Sensor::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Sensor::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Sensor::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Sensor::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.Sensor.name) - return _impl_.name_.Release(); -} -inline void Sensor::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.data.Sensor.name) -} - -// double range = 3; -inline void Sensor::clear_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = 0; -} -inline double Sensor::range() const { - // @@protoc_insertion_point(field_get:messages.data.Sensor.range) - return _internal_range(); -} -inline void Sensor::set_range(double value) { - _internal_set_range(value); - // @@protoc_insertion_point(field_set:messages.data.Sensor.range) -} -inline double Sensor::_internal_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.range_; -} -inline void Sensor::_internal_set_range(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = value; -} - -// uint32 kind = 4; -inline void Sensor::clear_kind() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kind_ = 0u; -} -inline ::uint32_t Sensor::kind() const { - // @@protoc_insertion_point(field_get:messages.data.Sensor.kind) - return _internal_kind(); -} -inline void Sensor::set_kind(::uint32_t value) { - _internal_set_kind(value); - // @@protoc_insertion_point(field_set:messages.data.Sensor.kind) -} -inline ::uint32_t Sensor::_internal_kind() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kind_; -} -inline void Sensor::_internal_set_kind(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kind_ = value; -} - -// uint32 Status = 5; -inline void Sensor::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = 0u; -} -inline ::uint32_t Sensor::status() const { - // @@protoc_insertion_point(field_get:messages.data.Sensor.Status) - return _internal_status(); -} -inline void Sensor::set_status(::uint32_t value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:messages.data.Sensor.Status) -} -inline ::uint32_t Sensor::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_; -} -inline void Sensor::_internal_set_status(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = value; -} - -// ------------------------------------------------------------------- - -// Effector - -// .messages.track.Identifier ID = 1; -inline bool Effector::has_id() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.id_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& Effector::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.id_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& Effector::id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.Effector.ID) - return _internal_id(); -} -inline void Effector::unsafe_arena_set_allocated_id(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.id_); - } - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.data.Effector.ID) -} -inline ::messages::track::Identifier* Effector::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.id_; - _impl_.id_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* Effector::unsafe_arena_release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.Effector.ID) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.id_; - _impl_.id_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* Effector::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.id_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.id_; -} -inline ::messages::track::Identifier* Effector::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:messages.data.Effector.ID) - return _msg; -} -inline void Effector::set_allocated_id(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.id_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.id_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.data.Effector.ID) -} - -// string name = 2; -inline void Effector::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& Effector::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.Effector.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Effector::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:messages.data.Effector.name) -} -inline std::string* Effector::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:messages.data.Effector.name) - return _s; -} -inline const std::string& Effector::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void Effector::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* Effector::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* Effector::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.Effector.name) - return _impl_.name_.Release(); -} -inline void Effector::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.data.Effector.name) -} - -// double range = 3; -inline void Effector::clear_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = 0; -} -inline double Effector::range() const { - // @@protoc_insertion_point(field_get:messages.data.Effector.range) - return _internal_range(); -} -inline void Effector::set_range(double value) { - _internal_set_range(value); - // @@protoc_insertion_point(field_set:messages.data.Effector.range) -} -inline double Effector::_internal_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.range_; -} -inline void Effector::_internal_set_range(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_ = value; -} - -// int32 ammunition = 4; -inline void Effector::clear_ammunition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ammunition_ = 0; -} -inline ::int32_t Effector::ammunition() const { - // @@protoc_insertion_point(field_get:messages.data.Effector.ammunition) - return _internal_ammunition(); -} -inline void Effector::set_ammunition(::int32_t value) { - _internal_set_ammunition(value); - // @@protoc_insertion_point(field_set:messages.data.Effector.ammunition) -} -inline ::int32_t Effector::_internal_ammunition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ammunition_; -} -inline void Effector::_internal_set_ammunition(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ammunition_ = value; -} - -// int32 maxammunition = 6; -inline void Effector::clear_maxammunition() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maxammunition_ = 0; -} -inline ::int32_t Effector::maxammunition() const { - // @@protoc_insertion_point(field_get:messages.data.Effector.maxammunition) - return _internal_maxammunition(); -} -inline void Effector::set_maxammunition(::int32_t value) { - _internal_set_maxammunition(value); - // @@protoc_insertion_point(field_set:messages.data.Effector.maxammunition) -} -inline ::int32_t Effector::_internal_maxammunition() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.maxammunition_; -} -inline void Effector::_internal_set_maxammunition(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maxammunition_ = value; -} - -// uint32 Status = 7; -inline void Effector::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = 0u; -} -inline ::uint32_t Effector::status() const { - // @@protoc_insertion_point(field_get:messages.data.Effector.Status) - return _internal_status(); -} -inline void Effector::set_status(::uint32_t value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:messages.data.Effector.Status) -} -inline ::uint32_t Effector::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_; -} -inline void Effector::_internal_set_status(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace data -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_SystemStateUpdate_2eproto_2epb_2eh diff --git a/include/SimCore/Messages/Protos/TracklistUpdate.pb.cc b/include/SimCore/Messages/Protos/TracklistUpdate.pb.cc deleted file mode 100644 index 5e0ca28..0000000 --- a/include/SimCore/Messages/Protos/TracklistUpdate.pb.cc +++ /dev/null @@ -1,479 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TracklistUpdate.proto -// Protobuf C++ Version: 4.26.0-dev - -#include "TracklistUpdate.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace messages { -namespace data { - -inline constexpr TracklistUpdate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - tracks_{}, - ownid_{nullptr}, - timestamp_{nullptr}, - trackscount_{0u} {} - -template -PROTOBUF_CONSTEXPR TracklistUpdate::TracklistUpdate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TracklistUpdateDefaultTypeInternal { - PROTOBUF_CONSTEXPR TracklistUpdateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TracklistUpdateDefaultTypeInternal() {} - union { - TracklistUpdate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TracklistUpdateDefaultTypeInternal _TracklistUpdate_default_instance_; -} // namespace data -} // namespace messages -static ::_pb::Metadata file_level_metadata_TracklistUpdate_2eproto[1]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_TracklistUpdate_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_TracklistUpdate_2eproto = nullptr; -const ::uint32_t - TableStruct_TracklistUpdate_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _impl_.ownid_), - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _impl_.trackscount_), - PROTOBUF_FIELD_OFFSET(::messages::data::TracklistUpdate, _impl_.tracks_), - 0, - 1, - ~0u, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 12, -1, sizeof(::messages::data::TracklistUpdate)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::data::_TracklistUpdate_default_instance_._instance, -}; -const char descriptor_table_protodef_TracklistUpdate_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\025TracklistUpdate.proto\022\rmessages.data\032\020" - "Identifier.proto\032\037google/protobuf/timest" - "amp.proto\032\016SimTrack.proto\"\255\001\n\017TracklistU" - "pdate\022)\n\005OwnID\030\001 \001(\0132\032.messages.track.Id" - "entifier\022-\n\ttimestamp\030\002 \001(\0132\032.google.pro" - "tobuf.Timestamp\022\023\n\013TracksCount\030\003 \001(\r\022+\n\006" - "tracks\030\004 \003(\0132\033.messages.SimTrack.SimTrac" - "kb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_TracklistUpdate_2eproto_deps[3] = - { - &::descriptor_table_Identifier_2eproto, - &::descriptor_table_SimTrack_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::absl::once_flag descriptor_table_TracklistUpdate_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_TracklistUpdate_2eproto = { - false, - false, - 289, - descriptor_table_protodef_TracklistUpdate_2eproto, - "TracklistUpdate.proto", - &descriptor_table_TracklistUpdate_2eproto_once, - descriptor_table_TracklistUpdate_2eproto_deps, - 3, - 1, - schemas, - file_default_instances, - TableStruct_TracklistUpdate_2eproto::offsets, - file_level_metadata_TracklistUpdate_2eproto, - file_level_enum_descriptors_TracklistUpdate_2eproto, - file_level_service_descriptors_TracklistUpdate_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_TracklistUpdate_2eproto_getter() { - return &descriptor_table_TracklistUpdate_2eproto; -} -namespace messages { -namespace data { -// =================================================================== - -class TracklistUpdate::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_._has_bits_); -}; - -void TracklistUpdate::clear_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.ownid_ != nullptr) _impl_.ownid_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -void TracklistUpdate::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timestamp_ != nullptr) _impl_.timestamp_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -void TracklistUpdate::clear_tracks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tracks_.Clear(); -} -TracklistUpdate::TracklistUpdate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:messages.data.TracklistUpdate) -} -inline PROTOBUF_NDEBUG_INLINE TracklistUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - tracks_{visibility, arena, from.tracks_} {} - -TracklistUpdate::TracklistUpdate( - ::google::protobuf::Arena* arena, - const TracklistUpdate& from) - : ::google::protobuf::Message(arena) { - TracklistUpdate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.ownid_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>( - arena, *from._impl_.ownid_) - : nullptr; - _impl_.timestamp_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>( - arena, *from._impl_.timestamp_) - : nullptr; - _impl_.trackscount_ = from._impl_.trackscount_; - - // @@protoc_insertion_point(copy_constructor:messages.data.TracklistUpdate) -} -inline PROTOBUF_NDEBUG_INLINE TracklistUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - tracks_{visibility, arena} {} - -inline void TracklistUpdate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, ownid_), - 0, - offsetof(Impl_, trackscount_) - - offsetof(Impl_, ownid_) + - sizeof(Impl_::trackscount_)); -} -TracklistUpdate::~TracklistUpdate() { - // @@protoc_insertion_point(destructor:messages.data.TracklistUpdate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TracklistUpdate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.ownid_; - delete _impl_.timestamp_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TracklistUpdate::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_._cached_size_), - false, - }, - &TracklistUpdate::MergeImpl, - &TracklistUpdate::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TracklistUpdate::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.data.TracklistUpdate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.tracks_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.ownid_ != nullptr); - _impl_.ownid_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.timestamp_ != nullptr); - _impl_.timestamp_->Clear(); - } - } - _impl_.trackscount_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TracklistUpdate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 3, 0, 2> TracklistUpdate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TracklistUpdate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::messages::data::TracklistUpdate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .messages.SimTrack.SimTrack tracks = 4; - {::_pbi::TcParser::FastMtR1, - {34, 63, 2, PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.tracks_)}}, - // .messages.track.Identifier OwnID = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.ownid_)}}, - // .google.protobuf.Timestamp timestamp = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.timestamp_)}}, - // uint32 TracksCount = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TracklistUpdate, _impl_.trackscount_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.trackscount_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .messages.track.Identifier OwnID = 1; - {PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.ownid_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .google.protobuf.Timestamp timestamp = 2; - {PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.timestamp_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint32 TracksCount = 3; - {PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.trackscount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // repeated .messages.SimTrack.SimTrack tracks = 4; - {PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.tracks_), -1, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::messages::track::Identifier>()}, - {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, - {::_pbi::TcParser::GetTable<::messages::SimTrack::SimTrack>()}, - }}, {{ - }}, -}; - -::uint8_t* TracklistUpdate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.data.TracklistUpdate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .messages.track.Identifier OwnID = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.ownid_, _impl_.ownid_->GetCachedSize(), target, stream); - } - - // .google.protobuf.Timestamp timestamp = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.timestamp_, _impl_.timestamp_->GetCachedSize(), target, stream); - } - - // uint32 TracksCount = 3; - if (this->_internal_trackscount() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_trackscount(), target); - } - - // repeated .messages.SimTrack.SimTrack tracks = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_tracks_size()); i < n; i++) { - const auto& repfield = this->_internal_tracks().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.data.TracklistUpdate) - return target; -} - -::size_t TracklistUpdate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.data.TracklistUpdate) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .messages.SimTrack.SimTrack tracks = 4; - total_size += 1UL * this->_internal_tracks_size(); - for (const auto& msg : this->_internal_tracks()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .messages.track.Identifier OwnID = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.ownid_); - } - - // .google.protobuf.Timestamp timestamp = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.timestamp_); - } - - } - // uint32 TracksCount = 3; - if (this->_internal_trackscount() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_trackscount()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TracklistUpdate::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.data.TracklistUpdate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_tracks()->MergeFrom( - from._internal_tracks()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.ownid_ != nullptr); - if (_this->_impl_.ownid_ == nullptr) { - _this->_impl_.ownid_ = - ::google::protobuf::Message::CopyConstruct<::messages::track::Identifier>(arena, *from._impl_.ownid_); - } else { - _this->_impl_.ownid_->MergeFrom(*from._impl_.ownid_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.timestamp_ != nullptr); - if (_this->_impl_.timestamp_ == nullptr) { - _this->_impl_.timestamp_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>(arena, *from._impl_.timestamp_); - } else { - _this->_impl_.timestamp_->MergeFrom(*from._impl_.timestamp_); - } - } - } - if (from._internal_trackscount() != 0) { - _this->_impl_.trackscount_ = from._impl_.trackscount_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TracklistUpdate::CopyFrom(const TracklistUpdate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.data.TracklistUpdate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TracklistUpdate::IsInitialized() const { - return true; -} - -void TracklistUpdate::InternalSwap(TracklistUpdate* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.tracks_.InternalSwap(&other->_impl_.tracks_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.trackscount_) - + sizeof(TracklistUpdate::_impl_.trackscount_) - - PROTOBUF_FIELD_OFFSET(TracklistUpdate, _impl_.ownid_)>( - reinterpret_cast(&_impl_.ownid_), - reinterpret_cast(&other->_impl_.ownid_)); -} - -::google::protobuf::Metadata TracklistUpdate::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_TracklistUpdate_2eproto_getter, - &descriptor_table_TracklistUpdate_2eproto_once, - file_level_metadata_TracklistUpdate_2eproto[0]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace data -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_TracklistUpdate_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/include/SimCore/Messages/Protos/TracklistUpdate.pb.h b/include/SimCore/Messages/Protos/TracklistUpdate.pb.h deleted file mode 100644 index 50358a4..0000000 --- a/include/SimCore/Messages/Protos/TracklistUpdate.pb.h +++ /dev/null @@ -1,573 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TracklistUpdate.proto -// Protobuf C++ Version: 4.26.0-dev - -#ifndef GOOGLE_PROTOBUF_INCLUDED_TracklistUpdate_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_TracklistUpdate_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 4026000 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "Identifier.pb.h" -#include "google/protobuf/timestamp.pb.h" -#include "SimTrack.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_TracklistUpdate_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_TracklistUpdate_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_TracklistUpdate_2eproto; -namespace messages { -namespace data { -class TracklistUpdate; -struct TracklistUpdateDefaultTypeInternal; -extern TracklistUpdateDefaultTypeInternal _TracklistUpdate_default_instance_; -} // namespace data -} // namespace messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace messages { -namespace data { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class TracklistUpdate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:messages.data.TracklistUpdate) */ { - public: - inline TracklistUpdate() : TracklistUpdate(nullptr) {} - ~TracklistUpdate() override; - template - explicit PROTOBUF_CONSTEXPR TracklistUpdate( - ::google::protobuf::internal::ConstantInitialized); - - inline TracklistUpdate(const TracklistUpdate& from) : TracklistUpdate(nullptr, from) {} - inline TracklistUpdate(TracklistUpdate&& from) noexcept - : TracklistUpdate(nullptr, std::move(from)) {} - inline TracklistUpdate& operator=(const TracklistUpdate& from) { - CopyFrom(from); - return *this; - } - inline TracklistUpdate& operator=(TracklistUpdate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TracklistUpdate& default_instance() { - return *internal_default_instance(); - } - static inline const TracklistUpdate* internal_default_instance() { - return reinterpret_cast( - &_TracklistUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(TracklistUpdate& a, TracklistUpdate& b) { a.Swap(&b); } - inline void Swap(TracklistUpdate* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TracklistUpdate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TracklistUpdate* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TracklistUpdate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TracklistUpdate& from) { TracklistUpdate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TracklistUpdate* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "messages.data.TracklistUpdate"; } - - protected: - explicit TracklistUpdate(::google::protobuf::Arena* arena); - TracklistUpdate(::google::protobuf::Arena* arena, const TracklistUpdate& from); - TracklistUpdate(::google::protobuf::Arena* arena, TracklistUpdate&& from) noexcept - : TracklistUpdate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTracksFieldNumber = 4, - kOwnIDFieldNumber = 1, - kTimestampFieldNumber = 2, - kTracksCountFieldNumber = 3, - }; - // repeated .messages.SimTrack.SimTrack tracks = 4; - int tracks_size() const; - private: - int _internal_tracks_size() const; - - public: - void clear_tracks() ; - ::messages::SimTrack::SimTrack* mutable_tracks(int index); - ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>* mutable_tracks(); - - private: - const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>& _internal_tracks() const; - ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>* _internal_mutable_tracks(); - public: - const ::messages::SimTrack::SimTrack& tracks(int index) const; - ::messages::SimTrack::SimTrack* add_tracks(); - const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>& tracks() const; - // .messages.track.Identifier OwnID = 1; - bool has_ownid() const; - void clear_ownid() ; - const ::messages::track::Identifier& ownid() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_ownid(); - ::messages::track::Identifier* mutable_ownid(); - void set_allocated_ownid(::messages::track::Identifier* value); - void unsafe_arena_set_allocated_ownid(::messages::track::Identifier* value); - ::messages::track::Identifier* unsafe_arena_release_ownid(); - - private: - const ::messages::track::Identifier& _internal_ownid() const; - ::messages::track::Identifier* _internal_mutable_ownid(); - - public: - // .google.protobuf.Timestamp timestamp = 2; - bool has_timestamp() const; - void clear_timestamp() ; - const ::google::protobuf::Timestamp& timestamp() const; - PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_timestamp(); - ::google::protobuf::Timestamp* mutable_timestamp(); - void set_allocated_timestamp(::google::protobuf::Timestamp* value); - void unsafe_arena_set_allocated_timestamp(::google::protobuf::Timestamp* value); - ::google::protobuf::Timestamp* unsafe_arena_release_timestamp(); - - private: - const ::google::protobuf::Timestamp& _internal_timestamp() const; - ::google::protobuf::Timestamp* _internal_mutable_timestamp(); - - public: - // uint32 TracksCount = 3; - void clear_trackscount() ; - ::uint32_t trackscount() const; - void set_trackscount(::uint32_t value); - - private: - ::uint32_t _internal_trackscount() const; - void _internal_set_trackscount(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:messages.data.TracklistUpdate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 3, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::messages::SimTrack::SimTrack > tracks_; - ::messages::track::Identifier* ownid_; - ::google::protobuf::Timestamp* timestamp_; - ::uint32_t trackscount_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_TracklistUpdate_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// TracklistUpdate - -// .messages.track.Identifier OwnID = 1; -inline bool TracklistUpdate::has_ownid() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.ownid_ != nullptr); - return value; -} -inline const ::messages::track::Identifier& TracklistUpdate::_internal_ownid() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::messages::track::Identifier* p = _impl_.ownid_; - return p != nullptr ? *p : reinterpret_cast(::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& TracklistUpdate::ownid() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.TracklistUpdate.OwnID) - return _internal_ownid(); -} -inline void TracklistUpdate::unsafe_arena_set_allocated_ownid(::messages::track::Identifier* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ownid_); - } - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.data.TracklistUpdate.OwnID) -} -inline ::messages::track::Identifier* TracklistUpdate::release_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* released = _impl_.ownid_; - _impl_.ownid_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::messages::track::Identifier* TracklistUpdate::unsafe_arena_release_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.TracklistUpdate.OwnID) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::Identifier* temp = _impl_.ownid_; - _impl_.ownid_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* TracklistUpdate::_internal_mutable_ownid() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.ownid_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena()); - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(p); - } - return _impl_.ownid_; -} -inline ::messages::track::Identifier* TracklistUpdate::mutable_ownid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::messages::track::Identifier* _msg = _internal_mutable_ownid(); - // @@protoc_insertion_point(field_mutable:messages.data.TracklistUpdate.OwnID) - return _msg; -} -inline void TracklistUpdate::set_allocated_ownid(::messages::track::Identifier* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ownid_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.ownid_ = reinterpret_cast<::messages::track::Identifier*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.data.TracklistUpdate.OwnID) -} - -// .google.protobuf.Timestamp timestamp = 2; -inline bool TracklistUpdate::has_timestamp() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.timestamp_ != nullptr); - return value; -} -inline const ::google::protobuf::Timestamp& TracklistUpdate::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::google::protobuf::Timestamp* p = _impl_.timestamp_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); -} -inline const ::google::protobuf::Timestamp& TracklistUpdate::timestamp() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.TracklistUpdate.timestamp) - return _internal_timestamp(); -} -inline void TracklistUpdate::unsafe_arena_set_allocated_timestamp(::google::protobuf::Timestamp* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timestamp_); - } - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.data.TracklistUpdate.timestamp) -} -inline ::google::protobuf::Timestamp* TracklistUpdate::release_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* released = _impl_.timestamp_; - _impl_.timestamp_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::google::protobuf::Timestamp* TracklistUpdate::unsafe_arena_release_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:messages.data.TracklistUpdate.timestamp) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::google::protobuf::Timestamp* temp = _impl_.timestamp_; - _impl_.timestamp_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TracklistUpdate::_internal_mutable_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.timestamp_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Timestamp>(GetArena()); - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); - } - return _impl_.timestamp_; -} -inline ::google::protobuf::Timestamp* TracklistUpdate::mutable_timestamp() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::google::protobuf::Timestamp* _msg = _internal_mutable_timestamp(); - // @@protoc_insertion_point(field_mutable:messages.data.TracklistUpdate.timestamp) - return _msg; -} -inline void TracklistUpdate::set_allocated_timestamp(::google::protobuf::Timestamp* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.timestamp_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.timestamp_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); - // @@protoc_insertion_point(field_set_allocated:messages.data.TracklistUpdate.timestamp) -} - -// uint32 TracksCount = 3; -inline void TracklistUpdate::clear_trackscount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.trackscount_ = 0u; -} -inline ::uint32_t TracklistUpdate::trackscount() const { - // @@protoc_insertion_point(field_get:messages.data.TracklistUpdate.TracksCount) - return _internal_trackscount(); -} -inline void TracklistUpdate::set_trackscount(::uint32_t value) { - _internal_set_trackscount(value); - // @@protoc_insertion_point(field_set:messages.data.TracklistUpdate.TracksCount) -} -inline ::uint32_t TracklistUpdate::_internal_trackscount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.trackscount_; -} -inline void TracklistUpdate::_internal_set_trackscount(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.trackscount_ = value; -} - -// repeated .messages.SimTrack.SimTrack tracks = 4; -inline int TracklistUpdate::_internal_tracks_size() const { - return _internal_tracks().size(); -} -inline int TracklistUpdate::tracks_size() const { - return _internal_tracks_size(); -} -inline ::messages::SimTrack::SimTrack* TracklistUpdate::mutable_tracks(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:messages.data.TracklistUpdate.tracks) - return _internal_mutable_tracks()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>* TracklistUpdate::mutable_tracks() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:messages.data.TracklistUpdate.tracks) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_tracks(); -} -inline const ::messages::SimTrack::SimTrack& TracklistUpdate::tracks(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:messages.data.TracklistUpdate.tracks) - return _internal_tracks().Get(index); -} -inline ::messages::SimTrack::SimTrack* TracklistUpdate::add_tracks() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::messages::SimTrack::SimTrack* _add = _internal_mutable_tracks()->Add(); - // @@protoc_insertion_point(field_add:messages.data.TracklistUpdate.tracks) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>& TracklistUpdate::tracks() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:messages.data.TracklistUpdate.tracks) - return _internal_tracks(); -} -inline const ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>& -TracklistUpdate::_internal_tracks() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tracks_; -} -inline ::google::protobuf::RepeatedPtrField<::messages::SimTrack::SimTrack>* -TracklistUpdate::_internal_mutable_tracks() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.tracks_; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace data -} // namespace messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_TracklistUpdate_2eproto_2epb_2eh