// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: slots.proto
// Protobuf C++ Version: 6.33.6

#include "slots.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.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)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;

inline constexpr SensorSlot::Impl_::Impl_(
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        sensorbin_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        sensordtoverlay_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        tuningbinary_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        index_{0},
        position_{0},
        mountangle_{0} {}

template <typename>
PROTOBUF_CONSTEXPR SensorSlot::SensorSlot(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(SensorSlot_class_data_.base()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(::_pbi::ConstantInitialized()) {
}
struct SensorSlotDefaultTypeInternal {
  PROTOBUF_CONSTEXPR SensorSlotDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~SensorSlotDefaultTypeInternal() {}
  union {
    SensorSlot _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorSlotDefaultTypeInternal _SensorSlot_default_instance_;

inline constexpr SensorConfig::Impl_::Impl_(
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        slots_{},
        version_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
PROTOBUF_CONSTEXPR SensorConfig::SensorConfig(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(SensorConfig_class_data_.base()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(::_pbi::ConstantInitialized()) {
}
struct SensorConfigDefaultTypeInternal {
  PROTOBUF_CONSTEXPR SensorConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~SensorConfigDefaultTypeInternal() {}
  union {
    SensorConfig _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SensorConfigDefaultTypeInternal _SensorConfig_default_instance_;
static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_enum_descriptors_slots_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_service_descriptors_slots_2eproto = nullptr;
const ::uint32_t
    TableStruct_slots_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
        protodesc_cold) = {
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::SensorConfig, _impl_._has_bits_),
        5, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::SensorConfig, _impl_.version_),
        PROTOBUF_FIELD_OFFSET(::SensorConfig, _impl_.slots_),
        1,
        0,
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_._has_bits_),
        10, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.index_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.name_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.sensorbin_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.sensordtoverlay_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.tuningbinary_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.position_),
        PROTOBUF_FIELD_OFFSET(::SensorSlot, _impl_.mountangle_),
        4,
        0,
        1,
        2,
        3,
        5,
        6,
};

static const ::_pbi::MigrationSchema
    schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
        {0, sizeof(::SensorConfig)},
        {7, sizeof(::SensorSlot)},
};
static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
    &::_SensorConfig_default_instance_._instance,
    &::_SensorSlot_default_instance_._instance,
};
const char descriptor_table_protodef_slots_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
    protodesc_cold) = {
    "\n\013slots.proto\";\n\014SensorConfig\022\017\n\007version"
    "\030\001 \001(\t\022\032\n\005slots\030\002 \003(\0132\013.SensorSlot\"\221\001\n\nS"
    "ensorSlot\022\r\n\005index\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\021"
    "\n\tsensorbin\030\003 \001(\t\022\027\n\017sensordtoverlay\030\004 \001"
    "(\t\022\024\n\014tuningbinary\030\005 \001(\t\022\020\n\010position\030\006 \001"
    "(\005\022\022\n\nmountAngle\030\007 \001(\005b\006proto3"
};
static ::absl::once_flag descriptor_table_slots_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_slots_2eproto = {
    false,
    false,
    230,
    descriptor_table_protodef_slots_2eproto,
    "slots.proto",
    &descriptor_table_slots_2eproto_once,
    nullptr,
    0,
    2,
    schemas,
    file_default_instances,
    TableStruct_slots_2eproto::offsets,
    file_level_enum_descriptors_slots_2eproto,
    file_level_service_descriptors_slots_2eproto,
};
// ===================================================================

class SensorConfig::_Internal {
 public:
  using HasBits =
      decltype(::std::declval<SensorConfig>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_._has_bits_);
};

SensorConfig::SensorConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, SensorConfig_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:SensorConfig)
}
PROTOBUF_NDEBUG_INLINE SensorConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::SensorConfig& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        slots_{visibility, arena, from.slots_},
        version_(arena, from.version_) {}

SensorConfig::SensorConfig(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const SensorConfig& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, SensorConfig_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SensorConfig* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:SensorConfig)
}
PROTOBUF_NDEBUG_INLINE SensorConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        slots_{visibility, arena},
        version_(arena) {}

inline void SensorConfig::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
SensorConfig::~SensorConfig() {
  // @@protoc_insertion_point(destructor:SensorConfig)
  SharedDtor(*this);
}
inline void SensorConfig::SharedDtor(MessageLite& self) {
  SensorConfig& this_ = static_cast<SensorConfig&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.version_.Destroy();
  this_._impl_.~Impl_();
}

