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

#ifndef nn_5fclassifier_2eproto_2epb_2eh
#define nn_5fclassifier_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7035001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "example_preprocessor.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_nn_5fclassifier_2eproto

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct TableStruct_nn_5fclassifier_2eproto {
  static const ::uint32_t offsets[];
};
namespace assist_ranker {
class FloatVector;
struct FloatVectorGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern FloatVectorGlobalsTypeInternal FloatVector_globals_;
extern const ::google::protobuf::internal::ClassDataLite FloatVector_class_data_;
#else
extern const FloatVectorGlobalsTypeInternal FloatVector_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class NNClassifierModel;
struct NNClassifierModelGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern NNClassifierModelGlobalsTypeInternal NNClassifierModel_globals_;
extern const ::google::protobuf::internal::ClassDataLite NNClassifierModel_class_data_;
#else
extern const NNClassifierModelGlobalsTypeInternal NNClassifierModel_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class NNLayer;
struct NNLayerGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern NNLayerGlobalsTypeInternal NNLayer_globals_;
extern const ::google::protobuf::internal::ClassDataLite NNLayer_class_data_;
#else
extern const NNLayerGlobalsTypeInternal NNLayer_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace assist_ranker
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace assist_ranker {

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


// -------------------------------------------------------------------

class  FloatVector final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:assist_ranker.FloatVector) */ {
 public:
  inline FloatVector() : FloatVector(nullptr) {}
  ~FloatVector() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(FloatVector* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(FloatVector));
  }
#endif

