// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: SensorTrack.proto

#include "SensorTrack.pb.h"

#include <algorithm>

#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>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>

PROTOBUF_PRAGMA_INIT_SEG

namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;

namespace messages {
namespace track {
PROTOBUF_CONSTEXPR SensorTrack::SensorTrack(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.sensorid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.entityidentifier_)*/nullptr
  , /*decltype(_impl_.radartrack_)*/nullptr
  , /*decltype(_impl_.esmtrack_)*/nullptr
  , /*decltype(_impl_.timestamp_)*/nullptr
  , /*decltype(_impl_.duration_)*/nullptr
  , /*decltype(_impl_.trackkind_)*/0u} {}
struct SensorTrackDefaultTypeInternal {
  PROTOBUF_CONSTEXPR SensorTrackDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~SensorTrackDefaultTypeInternal() {}
  union {
    SensorTrack _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorTrackDefaultTypeInternal _SensorTrack_default_instance_;
}  // namespace track
}  // namespace messages
static ::_pb::Metadata file_level_metadata_SensorTrack_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_SensorTrack_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_SensorTrack_2eproto = nullptr;

const uint32_t TableStruct_SensorTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_._has_bits_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.entityidentifier_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.sensorid_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.trackkind_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.radartrack_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.esmtrack_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.timestamp_),
  PROTOBUF_FIELD_OFFSET(::messages::track::SensorTrack, _impl_.duration_),
  ~0u,
  ~0u,
  ~0u,
  0,
  1,
  ~0u,
  ~0u,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 13, -1, sizeof(::messages::track::SensorTrack)},
};

static const ::_pb::Message* const file_default_instances[] = {
  &::messages::track::_SensorTrack_default_instance_._instance,
};

const char descriptor_table_protodef_SensorTrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\021SensorTrack.proto\022\016messages.track\032\037goo"
  "gle/protobuf/timestamp.proto\032\036google/pro"
  "tobuf/duration.proto\032\020Identifier.proto\032\020"
  "RadarTrack.proto\032\016ESMTrack.proto\"\306\002\n\013Sen"
  "sorTrack\0224\n\020EntityIdentifier\030\001 \001(\0132\032.mes"
  "sages.track.Identifier\022\020\n\010SensorID\030\002 \001(\t"
  "\022\021\n\tTrackKind\030\003 \001(\r\0223\n\nRadarTrack\030\004 \001(\0132"
  "\032.messages.track.RadarTrackH\000\210\001\001\022/\n\010ESMT"
  "rack\030\005 \001(\0132\030.messages.track.ESMTrackH\001\210\001"
  "\001\022-\n\ttimestamp\030\006 \001(\0132\032.google.protobuf.T"
  "imestamp\022+\n\010duration\030\007 \001(\0132\031.google.prot"
  "obuf.DurationB\r\n\013_RadarTrackB\013\n\t_ESMTrac"
  "kb\006proto3"
  ;
