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

#include "generic_logistic_regression_model.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 BucketizedWeights::_Internal {
 public:
  using HasBits = decltype(::std::declval<BucketizedWeights>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_._has_bits_);
};

constexpr BucketizedWeights::ParseTableT_ BucketizedWeights::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(BucketizedWeights, _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
      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::BucketizedWeights>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated float boundaries = 1 [packed = true];
      {::_pbi::TcParser::FastF32P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.boundaries_)}},
      // repeated float weights = 2 [packed = true];
      {::_pbi::TcParser::FastF32P1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.weights_)}},
      // optional float default_weight = 3;
      {::_pbi::TcParser::FastF32S1,
       {29, 2, 0,
        PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.default_weight_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated float boundaries = 1 [packed = true];
      {PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.boundaries_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
      // repeated float weights = 2 [packed = true];
      {PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.weights_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
      // optional float default_weight = 3;
      {PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_.default_weight_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

template <typename>
constexpr BucketizedWeights::BucketizedWeights(::_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 BucketizedWeights::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) BucketizedWeights(arena);
}
constexpr auto BucketizedWeights::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(BucketizedWeights), alignof(BucketizedWeights));
}
constexpr auto BucketizedWeights::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
          &BucketizedWeights::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<BucketizedWeights>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &BucketizedWeights::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<BucketizedWeights>(), &BucketizedWeights::ByteSizeLong,
              &BucketizedWeights::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(BucketizedWeights, _impl_._cached_size_),
          true,
      },
      "assist_ranker.BucketizedWeights",
  };
}
struct BucketizedWeightsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr BucketizedWeightsGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 BucketizedWeights_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(BucketizedWeights::InternalGenerateClassData_(
            _default, &BucketizedWeights_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<BucketizedWeights>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~BucketizedWeightsGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) BucketizedWeights _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<BucketizedWeights>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(BucketizedWeightsGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr SparseWeights::ParseTableT_ SparseWeights::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SparseWeights, _impl_._has_bits_),
      0, // no _extensions_
      2, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      1,  // 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::SparseWeights>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional float default_weight = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 0, 0,
        PROTOBUF_FIELD_OFFSET(SparseWeights, _impl_.default_weight_)}},
    }}, {{
      65535, 65535
    }}, {{
      // map<string, float> weights = 1;
      {PROTOBUF_FIELD_OFFSET(SparseWeights, _impl_.weights_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // optional float default_weight = 2;
      {PROTOBUF_FIELD_OFFSET(SparseWeights, _impl_.default_weight_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 2, 1)},
    }},
    {{
    }},
  };
}


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

template <typename>
constexpr SparseWeights::SparseWeights(::_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 SparseWeights::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) SparseWeights(arena);
}
constexpr auto SparseWeights::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SparseWeights), alignof(SparseWeights));
}
constexpr auto SparseWeights::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
          &SparseWeights::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<SparseWeights>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &SparseWeights::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<SparseWeights>(), &SparseWeights::ByteSizeLong,
              &SparseWeights::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(SparseWeights, _impl_._cached_size_),
          true,
      },
      "assist_ranker.SparseWeights",
  };
}
struct SparseWeightsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr SparseWeightsGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 SparseWeights_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(SparseWeights::InternalGenerateClassData_(
            _default, &SparseWeights_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<SparseWeights>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~SparseWeightsGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) SparseWeights _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<SparseWeights>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(SparseWeightsGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SparseWeightsGlobalsTypeInternal SparseWeights_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SparseWeights_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SparseWeights_globals_.GetClassData();
#else
  return SparseWeights_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class FeatureWeight::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::assist_ranker::FeatureWeight, _impl_._oneof_case_);
};

