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

#include "components/segmentation_platform/public/proto/output_config.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 segmentation_platform {
namespace proto {
class Predictor_Regressor::_Internal {
 public:
};

constexpr Predictor_Regressor::ParseTableT_ Predictor_Regressor::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_Regressor,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      0, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967295,  // skipmap
      offsetof(ParseTableT_, field_names),  // no field_entries
      0,  // 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<::segmentation_platform::proto::Predictor_Regressor>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, // no field_entries, or aux_entries
    {{
    }},
  };
}


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

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

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

constexpr Predictor_MultiClassClassifier::ParseTableT_ Predictor_MultiClassClassifier::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // 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<::segmentation_platform::proto::Predictor_MultiClassClassifier>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated float class_thresholds = 4;
      {::_pbi::TcParser::FastF32R1,
       {37, 1, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.class_thresholds_)}},
      // optional int64 top_k_outputs = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.top_k_outputs_)}},
      // repeated string class_labels = 2;
      {::_pbi::TcParser::FastBR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.class_labels_)}},
      // optional float threshold = 3;
      {::_pbi::TcParser::FastF32S1,
       {29, 3, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.threshold_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int64 top_k_outputs = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.top_k_outputs_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated string class_labels = 2;
      {PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.class_labels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // optional float threshold = 3;
      {PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.threshold_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // repeated float class_thresholds = 4;
      {PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.class_thresholds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Predictor_MultiClassClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        class_labels_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_MultiClassClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_MultiClassClassifier, _impl_.class_labels_)>()
         }
        ,
        class_thresholds_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_MultiClassClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_MultiClassClassifier, _impl_.class_thresholds_)>()
         }
        ,
        top_k_outputs_{::int64_t{0}},
        threshold_{0} {}

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

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

constexpr Predictor_GenericPredictor::ParseTableT_ Predictor_GenericPredictor::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_GenericPredictor, _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<::segmentation_platform::proto::Predictor_GenericPredictor>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated string output_labels = 1;
      {::_pbi::TcParser::FastBR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_GenericPredictor, _impl_.output_labels_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated string output_labels = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor_GenericPredictor, _impl_.output_labels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr Predictor_BinnedClassifier_Bin::ParseTableT_ Predictor_BinnedClassifier_Bin::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier_Bin, _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
      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<::segmentation_platform::proto::Predictor_BinnedClassifier_Bin>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string label = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier_Bin, _impl_.label_)}},
      // optional float min_range = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 1, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier_Bin, _impl_.min_range_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional float min_range = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier_Bin, _impl_.min_range_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional string label = 2;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier_Bin, _impl_.label_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Predictor_BinnedClassifier_Bin::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        label_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        min_range_{0} {}

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

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

constexpr Predictor_BinaryClassifier::ParseTableT_ Predictor_BinaryClassifier::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _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<::segmentation_platform::proto::Predictor_BinaryClassifier>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional float threshold = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 2, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.threshold_)}},
      // optional string positive_label = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.positive_label_)}},
      // optional string negative_label = 3;
      {::_pbi::TcParser::FastBS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.negative_label_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional float threshold = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.threshold_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // optional string positive_label = 2;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.positive_label_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string negative_label = 3;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinaryClassifier, _impl_.negative_label_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Predictor_BinaryClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        positive_label_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        negative_label_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        threshold_{0} {}

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

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

constexpr Predictor_BinnedClassifier::ParseTableT_ Predictor_BinnedClassifier::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier, _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
      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<::segmentation_platform::proto::Predictor_BinnedClassifier>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string underflow_label = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier, _impl_.underflow_label_)}},
      // repeated .segmentation_platform.proto.Predictor.BinnedClassifier.Bin bins = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier, _impl_.bins_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .segmentation_platform.proto.Predictor.BinnedClassifier.Bin bins = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier, _impl_.bins_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string underflow_label = 2;
      {PROTOBUF_FIELD_OFFSET(Predictor_BinnedClassifier, _impl_.underflow_label_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_BinnedClassifier_Bin>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_BinnedClassifier_Bin_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr Predictor_BinnedClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        bins_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_BinnedClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_BinnedClassifier, _impl_.bins_)>()
         }
        ,
        underflow_label_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

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

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

constexpr PredictedResultTTL::ParseTableT_ PredictedResultTTL::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_._has_bits_),
      0, // no _extensions_
      3, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // 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<::segmentation_platform::proto::PredictedResultTTL>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional uint64 default_ttl = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 0, 0,
        PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.default_ttl_)}},
      // optional .segmentation_platform.proto.TimeUnit time_unit = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 1, 7,
        PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.time_unit_)}},
    }}, {{
      65535, 65535
    }}, {{
      // map<string, uint64> top_label_to_ttl_map = 1;
      {PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.top_label_to_ttl_map_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
      // optional uint64 default_ttl = 2;
      {PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.default_ttl_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
      // optional .segmentation_platform.proto.TimeUnit time_unit = 3;
      {PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.time_unit_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 4, 1)},
        {0, 7},
    }},
    {{
    }},
  };
}


inline constexpr PredictedResultTTL::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        default_ttl_{::uint64_t{0u}},
        time_unit_{static_cast< ::segmentation_platform::proto::TimeUnit >(0)},
        top_label_to_ttl_map_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::PredictedResultTTL,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::PredictedResultTTL, _impl_.top_label_to_ttl_map_)>()
         }
     {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PredictedResultTTLGlobalsTypeInternal PredictedResultTTL_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PredictedResultTTL_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PredictedResultTTL_globals_.GetClassData();
#else
  return PredictedResultTTL_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class Predictor::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor, _impl_._oneof_case_);
};

