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

#include "SimTrack.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 SimTrack {
PROTOBUF_CONSTEXPR SimTrack::SimTrack(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.contactemissions_)*/{}
  , /*decltype(_impl_.entityidentifier_)*/nullptr
  , /*decltype(_impl_.geocentricposition_)*/nullptr
  , /*decltype(_impl_.contactspeed_)*/0
  , /*decltype(_impl_.contactsourcetype_)*/0u
  , /*decltype(_impl_.contactenvironemnt_)*/0u
  , /*decltype(_impl_.contactcourse_)*/0
  , /*decltype(_impl_.conactpitch_)*/0
  , /*decltype(_impl_.contactrcs_)*/0} {}
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_;
PROTOBUF_CONSTEXPR Emission::Emission(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.identifier_)*/nullptr
  , /*decltype(_impl_.frequency_)*/0
  , /*decltype(_impl_.range_)*/0
  , /*decltype(_impl_.bandwidth_)*/0u
  , /*decltype(_impl_.pulsewidth_)*/0u
  , /*decltype(_impl_.pulserepitition_)*/0u
  , /*decltype(_impl_.radiatedpower_)*/0u
  , /*decltype(_impl_.numberofbeams_)*/0u
  , /*decltype(_impl_.searchinterval_)*/0u} {}
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_;
}  // namespace SimTrack
}  // namespace messages
static ::_pb::Metadata file_level_metadata_SimTrack_2eproto[2];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_SimTrack_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_SimTrack_2eproto = nullptr;

const uint32_t TableStruct_SimTrack_2eproto::offsets[] PROTOBUF_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_
  PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.entityidentifier_),
  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_.contactenvironemnt_),
  PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactrcs_),
  PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactemissions_),
  ~0u,
  ~0u,
  0,
  1,
  3,
  4,
  2,
  5,
  ~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_
  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_),
  ~0u,
  ~0u,
  ~0u,
  ~0u,
  0,
  1,
  2,
  3,
  4,
  5,
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 15, -1, sizeof(::messages::SimTrack::SimTrack)},
  { 24, 40, -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[] PROTOBUF_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\"\330\003\n\010SimTrack\0224\n"
  "\020EntityIdentifier\030\001 \001(\0132\032.messages.track"
  ".Identifier\022\031\n\021ContactSourceType\030\002 \001(\r\022I"
  "\n\022GeocentricPosition\030\003 \001(\0132(.messages.tr"
  "ack.EntityGeocentricPositionH\000\210\001\001\022\031\n\014Con"
  "tactSpeed\030\004 \001(\001H\001\210\001\001\022\032\n\rContactCourse\030\005 "
  "\001(\001H\002\210\001\001\022\030\n\013ConactPitch\030\006 \001(\001H\003\210\001\001\022\037\n\022Co"
  "ntactEnvironemnt\030\007 \001(\rH\004\210\001\001\022\027\n\nContactRC"
  "S\030\010 \001(\001H\005\210\001\001\0225\n\020ContactEmissions\030\t \003(\0132\033"
  ".messages.SimTrack.EmissionB\025\n\023_Geocentr"
  "icPositionB\017\n\r_ContactSpeedB\020\n\016_ContactC"
  "ourseB\016\n\014_ConactPitchB\025\n\023_ContactEnviron"
  "emntB\r\n\013_ContactRCS\"\366\002\n\010Emission\022.\n\nIden"
  "tifier\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\005Ran"
  "ge\030\004 \001(\001\022\026\n\tBandwidth\030\005 \001(\rH\000\210\001\001\022\027\n\npuls"
  "eWidth\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\rn"
  "umberOfBeams\030\t \001(\rH\004\210\001\001\022\033\n\016searchInterva"
  "l\030\n \001(\rH\005\210\001\001B\014\n\n_BandwidthB\r\n\013_pulseWidt"
  "hB\022\n\020_pulseRepititionB\020\n\016_radiatedPowerB"
  "\020\n\016_numberOfBeamsB\021\n\017_searchIntervalb\006pr"
  "oto3"
  ;
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 ::_pbi::once_flag descriptor_table_SimTrack_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_SimTrack_2eproto = {
    false, false, 1004, 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,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SimTrack_2eproto_getter() {
  return &descriptor_table_SimTrack_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_SimTrack_2eproto(&descriptor_table_SimTrack_2eproto);
namespace messages {
namespace SimTrack {

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

class SimTrack::_Internal {
 public:
  using HasBits = decltype(std::declval<SimTrack>()._impl_._has_bits_);
  static const ::messages::track::Identifier& entityidentifier(const SimTrack* msg);
  static const ::messages::track::EntityGeocentricPosition& geocentricposition(const SimTrack* msg);
  static void set_has_geocentricposition(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_contactspeed(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_contactcourse(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_conactpitch(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_contactenvironemnt(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_contactrcs(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
};

const ::messages::track::Identifier&
SimTrack::_Internal::entityidentifier(const SimTrack* msg) {
  return *msg->_impl_.entityidentifier_;
}
const ::messages::track::EntityGeocentricPosition&
SimTrack::_Internal::geocentricposition(const SimTrack* msg) {
  return *msg->_impl_.geocentricposition_;
}
void SimTrack::clear_entityidentifier() {
  if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
    delete _impl_.entityidentifier_;
  }
  _impl_.entityidentifier_ = nullptr;
}
void SimTrack::clear_geocentricposition() {
  if (_impl_.geocentricposition_ != nullptr) _impl_.geocentricposition_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
SimTrack::SimTrack(::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.SimTrack.SimTrack)
}
SimTrack::SimTrack(const SimTrack& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  SimTrack* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.contactemissions_){from._impl_.contactemissions_}
    , decltype(_impl_.entityidentifier_){nullptr}
    , decltype(_impl_.geocentricposition_){nullptr}
    , decltype(_impl_.contactspeed_){}
    , decltype(_impl_.contactsourcetype_){}
    , decltype(_impl_.contactenvironemnt_){}
    , decltype(_impl_.contactcourse_){}
    , decltype(_impl_.conactpitch_){}
    , decltype(_impl_.contactrcs_){}};

  _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_);
  }
  ::memcpy(&_impl_.contactspeed_, &from._impl_.contactspeed_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.contactrcs_) -
    reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.contactrcs_));
  // @@protoc_insertion_point(copy_constructor:messages.SimTrack.SimTrack)
}

inline void SimTrack::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_.contactemissions_){arena}
    , decltype(_impl_.entityidentifier_){nullptr}
    , decltype(_impl_.geocentricposition_){nullptr}
    , decltype(_impl_.contactspeed_){0}
    , decltype(_impl_.contactsourcetype_){0u}
    , decltype(_impl_.contactenvironemnt_){0u}
    , decltype(_impl_.contactcourse_){0}
    , decltype(_impl_.conactpitch_){0}
    , decltype(_impl_.contactrcs_){0}
  };
}

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

inline void SimTrack::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.contactemissions_.~RepeatedPtrField();
  if (this != internal_default_instance()) delete _impl_.entityidentifier_;
  if (this != internal_default_instance()) delete _impl_.geocentricposition_;
}

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

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

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