constexpr FeatureWeight::ParseTableT_ FeatureWeight::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FeatureWeight,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      4, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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::FeatureWeight>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // float scalar = 1;
      {PROTOBUF_FIELD_OFFSET(FeatureWeight, _impl_.feature_type_.scalar_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kFloat)},
      // .assist_ranker.SparseWeights one_hot = 2;
      {PROTOBUF_FIELD_OFFSET(FeatureWeight, _impl_.feature_type_.one_hot_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .assist_ranker.SparseWeights sparse = 3;
      {PROTOBUF_FIELD_OFFSET(FeatureWeight, _impl_.feature_type_.sparse_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .assist_ranker.BucketizedWeights bucketized = 4;
      {PROTOBUF_FIELD_OFFSET(FeatureWeight, _impl_.feature_type_.bucketized_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::SparseWeights>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::SparseWeights_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::SparseWeights>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::SparseWeights_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::BucketizedWeights>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::BucketizedWeights_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr FeatureWeight::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : feature_type_{},
        _cached_size_{0},
        _oneof_case_{} {}

template <typename>
constexpr FeatureWeight::FeatureWeight(::_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 FeatureWeight::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) FeatureWeight(arena);
}
constexpr auto FeatureWeight::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FeatureWeight), alignof(FeatureWeight));
}
constexpr auto FeatureWeight::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
          &FeatureWeight::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<FeatureWeight>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &FeatureWeight::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<FeatureWeight>(), &FeatureWeight::ByteSizeLong,
              &FeatureWeight::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(FeatureWeight, _impl_._cached_size_),
          true,
      },
      "assist_ranker.FeatureWeight",
  };
}
struct FeatureWeightGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr FeatureWeightGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 FeatureWeight_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(FeatureWeight::InternalGenerateClassData_(
            _default, &FeatureWeight_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<FeatureWeight>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~FeatureWeightGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) FeatureWeight _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<FeatureWeight>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(FeatureWeightGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

constexpr GenericLogisticRegressionModel::ParseTableT_ GenericLogisticRegressionModel::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // num_field_entries
      4,  // 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::GenericLogisticRegressionModel>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional float threshold = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 1, 0,
        PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.threshold_)}},
      // optional float bias = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 2, 0,
        PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.bias_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool is_preprocessed_model = 4;
      {::_pbi::TcParser::FastV8S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.is_preprocessed_model_)}},
      {::_pbi::TcParser::MiniParse, {}},
      // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 6;
      {::_pbi::TcParser::FastMtS1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.preprocessor_config_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional float threshold = 1;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.threshold_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional float bias = 2;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.bias_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // map<string, .assist_ranker.FeatureWeight> weights = 3;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.weights_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // optional bool is_preprocessed_model = 4;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.is_preprocessed_model_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // map<string, float> fullname_weights = 5;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.fullname_weights_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 6;
      {PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.preprocessor_config_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::ExamplePreprocessorConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::ExamplePreprocessorConfig_globals_},
        #endif
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 11, 1)},
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::assist_ranker::FeatureWeight>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::assist_ranker::FeatureWeight_globals_},
        #endif
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 2, 1)},
    }},
    {{
    }},
  };
}


inline constexpr GenericLogisticRegressionModel::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        preprocessor_config_{nullptr},
        threshold_{0},
        bias_{0},
        is_preprocessed_model_{false},
        weights_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::GenericLogisticRegressionModel,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.weights_)>()
         }
        ,
        fullname_weights_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::GenericLogisticRegressionModel,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.fullname_weights_)>()
         }
     {}

template <typename>
constexpr GenericLogisticRegressionModel::GenericLogisticRegressionModel(::_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 GenericLogisticRegressionModel::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) GenericLogisticRegressionModel(arena);
}
constexpr auto GenericLogisticRegressionModel::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GenericLogisticRegressionModel), alignof(GenericLogisticRegressionModel));
}
constexpr auto GenericLogisticRegressionModel::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
          &GenericLogisticRegressionModel::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<GenericLogisticRegressionModel>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &GenericLogisticRegressionModel::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<GenericLogisticRegressionModel>(), &GenericLogisticRegressionModel::ByteSizeLong,
              &GenericLogisticRegressionModel::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_._cached_size_),
          true,
      },
      "assist_ranker.GenericLogisticRegressionModel",
  };
}
struct GenericLogisticRegressionModelGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr GenericLogisticRegressionModelGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 GenericLogisticRegressionModel_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(GenericLogisticRegressionModel::InternalGenerateClassData_(
            _default, &GenericLogisticRegressionModel_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<GenericLogisticRegressionModel>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~GenericLogisticRegressionModelGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) GenericLogisticRegressionModel _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<GenericLogisticRegressionModel>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModelGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

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

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

SparseWeights::SparseWeights(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SparseWeights_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.SparseWeights)
}
PROTOBUF_NDEBUG_INLINE SparseWeights::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::SparseWeights& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        weights_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::SparseWeights,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::SparseWeights, _impl_.weights_)>()
          , from.weights_
        }
     {}

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

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

  // @@protoc_insertion_point(copy_constructor:assist_ranker.SparseWeights)
}
PROTOBUF_NDEBUG_INLINE SparseWeights::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::SparseWeights,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::SparseWeights, _impl_.weights_)>()
         }
     {}