constexpr Predictor::ParseTableT_ Predictor::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Predictor,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      5, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      5,  // 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<::segmentation_platform::proto::Predictor>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // .segmentation_platform.proto.Predictor.BinaryClassifier binary_classifier = 1;
      {PROTOBUF_FIELD_OFFSET(Predictor, _impl_.PredictorType_.binary_classifier_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .segmentation_platform.proto.Predictor.MultiClassClassifier multi_class_classifier = 2;
      {PROTOBUF_FIELD_OFFSET(Predictor, _impl_.PredictorType_.multi_class_classifier_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .segmentation_platform.proto.Predictor.BinnedClassifier binned_classifier = 3;
      {PROTOBUF_FIELD_OFFSET(Predictor, _impl_.PredictorType_.binned_classifier_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .segmentation_platform.proto.Predictor.Regressor regressor = 4;
      {PROTOBUF_FIELD_OFFSET(Predictor, _impl_.PredictorType_.regressor_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .segmentation_platform.proto.Predictor.GenericPredictor generic_predictor = 5;
      {PROTOBUF_FIELD_OFFSET(Predictor, _impl_.PredictorType_.generic_predictor_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_BinaryClassifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_BinaryClassifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_MultiClassClassifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_MultiClassClassifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_BinnedClassifier>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_BinnedClassifier_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_Regressor>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_Regressor_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor_GenericPredictor>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_GenericPredictor_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr OutputConfig::ParseTableT_ OutputConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(OutputConfig, _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
      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<::segmentation_platform::proto::OutputConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .segmentation_platform.proto.Predictor predictor = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.predictor_)}},
      // optional .segmentation_platform.proto.PredictedResultTTL predicted_result_ttl = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.predicted_result_ttl_)}},
      // optional bool ignore_previous_model_ttl = 3;
      {::_pbi::TcParser::FastV8S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.ignore_previous_model_ttl_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .segmentation_platform.proto.Predictor predictor = 1;
      {PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.predictor_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .segmentation_platform.proto.PredictedResultTTL predicted_result_ttl = 2;
      {PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.predicted_result_ttl_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional bool ignore_previous_model_ttl = 3;
      {PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.ignore_previous_model_ttl_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::Predictor>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::Predictor_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::segmentation_platform::proto::PredictedResultTTL>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::segmentation_platform::proto::PredictedResultTTL_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr OutputConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        predictor_{nullptr},
        predicted_result_ttl_{nullptr},
        ignore_previous_model_ttl_{false} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OutputConfigGlobalsTypeInternal OutputConfig_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* OutputConfig_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return OutputConfig_globals_.GetClassData();
#else
  return OutputConfig_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace segmentation_platform
namespace segmentation_platform {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t TimeUnit_internal_data_[] = {
    524288u, 0u, };
static const char TimeUnit_names[] = {
    "DAY"
    "HOUR"
    "MINUTE"
    "MONTH"
    "SECOND"
    "UNKNOWN_TIME_UNIT"
    "WEEK"
    "YEAR"
};

static const ::google::protobuf::internal::EnumEntry TimeUnit_entries[] = {
    {{&TimeUnit_names[0], 3}, 4},
    {{&TimeUnit_names[3], 4}, 5},
    {{&TimeUnit_names[7], 6}, 6},
    {{&TimeUnit_names[13], 5}, 2},
    {{&TimeUnit_names[18], 6}, 7},
    {{&TimeUnit_names[24], 17}, 0},
    {{&TimeUnit_names[41], 4}, 3},
    {{&TimeUnit_names[45], 4}, 1},
};

static const int TimeUnit_entries_by_number[] = {
    5,  // 0 -> UNKNOWN_TIME_UNIT
    7,  // 1 -> YEAR
    3,  // 2 -> MONTH
    6,  // 3 -> WEEK
    0,  // 4 -> DAY
    1,  // 5 -> HOUR
    2,  // 6 -> MINUTE
    4,  // 7 -> SECOND
};

bool TimeUnit_Parse(::absl::string_view name,
                                  TimeUnit* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      TimeUnit_entries, 8, name, &int_value);
  if (success) {
    *value = static_cast<TimeUnit>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    TimeUnit_strings[8] = {};

const ::std::string& TimeUnit_Name(TimeUnit value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TimeUnit_entries, TimeUnit_entries_by_number, 8,
      TimeUnit_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TimeUnit_entries,
                                  TimeUnit_entries_by_number,
                                  8, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TimeUnit_strings[idx].get();
}
// ===================================================================

Predictor_BinaryClassifier::Predictor_BinaryClassifier(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Predictor_BinaryClassifier_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:segmentation_platform.proto.Predictor.BinaryClassifier)
}
PROTOBUF_NDEBUG_INLINE Predictor_BinaryClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::segmentation_platform::proto::Predictor_BinaryClassifier& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        positive_label_(arena, from.positive_label_),
        negative_label_(arena, from.negative_label_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:segmentation_platform.proto.Predictor.BinaryClassifier)
}
PROTOBUF_NDEBUG_INLINE Predictor_BinaryClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        positive_label_(arena),
        negative_label_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Predictor_BinaryClassifier_class_data_ =
    Predictor_BinaryClassifier::InternalGenerateClassData_(Predictor_BinaryClassifier_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinaryClassifier::GetClassData() const {
  return Predictor_BinaryClassifier_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinaryClassifier::GetClassData() const {
  return Predictor_BinaryClassifier_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor_BinaryClassifier::ParseTableT_
    Predictor_BinaryClassifier::_table_ =
        Predictor_BinaryClassifier::InternalGenerateParseTable_(Predictor_BinaryClassifier_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor_BinaryClassifier::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor.BinaryClassifier)
  ::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_.positive_label_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.negative_label_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.threshold_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL Predictor_BinaryClassifier::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const Predictor_BinaryClassifier& this_ = static_cast<const Predictor_BinaryClassifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL Predictor_BinaryClassifier::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const Predictor_BinaryClassifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:segmentation_platform.proto.Predictor.BinaryClassifier)
  ::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, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        1, this_._internal_threshold(), target);
  }

  // optional string positive_label = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_positive_label();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // optional string negative_label = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_negative_label();
    target = stream->WriteStringMaybeAliased(3, _s, 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:segmentation_platform.proto.Predictor.BinaryClassifier)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor_BinaryClassifier::ByteSizeLong(const MessageLite& base) {
  const Predictor_BinaryClassifier& this_ = static_cast<const Predictor_BinaryClassifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor_BinaryClassifier::ByteSizeLong() const {
  const Predictor_BinaryClassifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor.BinaryClassifier)
  ::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)) {
    // optional string positive_label = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_positive_label());
    }
    // optional string negative_label = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_negative_label());
    }
  }
  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 Predictor_BinaryClassifier::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_BinaryClassifier*>(&to_msg);
  auto& from = static_cast<const Predictor_BinaryClassifier&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.BinaryClassifier)
  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_set_positive_label(from._internal_positive_label());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_negative_label(from._internal_negative_label());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.threshold_ = from._impl_.threshold_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_BinaryClassifier::CopyFrom(const Predictor_BinaryClassifier& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.BinaryClassifier)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Predictor_MultiClassClassifier* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, top_k_outputs_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, top_k_outputs_),
           offsetof(Impl_, threshold_) -
               offsetof(Impl_, top_k_outputs_) +
               sizeof(Impl_::threshold_));

  // @@protoc_insertion_point(copy_constructor:segmentation_platform.proto.Predictor.MultiClassClassifier)
}
PROTOBUF_NDEBUG_INLINE Predictor_MultiClassClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        class_labels_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_MultiClassClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_MultiClassClassifier, _impl_.class_labels_)>()
         }
        ,
        class_thresholds_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_MultiClassClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_MultiClassClassifier, _impl_.class_thresholds_)>()
         }
     {}

inline void Predictor_MultiClassClassifier::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, top_k_outputs_),
           0,
           offsetof(Impl_, threshold_) -
               offsetof(Impl_, top_k_outputs_) +
               sizeof(Impl_::threshold_));
}
Predictor_MultiClassClassifier::~Predictor_MultiClassClassifier() {
  // @@protoc_insertion_point(destructor:segmentation_platform.proto.Predictor.MultiClassClassifier)
  SharedDtor(*this);
}
inline void Predictor_MultiClassClassifier::SharedDtor(MessageLite& self) {
  Predictor_MultiClassClassifier& this_ = static_cast<Predictor_MultiClassClassifier&>(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 Predictor_MultiClassClassifier_class_data_ =
    Predictor_MultiClassClassifier::InternalGenerateClassData_(Predictor_MultiClassClassifier_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_MultiClassClassifier::GetClassData() const {
  return Predictor_MultiClassClassifier_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_MultiClassClassifier::GetClassData() const {
  return Predictor_MultiClassClassifier_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor_MultiClassClassifier::ParseTableT_
    Predictor_MultiClassClassifier::_table_ =
        Predictor_MultiClassClassifier::InternalGenerateParseTable_(Predictor_MultiClassClassifier_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor_MultiClassClassifier::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor.MultiClassClassifier)
  ::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_.class_labels_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.class_thresholds_.Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
    ::memset(&_impl_.top_k_outputs_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.threshold_) -
        reinterpret_cast<char*>(&_impl_.top_k_outputs_)) + sizeof(_impl_.threshold_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int64 top_k_outputs = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
            stream, this_._internal_top_k_outputs(), target);
  }

  // repeated string class_labels = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_class_labels_size(); i < n; ++i) {
      const auto& s = this_._internal_class_labels().Get(i);
      target = stream->WriteString(2, s, target);
    }
  }

  // optional float threshold = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        3, this_._internal_threshold(), target);
  }

  // repeated float class_thresholds = 4;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (int i = 0, n = this_._internal_class_thresholds_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          4, this_._internal_class_thresholds().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:segmentation_platform.proto.Predictor.MultiClassClassifier)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor_MultiClassClassifier::ByteSizeLong(const MessageLite& base) {
  const Predictor_MultiClassClassifier& this_ = static_cast<const Predictor_MultiClassClassifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor_MultiClassClassifier::ByteSizeLong() const {
  const Predictor_MultiClassClassifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor.MultiClassClassifier)
  ::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>(0x00000008U & cached_has_bits) * 5;
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // repeated string class_labels = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_class_labels().size());
      for (int i = 0, n = this_._internal_class_labels().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_class_labels().Get(i));
      }
    }
    // repeated float class_thresholds = 4;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_class_thresholds_size());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_class_thresholds_size());
      total_size += tag_size + data_size;
    }
    // optional int64 top_k_outputs = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_top_k_outputs());
    }
  }
  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 Predictor_MultiClassClassifier::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_MultiClassClassifier*>(&to_msg);
  auto& from = static_cast<const Predictor_MultiClassClassifier&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.MultiClassClassifier)
  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, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_class_labels()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_class_labels());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_class_thresholds()->MergeFrom(from._internal_class_thresholds());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.top_k_outputs_ = from._impl_.top_k_outputs_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.threshold_ = from._impl_.threshold_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_MultiClassClassifier::CopyFrom(const Predictor_MultiClassClassifier& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.MultiClassClassifier)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Predictor_MultiClassClassifier::InternalSwap(Predictor_MultiClassClassifier* 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_.class_labels_.InternalSwap(&other->_impl_.class_labels_);
  _impl_.class_thresholds_.InternalSwap(&other->_impl_.class_thresholds_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.threshold_)
      + sizeof(Predictor_MultiClassClassifier::_impl_.threshold_)
      - PROTOBUF_FIELD_OFFSET(Predictor_MultiClassClassifier, _impl_.top_k_outputs_)>(
          reinterpret_cast<char*>(&_impl_.top_k_outputs_),
          reinterpret_cast<char*>(&other->_impl_.top_k_outputs_));
}

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

