CHG: changed cmakelists of using modules
This commit is contained in:
@@ -22,9 +22,26 @@ namespace _pbi = _pb::internal;
|
||||
|
||||
namespace messages {
|
||||
namespace raw_track {
|
||||
PROTOBUF_CONSTEXPR RawTrack_DISEntityID::RawTrack_DISEntityID(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.site_)*/0u
|
||||
, /*decltype(_impl_.application_)*/0u
|
||||
, /*decltype(_impl_.entity_)*/0u
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct RawTrack_DISEntityIDDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR RawTrack_DISEntityIDDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~RawTrack_DISEntityIDDefaultTypeInternal() {}
|
||||
union {
|
||||
RawTrack_DISEntityID _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawTrack_DISEntityIDDefaultTypeInternal _RawTrack_DISEntityID_default_instance_;
|
||||
PROTOBUF_CONSTEXPR RawTrack::RawTrack(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.trackno_)*/0u
|
||||
/*decltype(_impl_.entityid_)*/nullptr
|
||||
, /*decltype(_impl_.timestamp_)*/nullptr
|
||||
, /*decltype(_impl_.trackno_)*/0u
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct RawTrackDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR RawTrackDefaultTypeInternal()
|
||||
@@ -37,11 +54,20 @@ struct RawTrackDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawTrackDefaultTypeInternal _RawTrack_default_instance_;
|
||||
} // namespace raw_track
|
||||
} // namespace messages
|
||||
static ::_pb::Metadata file_level_metadata_raw_5ftrack_2eproto[1];
|
||||
static ::_pb::Metadata file_level_metadata_raw_5ftrack_2eproto[2];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_raw_5ftrack_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_raw_5ftrack_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_raw_5ftrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack_DISEntityID, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack_DISEntityID, _impl_.site_),
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack_DISEntityID, _impl_.application_),
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack_DISEntityID, _impl_.entity_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -49,24 +75,37 @@ const uint32_t TableStruct_raw_5ftrack_2eproto::offsets[] PROTOBUF_SECTION_VARIA
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _impl_.trackno_),
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _impl_.entityid_),
|
||||
PROTOBUF_FIELD_OFFSET(::messages::raw_track::RawTrack, _impl_.timestamp_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::messages::raw_track::RawTrack)},
|
||||
{ 0, -1, -1, sizeof(::messages::raw_track::RawTrack_DISEntityID)},
|
||||
{ 9, -1, -1, sizeof(::messages::raw_track::RawTrack)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::messages::raw_track::_RawTrack_DISEntityID_default_instance_._instance,
|
||||
&::messages::raw_track::_RawTrack_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_raw_5ftrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n\017raw_track.proto\022\022messages.raw_track\"\033\n"
|
||||
"\010RawTrack\022\017\n\007trackNo\030\001 \001(\rb\006proto3"
|
||||
"\n\017raw_track.proto\022\022messages.raw_track\032\037g"
|
||||
"oogle/protobuf/timestamp.proto\"\310\001\n\010RawTr"
|
||||
"ack\022\017\n\007trackNo\030\001 \001(\r\022:\n\010EntityID\030\002 \001(\0132("
|
||||
".messages.raw_track.RawTrack.DISEntityID"
|
||||
"\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.Ti"
|
||||
"mestamp\032@\n\013DISEntityID\022\014\n\004site\030\001 \001(\r\022\023\n\013"
|
||||
"application\030\002 \001(\r\022\016\n\006entity\030\003 \001(\rb\006proto"
|
||||
"3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_raw_5ftrack_2eproto_deps[1] = {
|
||||
&::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_raw_5ftrack_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_raw_5ftrack_2eproto = {
|
||||
false, false, 74, descriptor_table_protodef_raw_5ftrack_2eproto,
|
||||
false, false, 281, descriptor_table_protodef_raw_5ftrack_2eproto,
|
||||
"raw_track.proto",
|
||||
&descriptor_table_raw_5ftrack_2eproto_once, nullptr, 0, 1,
|
||||
&descriptor_table_raw_5ftrack_2eproto_once, descriptor_table_raw_5ftrack_2eproto_deps, 1, 2,
|
||||
schemas, file_default_instances, TableStruct_raw_5ftrack_2eproto::offsets,
|
||||
file_level_metadata_raw_5ftrack_2eproto, file_level_enum_descriptors_raw_5ftrack_2eproto,
|
||||
file_level_service_descriptors_raw_5ftrack_2eproto,
|
||||
@@ -82,10 +121,261 @@ namespace raw_track {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class RawTrack::_Internal {
|
||||
class RawTrack_DISEntityID::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
RawTrack_DISEntityID::RawTrack_DISEntityID(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
// @@protoc_insertion_point(arena_constructor:messages.raw_track.RawTrack.DISEntityID)
|
||||
}
|
||||
RawTrack_DISEntityID::RawTrack_DISEntityID(const RawTrack_DISEntityID& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
RawTrack_DISEntityID* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.site_){}
|
||||
, decltype(_impl_.application_){}
|
||||
, decltype(_impl_.entity_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.site_, &from._impl_.site_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.entity_) -
|
||||
reinterpret_cast<char*>(&_impl_.site_)) + sizeof(_impl_.entity_));
|
||||
// @@protoc_insertion_point(copy_constructor:messages.raw_track.RawTrack.DISEntityID)
|
||||
}
|
||||
|
||||
inline void RawTrack_DISEntityID::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.site_){0u}
|
||||
, decltype(_impl_.application_){0u}
|
||||
, decltype(_impl_.entity_){0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
RawTrack_DISEntityID::~RawTrack_DISEntityID() {
|
||||
// @@protoc_insertion_point(destructor:messages.raw_track.RawTrack.DISEntityID)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void RawTrack_DISEntityID::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void RawTrack_DISEntityID::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void RawTrack_DISEntityID::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:messages.raw_track.RawTrack.DISEntityID)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
::memset(&_impl_.site_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.entity_) -
|
||||
reinterpret_cast<char*>(&_impl_.site_)) + sizeof(_impl_.entity_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* RawTrack_DISEntityID::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// uint32 site = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.site_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint32 application = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_impl_.application_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint32 entity = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.entity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* RawTrack_DISEntityID::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:messages.raw_track.RawTrack.DISEntityID)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// uint32 site = 1;
|
||||
if (this->_internal_site() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_site(), target);
|
||||
}
|
||||
|
||||
// uint32 application = 2;
|
||||
if (this->_internal_application() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_application(), target);
|
||||
}
|
||||
|
||||
// uint32 entity = 3;
|
||||
if (this->_internal_entity() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_entity(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:messages.raw_track.RawTrack.DISEntityID)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t RawTrack_DISEntityID::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:messages.raw_track.RawTrack.DISEntityID)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// uint32 site = 1;
|
||||
if (this->_internal_site() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_site());
|
||||
}
|
||||
|
||||
// uint32 application = 2;
|
||||
if (this->_internal_application() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_application());
|
||||
}
|
||||
|
||||
// uint32 entity = 3;
|
||||
if (this->_internal_entity() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_entity());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RawTrack_DISEntityID::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
RawTrack_DISEntityID::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RawTrack_DISEntityID::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void RawTrack_DISEntityID::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<RawTrack_DISEntityID*>(&to_msg);
|
||||
auto& from = static_cast<const RawTrack_DISEntityID&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:messages.raw_track.RawTrack.DISEntityID)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_site() != 0) {
|
||||
_this->_internal_set_site(from._internal_site());
|
||||
}
|
||||
if (from._internal_application() != 0) {
|
||||
_this->_internal_set_application(from._internal_application());
|
||||
}
|
||||
if (from._internal_entity() != 0) {
|
||||
_this->_internal_set_entity(from._internal_entity());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void RawTrack_DISEntityID::CopyFrom(const RawTrack_DISEntityID& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:messages.raw_track.RawTrack.DISEntityID)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool RawTrack_DISEntityID::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void RawTrack_DISEntityID::InternalSwap(RawTrack_DISEntityID* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(RawTrack_DISEntityID, _impl_.entity_)
|
||||
+ sizeof(RawTrack_DISEntityID::_impl_.entity_)
|
||||
- PROTOBUF_FIELD_OFFSET(RawTrack_DISEntityID, _impl_.site_)>(
|
||||
reinterpret_cast<char*>(&_impl_.site_),
|
||||
reinterpret_cast<char*>(&other->_impl_.site_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RawTrack_DISEntityID::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_raw_5ftrack_2eproto_getter, &descriptor_table_raw_5ftrack_2eproto_once,
|
||||
file_level_metadata_raw_5ftrack_2eproto[0]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class RawTrack::_Internal {
|
||||
public:
|
||||
static const ::messages::raw_track::RawTrack_DISEntityID& entityid(const RawTrack* msg);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const RawTrack* msg);
|
||||
};
|
||||
|
||||
const ::messages::raw_track::RawTrack_DISEntityID&
|
||||
RawTrack::_Internal::entityid(const RawTrack* msg) {
|
||||
return *msg->_impl_.entityid_;
|
||||
}
|
||||
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
|
||||
RawTrack::_Internal::timestamp(const RawTrack* msg) {
|
||||
return *msg->_impl_.timestamp_;
|
||||
}
|
||||
void RawTrack::clear_timestamp() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
|
||||
delete _impl_.timestamp_;
|
||||
}
|
||||
_impl_.timestamp_ = nullptr;
|
||||
}
|
||||
RawTrack::RawTrack(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -96,10 +386,18 @@ RawTrack::RawTrack(const RawTrack& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
RawTrack* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.trackno_){}
|
||||
decltype(_impl_.entityid_){nullptr}
|
||||
, decltype(_impl_.timestamp_){nullptr}
|
||||
, decltype(_impl_.trackno_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_entityid()) {
|
||||
_this->_impl_.entityid_ = new ::messages::raw_track::RawTrack_DISEntityID(*from._impl_.entityid_);
|
||||
}
|
||||
if (from._internal_has_timestamp()) {
|
||||
_this->_impl_.timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.timestamp_);
|
||||
}
|
||||
_this->_impl_.trackno_ = from._impl_.trackno_;
|
||||
// @@protoc_insertion_point(copy_constructor:messages.raw_track.RawTrack)
|
||||
}
|
||||
@@ -109,7 +407,9 @@ inline void RawTrack::SharedCtor(
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.trackno_){0u}
|
||||
decltype(_impl_.entityid_){nullptr}
|
||||
, decltype(_impl_.timestamp_){nullptr}
|
||||
, decltype(_impl_.trackno_){0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
@@ -125,6 +425,8 @@ RawTrack::~RawTrack() {
|
||||
|
||||
inline void RawTrack::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.entityid_;
|
||||
if (this != internal_default_instance()) delete _impl_.timestamp_;
|
||||
}
|
||||
|
||||
void RawTrack::SetCachedSize(int size) const {
|
||||
@@ -137,6 +439,14 @@ void RawTrack::Clear() {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.entityid_ != nullptr) {
|
||||
delete _impl_.entityid_;
|
||||
}
|
||||
_impl_.entityid_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
|
||||
delete _impl_.timestamp_;
|
||||
}
|
||||
_impl_.timestamp_ = nullptr;
|
||||
_impl_.trackno_ = 0u;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
@@ -155,6 +465,22 @@ const char* RawTrack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .messages.raw_track.RawTrack.DISEntityID EntityID = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_entityid(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .google.protobuf.Timestamp timestamp = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_timestamp(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -190,6 +516,20 @@ uint8_t* RawTrack::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_trackno(), target);
|
||||
}
|
||||
|
||||
// .messages.raw_track.RawTrack.DISEntityID EntityID = 2;
|
||||
if (this->_internal_has_entityid()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::entityid(this),
|
||||
_Internal::entityid(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .google.protobuf.Timestamp timestamp = 3;
|
||||
if (this->_internal_has_timestamp()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(3, _Internal::timestamp(this),
|
||||
_Internal::timestamp(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@@ -206,6 +546,20 @@ size_t RawTrack::ByteSizeLong() const {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .messages.raw_track.RawTrack.DISEntityID EntityID = 2;
|
||||
if (this->_internal_has_entityid()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.entityid_);
|
||||
}
|
||||
|
||||
// .google.protobuf.Timestamp timestamp = 3;
|
||||
if (this->_internal_has_timestamp()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.timestamp_);
|
||||
}
|
||||
|
||||
// uint32 trackNo = 1;
|
||||
if (this->_internal_trackno() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_trackno());
|
||||
@@ -229,6 +583,14 @@ void RawTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_entityid()) {
|
||||
_this->_internal_mutable_entityid()->::messages::raw_track::RawTrack_DISEntityID::MergeFrom(
|
||||
from._internal_entityid());
|
||||
}
|
||||
if (from._internal_has_timestamp()) {
|
||||
_this->_internal_mutable_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
|
||||
from._internal_timestamp());
|
||||
}
|
||||
if (from._internal_trackno() != 0) {
|
||||
_this->_internal_set_trackno(from._internal_trackno());
|
||||
}
|
||||
@@ -249,19 +611,28 @@ bool RawTrack::IsInitialized() const {
|
||||
void RawTrack::InternalSwap(RawTrack* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.trackno_, other->_impl_.trackno_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(RawTrack, _impl_.trackno_)
|
||||
+ sizeof(RawTrack::_impl_.trackno_)
|
||||
- PROTOBUF_FIELD_OFFSET(RawTrack, _impl_.entityid_)>(
|
||||
reinterpret_cast<char*>(&_impl_.entityid_),
|
||||
reinterpret_cast<char*>(&other->_impl_.entityid_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RawTrack::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_raw_5ftrack_2eproto_getter, &descriptor_table_raw_5ftrack_2eproto_once,
|
||||
file_level_metadata_raw_5ftrack_2eproto[0]);
|
||||
file_level_metadata_raw_5ftrack_2eproto[1]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace raw_track
|
||||
} // namespace messages
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::messages::raw_track::RawTrack_DISEntityID*
|
||||
Arena::CreateMaybeMessage< ::messages::raw_track::RawTrack_DISEntityID >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::messages::raw_track::RawTrack_DISEntityID >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::messages::raw_track::RawTrack*
|
||||
Arena::CreateMaybeMessage< ::messages::raw_track::RawTrack >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::messages::raw_track::RawTrack >(arena);
|
||||
|
||||
Reference in New Issue
Block a user