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

#include "GroundTruthTrack.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 GroundTruthTrack::GroundTruthTrack(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.entityidentifier_)*/nullptr
  , /*decltype(_impl_.geocentricposition_)*/nullptr
  , /*decltype(_impl_.esmdata_)*/nullptr
  , /*decltype(_impl_.timestamp_)*/nullptr
  , /*decltype(_impl_.contactspeed_)*/0
  , /*decltype(_impl_.contactcourse_)*/0
  , /*decltype(_impl_.trackkind_)*/0u} {}
struct GroundTruthTrackDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GroundTruthTrackDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~GroundTruthTrackDefaultTypeInternal() {}
  union {
    GroundTruthTrack _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GroundTruthTrackDefaultTypeInternal _GroundTruthTrack_default_instance_;
}  // namespace track
}  // namespace messages
static ::_pb::Metadata file_level_metadata_GroundTruthTrack_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_GroundTruthTrack_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_GroundTruthTrack_2eproto = nullptr;

const uint32_t TableStruct_GroundTruthTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_._has_bits_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.trackkind_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.entityidentifier_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.geocentricposition_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.contactspeed_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.contactcourse_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.esmdata_),
  PROTOBUF_FIELD_OFFSET(::messages::track::GroundTruthTrack, _impl_.timestamp_),
  ~0u,
  ~0u,
  ~0u,
  1,
  2,
  0,
  ~0u,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 13, -1, sizeof(::messages::track::GroundTruthTrack)},
};

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

const char descriptor_table_protodef_GroundTruthTrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\026GroundTruthTrack.proto\022\016messages.track"
  "\032\020Identifier.proto\032\rESMData.proto\032\030Geoce"
  "ntricPosition.proto\032\037google/protobuf/tim"
  "estamp.proto\"\345\002\n\020GroundTruthTrack\022\021\n\tTra"
  "ckKind\030\001 \001(\r\0224\n\020EntityIdentifier\030\002 \001(\0132\032"
  ".messages.track.Identifier\022D\n\022Geocentric"
  "Position\030\003 \001(\0132(.messages.track.EntityGe"
  "ocentricPosition\022\031\n\014ContactSpeed\030\004 \001(\001H\000"
  "\210\001\001\022\032\n\rContactCourse\030\005 \001(\001H\001\210\001\001\022-\n\007ESMDa"
  "ta\030\006 \001(\0132\027.messages.track.ESMDataH\002\210\001\001\022-"
  "\n\ttimestamp\030\007 \001(\0132\032.google.protobuf.Time"
  "stampB\017\n\r_ContactSpeedB\020\n\016_ContactCourse"
  "B\n\n\010_ESMDatab\006proto3"
  ;