static const ::_pbi::DescriptorTable* const descriptor_table_SensorTrack_2eproto_deps[5] = {
  &::descriptor_table_ESMTrack_2eproto,
  &::descriptor_table_Identifier_2eproto,
  &::descriptor_table_RadarTrack_2eproto,
  &::descriptor_table_google_2fprotobuf_2fduration_2eproto,
  &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
};
static ::_pbi::once_flag descriptor_table_SensorTrack_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_SensorTrack_2eproto = {
    false, false, 489, descriptor_table_protodef_SensorTrack_2eproto,
    "SensorTrack.proto",
    &descriptor_table_SensorTrack_2eproto_once, descriptor_table_SensorTrack_2eproto_deps, 5, 1,
    schemas, file_default_instances, TableStruct_SensorTrack_2eproto::offsets,
    file_level_metadata_SensorTrack_2eproto, file_level_enum_descriptors_SensorTrack_2eproto,
    file_level_service_descriptors_SensorTrack_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SensorTrack_2eproto_getter() {
  return &descriptor_table_SensorTrack_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_SensorTrack_2eproto(&descriptor_table_SensorTrack_2eproto);
namespace messages {
namespace track {

// ===================================================================

class SensorTrack::_Internal {
 public:
  using HasBits = decltype(std::declval<SensorTrack>()._impl_._has_bits_);
  static const ::messages::track::Identifier& entityidentifier(const SensorTrack* msg);
  static const ::messages::track::RadarTrack& radartrack(const SensorTrack* msg);
  static void set_has_radartrack(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::messages::track::ESMTrack& esmtrack(const SensorTrack* msg);
  static void set_has_esmtrack(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const SensorTrack* msg);
  static const ::PROTOBUF_NAMESPACE_ID::Duration& duration(const SensorTrack* msg);
};

const ::messages::track::Identifier&
SensorTrack::_Internal::entityidentifier(const SensorTrack* msg) {
  return *msg->_impl_.entityidentifier_;
}
const ::messages::track::RadarTrack&
SensorTrack::_Internal::radartrack(const SensorTrack* msg) {
  return *msg->_impl_.radartrack_;
}
const ::messages::track::ESMTrack&
SensorTrack::_Internal::esmtrack(const SensorTrack* msg) {
  return *msg->_impl_.esmtrack_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
SensorTrack::_Internal::timestamp(const SensorTrack* msg) {
  return *msg->_impl_.timestamp_;
}
const ::PROTOBUF_NAMESPACE_ID::Duration&
SensorTrack::_Internal::duration(const SensorTrack* msg) {
  return *msg->_impl_.duration_;
}
void SensorTrack::clear_entityidentifier() {
  if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
    delete _impl_.entityidentifier_;
  }
  _impl_.entityidentifier_ = nullptr;
}
void SensorTrack::clear_radartrack() {
  if (_impl_.radartrack_ != nullptr) _impl_.radartrack_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void SensorTrack::clear_esmtrack() {
  if (_impl_.esmtrack_ != nullptr) _impl_.esmtrack_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
void SensorTrack::clear_timestamp() {
  if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
    delete _impl_.timestamp_;
  }
  _impl_.timestamp_ = nullptr;
}
void SensorTrack::clear_duration() {
  if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) {
    delete _impl_.duration_;
  }
  _impl_.duration_ = nullptr;
}
SensorTrack::SensorTrack(::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.track.SensorTrack)
}
SensorTrack::SensorTrack(const SensorTrack& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  SensorTrack* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.sensorid_){}
    , decltype(_impl_.entityidentifier_){nullptr}
    , decltype(_impl_.radartrack_){nullptr}
    , decltype(_impl_.esmtrack_){nullptr}
    , decltype(_impl_.timestamp_){nullptr}
    , decltype(_impl_.duration_){nullptr}
    , decltype(_impl_.trackkind_){}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.sensorid_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.sensorid_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_sensorid().empty()) {
    _this->_impl_.sensorid_.Set(from._internal_sensorid(), 
      _this->GetArenaForAllocation());
  }
  if (from._internal_has_entityidentifier()) {
    _this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_);
  }
  if (from._internal_has_radartrack()) {
    _this->_impl_.radartrack_ = new ::messages::track::RadarTrack(*from._impl_.radartrack_);
  }
  if (from._internal_has_esmtrack()) {
    _this->_impl_.esmtrack_ = new ::messages::track::ESMTrack(*from._impl_.esmtrack_);
  }
  if (from._internal_has_timestamp()) {
    _this->_impl_.timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.timestamp_);
  }
  if (from._internal_has_duration()) {
    _this->_impl_.duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.duration_);
  }
  _this->_impl_.trackkind_ = from._impl_.trackkind_;
  // @@protoc_insertion_point(copy_constructor:messages.track.SensorTrack)
}

inline void SensorTrack::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.sensorid_){}
    , decltype(_impl_.entityidentifier_){nullptr}
    , decltype(_impl_.radartrack_){nullptr}
    , decltype(_impl_.esmtrack_){nullptr}
    , decltype(_impl_.timestamp_){nullptr}
    , decltype(_impl_.duration_){nullptr}
    , decltype(_impl_.trackkind_){0u}
  };
  _impl_.sensorid_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.sensorid_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

SensorTrack::~SensorTrack() {
  // @@protoc_insertion_point(destructor:messages.track.SensorTrack)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void SensorTrack::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.sensorid_.Destroy();
  if (this != internal_default_instance()) delete _impl_.entityidentifier_;
  if (this != internal_default_instance()) delete _impl_.radartrack_;
  if (this != internal_default_instance()) delete _impl_.esmtrack_;
  if (this != internal_default_instance()) delete _impl_.timestamp_;
  if (this != internal_default_instance()) delete _impl_.duration_;
}