const char* SimTrack::_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;
      // uint32 ContactSourceType = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          _impl_.contactsourcetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional .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 double ConactPitch = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
          _Internal::set_has_conactpitch(&has_bits);
          _impl_.conactpitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 ContactEnvironemnt = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
          _Internal::set_has_contactenvironemnt(&has_bits);
          _impl_.contactenvironemnt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional double ContactRCS = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65)) {
          _Internal::set_has_contactrcs(&has_bits);
          _impl_.contactrcs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // repeated .messages.SimTrack.Emission ContactEmissions = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_contactemissions(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(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* SimTrack::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:messages.SimTrack.SimTrack)
  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);
  }

  // uint32 ContactSourceType = 2;
  if (this->_internal_contactsourcetype() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_contactsourcetype(), target);
  }

  // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
  if (_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 double ConactPitch = 6;
  if (_internal_has_conactpitch()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_conactpitch(), target);
  }

  // optional uint32 ContactEnvironemnt = 7;
  if (_internal_has_contactenvironemnt()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_contactenvironemnt(), target);
  }

  // optional double ContactRCS = 8;
  if (_internal_has_contactrcs()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_contactrcs(), target);
  }

  // repeated .messages.SimTrack.Emission ContactEmissions = 9;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_contactemissions_size()); i < n; i++) {
    const auto& repfield = this->_internal_contactemissions(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(9, repfield, repfield.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.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 = 9;
  total_size += 1UL * this->_internal_contactemissions_size();
  for (const auto& msg : this->_impl_.contactemissions_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // .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.EntityGeocentricPosition GeocentricPosition = 3;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.geocentricposition_);
    }

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

  }
  // uint32 ContactSourceType = 2;
  if (this->_internal_contactsourcetype() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactsourcetype());
  }

  if (cached_has_bits & 0x0000003cu) {
    // optional uint32 ContactEnvironemnt = 7;
    if (cached_has_bits & 0x00000004u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactenvironemnt());
    }

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

    // optional double ConactPitch = 6;
    if (cached_has_bits & 0x00000010u) {
      total_size += 1 + 8;
    }

    // optional double ContactRCS = 8;
    if (cached_has_bits & 0x00000020u) {
      total_size += 1 + 8;
    }

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

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


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

  _this->_impl_.contactemissions_.MergeFrom(from._impl_.contactemissions_);
  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_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
          from._internal_geocentricposition());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_impl_.contactspeed_ = from._impl_.contactspeed_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  if (from._internal_contactsourcetype() != 0) {
    _this->_internal_set_contactsourcetype(from._internal_contactsourcetype());
  }
  if (cached_has_bits & 0x0000003cu) {
    if (cached_has_bits & 0x00000004u) {
      _this->_impl_.contactenvironemnt_ = from._impl_.contactenvironemnt_;
    }
    if (cached_has_bits & 0x00000008u) {
      _this->_impl_.contactcourse_ = from._impl_.contactcourse_;
    }
    if (cached_has_bits & 0x00000010u) {
      _this->_impl_.conactpitch_ = from._impl_.conactpitch_;
    }
    if (cached_has_bits & 0x00000020u) {
      _this->_impl_.contactrcs_ = from._impl_.contactrcs_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::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);
}

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

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