inline void SparseWeights::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.default_weight_ = {};
}
SparseWeights::~SparseWeights() {
  // @@protoc_insertion_point(destructor:assist_ranker.SparseWeights)
  SharedDtor(*this);
}
inline void SparseWeights::SharedDtor(MessageLite& self) {
  SparseWeights& this_ = static_cast<SparseWeights&>(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 SparseWeights_class_data_ =
    SparseWeights::InternalGenerateClassData_(SparseWeights_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // map<string, float> weights = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_weights().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, float>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, float,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_FLOAT>;
      const auto& field = this_._internal_weights();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              1, entry.first, entry.second, target, stream);
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              1, entry.first, entry.second, target, stream);
        }
      }
    }
  }

  // optional float default_weight = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        2, this_._internal_default_weight(), 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.SparseWeights)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SparseWeights::ByteSizeLong(const MessageLite& base) {
  const SparseWeights& this_ = static_cast<const SparseWeights&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SparseWeights::ByteSizeLong() const {
  const SparseWeights& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.SparseWeights)
  ::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];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 5;
   {
    // map<string, float> weights = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_weights_size());
      for (const auto& entry : this_._internal_weights()) {
        total_size += _pbi::MapEntryFuncs<::std::string, float,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_FLOAT>::ByteSizeLong(entry.first, entry.second);
      }
    }
  }
  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 SparseWeights::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SparseWeights*>(&to_msg);
  auto& from = static_cast<const SparseWeights&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.SparseWeights)
  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->_impl_.default_weight_ = from._impl_.default_weight_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.weights_.MergeFrom(from._impl_.weights_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

BucketizedWeights::BucketizedWeights(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, BucketizedWeights_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.BucketizedWeights)
}
PROTOBUF_NDEBUG_INLINE BucketizedWeights::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::BucketizedWeights& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        boundaries_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::BucketizedWeights,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::BucketizedWeights, _impl_.boundaries_)>()
          , from.boundaries_
        }
        ,
        weights_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::BucketizedWeights,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::BucketizedWeights, _impl_.weights_)>()
          , from.weights_
        }
     {}

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

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

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