void SensorTrack::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void SensorTrack::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.track.SensorTrack)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.sensorid_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
    delete _impl_.entityidentifier_;
  }
  _impl_.entityidentifier_ = nullptr;
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      GOOGLE_DCHECK(_impl_.radartrack_ != nullptr);
      _impl_.radartrack_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      GOOGLE_DCHECK(_impl_.esmtrack_ != nullptr);
      _impl_.esmtrack_->Clear();
    }
  }
  if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
    delete _impl_.timestamp_;
  }
  _impl_.timestamp_ = nullptr;
  if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) {
    delete _impl_.duration_;
  }
  _impl_.duration_ = nullptr;
  _impl_.trackkind_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* SensorTrack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .messages.track.Identifier EntityIdentifier = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string SensorID = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_sensorid();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "messages.track.SensorTrack.SensorID"));
        } else
          goto handle_unusual;
        continue;
      // uint32 TrackKind = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          _impl_.trackkind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional .messages.track.RadarTrack RadarTrack = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_radartrack(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional .messages.track.ESMTrack ESMTrack = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          ptr = ctx->ParseMessage(_internal_mutable_esmtrack(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .google.protobuf.Timestamp timestamp = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_timestamp(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .google.protobuf.Duration duration = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
          ptr = ctx->ParseMessage(_internal_mutable_duration(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* SensorTrack::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:messages.track.SensorTrack)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .messages.track.Identifier EntityIdentifier = 1;
  if (this->_internal_has_entityidentifier()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::entityidentifier(this),
        _Internal::entityidentifier(this).GetCachedSize(), target, stream);
  }

  // string SensorID = 2;
  if (!this->_internal_sensorid().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_sensorid().data(), static_cast<int>(this->_internal_sensorid().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "messages.track.SensorTrack.SensorID");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_sensorid(), target);
  }

  // uint32 TrackKind = 3;
  if (this->_internal_trackkind() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_trackkind(), target);
  }

  // optional .messages.track.RadarTrack RadarTrack = 4;
  if (_internal_has_radartrack()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(4, _Internal::radartrack(this),
        _Internal::radartrack(this).GetCachedSize(), target, stream);
  }

  // optional .messages.track.ESMTrack ESMTrack = 5;
  if (_internal_has_esmtrack()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(5, _Internal::esmtrack(this),
        _Internal::esmtrack(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp timestamp = 6;
  if (this->_internal_has_timestamp()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::timestamp(this),
        _Internal::timestamp(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Duration duration = 7;
  if (this->_internal_has_duration()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(7, _Internal::duration(this),
        _Internal::duration(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);
  }
  // @@protoc_insertion_point(serialize_to_array_end:messages.track.SensorTrack)
  return target;
}

size_t SensorTrack::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.track.SensorTrack)
  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 SensorID = 2;
  if (!this->_internal_sensorid().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_sensorid());
  }

  // .messages.track.Identifier EntityIdentifier = 1;
  if (this->_internal_has_entityidentifier()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.entityidentifier_);
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    // optional .messages.track.RadarTrack RadarTrack = 4;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.radartrack_);
    }

    // optional .messages.track.ESMTrack ESMTrack = 5;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.esmtrack_);
    }

  }
  // .google.protobuf.Timestamp timestamp = 6;
  if (this->_internal_has_timestamp()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.timestamp_);
  }

  // .google.protobuf.Duration duration = 7;
  if (this->_internal_has_duration()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.duration_);
  }

  // uint32 TrackKind = 3;
  if (this->_internal_trackkind() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_trackkind());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SensorTrack::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    SensorTrack::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SensorTrack::GetClassData() const { return &_class_data_; }


void SensorTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<SensorTrack*>(&to_msg);
  auto& from = static_cast<const SensorTrack&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:messages.track.SensorTrack)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_sensorid().empty()) {
    _this->_internal_set_sensorid(from._internal_sensorid());
  }
  if (from._internal_has_entityidentifier()) {
    _this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
        from._internal_entityidentifier());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_radartrack()->::messages::track::RadarTrack::MergeFrom(
          from._internal_radartrack());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_esmtrack()->::messages::track::ESMTrack::MergeFrom(
          from._internal_esmtrack());
    }
  }
  if (from._internal_has_timestamp()) {
    _this->_internal_mutable_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
        from._internal_timestamp());
  }
  if (from._internal_has_duration()) {
    _this->_internal_mutable_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(
        from._internal_duration());
  }
  if (from._internal_trackkind() != 0) {
    _this->_internal_set_trackkind(from._internal_trackkind());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void SensorTrack::CopyFrom(const SensorTrack& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.SensorTrack)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool SensorTrack::IsInitialized() const {
  return true;
}

void SensorTrack::InternalSwap(SensorTrack* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.sensorid_, lhs_arena,
      &other->_impl_.sensorid_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SensorTrack, _impl_.trackkind_)
      + sizeof(SensorTrack::_impl_.trackkind_)
      - PROTOBUF_FIELD_OFFSET(SensorTrack, _impl_.entityidentifier_)>(
          reinterpret_cast<char*>(&_impl_.entityidentifier_),
          reinterpret_cast<char*>(&other->_impl_.entityidentifier_));
}

::PROTOBUF_NAMESPACE_ID::Metadata SensorTrack::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_SensorTrack_2eproto_getter, &descriptor_table_SensorTrack_2eproto_once,
      file_level_metadata_SensorTrack_2eproto[0]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace track
}  // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::track::SensorTrack*
Arena::CreateMaybeMessage< ::messages::track::SensorTrack >(Arena* arena) {
  return Arena::CreateMessageInternal< ::messages::track::SensorTrack >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