  template <typename = void>
  explicit constexpr FloatVector(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline FloatVector(const FloatVector& from) : FloatVector(nullptr, from) {}
  inline FloatVector(FloatVector&& from) noexcept : FloatVector(nullptr, ::std::move(from)) {}
  inline FloatVector& operator=(const FloatVector& from) {
    CopyFrom(from);
    return *this;
  }
  inline FloatVector& operator=(FloatVector&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const FloatVector& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<FloatVector>(&FloatVector_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(FloatVector& a, FloatVector& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(FloatVector* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(FloatVector* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  FloatVector* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<FloatVector>(arena);
  }
  void CopyFrom(const FloatVector& from);
  void MergeFrom(const FloatVector& from) { FloatVector::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(FloatVector* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "assist_ranker.FloatVector"; }

  explicit FloatVector(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  FloatVector(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FloatVector& from);
  FloatVector(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, FloatVector&& from) noexcept
      : FloatVector(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kValuesFieldNumber = 1,
  };
  // repeated float values = 1;
  int values_size()
      const;
  private:
  int _internal_values_size() const;

  public:
  void clear_values() ;
  float values(int index) const;
  void set_values(int index, float value);
  void add_values(float value);
  const ::google::protobuf::RepeatedField<float>& values()
      const;
  ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL mutable_values();

  private:
  const ::google::protobuf::RepeatedField<float>& _internal_values() const;
  ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL _internal_mutable_values();

  public:
  // @@protoc_insertion_point(class_scope:assist_ranker.FloatVector)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const FloatVector& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedField<float> values_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_nn_5fclassifier_2eproto;
};
// -------------------------------------------------------------------

class  NNLayer final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:assist_ranker.NNLayer) */ {
 public:
  inline NNLayer() : NNLayer(nullptr) {}
  ~NNLayer() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(NNLayer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(NNLayer));
  }
#endif

  template <typename = void>
  explicit constexpr NNLayer(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline NNLayer(const NNLayer& from) : NNLayer(nullptr, from) {}
  inline NNLayer(NNLayer&& from) noexcept : NNLayer(nullptr, ::std::move(from)) {}
  inline NNLayer& operator=(const NNLayer& from) {
    CopyFrom(from);
    return *this;
  }
  inline NNLayer& operator=(NNLayer&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const NNLayer& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<NNLayer>(&NNLayer_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(NNLayer& a, NNLayer& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(NNLayer* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(NNLayer* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  NNLayer* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<NNLayer>(arena);
  }
  void CopyFrom(const NNLayer& from);
  void MergeFrom(const NNLayer& from) { NNLayer::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(NNLayer* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "assist_ranker.NNLayer"; }

  explicit NNLayer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  NNLayer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NNLayer& from);
  NNLayer(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NNLayer&& from) noexcept
      : NNLayer(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kWeightsFieldNumber = 1,
    kBiasesFieldNumber = 2,
  };
  // repeated .assist_ranker.FloatVector weights = 1;
  int weights_size()
      const;
  private:
  int _internal_weights_size() const;

  public:
  void clear_weights() ;
  const ::assist_ranker::FloatVector& weights(int index) const;
  ::assist_ranker::FloatVector* PROTOBUF_NONNULL mutable_weights(int index);
  ::assist_ranker::FloatVector* PROTOBUF_NONNULL add_weights();
  const ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>&
  weights() const;
  ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>* PROTOBUF_NONNULL
  mutable_weights();

  private:
  const ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>& _internal_weights() const;
  ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>* PROTOBUF_NONNULL _internal_mutable_weights();

  public:
  // optional .assist_ranker.FloatVector biases = 2;
  bool has_biases()
      const;
  void clear_biases() ;
  const ::assist_ranker::FloatVector& biases() const;
  ::assist_ranker::FloatVector* PROTOBUF_NULLABLE release_biases();
  ::assist_ranker::FloatVector* PROTOBUF_NONNULL mutable_biases();
  void set_allocated_biases(::assist_ranker::FloatVector* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_biases(::assist_ranker::FloatVector* PROTOBUF_NULLABLE value);
  ::assist_ranker::FloatVector* PROTOBUF_NULLABLE unsafe_arena_release_biases();

  private:
  const ::assist_ranker::FloatVector& _internal_biases() const;
  ::assist_ranker::FloatVector* PROTOBUF_NONNULL _internal_mutable_biases();

  public:
  // @@protoc_insertion_point(class_scope:assist_ranker.NNLayer)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          2, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const NNLayer& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::assist_ranker::FloatVector > weights_;
    ::assist_ranker::FloatVector* PROTOBUF_NULLABLE biases_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_nn_5fclassifier_2eproto;
};
// -------------------------------------------------------------------

class  NNClassifierModel final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:assist_ranker.NNClassifierModel) */ {
 public:
  inline NNClassifierModel() : NNClassifierModel(nullptr) {}
  ~NNClassifierModel() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(NNClassifierModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(NNClassifierModel));
  }
#endif

  template <typename = void>
  explicit constexpr NNClassifierModel(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline NNClassifierModel(const NNClassifierModel& from) : NNClassifierModel(nullptr, from) {}
  inline NNClassifierModel(NNClassifierModel&& from) noexcept : NNClassifierModel(nullptr, ::std::move(from)) {}
  inline NNClassifierModel& operator=(const NNClassifierModel& from) {
    CopyFrom(from);
    return *this;
  }
  inline NNClassifierModel& operator=(NNClassifierModel&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const NNClassifierModel& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<NNClassifierModel>(&NNClassifierModel_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(NNClassifierModel& a, NNClassifierModel& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(NNClassifierModel* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(NNClassifierModel* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  NNClassifierModel* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<NNClassifierModel>(arena);
  }
  void CopyFrom(const NNClassifierModel& from);
  void MergeFrom(const NNClassifierModel& from) { NNClassifierModel::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(NNClassifierModel* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "assist_ranker.NNClassifierModel"; }

  explicit NNClassifierModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  NNClassifierModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NNClassifierModel& from);
  NNClassifierModel(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, NNClassifierModel&& from) noexcept
      : NNClassifierModel(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kHiddenLayerFieldNumber = 1,
    kLogitsLayerFieldNumber = 2,
    kPreprocessorConfigFieldNumber = 3,
  };
  // optional .assist_ranker.NNLayer hidden_layer = 1;
  bool has_hidden_layer()
      const;
  void clear_hidden_layer() ;
  const ::assist_ranker::NNLayer& hidden_layer() const;
  ::assist_ranker::NNLayer* PROTOBUF_NULLABLE release_hidden_layer();
  ::assist_ranker::NNLayer* PROTOBUF_NONNULL mutable_hidden_layer();
  void set_allocated_hidden_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_hidden_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value);
  ::assist_ranker::NNLayer* PROTOBUF_NULLABLE unsafe_arena_release_hidden_layer();

  private:
  const ::assist_ranker::NNLayer& _internal_hidden_layer() const;
  ::assist_ranker::NNLayer* PROTOBUF_NONNULL _internal_mutable_hidden_layer();

  public:
  // optional .assist_ranker.NNLayer logits_layer = 2;
  bool has_logits_layer()
      const;
  void clear_logits_layer() ;
  const ::assist_ranker::NNLayer& logits_layer() const;
  ::assist_ranker::NNLayer* PROTOBUF_NULLABLE release_logits_layer();
  ::assist_ranker::NNLayer* PROTOBUF_NONNULL mutable_logits_layer();
  void set_allocated_logits_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_logits_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value);
  ::assist_ranker::NNLayer* PROTOBUF_NULLABLE unsafe_arena_release_logits_layer();

  private:
  const ::assist_ranker::NNLayer& _internal_logits_layer() const;
  ::assist_ranker::NNLayer* PROTOBUF_NONNULL _internal_mutable_logits_layer();

  public:
  // optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
  bool has_preprocessor_config()
      const;
  void clear_preprocessor_config() ;
  const ::assist_ranker::ExamplePreprocessorConfig& preprocessor_config() const;
  ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE release_preprocessor_config();
  ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NONNULL mutable_preprocessor_config();
  void set_allocated_preprocessor_config(::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_preprocessor_config(::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE value);
  ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE unsafe_arena_release_preprocessor_config();

  private:
  const ::assist_ranker::ExamplePreprocessorConfig& _internal_preprocessor_config() const;
  ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NONNULL _internal_mutable_preprocessor_config();

  public:
  // @@protoc_insertion_point(class_scope:assist_ranker.NNClassifierModel)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 3,
                          3, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const NNClassifierModel& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::assist_ranker::NNLayer* PROTOBUF_NULLABLE hidden_layer_;
    ::assist_ranker::NNLayer* PROTOBUF_NULLABLE logits_layer_;
    ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE preprocessor_config_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_nn_5fclassifier_2eproto;
};

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




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


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// FloatVector

// repeated float values = 1;
inline int FloatVector::_internal_values_size() const {
  return _internal_values().size();
}
inline int FloatVector::values_size() const {
  return _internal_values_size();
}
inline void FloatVector::clear_values() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.values_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline float FloatVector::values(int index) const {
  // @@protoc_insertion_point(field_get:assist_ranker.FloatVector.values)
  return _internal_values().Get(index);
}
inline void FloatVector::set_values(int index, float value) {
  _internal_mutable_values()->Set(index, value);
  // @@protoc_insertion_point(field_set:assist_ranker.FloatVector.values)
}
inline void FloatVector::add_values(float value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _internal_mutable_values()
      ->InternalAddWithArena<const ::google::protobuf::MessageLite*>(
          internal_visibility(), this, value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:assist_ranker.FloatVector.values)
}
inline const ::google::protobuf::RepeatedField<float>& FloatVector::values() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:assist_ranker.FloatVector.values)
  return _internal_values();
}
inline ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL FloatVector::mutable_values()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:assist_ranker.FloatVector.values)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_values();
}
inline const ::google::protobuf::RepeatedField<float>&
FloatVector::_internal_values() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.values_;
}
inline ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL
FloatVector::_internal_mutable_values() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.values_;
}

// -------------------------------------------------------------------

// NNLayer

// repeated .assist_ranker.FloatVector weights = 1;
inline int NNLayer::_internal_weights_size() const {
  return _internal_weights().size();
}
inline int NNLayer::weights_size() const {
  return _internal_weights_size();
}
inline void NNLayer::clear_weights() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.weights_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::assist_ranker::FloatVector& NNLayer::weights(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:assist_ranker.NNLayer.weights)
  return _internal_weights().Get(index);
}
inline ::assist_ranker::FloatVector* PROTOBUF_NONNULL NNLayer::mutable_weights(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:assist_ranker.NNLayer.weights)
  return _internal_mutable_weights()->Mutable(index);
}
inline ::assist_ranker::FloatVector* PROTOBUF_NONNULL NNLayer::add_weights()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::assist_ranker::FloatVector* _add =
      _internal_mutable_weights()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:assist_ranker.NNLayer.weights)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>& NNLayer::weights() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:assist_ranker.NNLayer.weights)
  return _internal_weights();
}
inline ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>* PROTOBUF_NONNULL
NNLayer::mutable_weights() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:assist_ranker.NNLayer.weights)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_weights();
}
inline const ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>&
NNLayer::_internal_weights() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.weights_;
}
inline ::google::protobuf::RepeatedPtrField<::assist_ranker::FloatVector>* PROTOBUF_NONNULL
NNLayer::_internal_mutable_weights() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.weights_;
}

