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

#include "nn_classifier.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/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.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;
namespace assist_ranker {
class FloatVector::_Internal {
 public:
  using HasBits = decltype(::std::declval<FloatVector>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._has_bits_);
};

constexpr FloatVector::ParseTableT_ FloatVector::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::assist_ranker::FloatVector>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated float values = 1;
      {::_pbi::TcParser::FastF32R1,
       {13, 0, 0,
        PROTOBUF_FIELD_OFFSET(FloatVector, _impl_.values_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated float values = 1;
      {PROTOBUF_FIELD_OFFSET(FloatVector, _impl_.values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr FloatVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        values_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::FloatVector,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::FloatVector, _impl_.values_)>()
         }
     {}

template <typename>
constexpr FloatVector::FloatVector(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL FloatVector::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) FloatVector(arena);
}
constexpr auto FloatVector::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FloatVector), alignof(FloatVector));
}
constexpr auto FloatVector::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &FloatVector::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<FloatVector>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &FloatVector::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<FloatVector>(), &FloatVector::ByteSizeLong,
              &FloatVector::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._cached_size_),
          true,
      },
      "assist_ranker.FloatVector",
  };
}
struct FloatVectorGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr FloatVectorGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 FloatVector_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(FloatVector::InternalGenerateClassData_(
            _default, &FloatVector_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<FloatVector>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~FloatVectorGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) FloatVector _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<FloatVector>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(FloatVectorGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST FloatVectorGlobalsTypeInternal FloatVector_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* FloatVector_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return FloatVector_globals_.GetClassData();
#else
  return FloatVector_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NNLayer::_Internal {
 public:
  using HasBits = decltype(::std::declval<NNLayer>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NNLayer, _impl_._has_bits_);
};

constexpr NNLayer::ParseTableT_ NNLayer::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NNLayer, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::assist_ranker::NNLayer>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .assist_ranker.FloatVector biases = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(NNLayer, _impl_.biases_)}},
      // repeated .assist_ranker.FloatVector weights = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NNLayer, _impl_.weights_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .assist_ranker.FloatVector weights = 1;
      {PROTOBUF_FIELD_OFFSET(NNLayer, _impl_.weights_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .assist_ranker.FloatVector biases = 2;
      {PROTOBUF_FIELD_OFFSET(NNLayer, _impl_.biases_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::FloatVector>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::FloatVector_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::FloatVector>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::FloatVector_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NNLayer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        weights_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::NNLayer,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::NNLayer, _impl_.weights_)>()
         }
        ,
        biases_{nullptr} {}

template <typename>
constexpr NNLayer::NNLayer(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NNLayer::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NNLayer(arena);
}
constexpr auto NNLayer::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NNLayer), alignof(NNLayer));
}
constexpr auto NNLayer::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NNLayer::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NNLayer>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NNLayer::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NNLayer>(), &NNLayer::ByteSizeLong,
              &NNLayer::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NNLayer, _impl_._cached_size_),
          true,
      },
      "assist_ranker.NNLayer",
  };
}
struct NNLayerGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NNLayerGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NNLayer_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NNLayer::InternalGenerateClassData_(
            _default, &NNLayer_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NNLayer>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NNLayerGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NNLayer _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NNLayer>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NNLayerGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NNLayerGlobalsTypeInternal NNLayer_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NNLayer_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NNLayer_globals_.GetClassData();
#else
  return NNLayer_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class NNClassifierModel::_Internal {
 public:
  using HasBits = decltype(::std::declval<NNClassifierModel>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_._has_bits_);
};

constexpr NNClassifierModel::ParseTableT_ NNClassifierModel::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::assist_ranker::NNClassifierModel>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .assist_ranker.NNLayer hidden_layer = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.hidden_layer_)}},
      // optional .assist_ranker.NNLayer logits_layer = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.logits_layer_)}},
      // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.preprocessor_config_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .assist_ranker.NNLayer hidden_layer = 1;
      {PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.hidden_layer_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .assist_ranker.NNLayer logits_layer = 2;
      {PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.logits_layer_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
      {PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.preprocessor_config_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::NNLayer>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::NNLayer_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::NNLayer>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::NNLayer_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::ExamplePreprocessorConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::ExamplePreprocessorConfig_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NNClassifierModel::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        hidden_layer_{nullptr},
        logits_layer_{nullptr},
        preprocessor_config_{nullptr} {}

template <typename>
constexpr NNClassifierModel::NNClassifierModel(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL NNClassifierModel::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) NNClassifierModel(arena);
}
constexpr auto NNClassifierModel::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(NNClassifierModel), alignof(NNClassifierModel));
}
constexpr auto NNClassifierModel::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &NNClassifierModel::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<NNClassifierModel>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &NNClassifierModel::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<NNClassifierModel>(), &NNClassifierModel::ByteSizeLong,
              &NNClassifierModel::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_._cached_size_),
          true,
      },
      "assist_ranker.NNClassifierModel",
  };
}
struct NNClassifierModelGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr NNClassifierModelGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 NNClassifierModel_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(NNClassifierModel::InternalGenerateClassData_(
            _default, &NNClassifierModel_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<NNClassifierModel>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~NNClassifierModelGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) NNClassifierModel _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<NNClassifierModel>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(NNClassifierModelGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NNClassifierModelGlobalsTypeInternal NNClassifierModel_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NNClassifierModel_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NNClassifierModel_globals_.GetClassData();
#else
  return NNClassifierModel_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace assist_ranker
namespace assist_ranker {
// ===================================================================

FloatVector::FloatVector(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FloatVector_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.FloatVector)
}
PROTOBUF_NDEBUG_INLINE FloatVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::assist_ranker::FloatVector& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        values_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::FloatVector,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::FloatVector, _impl_.values_)>()
          , from.values_
        }
     {}