::PROTOBUF_NAMESPACE_ID::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<Emission>()._impl_._has_bits_);
  static const ::messages::track::Identifier& identifier(const Emission* msg);
  static void set_has_bandwidth(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_pulsewidth(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_pulserepitition(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_radiatedpower(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_numberofbeams(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_searchinterval(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
};

const ::messages::track::Identifier&
Emission::_Internal::identifier(const Emission* msg) {
  return *msg->_impl_.identifier_;
}
void Emission::clear_identifier() {
  if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) {
    delete _impl_.identifier_;
  }
  _impl_.identifier_ = nullptr;
}
Emission::Emission(::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.SimTrack.Emission)
}
Emission::Emission(const Emission& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  Emission* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.name_){}
    , decltype(_impl_.identifier_){nullptr}
    , decltype(_impl_.frequency_){}
    , decltype(_impl_.range_){}
    , decltype(_impl_.bandwidth_){}
    , decltype(_impl_.pulsewidth_){}
    , decltype(_impl_.pulserepitition_){}
    , decltype(_impl_.radiatedpower_){}
    , decltype(_impl_.numberofbeams_){}
    , decltype(_impl_.searchinterval_){}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    _this->_impl_.name_.Set(from._internal_name(), 
      _this->GetArenaForAllocation());
  }
  if (from._internal_has_identifier()) {
    _this->_impl_.identifier_ = new ::messages::track::Identifier(*from._impl_.identifier_);
  }
  ::memcpy(&_impl_.frequency_, &from._impl_.frequency_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.searchinterval_) -
    reinterpret_cast<char*>(&_impl_.frequency_)) + sizeof(_impl_.searchinterval_));
  // @@protoc_insertion_point(copy_constructor:messages.SimTrack.Emission)
}

inline void Emission::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_.name_){}
    , decltype(_impl_.identifier_){nullptr}
    , decltype(_impl_.frequency_){0}
    , decltype(_impl_.range_){0}
    , decltype(_impl_.bandwidth_){0u}
    , decltype(_impl_.pulsewidth_){0u}
    , decltype(_impl_.pulserepitition_){0u}
    , decltype(_impl_.radiatedpower_){0u}
    , decltype(_impl_.numberofbeams_){0u}
    , decltype(_impl_.searchinterval_){0u}
  };
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

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