inline void BucketizedWeights::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.default_weight_ = {};
}
BucketizedWeights::~BucketizedWeights() {
  // @@protoc_insertion_point(destructor:assist_ranker.BucketizedWeights)
  SharedDtor(*this);
}
inline void BucketizedWeights::SharedDtor(MessageLite& self) {
  BucketizedWeights& this_ = static_cast<BucketizedWeights&>(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 BucketizedWeights_class_data_ =
    BucketizedWeights::InternalGenerateClassData_(BucketizedWeights_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated float boundaries = 1 [packed = true];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_boundaries_size() > 0) {
      target = stream->WriteFixedPacked(1, this_._internal_boundaries(), target);
    }
  }

  // repeated float weights = 2 [packed = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_weights_size() > 0) {
      target = stream->WriteFixedPacked(2, this_._internal_weights(), target);
    }
  }

  // optional float default_weight = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        3, this_._internal_default_weight(), 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.BucketizedWeights)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t BucketizedWeights::ByteSizeLong(const MessageLite& base) {
  const BucketizedWeights& this_ = static_cast<const BucketizedWeights&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t BucketizedWeights::ByteSizeLong() const {
  const BucketizedWeights& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.BucketizedWeights)
  ::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];
  total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 5;
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated float boundaries = 1 [packed = true];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_boundaries_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_size));
      total_size += tag_size + data_size;
    }
    // repeated float weights = 2 [packed = true];
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_weights_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_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 BucketizedWeights::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<BucketizedWeights*>(&to_msg);
  auto& from = static_cast<const BucketizedWeights&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.BucketizedWeights)
  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)) {
      _this->_internal_mutable_boundaries()->MergeFrom(from._internal_boundaries());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_weights()->MergeFrom(from._internal_weights());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.default_weight_ = from._impl_.default_weight_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void BucketizedWeights::InternalSwap(BucketizedWeights* 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_.boundaries_.InternalSwap(&other->_impl_.boundaries_);
  _impl_.weights_.InternalSwap(&other->_impl_.weights_);
  swap(_impl_.default_weight_, other->_impl_.default_weight_);
}

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

void FeatureWeight::set_allocated_one_hot(::assist_ranker::SparseWeights* PROTOBUF_NULLABLE one_hot) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_feature_type();
  if (one_hot) {
    ::google::protobuf::Arena* submessage_arena = one_hot->GetArena();
    if (message_arena != submessage_arena) {
      one_hot = ::google::protobuf::internal::GetOwnedMessage(message_arena, one_hot, submessage_arena);
    }
    set_has_one_hot();
    _impl_.feature_type_.one_hot_ = one_hot;
  }
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.FeatureWeight.one_hot)
}
void FeatureWeight::set_allocated_sparse(::assist_ranker::SparseWeights* PROTOBUF_NULLABLE sparse) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_feature_type();
  if (sparse) {
    ::google::protobuf::Arena* submessage_arena = sparse->GetArena();
    if (message_arena != submessage_arena) {
      sparse = ::google::protobuf::internal::GetOwnedMessage(message_arena, sparse, submessage_arena);
    }
    set_has_sparse();
    _impl_.feature_type_.sparse_ = sparse;
  }
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.FeatureWeight.sparse)
}
void FeatureWeight::set_allocated_bucketized(::assist_ranker::BucketizedWeights* PROTOBUF_NULLABLE bucketized) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_feature_type();
  if (bucketized) {
    ::google::protobuf::Arena* submessage_arena = bucketized->GetArena();
    if (message_arena != submessage_arena) {
      bucketized = ::google::protobuf::internal::GetOwnedMessage(message_arena, bucketized, submessage_arena);
    }
    set_has_bucketized();
    _impl_.feature_type_.bucketized_ = bucketized;
  }
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.FeatureWeight.bucketized)
}
FeatureWeight::FeatureWeight(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, FeatureWeight_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.FeatureWeight)
}
PROTOBUF_NDEBUG_INLINE FeatureWeight::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::FeatureWeight& from_msg)
      : feature_type_{},
        _cached_size_{0},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  FeatureWeight* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (feature_type_case()) {
    case FEATURE_TYPE_NOT_SET:
      break;
      case kScalar:
        _impl_.feature_type_.scalar_ = from._impl_.feature_type_.scalar_;
        break;
      case kOneHot:
        _impl_.feature_type_.one_hot_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.one_hot_);
        break;
      case kSparse:
        _impl_.feature_type_.sparse_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.sparse_);
        break;
      case kBucketized:
        _impl_.feature_type_.bucketized_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.bucketized_);
        break;
  }

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

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