// optional .assist_ranker.FloatVector biases = 2;
inline bool NNLayer::has_biases() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.biases_ != nullptr);
  return value;
}
inline void NNLayer::clear_biases() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.biases_ != nullptr) _impl_.biases_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::assist_ranker::FloatVector& NNLayer::_internal_biases() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::assist_ranker::FloatVector* p = _impl_.biases_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::assist_ranker::FloatVector>(&::assist_ranker::FloatVector_globals_);
}
inline const ::assist_ranker::FloatVector& NNLayer::biases() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:assist_ranker.NNLayer.biases)
  return _internal_biases();
}
inline void NNLayer::unsafe_arena_set_allocated_biases(
    ::assist_ranker::FloatVector* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.biases_);
  }
  _impl_.biases_ = reinterpret_cast<::assist_ranker::FloatVector*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:assist_ranker.NNLayer.biases)
}
inline ::assist_ranker::FloatVector* PROTOBUF_NULLABLE NNLayer::release_biases() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::FloatVector* released = _impl_.biases_;
  _impl_.biases_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::assist_ranker::FloatVector* PROTOBUF_NULLABLE NNLayer::unsafe_arena_release_biases() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:assist_ranker.NNLayer.biases)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::FloatVector* temp = _impl_.biases_;
  _impl_.biases_ = nullptr;
  return temp;
}
inline ::assist_ranker::FloatVector* PROTOBUF_NONNULL NNLayer::_internal_mutable_biases() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.biases_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::assist_ranker::FloatVector>(GetArena());
    _impl_.biases_ = reinterpret_cast<::assist_ranker::FloatVector*>(p);
  }
  return _impl_.biases_;
}
inline ::assist_ranker::FloatVector* PROTOBUF_NONNULL NNLayer::mutable_biases()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::FloatVector* _msg = _internal_mutable_biases();
  // @@protoc_insertion_point(field_mutable:assist_ranker.NNLayer.biases)
  return _msg;
}
inline void NNLayer::set_allocated_biases(::assist_ranker::FloatVector* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.biases_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.biases_ = reinterpret_cast<::assist_ranker::FloatVector*>(value);
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.NNLayer.biases)
}