Predictor_BinnedClassifier_Bin::Predictor_BinnedClassifier_Bin(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Predictor_BinnedClassifier_Bin_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
}
PROTOBUF_NDEBUG_INLINE Predictor_BinnedClassifier_Bin::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::segmentation_platform::proto::Predictor_BinnedClassifier_Bin& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        label_(arena, from.label_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
}
PROTOBUF_NDEBUG_INLINE Predictor_BinnedClassifier_Bin::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        label_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Predictor_BinnedClassifier_Bin_class_data_ =
    Predictor_BinnedClassifier_Bin::InternalGenerateClassData_(Predictor_BinnedClassifier_Bin_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinnedClassifier_Bin::GetClassData() const {
  return Predictor_BinnedClassifier_Bin_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinnedClassifier_Bin::GetClassData() const {
  return Predictor_BinnedClassifier_Bin_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor_BinnedClassifier_Bin::ParseTableT_
    Predictor_BinnedClassifier_Bin::_table_ =
        Predictor_BinnedClassifier_Bin::InternalGenerateParseTable_(Predictor_BinnedClassifier_Bin_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor_BinnedClassifier_Bin::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
  ::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_.label_.ClearNonDefaultToEmpty();
  }
  _impl_.min_range_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional string label = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_label();
    target = stream->WriteStringMaybeAliased(2, _s, 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:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor_BinnedClassifier_Bin::ByteSizeLong(const MessageLite& base) {
  const Predictor_BinnedClassifier_Bin& this_ = static_cast<const Predictor_BinnedClassifier_Bin&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor_BinnedClassifier_Bin::ByteSizeLong() const {
  const Predictor_BinnedClassifier_Bin& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
  ::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>(0x00000002U & cached_has_bits) * 5;
   {
    // optional string label = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_label());
    }
  }
  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 Predictor_BinnedClassifier_Bin::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_BinnedClassifier_Bin*>(&to_msg);
  auto& from = static_cast<const Predictor_BinnedClassifier_Bin&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
  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_set_label(from._internal_label());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.min_range_ = from._impl_.min_range_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_BinnedClassifier_Bin::CopyFrom(const Predictor_BinnedClassifier_Bin& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.BinnedClassifier.Bin)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Predictor_BinnedClassifier* 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:segmentation_platform.proto.Predictor.BinnedClassifier)
}
PROTOBUF_NDEBUG_INLINE Predictor_BinnedClassifier::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        bins_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_BinnedClassifier,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_BinnedClassifier, _impl_.bins_)>()
         }
        ,
        underflow_label_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Predictor_BinnedClassifier_class_data_ =
    Predictor_BinnedClassifier::InternalGenerateClassData_(Predictor_BinnedClassifier_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinnedClassifier::GetClassData() const {
  return Predictor_BinnedClassifier_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_BinnedClassifier::GetClassData() const {
  return Predictor_BinnedClassifier_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor_BinnedClassifier::ParseTableT_
    Predictor_BinnedClassifier::_table_ =
        Predictor_BinnedClassifier::InternalGenerateParseTable_(Predictor_BinnedClassifier_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor_BinnedClassifier::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor.BinnedClassifier)
  ::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_.bins_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.underflow_label_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .segmentation_platform.proto.Predictor.BinnedClassifier.Bin bins = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_bins_size());
         i < n; i++) {
      const auto& repfield = this_._internal_bins().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional string underflow_label = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_underflow_label();
    target = stream->WriteStringMaybeAliased(2, _s, 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:segmentation_platform.proto.Predictor.BinnedClassifier)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor_BinnedClassifier::ByteSizeLong(const MessageLite& base) {
  const Predictor_BinnedClassifier& this_ = static_cast<const Predictor_BinnedClassifier&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor_BinnedClassifier::ByteSizeLong() const {
  const Predictor_BinnedClassifier& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor.BinnedClassifier)
  ::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 .segmentation_platform.proto.Predictor.BinnedClassifier.Bin bins = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_bins_size();
      for (const auto& msg : this_._internal_bins()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string underflow_label = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_underflow_label());
    }
  }
  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 Predictor_BinnedClassifier::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_BinnedClassifier*>(&to_msg);
  auto& from = static_cast<const Predictor_BinnedClassifier&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.BinnedClassifier)
  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_bins()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_bins());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_underflow_label(from._internal_underflow_label());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_BinnedClassifier::CopyFrom(const Predictor_BinnedClassifier& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.BinnedClassifier)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


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

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