void FeatureWeight::clear_feature_type() {
// @@protoc_insertion_point(one_of_clear_start:assist_ranker.FeatureWeight)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (feature_type_case()) {
    case kScalar: {
      // No need to clear
      break;
    }
    case kOneHot: {
      if (GetArena() == nullptr) {
        delete _impl_.feature_type_.one_hot_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.feature_type_.one_hot_ != nullptr) {
          _impl_.feature_type_.one_hot_->Clear();
        }
      }
      break;
    }
    case kSparse: {
      if (GetArena() == nullptr) {
        delete _impl_.feature_type_.sparse_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.feature_type_.sparse_ != nullptr) {
          _impl_.feature_type_.sparse_->Clear();
        }
      }
      break;
    }
    case kBucketized: {
      if (GetArena() == nullptr) {
        delete _impl_.feature_type_.bucketized_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.feature_type_.bucketized_ != nullptr) {
          _impl_.feature_type_.bucketized_->Clear();
        }
      }
      break;
    }
    case FEATURE_TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = FEATURE_TYPE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite FeatureWeight_class_data_ =
    FeatureWeight::InternalGenerateClassData_(FeatureWeight_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FeatureWeight::GetClassData() const {
  return FeatureWeight_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FeatureWeight::GetClassData() const {
  return FeatureWeight_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const FeatureWeight::ParseTableT_
    FeatureWeight::_table_ =
        FeatureWeight::InternalGenerateParseTable_(FeatureWeight_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void FeatureWeight::Clear() {
// @@protoc_insertion_point(message_clear_start:assist_ranker.FeatureWeight)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_feature_type();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.feature_type_case()) {
    case kScalar: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          1, this_._internal_scalar(), target);
      break;
    }
    case kOneHot: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.feature_type_.one_hot_, this_._impl_.feature_type_.one_hot_->GetCachedSize(), target,
          stream);
      break;
    }
    case kSparse: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          3, *this_._impl_.feature_type_.sparse_, this_._impl_.feature_type_.sparse_->GetCachedSize(), target,
          stream);
      break;
    }
    case kBucketized: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          4, *this_._impl_.feature_type_.bucketized_, this_._impl_.feature_type_.bucketized_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  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.FeatureWeight)
  return target;
}

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

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

  switch (this_.feature_type_case()) {
    // float scalar = 1;
    case kScalar: {
      total_size += 5;
      break;
    }
    // .assist_ranker.SparseWeights one_hot = 2;
    case kOneHot: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_type_.one_hot_);
      break;
    }
    // .assist_ranker.SparseWeights sparse = 3;
    case kSparse: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_type_.sparse_);
      break;
    }
    // .assist_ranker.BucketizedWeights bucketized = 4;
    case kBucketized: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.feature_type_.bucketized_);
      break;
    }
    case FEATURE_TYPE_NOT_SET: {
      break;
    }
  }
  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 FeatureWeight::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<FeatureWeight*>(&to_msg);
  auto& from = static_cast<const FeatureWeight&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.FeatureWeight)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_feature_type();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kScalar: {
        _this->_impl_.feature_type_.scalar_ = from._impl_.feature_type_.scalar_;
        break;
      }
      case kOneHot: {
        if (oneof_needs_init) {
          _this->_impl_.feature_type_.one_hot_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.one_hot_);
        } else {
          _this->_impl_.feature_type_.one_hot_->CheckTypeAndMergeFrom(*from._impl_.feature_type_.one_hot_);
        }
        break;
      }
      case kSparse: {
        if (oneof_needs_init) {
          _this->_impl_.feature_type_.sparse_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.sparse_);
        } else {
          _this->_impl_.feature_type_.sparse_->CheckTypeAndMergeFrom(*from._impl_.feature_type_.sparse_);
        }
        break;
      }
      case kBucketized: {
        if (oneof_needs_init) {
          _this->_impl_.feature_type_.bucketized_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.feature_type_.bucketized_);
        } else {
          _this->_impl_.feature_type_.bucketized_->CheckTypeAndMergeFrom(*from._impl_.feature_type_.bucketized_);
        }
        break;
      }
      case FEATURE_TYPE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