// -------------------------------------------------------------------

// NNClassifierModel

// optional .assist_ranker.NNLayer hidden_layer = 1;
inline bool NNClassifierModel::has_hidden_layer() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  PROTOBUF_ASSUME(!value || _impl_.hidden_layer_ != nullptr);
  return value;
}
inline void NNClassifierModel::clear_hidden_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.hidden_layer_ != nullptr) _impl_.hidden_layer_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::assist_ranker::NNLayer& NNClassifierModel::_internal_hidden_layer() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::assist_ranker::NNLayer* p = _impl_.hidden_layer_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::assist_ranker::NNLayer>(&::assist_ranker::NNLayer_globals_);
}
inline const ::assist_ranker::NNLayer& NNClassifierModel::hidden_layer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:assist_ranker.NNClassifierModel.hidden_layer)
  return _internal_hidden_layer();
}
inline void NNClassifierModel::unsafe_arena_set_allocated_hidden_layer(
    ::assist_ranker::NNLayer* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hidden_layer_);
  }
  _impl_.hidden_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:assist_ranker.NNClassifierModel.hidden_layer)
}
inline ::assist_ranker::NNLayer* PROTOBUF_NULLABLE NNClassifierModel::release_hidden_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::assist_ranker::NNLayer* released = _impl_.hidden_layer_;
  _impl_.hidden_layer_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NULLABLE NNClassifierModel::unsafe_arena_release_hidden_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:assist_ranker.NNClassifierModel.hidden_layer)

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::assist_ranker::NNLayer* temp = _impl_.hidden_layer_;
  _impl_.hidden_layer_ = nullptr;
  return temp;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NONNULL NNClassifierModel::_internal_mutable_hidden_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.hidden_layer_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::assist_ranker::NNLayer>(GetArena());
    _impl_.hidden_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(p);
  }
  return _impl_.hidden_layer_;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NONNULL NNClassifierModel::mutable_hidden_layer()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::assist_ranker::NNLayer* _msg = _internal_mutable_hidden_layer();
  // @@protoc_insertion_point(field_mutable:assist_ranker.NNClassifierModel.hidden_layer)
  return _msg;
}
inline void NNClassifierModel::set_allocated_hidden_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hidden_layer_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }

  _impl_.hidden_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(value);
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.NNClassifierModel.hidden_layer)
}