inline void* PROTOBUF_NONNULL SensorConfig::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) SensorConfig(arena);
}
constexpr auto SensorConfig::InternalNewImpl_() {
  constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
      PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_.slots_) +
          decltype(SensorConfig::_impl_.slots_)::
              InternalGetArenaOffset(
                  ::google::protobuf::Message::internal_visibility()),
  });
  if (arena_bits.has_value()) {
    return ::google::protobuf::internal::MessageCreator::CopyInit(
        sizeof(SensorConfig), alignof(SensorConfig), *arena_bits);
  } else {
    return ::google::protobuf::internal::MessageCreator(&SensorConfig::PlacementNew_,
                                 sizeof(SensorConfig),
                                 alignof(SensorConfig));
  }
}
constexpr auto SensorConfig::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_SensorConfig_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &SensorConfig::MergeImpl,
          ::google::protobuf::Message::GetNewImpl<SensorConfig>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &SensorConfig::SharedDtor,
          ::google::protobuf::Message::GetClearImpl<SensorConfig>(), &SensorConfig::ByteSizeLong,
              &SensorConfig::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_._cached_size_),
          false,
      },
      &SensorConfig::kDescriptorMethods,
      &descriptor_table_slots_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull SensorConfig_class_data_ =
        SensorConfig::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SensorConfig::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&SensorConfig_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(SensorConfig_class_data_.tc_table);
  return SensorConfig_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 28, 2>
SensorConfig::_table_ = {
  {
    PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_._has_bits_),
    0, // no _extensions_
    2, 8,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294967292,  // skipmap
    offsetof(decltype(_table_), field_entries),
    2,  // num_field_entries
    1,  // num_aux_entries
    offsetof(decltype(_table_), aux_entries),
    SensorConfig_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::SensorConfig>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    // repeated .SensorSlot slots = 2;
    {::_pbi::TcParser::FastMtR1,
     {18, 0, 0,
      PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_.slots_)}},
    // string version = 1;
    {::_pbi::TcParser::FastUS1,
     {10, 1, 0,
      PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_.version_)}},
  }}, {{
    65535, 65535
  }}, {{
    // string version = 1;
    {PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // repeated .SensorSlot slots = 2;
    {PROTOBUF_FIELD_OFFSET(SensorConfig, _impl_.slots_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  }},
  {{
      {::_pbi::TcParser::GetTable<::SensorSlot>()},
  }},
  {{
    "\14\7\0\0\0\0\0\0"
    "SensorConfig"
    "version"
  }},
};
PROTOBUF_NOINLINE void SensorConfig::Clear() {
// @@protoc_insertion_point(message_clear_start:SensorConfig)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      _impl_.slots_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.version_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SensorConfig::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const SensorConfig& this_ = static_cast<const SensorConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SensorConfig::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const SensorConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:SensorConfig)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // string version = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_version().empty()) {
      const ::std::string& _s = this_._internal_version();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "SensorConfig.version");
      target = stream->WriteStringMaybeAliased(1, _s, target);
    }
  }

  // repeated .SensorSlot slots = 2;
  if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_slots_size());
         i < n; i++) {
      const auto& repfield = this_._internal_slots().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:SensorConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SensorConfig::ByteSizeLong(const MessageLite& base) {
  const SensorConfig& this_ = static_cast<const SensorConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SensorConfig::ByteSizeLong() const {
  const SensorConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:SensorConfig)
  ::size_t total_size = 0;

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .SensorSlot slots = 2;
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_slots_size();
      for (const auto& msg : this_._internal_slots()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_version().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_version());
      }
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void SensorConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                            const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this =
      static_cast<SensorConfig*>(&to_msg);
  auto& from = static_cast<const SensorConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:SensorConfig)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_slots()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_slots());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_version().empty()) {
        _this->_internal_set_version(from._internal_version());
      } else {
        if (_this->_impl_.version_.IsDefault()) {
          _this->_internal_set_version("");
        }
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

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


void SensorConfig::InternalSwap(SensorConfig* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.slots_.InternalSwap(&other->_impl_.slots_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena);
}

::google::protobuf::Metadata SensorConfig::GetMetadata() const {
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================

class SensorSlot::_Internal {
 public:
  using HasBits =
      decltype(::std::declval<SensorSlot>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_._has_bits_);
};

SensorSlot::SensorSlot(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, SensorSlot_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:SensorSlot)
}
PROTOBUF_NDEBUG_INLINE SensorSlot::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::SensorSlot& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        name_(arena, from.name_),
        sensorbin_(arena, from.sensorbin_),
        sensordtoverlay_(arena, from.sensordtoverlay_),
        tuningbinary_(arena, from.tuningbinary_) {}

SensorSlot::SensorSlot(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const SensorSlot& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, SensorSlot_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SensorSlot* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, index_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, index_),
           offsetof(Impl_, mountangle_) -
               offsetof(Impl_, index_) +
               sizeof(Impl_::mountangle_));

  // @@protoc_insertion_point(copy_constructor:SensorSlot)
}
PROTOBUF_NDEBUG_INLINE SensorSlot::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        name_(arena),
        sensorbin_(arena),
        sensordtoverlay_(arena),
        tuningbinary_(arena) {}