static const ::_pbi::DescriptorTable* const descriptor_table_GroundTruthTrack_2eproto_deps[4] = {
  &::descriptor_table_ESMData_2eproto,
  &::descriptor_table_GeocentricPosition_2eproto,
  &::descriptor_table_Identifier_2eproto,
  &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
};
static ::_pbi::once_flag descriptor_table_GroundTruthTrack_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_GroundTruthTrack_2eproto = {
    false, false, 500, descriptor_table_protodef_GroundTruthTrack_2eproto,
    "GroundTruthTrack.proto",
    &descriptor_table_GroundTruthTrack_2eproto_once, descriptor_table_GroundTruthTrack_2eproto_deps, 4, 1,
    schemas, file_default_instances, TableStruct_GroundTruthTrack_2eproto::offsets,
    file_level_metadata_GroundTruthTrack_2eproto, file_level_enum_descriptors_GroundTruthTrack_2eproto,
    file_level_service_descriptors_GroundTruthTrack_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_GroundTruthTrack_2eproto_getter() {
  return &descriptor_table_GroundTruthTrack_2eproto;
}

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

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

class GroundTruthTrack::_Internal {
 public:
  using HasBits = decltype(std::declval<GroundTruthTrack>()._impl_._has_bits_);
  static const ::messages::track::Identifier& entityidentifier(const GroundTruthTrack* msg);
  static const ::messages::track::EntityGeocentricPosition& geocentricposition(const GroundTruthTrack* msg);
  static void set_has_contactspeed(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_contactcourse(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static const ::messages::track::ESMData& esmdata(const GroundTruthTrack* msg);
  static void set_has_esmdata(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const GroundTruthTrack* msg);
};

const ::messages::track::Identifier&
GroundTruthTrack::_Internal::entityidentifier(const GroundTruthTrack* msg) {
  return *msg->_impl_.entityidentifier_;
}
const ::messages::track::EntityGeocentricPosition&
GroundTruthTrack::_Internal::geocentricposition(const GroundTruthTrack* msg) {
  return *msg->_impl_.geocentricposition_;
}
const ::messages::track::ESMData&
GroundTruthTrack::_Internal::esmdata(const GroundTruthTrack* msg) {
  return *msg->_impl_.esmdata_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
GroundTruthTrack::_Internal::timestamp(const GroundTruthTrack* msg) {
  return *msg->_impl_.timestamp_;
}
void GroundTruthTrack::clear_entityidentifier() {
  if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
    delete _impl_.entityidentifier_;
  }
  _impl_.entityidentifier_ = nullptr;
}
void GroundTruthTrack::clear_geocentricposition() {
  if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) {
    delete _impl_.geocentricposition_;
  }
  _impl_.geocentricposition_ = nullptr;
}
void GroundTruthTrack::clear_esmdata() {
  if (_impl_.esmdata_ != nullptr) _impl_.esmdata_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void GroundTruthTrack::clear_timestamp() {
  if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
    delete _impl_.timestamp_;
  }
  _impl_.timestamp_ = nullptr;
}
GroundTruthTrack::GroundTruthTrack(::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.GroundTruthTrack)
}
GroundTruthTrack::GroundTruthTrack(const GroundTruthTrack& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  GroundTruthTrack* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.entityidentifier_){nullptr}
    , decltype(_impl_.geocentricposition_){nullptr}
    , decltype(_impl_.esmdata_){nullptr}
    , decltype(_impl_.timestamp_){nullptr}
    , decltype(_impl_.contactspeed_){}
    , decltype(_impl_.contactcourse_){}
    , decltype(_impl_.trackkind_){}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_entityidentifier()) {
    _this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_);
  }
  if (from._internal_has_geocentricposition()) {
    _this->_impl_.geocentricposition_ = new ::messages::track::EntityGeocentricPosition(*from._impl_.geocentricposition_);
  }
  if (from._internal_has_esmdata()) {
    _this->_impl_.esmdata_ = new ::messages::track::ESMData(*from._impl_.esmdata_);
  }
  if (from._internal_has_timestamp()) {
    _this->_impl_.timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.timestamp_);
  }
  ::memcpy(&_impl_.contactspeed_, &from._impl_.contactspeed_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.trackkind_) -
    reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.trackkind_));
  // @@protoc_insertion_point(copy_constructor:messages.track.GroundTruthTrack)
}

inline void GroundTruthTrack::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_.entityidentifier_){nullptr}
    , decltype(_impl_.geocentricposition_){nullptr}
    , decltype(_impl_.esmdata_){nullptr}
    , decltype(_impl_.timestamp_){nullptr}
    , decltype(_impl_.contactspeed_){0}
    , decltype(_impl_.contactcourse_){0}
    , decltype(_impl_.trackkind_){0u}
  };
}

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