// optional .assist_ranker.NNLayer logits_layer = 2;
inline bool NNClassifierModel::has_logits_layer() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.logits_layer_ != nullptr);
  return value;
}
inline void NNClassifierModel::clear_logits_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.logits_layer_ != nullptr) _impl_.logits_layer_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::assist_ranker::NNLayer& NNClassifierModel::_internal_logits_layer() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::assist_ranker::NNLayer* p = _impl_.logits_layer_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::assist_ranker::NNLayer>(&::assist_ranker::NNLayer_globals_);
}
inline const ::assist_ranker::NNLayer& NNClassifierModel::logits_layer() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:assist_ranker.NNClassifierModel.logits_layer)
  return _internal_logits_layer();
}
inline void NNClassifierModel::unsafe_arena_set_allocated_logits_layer(
    ::assist_ranker::NNLayer* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.logits_layer_);
  }
  _impl_.logits_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:assist_ranker.NNClassifierModel.logits_layer)
}
inline ::assist_ranker::NNLayer* PROTOBUF_NULLABLE NNClassifierModel::release_logits_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::NNLayer* released = _impl_.logits_layer_;
  _impl_.logits_layer_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NULLABLE NNClassifierModel::unsafe_arena_release_logits_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:assist_ranker.NNClassifierModel.logits_layer)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::NNLayer* temp = _impl_.logits_layer_;
  _impl_.logits_layer_ = nullptr;
  return temp;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NONNULL NNClassifierModel::_internal_mutable_logits_layer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.logits_layer_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::assist_ranker::NNLayer>(GetArena());
    _impl_.logits_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(p);
  }
  return _impl_.logits_layer_;
}
inline ::assist_ranker::NNLayer* PROTOBUF_NONNULL NNClassifierModel::mutable_logits_layer()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::assist_ranker::NNLayer* _msg = _internal_mutable_logits_layer();
  // @@protoc_insertion_point(field_mutable:assist_ranker.NNClassifierModel.logits_layer)
  return _msg;
}
inline void NNClassifierModel::set_allocated_logits_layer(::assist_ranker::NNLayer* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.logits_layer_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.logits_layer_ = reinterpret_cast<::assist_ranker::NNLayer*>(value);
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.NNClassifierModel.logits_layer)
}

// optional .assist_ranker.ExamplePreprocessorConfig preprocessor_config = 3;
inline bool NNClassifierModel::has_preprocessor_config() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  PROTOBUF_ASSUME(!value || _impl_.preprocessor_config_ != nullptr);
  return value;
}
inline const ::assist_ranker::ExamplePreprocessorConfig& NNClassifierModel::_internal_preprocessor_config() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::assist_ranker::ExamplePreprocessorConfig* p = _impl_.preprocessor_config_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::assist_ranker::ExamplePreprocessorConfig>(&::assist_ranker::ExamplePreprocessorConfig_globals_);
}
inline const ::assist_ranker::ExamplePreprocessorConfig& NNClassifierModel::preprocessor_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:assist_ranker.NNClassifierModel.preprocessor_config)
  return _internal_preprocessor_config();
}
inline void NNClassifierModel::unsafe_arena_set_allocated_preprocessor_config(
    ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.preprocessor_config_);
  }
  _impl_.preprocessor_config_ = reinterpret_cast<::assist_ranker::ExamplePreprocessorConfig*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:assist_ranker.NNClassifierModel.preprocessor_config)
}
inline ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE NNClassifierModel::release_preprocessor_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::assist_ranker::ExamplePreprocessorConfig* released = _impl_.preprocessor_config_;
  _impl_.preprocessor_config_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE NNClassifierModel::unsafe_arena_release_preprocessor_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:assist_ranker.NNClassifierModel.preprocessor_config)

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::assist_ranker::ExamplePreprocessorConfig* temp = _impl_.preprocessor_config_;
  _impl_.preprocessor_config_ = nullptr;
  return temp;
}
inline ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NONNULL NNClassifierModel::_internal_mutable_preprocessor_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.preprocessor_config_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::assist_ranker::ExamplePreprocessorConfig>(GetArena());
    _impl_.preprocessor_config_ = reinterpret_cast<::assist_ranker::ExamplePreprocessorConfig*>(p);
  }
  return _impl_.preprocessor_config_;
}
inline ::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NONNULL NNClassifierModel::mutable_preprocessor_config()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::assist_ranker::ExamplePreprocessorConfig* _msg = _internal_mutable_preprocessor_config();
  // @@protoc_insertion_point(field_mutable:assist_ranker.NNClassifierModel.preprocessor_config)
  return _msg;
}
inline void NNClassifierModel::set_allocated_preprocessor_config(::assist_ranker::ExamplePreprocessorConfig* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.preprocessor_config_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }

  _impl_.preprocessor_config_ = reinterpret_cast<::assist_ranker::ExamplePreprocessorConfig*>(value);
  // @@protoc_insertion_point(field_set_allocated:assist_ranker.NNClassifierModel.preprocessor_config)
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace assist_ranker


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // nn_5fclassifier_2eproto_2epb_2eh