FloatVector::FloatVector(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const FloatVector& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FloatVector_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  FloatVector* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:assist_ranker.FloatVector)
}
PROTOBUF_NDEBUG_INLINE FloatVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        values_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::FloatVector,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::FloatVector, _impl_.values_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FloatVector_class_data_ =
    FloatVector::InternalGenerateClassData_(FloatVector_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FloatVector::GetClassData() const {
  return FloatVector_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FloatVector::GetClassData() const {
  return FloatVector_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FloatVector::ParseTableT_
    FloatVector::_table_ =
        FloatVector::InternalGenerateParseTable_(FloatVector_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FloatVector::Clear() {
// @@protoc_insertion_point(message_clear_start:assist_ranker.FloatVector)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.values_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated float values = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_values_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          1, this_._internal_values().Get(i), target);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:assist_ranker.FloatVector)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FloatVector::ByteSizeLong(const MessageLite& base) {
  const FloatVector& this_ = static_cast<const FloatVector&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FloatVector::ByteSizeLong() const {
  const FloatVector& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.FloatVector)
  ::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_);
   {
    // repeated float values = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_values_size());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_values_size());
      total_size += tag_size + data_size;
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_values()->MergeFrom(from._internal_values());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void FloatVector::InternalSwap(FloatVector* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.values_.InternalSwap(&other->_impl_.values_);
}

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

NNLayer::NNLayer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NNLayer_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.NNLayer)
}
PROTOBUF_NDEBUG_INLINE NNLayer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::assist_ranker::NNLayer& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        weights_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::NNLayer,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::NNLayer, _impl_.weights_)>()
          , from.weights_
        }
     {}

NNLayer::NNLayer(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NNLayer& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NNLayer_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NNLayer* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.biases_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.biases_)
                : nullptr;

  // @@protoc_insertion_point(copy_constructor:assist_ranker.NNLayer)
}
PROTOBUF_NDEBUG_INLINE NNLayer::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        weights_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::NNLayer,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::NNLayer, _impl_.weights_)>()
         }
     {}

inline void NNLayer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.biases_ = {};
}
NNLayer::~NNLayer() {
  // @@protoc_insertion_point(destructor:assist_ranker.NNLayer)
  SharedDtor(*this);
}
inline void NNLayer::SharedDtor(MessageLite& self) {
  NNLayer& this_ = static_cast<NNLayer&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  delete this_._impl_.biases_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NNLayer_class_data_ =
    NNLayer::InternalGenerateClassData_(NNLayer_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NNLayer::GetClassData() const {
  return NNLayer_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NNLayer::GetClassData() const {
  return NNLayer_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NNLayer::ParseTableT_
    NNLayer::_table_ =
        NNLayer::InternalGenerateParseTable_(NNLayer_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NNLayer::Clear() {
// @@protoc_insertion_point(message_clear_start:assist_ranker.NNLayer)
  ::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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.weights_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.biases_ != nullptr);
      _impl_.biases_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .assist_ranker.FloatVector weights = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_weights_size());
         i < n; i++) {
      const auto& repfield = this_._internal_weights().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .assist_ranker.FloatVector biases = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.biases_, this_._impl_.biases_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:assist_ranker.NNLayer)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NNLayer::ByteSizeLong(const MessageLite& base) {
  const NNLayer& this_ = static_cast<const NNLayer&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NNLayer::ByteSizeLong() const {
  const NNLayer& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.NNLayer)
  ::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 .assist_ranker.FloatVector weights = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_weights_size();
      for (const auto& msg : this_._internal_weights()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional .assist_ranker.FloatVector biases = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.biases_);
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void NNLayer::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NNLayer*>(&to_msg);
  auto& from = static_cast<const NNLayer&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.NNLayer)
  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 (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_weights()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_weights());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.biases_ != nullptr);
      if (_this->_impl_.biases_ == nullptr) {
        _this->_impl_.biases_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.biases_);
      } else {
        _this->_impl_.biases_->MergeFrom(*from._impl_.biases_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NNLayer::InternalSwap(NNLayer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.weights_.InternalSwap(&other->_impl_.weights_);
  swap(_impl_.biases_, other->_impl_.biases_);
}

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

void NNClassifierModel::clear_preprocessor_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.preprocessor_config_ != nullptr) _impl_.preprocessor_config_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
NNClassifierModel::NNClassifierModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NNClassifierModel_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.NNClassifierModel)
}
PROTOBUF_NDEBUG_INLINE NNClassifierModel::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::assist_ranker::NNClassifierModel& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

