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

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

constexpr WordMatchSearchParams::ParseTableT_ WordMatchSearchParams::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // 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<::history_embeddings::proto::WordMatchSearchParams>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // float minimum_embedding_score = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 0, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.minimum_embedding_score_)}},
      // float score_boost_factor = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 1, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.score_boost_factor_)}},
      // float word_match_limit = 3;
      {::_pbi::TcParser::FastF32S1,
       {29, 2, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.word_match_limit_)}},
      // float smoothing_factor = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.smoothing_factor_)}},
      // float minimum_term_length = 5;
      {::_pbi::TcParser::FastF32S1,
       {45, 4, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.minimum_term_length_)}},
      // uint32 max_term_count = 6;
      {::_pbi::TcParser::FastV32S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.max_term_count_)}},
      // float required_term_ratio = 7;
      {::_pbi::TcParser::FastF32S1,
       {61, 6, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.required_term_ratio_)}},
    }}, {{
      65535, 65535
    }}, {{
      // float minimum_embedding_score = 1;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.minimum_embedding_score_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float score_boost_factor = 2;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.score_boost_factor_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float word_match_limit = 3;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.word_match_limit_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float smoothing_factor = 4;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.smoothing_factor_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float minimum_term_length = 5;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.minimum_term_length_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // uint32 max_term_count = 6;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.max_term_count_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // float required_term_ratio = 7;
      {PROTOBUF_FIELD_OFFSET(WordMatchSearchParams, _impl_.required_term_ratio_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr WordMatchSearchParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        minimum_embedding_score_{0},
        score_boost_factor_{0},
        word_match_limit_{0},
        smoothing_factor_{0},
        minimum_term_length_{0},
        max_term_count_{0u},
        required_term_ratio_{0} {}

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

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

constexpr PassagesValue::ParseTableT_ PassagesValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PassagesValue, _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<::history_embeddings::proto::PassagesValue>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated string passages = 1;
      {::_pbi::TcParser::FastUR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PassagesValue, _impl_.passages_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated string passages = 1;
      {PROTOBUF_FIELD_OFFSET(PassagesValue, _impl_.passages_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
    }},
    // no aux_entries
    {{
      "\46\10\0\0\0\0\0\0"
      "history_embeddings.proto.PassagesValue"
      "passages"
    }},
  };
}


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

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

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

constexpr EmbeddingVector::ParseTableT_ EmbeddingVector::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EmbeddingVector, _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<::history_embeddings::proto::EmbeddingVector>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // uint32 passage_word_count = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(EmbeddingVector, _impl_.passage_word_count_)}},
      // repeated float floats = 1;
      {::_pbi::TcParser::FastF32P1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EmbeddingVector, _impl_.floats_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated float floats = 1;
      {PROTOBUF_FIELD_OFFSET(EmbeddingVector, _impl_.floats_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
      // uint32 passage_word_count = 2;
      {PROTOBUF_FIELD_OFFSET(EmbeddingVector, _impl_.passage_word_count_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr EmbeddingVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        floats_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::history_embeddings::proto::EmbeddingVector,
            PROTOBUF_FIELD_OFFSET(::history_embeddings::proto::EmbeddingVector, _impl_.floats_)>()
         }
        ,
        passage_word_count_{0u} {}

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

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

constexpr WordMatchBoostTestCase::ParseTableT_ WordMatchBoostTestCase::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _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
      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<::history_embeddings::proto::WordMatchBoostTestCase>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // float expected_score_boost = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.expected_score_boost_)}},
      // .history_embeddings.proto.WordMatchSearchParams params = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.params_)}},
      // string query = 2;
      {::_pbi::TcParser::FastUS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.query_)}},
      // .history_embeddings.proto.PassagesValue passages = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 1,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.passages_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .history_embeddings.proto.WordMatchSearchParams params = 1;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.params_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // string query = 2;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.query_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .history_embeddings.proto.PassagesValue passages = 3;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.passages_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // float expected_score_boost = 4;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.expected_score_boost_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::history_embeddings::proto::WordMatchSearchParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::history_embeddings::proto::WordMatchSearchParams_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::history_embeddings::proto::PassagesValue>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::history_embeddings::proto::PassagesValue_globals_},
        #endif
    }},
    {{
      "\57\0\5\0\0\0\0\0"
      "history_embeddings.proto.WordMatchBoostTestCase"
      "query"
    }},
  };
}


inline constexpr WordMatchBoostTestCase::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        query_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        params_{nullptr},
        passages_{nullptr},
        expected_score_boost_{0} {}

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

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

constexpr EmbeddingsValue::ParseTableT_ EmbeddingsValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EmbeddingsValue, _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
      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<::history_embeddings::proto::EmbeddingsValue>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .history_embeddings.proto.EmbeddingVector vectors = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EmbeddingsValue, _impl_.vectors_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .history_embeddings.proto.EmbeddingVector vectors = 1;
      {PROTOBUF_FIELD_OFFSET(EmbeddingsValue, _impl_.vectors_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::history_embeddings::proto::EmbeddingVector>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::history_embeddings::proto::EmbeddingVector_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr WordMatchBoostTest::ParseTableT_ WordMatchBoostTest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(WordMatchBoostTest, _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<::history_embeddings::proto::WordMatchBoostTest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .history_embeddings.proto.WordMatchBoostTestCase cases = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTest, _impl_.cases_)}},
      // repeated string stop_words = 1;
      {::_pbi::TcParser::FastUR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(WordMatchBoostTest, _impl_.stop_words_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated string stop_words = 1;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTest, _impl_.stop_words_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
      // repeated .history_embeddings.proto.WordMatchBoostTestCase cases = 2;
      {PROTOBUF_FIELD_OFFSET(WordMatchBoostTest, _impl_.cases_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::history_embeddings::proto::WordMatchBoostTestCase>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::history_embeddings::proto::WordMatchBoostTestCase_globals_},
        #endif
    }},
    {{
      "\53\12\0\0\0\0\0\0"
      "history_embeddings.proto.WordMatchBoostTest"
      "stop_words"
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST WordMatchBoostTestGlobalsTypeInternal WordMatchBoostTest_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* WordMatchBoostTest_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return WordMatchBoostTest_globals_.GetClassData();
#else
  return WordMatchBoostTest_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace history_embeddings
namespace history_embeddings {
namespace proto {
// ===================================================================

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated string passages = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_passages_size(); i < n; ++i) {
      const auto& s = this_._internal_passages().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "history_embeddings.proto.PassagesValue.passages");
      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:history_embeddings.proto.PassagesValue)
  return target;
}

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

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


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

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

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

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

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

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

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EmbeddingVector::GetClassData() const {
  return EmbeddingVector_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EmbeddingVector::GetClassData() const {
  return EmbeddingVector_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EmbeddingVector::ParseTableT_
    EmbeddingVector::_table_ =
        EmbeddingVector::InternalGenerateParseTable_(EmbeddingVector_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EmbeddingVector::Clear() {
// @@protoc_insertion_point(message_clear_start:history_embeddings.proto.EmbeddingVector)
  ::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_.floats_.Clear();
  }
  _impl_.passage_word_count_ = 0u;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated float floats = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (this_._internal_floats_size() > 0) {
      target = stream->WriteFixedPacked(1, this_._internal_floats(), target);
    }
  }

  // uint32 passage_word_count = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (this_._internal_passage_word_count() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          2, this_._internal_passage_word_count(), 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:history_embeddings.proto.EmbeddingVector)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EmbeddingVector::ByteSizeLong(const MessageLite& base) {
  const EmbeddingVector& this_ = static_cast<const EmbeddingVector&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EmbeddingVector::ByteSizeLong() const {
  const EmbeddingVector& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:history_embeddings.proto.EmbeddingVector)
  ::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 float floats = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_floats_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_size));
      total_size += tag_size + data_size;
    }
    // uint32 passage_word_count = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (this_._internal_passage_word_count() != 0) {
        total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
            this_._internal_passage_word_count());
      }
    }
  }
  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 EmbeddingVector::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EmbeddingVector*>(&to_msg);
  auto& from = static_cast<const EmbeddingVector&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:history_embeddings.proto.EmbeddingVector)
  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_floats()->MergeFrom(from._internal_floats());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (from._internal_passage_word_count() != 0) {
        _this->_impl_.passage_word_count_ = from._impl_.passage_word_count_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void EmbeddingVector::InternalSwap(EmbeddingVector* 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_.floats_.InternalSwap(&other->_impl_.floats_);
  swap(_impl_.passage_word_count_, other->_impl_.passage_word_count_);
}

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

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .history_embeddings.proto.EmbeddingVector vectors = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_vectors_size());
         i < n; i++) {
      const auto& repfield = this_._internal_vectors().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EmbeddingsValue::ByteSizeLong(const MessageLite& base) {
  const EmbeddingsValue& this_ = static_cast<const EmbeddingsValue&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EmbeddingsValue::ByteSizeLong() const {
  const EmbeddingsValue& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:history_embeddings.proto.EmbeddingsValue)
  ::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 .history_embeddings.proto.EmbeddingVector vectors = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_vectors_size();
      for (const auto& msg : this_._internal_vectors()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 EmbeddingsValue::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EmbeddingsValue*>(&to_msg);
  auto& from = static_cast<const EmbeddingsValue&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:history_embeddings.proto.EmbeddingsValue)
  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_vectors()->InternalMergeFromWithArena(
        ::google::protobuf::MessageLite::internal_visibility(), arena,
        from._internal_vectors());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

WordMatchSearchParams::WordMatchSearchParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, WordMatchSearchParams_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:history_embeddings.proto.WordMatchSearchParams)
}
WordMatchSearchParams::WordMatchSearchParams(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const WordMatchSearchParams& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, WordMatchSearchParams_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 WordMatchSearchParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
WordMatchSearchParams::GetClassData() const {
  return WordMatchSearchParams_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
WordMatchSearchParams::GetClassData() const {
  return WordMatchSearchParams_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const WordMatchSearchParams::ParseTableT_
    WordMatchSearchParams::_table_ =
        WordMatchSearchParams::InternalGenerateParseTable_(WordMatchSearchParams_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void WordMatchSearchParams::Clear() {
// @@protoc_insertion_point(message_clear_start:history_embeddings.proto.WordMatchSearchParams)
  ::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, 0x0000007fU)) {
    ::memset(&_impl_.minimum_embedding_score_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.required_term_ratio_) -
        reinterpret_cast<char*>(&_impl_.minimum_embedding_score_)) + sizeof(_impl_.required_term_ratio_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // float minimum_embedding_score = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_minimum_embedding_score()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          1, this_._internal_minimum_embedding_score(), target);
    }
  }

  // float score_boost_factor = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_score_boost_factor()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          2, this_._internal_score_boost_factor(), target);
    }
  }

  // float word_match_limit = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_word_match_limit()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          3, this_._internal_word_match_limit(), target);
    }
  }

  // float smoothing_factor = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_smoothing_factor()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          4, this_._internal_smoothing_factor(), target);
    }
  }

  // float minimum_term_length = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_minimum_term_length()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          5, this_._internal_minimum_term_length(), target);
    }
  }

  // uint32 max_term_count = 6;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (this_._internal_max_term_count() != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          6, this_._internal_max_term_count(), target);
    }
  }

  // float required_term_ratio = 7;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_required_term_ratio()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          7, this_._internal_required_term_ratio(), 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:history_embeddings.proto.WordMatchSearchParams)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    // float minimum_embedding_score = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_minimum_embedding_score()) != 0) {
        total_size += 5;
      }
    }
    // float score_boost_factor = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_score_boost_factor()) != 0) {
        total_size += 5;
      }
    }
    // float word_match_limit = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_word_match_limit()) != 0) {
        total_size += 5;
      }
    }
    // float smoothing_factor = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_smoothing_factor()) != 0) {
        total_size += 5;
      }
    }
    // float minimum_term_length = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_minimum_term_length()) != 0) {
        total_size += 5;
      }
    }
    // uint32 max_term_count = 6;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (this_._internal_max_term_count() != 0) {
        total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
            this_._internal_max_term_count());
      }
    }
    // float required_term_ratio = 7;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_required_term_ratio()) != 0) {
        total_size += 5;
      }
    }
  }
  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 WordMatchSearchParams::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<WordMatchSearchParams*>(&to_msg);
  auto& from = static_cast<const WordMatchSearchParams&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:history_embeddings.proto.WordMatchSearchParams)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_minimum_embedding_score()) != 0) {
        _this->_impl_.minimum_embedding_score_ = from._impl_.minimum_embedding_score_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_score_boost_factor()) != 0) {
        _this->_impl_.score_boost_factor_ = from._impl_.score_boost_factor_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_word_match_limit()) != 0) {
        _this->_impl_.word_match_limit_ = from._impl_.word_match_limit_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_smoothing_factor()) != 0) {
        _this->_impl_.smoothing_factor_ = from._impl_.smoothing_factor_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_minimum_term_length()) != 0) {
        _this->_impl_.minimum_term_length_ = from._impl_.minimum_term_length_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (from._internal_max_term_count() != 0) {
        _this->_impl_.max_term_count_ = from._impl_.max_term_count_;
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_required_term_ratio()) != 0) {
        _this->_impl_.required_term_ratio_ = from._impl_.required_term_ratio_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  WordMatchBoostTestCase* 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_.params_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.params_)
                : nullptr;
  _impl_.passages_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.passages_)
                : nullptr;
  _impl_.expected_score_boost_ = from._impl_.expected_score_boost_;

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite WordMatchBoostTestCase_class_data_ =
    WordMatchBoostTestCase::InternalGenerateClassData_(WordMatchBoostTestCase_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.query_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.params_ != nullptr);
      _impl_.params_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.passages_ != nullptr);
      _impl_.passages_->Clear();
    }
  }
  _impl_.expected_score_boost_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .history_embeddings.proto.WordMatchSearchParams params = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.params_, this_._impl_.params_->GetCachedSize(), target,
        stream);
  }

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

  // .history_embeddings.proto.PassagesValue passages = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.passages_, this_._impl_.passages_->GetCachedSize(), target,
        stream);
  }

  // float expected_score_boost = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    if (::absl::bit_cast<::uint32_t>(this_._internal_expected_score_boost()) != 0) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          4, this_._internal_expected_score_boost(), 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:history_embeddings.proto.WordMatchBoostTestCase)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t WordMatchBoostTestCase::ByteSizeLong(const MessageLite& base) {
  const WordMatchBoostTestCase& this_ = static_cast<const WordMatchBoostTestCase&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t WordMatchBoostTestCase::ByteSizeLong() const {
  const WordMatchBoostTestCase& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:history_embeddings.proto.WordMatchBoostTestCase)
  ::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, 0x0000000fU)) {
    // string query = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_query().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_query());
      }
    }
    // .history_embeddings.proto.WordMatchSearchParams params = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.params_);
    }
    // .history_embeddings.proto.PassagesValue passages = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.passages_);
    }
    // float expected_score_boost = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (::absl::bit_cast<::uint32_t>(this_._internal_expected_score_boost()) != 0) {
        total_size += 5;
      }
    }
  }
  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 WordMatchBoostTestCase::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<WordMatchBoostTestCase*>(&to_msg);
  auto& from = static_cast<const WordMatchBoostTestCase&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:history_embeddings.proto.WordMatchBoostTestCase)
  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)) {
      if (!from._internal_query().empty()) {
        _this->_internal_set_query(from._internal_query());
      } else {
        if (_this->_impl_.query_.IsDefault()) {
          _this->_internal_set_query("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.params_ != nullptr);
      if (_this->_impl_.params_ == nullptr) {
        _this->_impl_.params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.params_);
      } else {
        _this->_impl_.params_->MergeFrom(*from._impl_.params_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.passages_ != nullptr);
      if (_this->_impl_.passages_ == nullptr) {
        _this->_impl_.passages_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.passages_);
      } else {
        _this->_impl_.passages_->MergeFrom(*from._impl_.passages_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      if (::absl::bit_cast<::uint32_t>(from._internal_expected_score_boost()) != 0) {
        _this->_impl_.expected_score_boost_ = from._impl_.expected_score_boost_;
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void WordMatchBoostTestCase::InternalSwap(WordMatchBoostTestCase* 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_.query_, &other->_impl_.query_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.expected_score_boost_)
      + sizeof(WordMatchBoostTestCase::_impl_.expected_score_boost_)
      - PROTOBUF_FIELD_OFFSET(WordMatchBoostTestCase, _impl_.params_)>(
          reinterpret_cast<char*>(&_impl_.params_),
          reinterpret_cast<char*>(&other->_impl_.params_));
}

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

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated string stop_words = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_stop_words_size(); i < n; ++i) {
      const auto& s = this_._internal_stop_words().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "history_embeddings.proto.WordMatchBoostTest.stop_words");
      target = stream->WriteString(1, s, target);
    }
  }

  // repeated .history_embeddings.proto.WordMatchBoostTestCase cases = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_cases_size());
         i < n; i++) {
      const auto& repfield = this_._internal_cases().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = 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:history_embeddings.proto.WordMatchBoostTest)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t WordMatchBoostTest::ByteSizeLong(const MessageLite& base) {
  const WordMatchBoostTest& this_ = static_cast<const WordMatchBoostTest&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t WordMatchBoostTest::ByteSizeLong() const {
  const WordMatchBoostTest& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:history_embeddings.proto.WordMatchBoostTest)
  ::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 string stop_words = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_stop_words().size());
      for (int i = 0, n = this_._internal_stop_words().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_stop_words().Get(i));
      }
    }
    // repeated .history_embeddings.proto.WordMatchBoostTestCase cases = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_cases_size();
      for (const auto& msg : this_._internal_cases()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  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 WordMatchBoostTest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<WordMatchBoostTest*>(&to_msg);
  auto& from = static_cast<const WordMatchBoostTest&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:history_embeddings.proto.WordMatchBoostTest)
  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_stop_words()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_stop_words());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_cases()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_cases());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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