inline void SensorSlot::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, index_),
           0,
           offsetof(Impl_, mountangle_) -
               offsetof(Impl_, index_) +
               sizeof(Impl_::mountangle_));
}
SensorSlot::~SensorSlot() {
  // @@protoc_insertion_point(destructor:SensorSlot)
  SharedDtor(*this);
}
inline void SensorSlot::SharedDtor(MessageLite& self) {
  SensorSlot& this_ = static_cast<SensorSlot&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.name_.Destroy();
  this_._impl_.sensorbin_.Destroy();
  this_._impl_.sensordtoverlay_.Destroy();
  this_._impl_.tuningbinary_.Destroy();
  this_._impl_.~Impl_();
}

inline void* PROTOBUF_NONNULL SensorSlot::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) SensorSlot(arena);
}
constexpr auto SensorSlot::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SensorSlot),
                                            alignof(SensorSlot));
}
constexpr auto SensorSlot::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_SensorSlot_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &SensorSlot::MergeImpl,
          ::google::protobuf::Message::GetNewImpl<SensorSlot>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &SensorSlot::SharedDtor,
          ::google::protobuf::Message::GetClearImpl<SensorSlot>(), &SensorSlot::ByteSizeLong,
              &SensorSlot::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_._cached_size_),
          false,
      },
      &SensorSlot::kDescriptorMethods,
      &descriptor_table_slots_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull SensorSlot_class_data_ =
        SensorSlot::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SensorSlot::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&SensorSlot_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(SensorSlot_class_data_.tc_table);
  return SensorSlot_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 7, 0, 59, 2>