Predictor_Regressor::Predictor_Regressor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Predictor_Regressor_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:segmentation_platform.proto.Predictor.Regressor)
}
Predictor_Regressor::Predictor_Regressor(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Predictor_Regressor& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Predictor_Regressor_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE Predictor_Regressor::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void Predictor_Regressor::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
Predictor_Regressor::~Predictor_Regressor() {
  // @@protoc_insertion_point(destructor:segmentation_platform.proto.Predictor.Regressor)
  SharedDtor(*this);
}
inline void Predictor_Regressor::SharedDtor(MessageLite& self) {
  Predictor_Regressor& this_ = static_cast<Predictor_Regressor&>(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 Predictor_Regressor_class_data_ =
    Predictor_Regressor::InternalGenerateClassData_(Predictor_Regressor_globals_._default);

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

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

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

  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:segmentation_platform.proto.Predictor.Regressor)
  return target;
}

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

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

  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 Predictor_Regressor::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_Regressor*>(&to_msg);
  auto& from = static_cast<const Predictor_Regressor&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.Regressor)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_Regressor::CopyFrom(const Predictor_Regressor& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.Regressor)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Predictor_Regressor::InternalSwap(Predictor_Regressor* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Predictor_GenericPredictor* 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:segmentation_platform.proto.Predictor.GenericPredictor)
}
PROTOBUF_NDEBUG_INLINE Predictor_GenericPredictor::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        output_labels_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::segmentation_platform::proto::Predictor_GenericPredictor,
            PROTOBUF_FIELD_OFFSET(::segmentation_platform::proto::Predictor_GenericPredictor, _impl_.output_labels_)>()
         }
     {}