void GenericLogisticRegressionModel::clear_preprocessor_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.preprocessor_config_ != nullptr) _impl_.preprocessor_config_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
GenericLogisticRegressionModel::GenericLogisticRegressionModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, GenericLogisticRegressionModel_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:assist_ranker.GenericLogisticRegressionModel)
}
PROTOBUF_NDEBUG_INLINE GenericLogisticRegressionModel::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::GenericLogisticRegressionModel& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        weights_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::GenericLogisticRegressionModel,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.weights_)>()
          , from.weights_
        }
        ,
        fullname_weights_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::assist_ranker::GenericLogisticRegressionModel,
              PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.fullname_weights_)>()
          , from.fullname_weights_
        }
     {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  GenericLogisticRegressionModel* 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_.preprocessor_config_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.preprocessor_config_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, threshold_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, threshold_),
           offsetof(Impl_, is_preprocessed_model_) -
               offsetof(Impl_, threshold_) +
               sizeof(Impl_::is_preprocessed_model_));

  // @@protoc_insertion_point(copy_constructor:assist_ranker.GenericLogisticRegressionModel)
}
PROTOBUF_NDEBUG_INLINE GenericLogisticRegressionModel::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::GenericLogisticRegressionModel,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.weights_)>()
         }
        ,
        fullname_weights_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::assist_ranker::GenericLogisticRegressionModel,
            PROTOBUF_FIELD_OFFSET(::assist_ranker::GenericLogisticRegressionModel, _impl_.fullname_weights_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite GenericLogisticRegressionModel_class_data_ =
    GenericLogisticRegressionModel::InternalGenerateClassData_(GenericLogisticRegressionModel_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GenericLogisticRegressionModel::GetClassData() const {
  return GenericLogisticRegressionModel_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
GenericLogisticRegressionModel::GetClassData() const {
  return GenericLogisticRegressionModel_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GenericLogisticRegressionModel::ParseTableT_
    GenericLogisticRegressionModel::_table_ =
        GenericLogisticRegressionModel::InternalGenerateParseTable_(GenericLogisticRegressionModel_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void GenericLogisticRegressionModel::Clear() {
// @@protoc_insertion_point(message_clear_start:assist_ranker.GenericLogisticRegressionModel)
  ::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)) {
    ABSL_DCHECK(_impl_.preprocessor_config_ != nullptr);
    _impl_.preprocessor_config_->Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) {
    ::memset(&_impl_.threshold_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.is_preprocessed_model_) -
        reinterpret_cast<char*>(&_impl_.threshold_)) + sizeof(_impl_.is_preprocessed_model_));
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.weights_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.fullname_weights_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional float threshold = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        1, this_._internal_threshold(), target);
  }

  // optional float bias = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        2, this_._internal_bias(), target);
  }

  // map<string, .assist_ranker.FeatureWeight> weights = 3;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (!this_._internal_weights().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, ::assist_ranker::FeatureWeight>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, ::assist_ranker::FeatureWeight,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_MESSAGE>;
      const auto& field = this_._internal_weights();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              3, entry.first, entry.second, target, stream);
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              3, entry.first, entry.second, target, stream);
        }
      }
    }
  }

  // optional bool is_preprocessed_model = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        4, this_._internal_is_preprocessed_model(), target);
  }

  // map<string, float> fullname_weights = 5;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (!this_._internal_fullname_weights().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, float>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, float,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_FLOAT>;
      const auto& field = this_._internal_fullname_weights();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              5, entry.first, entry.second, target, stream);
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              5, entry.first, entry.second, target, stream);
        }
      }
    }
  }

  // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        6, *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.GenericLogisticRegressionModel)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t GenericLogisticRegressionModel::ByteSizeLong(const MessageLite& base) {
  const GenericLogisticRegressionModel& this_ = static_cast<const GenericLogisticRegressionModel&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t GenericLogisticRegressionModel::ByteSizeLong() const {
  const GenericLogisticRegressionModel& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:assist_ranker.GenericLogisticRegressionModel)
  ::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];
  total_size += ::absl::popcount(0x00000006U & cached_has_bits) * 5;
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000031U)) {
    // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.preprocessor_config_);
    }
    // map<string, .assist_ranker.FeatureWeight> weights = 3;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_weights_size());
      for (const auto& entry : this_._internal_weights()) {
        total_size += _pbi::MapEntryFuncs<::std::string, ::assist_ranker::FeatureWeight,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
      }
    }
    // map<string, float> fullname_weights = 5;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_fullname_weights_size());
      for (const auto& entry : this_._internal_fullname_weights()) {
        total_size += _pbi::MapEntryFuncs<::std::string, float,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_FLOAT>::ByteSizeLong(entry.first, entry.second);
      }
    }
  }
  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 GenericLogisticRegressionModel::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<GenericLogisticRegressionModel*>(&to_msg);
  auto& from = static_cast<const GenericLogisticRegressionModel&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:assist_ranker.GenericLogisticRegressionModel)
  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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      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_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.threshold_ = from._impl_.threshold_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.bias_ = from._impl_.bias_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.is_preprocessed_model_ = from._impl_.is_preprocessed_model_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.weights_.MergeFrom(from._impl_.weights_);
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.fullname_weights_.MergeFrom(from._impl_.fullname_weights_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void GenericLogisticRegressionModel::InternalSwap(GenericLogisticRegressionModel* 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(GenericLogisticRegressionModel, _impl_.is_preprocessed_model_)
      + sizeof(GenericLogisticRegressionModel::_impl_.is_preprocessed_model_)
      - PROTOBUF_FIELD_OFFSET(GenericLogisticRegressionModel, _impl_.preprocessor_config_)>(
          reinterpret_cast<char*>(&_impl_.preprocessor_config_),
          reinterpret_cast<char*>(&other->_impl_.preprocessor_config_));
  _impl_.weights_.InternalSwap(&other->_impl_.weights_);
  _impl_.fullname_weights_.InternalSwap(&other->_impl_.fullname_weights_);
}

// @@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"