SensorSlot::_table_ = {
  {
    PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_._has_bits_),
    0, // no _extensions_
    7, 56,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294967168,  // skipmap
    offsetof(decltype(_table_), field_entries),
    7,  // num_field_entries
    0,  // num_aux_entries
    offsetof(decltype(_table_), field_names),  // no aux_entries
    SensorSlot_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::SensorSlot>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    {::_pbi::TcParser::MiniParse, {}},
    // int32 index = 1;
    {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SensorSlot, _impl_.index_), 4>(),
     {8, 4, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.index_)}},
    // string name = 2;
    {::_pbi::TcParser::FastUS1,
     {18, 0, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.name_)}},
    // string sensorbin = 3;
    {::_pbi::TcParser::FastUS1,
     {26, 1, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.sensorbin_)}},
    // string sensordtoverlay = 4;
    {::_pbi::TcParser::FastUS1,
     {34, 2, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.sensordtoverlay_)}},
    // string tuningbinary = 5;
    {::_pbi::TcParser::FastUS1,
     {42, 3, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.tuningbinary_)}},
    // int32 position = 6;
    {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SensorSlot, _impl_.position_), 5>(),
     {48, 5, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.position_)}},
    // int32 mountAngle = 7;
    {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SensorSlot, _impl_.mountangle_), 6>(),
     {56, 6, 0,
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.mountangle_)}},
  }}, {{
    65535, 65535
  }}, {{
    // int32 index = 1;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.index_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    // string name = 2;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // string sensorbin = 3;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.sensorbin_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // string sensordtoverlay = 4;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.sensordtoverlay_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // string tuningbinary = 5;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.tuningbinary_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // int32 position = 6;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.position_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    // int32 mountAngle = 7;
    {PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.mountangle_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
  }},
  // no aux_entries
  {{
    "\12\0\4\11\17\14\0\0"
    "SensorSlot"
    "name"
    "sensorbin"
    "sensordtoverlay"
    "tuningbinary"
  }},
};
PROTOBUF_NOINLINE void SensorSlot::Clear() {
// @@protoc_insertion_point(message_clear_start:SensorSlot)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.sensorbin_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.sensordtoverlay_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.tuningbinary_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) {
    ::memset(&_impl_.index_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.mountangle_) -
        reinterpret_cast<char*>(&_impl_.index_)) + sizeof(_impl_.mountangle_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL SensorSlot::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const SensorSlot& this_ = static_cast<const SensorSlot&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL SensorSlot::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const SensorSlot& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:SensorSlot)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // int32 index = 1;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (this_._internal_index() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
              stream, this_._internal_index(), target);
    }
  }

  // string name = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_name().empty()) {
      const ::std::string& _s = this_._internal_name();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "SensorSlot.name");
      target = stream->WriteStringMaybeAliased(2, _s, target);
    }
  }

  // string sensorbin = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_sensorbin().empty()) {
      const ::std::string& _s = this_._internal_sensorbin();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "SensorSlot.sensorbin");
      target = stream->WriteStringMaybeAliased(3, _s, target);
    }
  }

  // string sensordtoverlay = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_sensordtoverlay().empty()) {
      const ::std::string& _s = this_._internal_sensordtoverlay();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "SensorSlot.sensordtoverlay");
      target = stream->WriteStringMaybeAliased(4, _s, target);
    }
  }

  // string tuningbinary = 5;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (!this_._internal_tuningbinary().empty()) {
      const ::std::string& _s = this_._internal_tuningbinary();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "SensorSlot.tuningbinary");
      target = stream->WriteStringMaybeAliased(5, _s, target);
    }
  }

  // int32 position = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (this_._internal_position() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
              stream, this_._internal_position(), target);
    }
  }

  // int32 mountAngle = 7;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    if (this_._internal_mountangle() != 0) {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
              stream, this_._internal_mountangle(), target);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:SensorSlot)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SensorSlot::ByteSizeLong(const MessageLite& base) {
  const SensorSlot& this_ = static_cast<const SensorSlot&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SensorSlot::ByteSizeLong() const {
  const SensorSlot& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:SensorSlot)
  ::size_t total_size = 0;

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    // string name = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_name().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_name());
      }
    }
    // string sensorbin = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_sensorbin().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_sensorbin());
      }
    }
    // string sensordtoverlay = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!this_._internal_sensordtoverlay().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_sensordtoverlay());
      }
    }
    // string tuningbinary = 5;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (!this_._internal_tuningbinary().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_tuningbinary());
      }
    }
    // int32 index = 1;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (this_._internal_index() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_index());
      }
    }
    // int32 position = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_position() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_position());
      }
    }
    // int32 mountAngle = 7;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (this_._internal_mountangle() != 0) {
        total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
            this_._internal_mountangle());
      }
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void SensorSlot::MergeImpl(::google::protobuf::MessageLite& to_msg,
                            const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this =
      static_cast<SensorSlot*>(&to_msg);
  auto& from = static_cast<const SensorSlot&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:SensorSlot)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!from._internal_name().empty()) {
        _this->_internal_set_name(from._internal_name());
      } else {
        if (_this->_impl_.name_.IsDefault()) {
          _this->_internal_set_name("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_sensorbin().empty()) {
        _this->_internal_set_sensorbin(from._internal_sensorbin());
      } else {
        if (_this->_impl_.sensorbin_.IsDefault()) {
          _this->_internal_set_sensorbin("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (!from._internal_sensordtoverlay().empty()) {
        _this->_internal_set_sensordtoverlay(from._internal_sensordtoverlay());
      } else {
        if (_this->_impl_.sensordtoverlay_.IsDefault()) {
          _this->_internal_set_sensordtoverlay("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (!from._internal_tuningbinary().empty()) {
        _this->_internal_set_tuningbinary(from._internal_tuningbinary());
      } else {
        if (_this->_impl_.tuningbinary_.IsDefault()) {
          _this->_internal_set_tuningbinary("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (from._internal_index() != 0) {
        _this->_impl_.index_ = from._impl_.index_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_position() != 0) {
        _this->_impl_.position_ = from._impl_.position_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (from._internal_mountangle() != 0) {
        _this->_impl_.mountangle_ = from._impl_.mountangle_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

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


void SensorSlot::InternalSwap(SensorSlot* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sensorbin_, &other->_impl_.sensorbin_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sensordtoverlay_, &other->_impl_.sensordtoverlay_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tuningbinary_, &other->_impl_.tuningbinary_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.mountangle_)
      + sizeof(SensorSlot::_impl_.mountangle_)
      - PROTOBUF_FIELD_OFFSET(SensorSlot, _impl_.index_)>(
          reinterpret_cast<char*>(&_impl_.index_),
          reinterpret_cast<char*>(&other->_impl_.index_));
}

::google::protobuf::Metadata SensorSlot::GetMetadata() const {
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// @@protoc_insertion_point(namespace_scope)
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
    _static_init2_ [[maybe_unused]] =
        (::_pbi::AddDescriptors(&descriptor_table_slots_2eproto),
         ::std::false_type{});
#include "google/protobuf/port_undef.inc"