inline void Predictor_GenericPredictor::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
Predictor_GenericPredictor::~Predictor_GenericPredictor() {
  // @@protoc_insertion_point(destructor:segmentation_platform.proto.Predictor.GenericPredictor)
  SharedDtor(*this);
}
inline void Predictor_GenericPredictor::SharedDtor(MessageLite& self) {
  Predictor_GenericPredictor& this_ = static_cast<Predictor_GenericPredictor&>(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 Predictor_GenericPredictor_class_data_ =
    Predictor_GenericPredictor::InternalGenerateClassData_(Predictor_GenericPredictor_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_GenericPredictor::GetClassData() const {
  return Predictor_GenericPredictor_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor_GenericPredictor::GetClassData() const {
  return Predictor_GenericPredictor_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor_GenericPredictor::ParseTableT_
    Predictor_GenericPredictor::_table_ =
        Predictor_GenericPredictor::InternalGenerateParseTable_(Predictor_GenericPredictor_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor_GenericPredictor::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor.GenericPredictor)
  ::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_.output_labels_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated string output_labels = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_output_labels_size(); i < n; ++i) {
      const auto& s = this_._internal_output_labels().Get(i);
      target = stream->WriteString(1, s, 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:segmentation_platform.proto.Predictor.GenericPredictor)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor_GenericPredictor::ByteSizeLong(const MessageLite& base) {
  const Predictor_GenericPredictor& this_ = static_cast<const Predictor_GenericPredictor&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor_GenericPredictor::ByteSizeLong() const {
  const Predictor_GenericPredictor& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor.GenericPredictor)
  ::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 string output_labels = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_output_labels().size());
      for (int i = 0, n = this_._internal_output_labels().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_output_labels().Get(i));
      }
    }
  }
  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 Predictor_GenericPredictor::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor_GenericPredictor*>(&to_msg);
  auto& from = static_cast<const Predictor_GenericPredictor&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor.GenericPredictor)
  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_output_labels()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_output_labels());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void Predictor_GenericPredictor::CopyFrom(const Predictor_GenericPredictor& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:segmentation_platform.proto.Predictor.GenericPredictor)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Predictor_GenericPredictor::InternalSwap(Predictor_GenericPredictor* 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_.output_labels_.InternalSwap(&other->_impl_.output_labels_);
}

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