inline void Emission::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.name_.Destroy();
  if (this != internal_default_instance()) delete _impl_.identifier_;
}

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

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

  _impl_.name_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) {
    delete _impl_.identifier_;
  }
  _impl_.identifier_ = nullptr;
  ::memset(&_impl_.frequency_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&_impl_.range_) -
      reinterpret_cast<char*>(&_impl_.frequency_)) + sizeof(_impl_.range_));
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    ::memset(&_impl_.bandwidth_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&_impl_.searchinterval_) -
        reinterpret_cast<char*>(&_impl_.bandwidth_)) + sizeof(_impl_.searchinterval_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Emission::_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 Identifier = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_identifier(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string name = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "messages.SimTrack.Emission.name"));
        } else
          goto handle_unusual;
        continue;
      // double frequency = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
          _impl_.frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // double Range = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
          _impl_.range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 Bandwidth = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
          _Internal::set_has_bandwidth(&has_bits);
          _impl_.bandwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 pulseWidth = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
          _Internal::set_has_pulsewidth(&has_bits);
          _impl_.pulsewidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 pulseRepitition = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
          _Internal::set_has_pulserepitition(&has_bits);
          _impl_.pulserepitition_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 radiatedPower = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
          _Internal::set_has_radiatedpower(&has_bits);
          _impl_.radiatedpower_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 numberOfBeams = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
          _Internal::set_has_numberofbeams(&has_bits);
          _impl_.numberofbeams_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 searchInterval = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
          _Internal::set_has_searchinterval(&has_bits);
          _impl_.searchinterval_ = ::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:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

  // string name = 2;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "messages.SimTrack.Emission.name");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_name(), 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 (_internal_has_bandwidth()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_bandwidth(), target);
  }

  // optional uint32 pulseWidth = 6;
  if (_internal_has_pulsewidth()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_pulsewidth(), target);
  }

  // optional uint32 pulseRepitition = 7;
  if (_internal_has_pulserepitition()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_pulserepitition(), target);
  }

  // optional uint32 radiatedPower = 8;
  if (_internal_has_radiatedpower()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_radiatedpower(), target);
  }

  // optional uint32 numberOfBeams = 9;
  if (_internal_has_numberofbeams()) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_numberofbeams(), target);
  }

  // optional uint32 searchInterval = 10;
  if (_internal_has_searchinterval()) {
    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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::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 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // .messages.track.Identifier Identifier = 1;
  if (this->_internal_has_identifier()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::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 += 1 + 8;
  }

  // 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 += 1 + 8;
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    // optional uint32 Bandwidth = 5;
    if (cached_has_bits & 0x00000001u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_bandwidth());
    }

    // optional uint32 pulseWidth = 6;
    if (cached_has_bits & 0x00000002u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pulsewidth());
    }

    // optional uint32 pulseRepitition = 7;
    if (cached_has_bits & 0x00000004u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pulserepitition());
    }

    // optional uint32 radiatedPower = 8;
    if (cached_has_bits & 0x00000008u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_radiatedpower());
    }

    // optional uint32 numberOfBeams = 9;
    if (cached_has_bits & 0x00000010u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_numberofbeams());
    }

    // optional uint32 searchInterval = 10;
    if (cached_has_bits & 0x00000020u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_searchinterval());
    }

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

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


void Emission::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<Emission*>(&to_msg);
  auto& from = static_cast<const Emission&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:messages.SimTrack.Emission)
  GOOGLE_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());
  }
  if (from._internal_has_identifier()) {
    _this->_internal_mutable_identifier()->::messages::track::Identifier::MergeFrom(
        from._internal_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->_internal_set_frequency(from._internal_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->_internal_set_range(from._internal_range());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    if (cached_has_bits & 0x00000001u) {
      _this->_impl_.bandwidth_ = from._impl_.bandwidth_;
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_impl_.pulsewidth_ = from._impl_.pulsewidth_;
    }
    if (cached_has_bits & 0x00000004u) {
      _this->_impl_.pulserepitition_ = from._impl_.pulserepitition_;
    }
    if (cached_has_bits & 0x00000008u) {
      _this->_impl_.radiatedpower_ = from._impl_.radiatedpower_;
    }
    if (cached_has_bits & 0x00000010u) {
      _this->_impl_.numberofbeams_ = from._impl_.numberofbeams_;
    }
    if (cached_has_bits & 0x00000020u) {
      _this->_impl_.searchinterval_ = from._impl_.searchinterval_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::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);
}

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

void Emission::InternalSwap(Emission* 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_.name_, lhs_arena,
      &other->_impl_.name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Emission, _impl_.searchinterval_)
      + sizeof(Emission::_impl_.searchinterval_)
      - PROTOBUF_FIELD_OFFSET(Emission, _impl_.identifier_)>(
          reinterpret_cast<char*>(&_impl_.identifier_),
          reinterpret_cast<char*>(&other->_impl_.identifier_));
}

::PROTOBUF_NAMESPACE_ID::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
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::SimTrack::SimTrack*
Arena::CreateMaybeMessage< ::messages::SimTrack::SimTrack >(Arena* arena) {
  return Arena::CreateMessageInternal< ::messages::SimTrack::SimTrack >(arena);
}
template<> PROTOBUF_NOINLINE ::messages::SimTrack::Emission*
Arena::CreateMaybeMessage< ::messages::SimTrack::Emission >(Arena* arena) {
  return Arena::CreateMessageInternal< ::messages::SimTrack::Emission >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

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