inline void GroundTruthTrack::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete _impl_.entityidentifier_;
  if (this != internal_default_instance()) delete _impl_.geocentricposition_;
  if (this != internal_default_instance()) delete _impl_.esmdata_;
  if (this != internal_default_instance()) delete _impl_.timestamp_;
}

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

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

  if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
    delete _impl_.entityidentifier_;
  }
  _impl_.entityidentifier_ = nullptr;
  if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) {
    delete _impl_.geocentricposition_;
  }
  _impl_.geocentricposition_ = nullptr;
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(_impl_.esmdata_ != nullptr);
    _impl_.esmdata_->Clear();
  }
  if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
    delete _impl_.timestamp_;
  }
  _impl_.timestamp_ = nullptr;
  if (cached_has_bits & 0x00000006u) {
    ::memset(&_impl_.contactspeed_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&_impl_.contactcourse_) -
        reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.contactcourse_));
  }
  _impl_.trackkind_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* GroundTruthTrack::_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) {
      // uint32 TrackKind = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          _impl_.trackkind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .messages.track.Identifier EntityIdentifier = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional double ContactSpeed = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
          _Internal::set_has_contactspeed(&has_bits);
          _impl_.contactspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // optional double ContactCourse = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41)) {
          _Internal::set_has_contactcourse(&has_bits);
          _impl_.contactcourse_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // optional .messages.track.ESMData ESMData = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_esmdata(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .google.protobuf.Timestamp timestamp = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
          ptr = ctx->ParseMessage(_internal_mutable_timestamp(), 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* GroundTruthTrack::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:messages.track.GroundTruthTrack)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

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

  // .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
  if (this->_internal_has_geocentricposition()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(3, _Internal::geocentricposition(this),
        _Internal::geocentricposition(this).GetCachedSize(), target, stream);
  }

  // optional double ContactSpeed = 4;
  if (_internal_has_contactspeed()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_contactspeed(), target);
  }

  // optional double ContactCourse = 5;
  if (_internal_has_contactcourse()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_contactcourse(), target);
  }

  // optional .messages.track.ESMData ESMData = 6;
  if (_internal_has_esmdata()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::esmdata(this),
        _Internal::esmdata(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp timestamp = 7;
  if (this->_internal_has_timestamp()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(7, _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);
  }
  // @@protoc_insertion_point(serialize_to_array_end:messages.track.GroundTruthTrack)
  return target;
}

size_t GroundTruthTrack::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.track.GroundTruthTrack)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

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

  // .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
  if (this->_internal_has_geocentricposition()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.geocentricposition_);
  }

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

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

  if (cached_has_bits & 0x00000006u) {
    // optional double ContactSpeed = 4;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 + 8;
    }

    // optional double ContactCourse = 5;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 + 8;
    }

  }
  // uint32 TrackKind = 1;
  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 GroundTruthTrack::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    GroundTruthTrack::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GroundTruthTrack::GetClassData() const { return &_class_data_; }


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

  if (from._internal_has_entityidentifier()) {
    _this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
        from._internal_entityidentifier());
  }
  if (from._internal_has_geocentricposition()) {
    _this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
        from._internal_geocentricposition());
  }
  if (from._internal_has_esmdata()) {
    _this->_internal_mutable_esmdata()->::messages::track::ESMData::MergeFrom(
        from._internal_esmdata());
  }
  if (from._internal_has_timestamp()) {
    _this->_internal_mutable_timestamp()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
        from._internal_timestamp());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000006u) {
    if (cached_has_bits & 0x00000002u) {
      _this->_impl_.contactspeed_ = from._impl_.contactspeed_;
    }
    if (cached_has_bits & 0x00000004u) {
      _this->_impl_.contactcourse_ = from._impl_.contactcourse_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  if (from._internal_trackkind() != 0) {
    _this->_internal_set_trackkind(from._internal_trackkind());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void GroundTruthTrack::InternalSwap(GroundTruthTrack* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(GroundTruthTrack, _impl_.trackkind_)
      + sizeof(GroundTruthTrack::_impl_.trackkind_)
      - PROTOBUF_FIELD_OFFSET(GroundTruthTrack, _impl_.entityidentifier_)>(
          reinterpret_cast<char*>(&_impl_.entityidentifier_),
          reinterpret_cast<char*>(&other->_impl_.entityidentifier_));
}

::PROTOBUF_NAMESPACE_ID::Metadata GroundTruthTrack::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_GroundTruthTrack_2eproto_getter, &descriptor_table_GroundTruthTrack_2eproto_once,
      file_level_metadata_GroundTruthTrack_2eproto[0]);
}

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

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