void Predictor::set_allocated_binary_classifier(::segmentation_platform::proto::Predictor_BinaryClassifier* PROTOBUF_NULLABLE binary_classifier) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_PredictorType();
  if (binary_classifier) {
    ::google::protobuf::Arena* submessage_arena = binary_classifier->GetArena();
    if (message_arena != submessage_arena) {
      binary_classifier = ::google::protobuf::internal::GetOwnedMessage(message_arena, binary_classifier, submessage_arena);
    }
    set_has_binary_classifier();
    _impl_.PredictorType_.binary_classifier_ = binary_classifier;
  }
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.Predictor.binary_classifier)
}
void Predictor::set_allocated_multi_class_classifier(::segmentation_platform::proto::Predictor_MultiClassClassifier* PROTOBUF_NULLABLE multi_class_classifier) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_PredictorType();
  if (multi_class_classifier) {
    ::google::protobuf::Arena* submessage_arena = multi_class_classifier->GetArena();
    if (message_arena != submessage_arena) {
      multi_class_classifier = ::google::protobuf::internal::GetOwnedMessage(message_arena, multi_class_classifier, submessage_arena);
    }
    set_has_multi_class_classifier();
    _impl_.PredictorType_.multi_class_classifier_ = multi_class_classifier;
  }
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.Predictor.multi_class_classifier)
}
void Predictor::set_allocated_binned_classifier(::segmentation_platform::proto::Predictor_BinnedClassifier* PROTOBUF_NULLABLE binned_classifier) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_PredictorType();
  if (binned_classifier) {
    ::google::protobuf::Arena* submessage_arena = binned_classifier->GetArena();
    if (message_arena != submessage_arena) {
      binned_classifier = ::google::protobuf::internal::GetOwnedMessage(message_arena, binned_classifier, submessage_arena);
    }
    set_has_binned_classifier();
    _impl_.PredictorType_.binned_classifier_ = binned_classifier;
  }
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.Predictor.binned_classifier)
}
void Predictor::set_allocated_regressor(::segmentation_platform::proto::Predictor_Regressor* PROTOBUF_NULLABLE regressor) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_PredictorType();
  if (regressor) {
    ::google::protobuf::Arena* submessage_arena = regressor->GetArena();
    if (message_arena != submessage_arena) {
      regressor = ::google::protobuf::internal::GetOwnedMessage(message_arena, regressor, submessage_arena);
    }
    set_has_regressor();
    _impl_.PredictorType_.regressor_ = regressor;
  }
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.Predictor.regressor)
}
void Predictor::set_allocated_generic_predictor(::segmentation_platform::proto::Predictor_GenericPredictor* PROTOBUF_NULLABLE generic_predictor) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_PredictorType();
  if (generic_predictor) {
    ::google::protobuf::Arena* submessage_arena = generic_predictor->GetArena();
    if (message_arena != submessage_arena) {
      generic_predictor = ::google::protobuf::internal::GetOwnedMessage(message_arena, generic_predictor, submessage_arena);
    }
    set_has_generic_predictor();
    _impl_.PredictorType_.generic_predictor_ = generic_predictor;
  }
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.Predictor.generic_predictor)
}
Predictor::Predictor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Predictor_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:segmentation_platform.proto.Predictor)
}
PROTOBUF_NDEBUG_INLINE Predictor::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::segmentation_platform::proto::Predictor& from_msg)
      : PredictorType_{},
        _cached_size_{0},
        _oneof_case_{from._oneof_case_[0]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Predictor* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (PredictorType_case()) {
    case PREDICTORTYPE_NOT_SET:
      break;
      case kBinaryClassifier:
        _impl_.PredictorType_.binary_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.binary_classifier_);
        break;
      case kMultiClassClassifier:
        _impl_.PredictorType_.multi_class_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.multi_class_classifier_);
        break;
      case kBinnedClassifier:
        _impl_.PredictorType_.binned_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.binned_classifier_);
        break;
      case kRegressor:
        _impl_.PredictorType_.regressor_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.regressor_);
        break;
      case kGenericPredictor:
        _impl_.PredictorType_.generic_predictor_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.generic_predictor_);
        break;
  }

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

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