NNClassifierModel::NNClassifierModel(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const NNClassifierModel& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NNClassifierModel_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NNClassifierModel* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  _impl_.hidden_layer_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hidden_layer_)
                : nullptr;
  _impl_.logits_layer_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.logits_layer_)
                : nullptr;
  _impl_.preprocessor_config_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preprocessor_config_)
                : nullptr;

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

inline void NNClassifierModel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, hidden_layer_),
           0,
           offsetof(Impl_, preprocessor_config_) -
               offsetof(Impl_, hidden_layer_) +
               sizeof(Impl_::preprocessor_config_));
}
NNClassifierModel::~NNClassifierModel() {
  // @@protoc_insertion_point(destructor:assist_ranker.NNClassifierModel)
  SharedDtor(*this);
}
inline void NNClassifierModel::SharedDtor(MessageLite& self) {
  NNClassifierModel& this_ = static_cast<NNClassifierModel&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  delete this_._impl_.hidden_layer_;
  delete this_._impl_.logits_layer_;
  delete this_._impl_.preprocessor_config_;
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NNClassifierModel_class_data_ =
    NNClassifierModel::InternalGenerateClassData_(NNClassifierModel_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NNClassifierModel::GetClassData() const {
  return NNClassifierModel_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NNClassifierModel::GetClassData() const {
  return NNClassifierModel_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NNClassifierModel::ParseTableT_
    NNClassifierModel::_table_ =
        NNClassifierModel::InternalGenerateParseTable_(NNClassifierModel_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NNClassifierModel::Clear() {
// @@protoc_insertion_point(message_clear_start:assist_ranker.NNClassifierModel)
  ::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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.hidden_layer_ != nullptr);
      _impl_.hidden_layer_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.logits_layer_ != nullptr);
      _impl_.logits_layer_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.preprocessor_config_ != nullptr);
      _impl_.preprocessor_config_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .assist_ranker.NNLayer hidden_layer = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.hidden_layer_, this_._impl_.hidden_layer_->GetCachedSize(), target,
        stream);
  }

  // optional .assist_ranker.NNLayer logits_layer = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.logits_layer_, this_._impl_.logits_layer_->GetCachedSize(), target,
        stream);
  }

  // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.preprocessor_config_, this_._impl_.preprocessor_config_->GetCachedSize(), target,
        stream);
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:assist_ranker.NNClassifierModel)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NNClassifierModel::ByteSizeLong(const MessageLite& base) {
  const NNClassifierModel& this_ = static_cast<const NNClassifierModel&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NNClassifierModel::ByteSizeLong() const {
  const NNClassifierModel& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.NNClassifierModel)
  ::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, 0x00000007U)) {
    // optional .assist_ranker.NNLayer hidden_layer = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.hidden_layer_);
    }
    // optional .assist_ranker.NNLayer logits_layer = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.logits_layer_);
    }
    // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.preprocessor_config_);
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void NNClassifierModel::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NNClassifierModel*>(&to_msg);
  auto& from = static_cast<const NNClassifierModel&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.NNClassifierModel)
  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, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.hidden_layer_ != nullptr);
      if (_this->_impl_.hidden_layer_ == nullptr) {
        _this->_impl_.hidden_layer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.hidden_layer_);
      } else {
        _this->_impl_.hidden_layer_->MergeFrom(*from._impl_.hidden_layer_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.logits_layer_ != nullptr);
      if (_this->_impl_.logits_layer_ == nullptr) {
        _this->_impl_.logits_layer_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.logits_layer_);
      } else {
        _this->_impl_.logits_layer_->MergeFrom(*from._impl_.logits_layer_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.preprocessor_config_ != nullptr);
      if (_this->_impl_.preprocessor_config_ == nullptr) {
        _this->_impl_.preprocessor_config_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preprocessor_config_);
      } else {
        _this->_impl_.preprocessor_config_->MergeFrom(*from._impl_.preprocessor_config_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NNClassifierModel::InternalSwap(NNClassifierModel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.preprocessor_config_)
      + sizeof(NNClassifierModel::_impl_.preprocessor_config_)
      - PROTOBUF_FIELD_OFFSET(NNClassifierModel, _impl_.hidden_layer_)>(
          reinterpret_cast<char*>(&_impl_.hidden_layer_),
          reinterpret_cast<char*>(&other->_impl_.hidden_layer_));
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace assist_ranker
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