void Predictor::clear_PredictorType() {
// @@protoc_insertion_point(one_of_clear_start:segmentation_platform.proto.Predictor)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (PredictorType_case()) {
    case kBinaryClassifier: {
      if (GetArena() == nullptr) {
        delete _impl_.PredictorType_.binary_classifier_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.PredictorType_.binary_classifier_ != nullptr) {
          _impl_.PredictorType_.binary_classifier_->Clear();
        }
      }
      break;
    }
    case kMultiClassClassifier: {
      if (GetArena() == nullptr) {
        delete _impl_.PredictorType_.multi_class_classifier_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.PredictorType_.multi_class_classifier_ != nullptr) {
          _impl_.PredictorType_.multi_class_classifier_->Clear();
        }
      }
      break;
    }
    case kBinnedClassifier: {
      if (GetArena() == nullptr) {
        delete _impl_.PredictorType_.binned_classifier_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.PredictorType_.binned_classifier_ != nullptr) {
          _impl_.PredictorType_.binned_classifier_->Clear();
        }
      }
      break;
    }
    case kRegressor: {
      if (GetArena() == nullptr) {
        delete _impl_.PredictorType_.regressor_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.PredictorType_.regressor_ != nullptr) {
          _impl_.PredictorType_.regressor_->Clear();
        }
      }
      break;
    }
    case kGenericPredictor: {
      if (GetArena() == nullptr) {
        delete _impl_.PredictorType_.generic_predictor_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.PredictorType_.generic_predictor_ != nullptr) {
          _impl_.PredictorType_.generic_predictor_->Clear();
        }
      }
      break;
    }
    case PREDICTORTYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = PREDICTORTYPE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Predictor_class_data_ =
    Predictor::InternalGenerateClassData_(Predictor_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor::GetClassData() const {
  return Predictor_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Predictor::GetClassData() const {
  return Predictor_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Predictor::ParseTableT_
    Predictor::_table_ =
        Predictor::InternalGenerateParseTable_(Predictor_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void Predictor::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.Predictor)
  ::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_PredictorType();
  _internal_metadata_.Clear<::std::string>();
}

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

  switch (this_.PredictorType_case()) {
    case kBinaryClassifier: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          1, *this_._impl_.PredictorType_.binary_classifier_, this_._impl_.PredictorType_.binary_classifier_->GetCachedSize(), target,
          stream);
      break;
    }
    case kMultiClassClassifier: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.PredictorType_.multi_class_classifier_, this_._impl_.PredictorType_.multi_class_classifier_->GetCachedSize(), target,
          stream);
      break;
    }
    case kBinnedClassifier: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          3, *this_._impl_.PredictorType_.binned_classifier_, this_._impl_.PredictorType_.binned_classifier_->GetCachedSize(), target,
          stream);
      break;
    }
    case kRegressor: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          4, *this_._impl_.PredictorType_.regressor_, this_._impl_.PredictorType_.regressor_->GetCachedSize(), target,
          stream);
      break;
    }
    case kGenericPredictor: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          5, *this_._impl_.PredictorType_.generic_predictor_, this_._impl_.PredictorType_.generic_predictor_->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:segmentation_platform.proto.Predictor)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Predictor::ByteSizeLong(const MessageLite& base) {
  const Predictor& this_ = static_cast<const Predictor&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Predictor::ByteSizeLong() const {
  const Predictor& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.Predictor)
  ::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_.PredictorType_case()) {
    // .segmentation_platform.proto.Predictor.BinaryClassifier binary_classifier = 1;
    case kBinaryClassifier: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.PredictorType_.binary_classifier_);
      break;
    }
    // .segmentation_platform.proto.Predictor.MultiClassClassifier multi_class_classifier = 2;
    case kMultiClassClassifier: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.PredictorType_.multi_class_classifier_);
      break;
    }
    // .segmentation_platform.proto.Predictor.BinnedClassifier binned_classifier = 3;
    case kBinnedClassifier: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.PredictorType_.binned_classifier_);
      break;
    }
    // .segmentation_platform.proto.Predictor.Regressor regressor = 4;
    case kRegressor: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.PredictorType_.regressor_);
      break;
    }
    // .segmentation_platform.proto.Predictor.GenericPredictor generic_predictor = 5;
    case kGenericPredictor: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.PredictorType_.generic_predictor_);
      break;
    }
    case PREDICTORTYPE_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 Predictor::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Predictor*>(&to_msg);
  auto& from = static_cast<const Predictor&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.Predictor)
  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_PredictorType();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kBinaryClassifier: {
        if (oneof_needs_init) {
          _this->_impl_.PredictorType_.binary_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.binary_classifier_);
        } else {
          _this->_impl_.PredictorType_.binary_classifier_->CheckTypeAndMergeFrom(*from._impl_.PredictorType_.binary_classifier_);
        }
        break;
      }
      case kMultiClassClassifier: {
        if (oneof_needs_init) {
          _this->_impl_.PredictorType_.multi_class_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.multi_class_classifier_);
        } else {
          _this->_impl_.PredictorType_.multi_class_classifier_->CheckTypeAndMergeFrom(*from._impl_.PredictorType_.multi_class_classifier_);
        }
        break;
      }
      case kBinnedClassifier: {
        if (oneof_needs_init) {
          _this->_impl_.PredictorType_.binned_classifier_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.binned_classifier_);
        } else {
          _this->_impl_.PredictorType_.binned_classifier_->CheckTypeAndMergeFrom(*from._impl_.PredictorType_.binned_classifier_);
        }
        break;
      }
      case kRegressor: {
        if (oneof_needs_init) {
          _this->_impl_.PredictorType_.regressor_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.regressor_);
        } else {
          _this->_impl_.PredictorType_.regressor_->CheckTypeAndMergeFrom(*from._impl_.PredictorType_.regressor_);
        }
        break;
      }
      case kGenericPredictor: {
        if (oneof_needs_init) {
          _this->_impl_.PredictorType_.generic_predictor_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.PredictorType_.generic_predictor_);
        } else {
          _this->_impl_.PredictorType_.generic_predictor_->CheckTypeAndMergeFrom(*from._impl_.PredictorType_.generic_predictor_);
        }
        break;
      }
      case PREDICTORTYPE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PredictedResultTTL* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, default_ttl_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, default_ttl_),
           offsetof(Impl_, time_unit_) -
               offsetof(Impl_, default_ttl_) +
               sizeof(Impl_::time_unit_));

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

inline void PredictedResultTTL::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, default_ttl_),
           0,
           offsetof(Impl_, time_unit_) -
               offsetof(Impl_, default_ttl_) +
               sizeof(Impl_::time_unit_));
}
PredictedResultTTL::~PredictedResultTTL() {
  // @@protoc_insertion_point(destructor:segmentation_platform.proto.PredictedResultTTL)
  SharedDtor(*this);
}
inline void PredictedResultTTL::SharedDtor(MessageLite& self) {
  PredictedResultTTL& this_ = static_cast<PredictedResultTTL&>(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 PredictedResultTTL_class_data_ =
    PredictedResultTTL::InternalGenerateClassData_(PredictedResultTTL_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PredictedResultTTL::GetClassData() const {
  return PredictedResultTTL_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PredictedResultTTL::GetClassData() const {
  return PredictedResultTTL_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PredictedResultTTL::ParseTableT_
    PredictedResultTTL::_table_ =
        PredictedResultTTL::InternalGenerateParseTable_(PredictedResultTTL_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PredictedResultTTL::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.PredictedResultTTL)
  ::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)) {
    ::memset(&_impl_.default_ttl_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.time_unit_) -
        reinterpret_cast<char*>(&_impl_.default_ttl_)) + sizeof(_impl_.time_unit_));
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.top_label_to_ttl_map_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // map<string, uint64> top_label_to_ttl_map = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_top_label_to_ttl_map().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, ::uint64_t>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, ::uint64_t,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_UINT64>;
      const auto& field = this_._internal_top_label_to_ttl_map();

      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 uint64 default_ttl = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
        2, this_._internal_default_ttl(), target);
  }

  // optional .segmentation_platform.proto.TimeUnit time_unit = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_time_unit(), 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:segmentation_platform.proto.PredictedResultTTL)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PredictedResultTTL::ByteSizeLong(const MessageLite& base) {
  const PredictedResultTTL& this_ = static_cast<const PredictedResultTTL&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PredictedResultTTL::ByteSizeLong() const {
  const PredictedResultTTL& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.PredictedResultTTL)
  ::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 uint64 default_ttl = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_default_ttl());
    }
    // optional .segmentation_platform.proto.TimeUnit time_unit = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_time_unit());
    }
    // map<string, uint64> top_label_to_ttl_map = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_top_label_to_ttl_map_size());
      for (const auto& entry : this_._internal_top_label_to_ttl_map()) {
        total_size += _pbi::MapEntryFuncs<::std::string, ::uint64_t,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_UINT64>::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 PredictedResultTTL::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PredictedResultTTL*>(&to_msg);
  auto& from = static_cast<const PredictedResultTTL&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.PredictedResultTTL)
  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->_impl_.default_ttl_ = from._impl_.default_ttl_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.time_unit_ = from._impl_.time_unit_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.top_label_to_ttl_map_.MergeFrom(from._impl_.top_label_to_ttl_map_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PredictedResultTTL::InternalSwap(PredictedResultTTL* 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(PredictedResultTTL, _impl_.time_unit_)
      + sizeof(PredictedResultTTL::_impl_.time_unit_)
      - PROTOBUF_FIELD_OFFSET(PredictedResultTTL, _impl_.default_ttl_)>(
          reinterpret_cast<char*>(&_impl_.default_ttl_),
          reinterpret_cast<char*>(&other->_impl_.default_ttl_));
  _impl_.top_label_to_ttl_map_.InternalSwap(&other->_impl_.top_label_to_ttl_map_);
}

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

OutputConfig::OutputConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, OutputConfig_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:segmentation_platform.proto.OutputConfig)
}
PROTOBUF_NDEBUG_INLINE OutputConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::segmentation_platform::proto::OutputConfig& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  OutputConfig* 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_.predictor_ = (CheckHasBit(cached_has_bits, 0x00000001U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.predictor_)
                : nullptr;
  _impl_.predicted_result_ttl_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.predicted_result_ttl_)
                : nullptr;
  _impl_.ignore_previous_model_ttl_ = from._impl_.ignore_previous_model_ttl_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite OutputConfig_class_data_ =
    OutputConfig::InternalGenerateClassData_(OutputConfig_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OutputConfig::GetClassData() const {
  return OutputConfig_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
OutputConfig::GetClassData() const {
  return OutputConfig_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const OutputConfig::ParseTableT_
    OutputConfig::_table_ =
        OutputConfig::InternalGenerateParseTable_(OutputConfig_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void OutputConfig::Clear() {
// @@protoc_insertion_point(message_clear_start:segmentation_platform.proto.OutputConfig)
  ::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)) {
      ABSL_DCHECK(_impl_.predictor_ != nullptr);
      _impl_.predictor_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.predicted_result_ttl_ != nullptr);
      _impl_.predicted_result_ttl_->Clear();
    }
  }
  _impl_.ignore_previous_model_ttl_ = false;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .segmentation_platform.proto.Predictor predictor = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.predictor_, this_._impl_.predictor_->GetCachedSize(), target,
        stream);
  }

  // optional .segmentation_platform.proto.PredictedResultTTL predicted_result_ttl = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.predicted_result_ttl_, this_._impl_.predicted_result_ttl_->GetCachedSize(), target,
        stream);
  }

  // optional bool ignore_previous_model_ttl = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_ignore_previous_model_ttl(), 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:segmentation_platform.proto.OutputConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t OutputConfig::ByteSizeLong(const MessageLite& base) {
  const OutputConfig& this_ = static_cast<const OutputConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t OutputConfig::ByteSizeLong() const {
  const OutputConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:segmentation_platform.proto.OutputConfig)
  ::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) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // optional .segmentation_platform.proto.Predictor predictor = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.predictor_);
    }
    // optional .segmentation_platform.proto.PredictedResultTTL predicted_result_ttl = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.predicted_result_ttl_);
    }
  }
  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 OutputConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<OutputConfig*>(&to_msg);
  auto& from = static_cast<const OutputConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:segmentation_platform.proto.OutputConfig)
  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_.predictor_ != nullptr);
      if (_this->_impl_.predictor_ == nullptr) {
        _this->_impl_.predictor_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.predictor_);
      } else {
        _this->_impl_.predictor_->MergeFrom(*from._impl_.predictor_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.predicted_result_ttl_ != nullptr);
      if (_this->_impl_.predicted_result_ttl_ == nullptr) {
        _this->_impl_.predicted_result_ttl_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.predicted_result_ttl_);
      } else {
        _this->_impl_.predicted_result_ttl_->MergeFrom(*from._impl_.predicted_result_ttl_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.ignore_previous_model_ttl_ = from._impl_.ignore_previous_model_ttl_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void OutputConfig::InternalSwap(OutputConfig* 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(OutputConfig, _impl_.ignore_previous_model_ttl_)
      + sizeof(OutputConfig::_impl_.ignore_previous_model_ttl_)
      - PROTOBUF_FIELD_OFFSET(OutputConfig, _impl_.predictor_)>(
          reinterpret_cast<char*>(&_impl_.predictor_),
          reinterpret_cast<char*>(&other->_impl_.predictor_));
}

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