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

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

constexpr ThresholdingRule::ParseTableT_ ThresholdingRule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ThresholdingRule, _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
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::ThresholdingRule>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // float threshold = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.threshold_)}},
      // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 15,
        PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.feature_name_)}},
      // .optimization_guide.proto.FeatureLibrary.NormalizingOp normalizing_op = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 1, 2,
        PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.normalizing_op_)}},
      // .optimization_guide.proto.FeatureLibrary.ThresholdingOp thresholding_op = 3;
      {::_pbi::TcParser::FastEr0S1,
       {24, 2, 2,
        PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.thresholding_op_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
      {PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.feature_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .optimization_guide.proto.FeatureLibrary.NormalizingOp normalizing_op = 2;
      {PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.normalizing_op_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .optimization_guide.proto.FeatureLibrary.ThresholdingOp thresholding_op = 3;
      {PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.thresholding_op_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // float threshold = 4;
      {PROTOBUF_FIELD_OFFSET(ThresholdingRule, _impl_.threshold_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    {{
        {0, 15},
        {0, 2},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr ThresholdingRule::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        feature_name_{static_cast< ::optimization_guide::proto::FeatureLibrary_ImageLevelFeatureName >(0)},
        normalizing_op_{static_cast< ::optimization_guide::proto::FeatureLibrary_NormalizingOp >(0)},
        thresholding_op_{static_cast< ::optimization_guide::proto::FeatureLibrary_ThresholdingOp >(0)},
        threshold_{0} {}

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

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

constexpr SortingClause::ParseTableT_ SortingClause::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SortingClause, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::SortingClause>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.FeatureLibrary.SortingOrder sorting_order = 2;
      {::_pbi::TcParser::FastEr0S1,
       {16, 1, 2,
        PROTOBUF_FIELD_OFFSET(SortingClause, _impl_.sorting_order_)}},
      // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
      {::_pbi::TcParser::FastEr0S1,
       {8, 0, 15,
        PROTOBUF_FIELD_OFFSET(SortingClause, _impl_.feature_name_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
      {PROTOBUF_FIELD_OFFSET(SortingClause, _impl_.feature_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .optimization_guide.proto.FeatureLibrary.SortingOrder sorting_order = 2;
      {PROTOBUF_FIELD_OFFSET(SortingClause, _impl_.sorting_order_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
    }},
    {{
        {0, 15},
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr SortingClause::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        feature_name_{static_cast< ::optimization_guide::proto::FeatureLibrary_ImageLevelFeatureName >(0)},
        sorting_order_{static_cast< ::optimization_guide::proto::FeatureLibrary_SortingOrder >(0)} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SortingClauseGlobalsTypeInternal SortingClause_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* SortingClause_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return SortingClause_globals_.GetClassData();
#else
  return SortingClause_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class FeatureLibrary::_Internal {
 public:
};

constexpr FeatureLibrary::ParseTableT_ FeatureLibrary::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(FeatureLibrary,
                            _impl_._cached_size_),  // no hasbits
      0, // no _extensions_
      0, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967295,  // skipmap
      offsetof(ParseTableT_, field_names),  // no field_entries
      0,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::FeatureLibrary>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, // no field_entries, or aux_entries
    {{
    }},
  };
}


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

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

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

constexpr AdditionalCheapPruningOptions::ParseTableT_ AdditionalCheapPruningOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(AdditionalCheapPruningOptions, _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<::optimization_guide::proto::AdditionalCheapPruningOptions>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // float z_index_overlap_fraction = 1;
      {::_pbi::TcParser::FastF32S1,
       {13, 0, 0,
        PROTOBUF_FIELD_OFFSET(AdditionalCheapPruningOptions, _impl_.z_index_overlap_fraction_)}},
    }}, {{
      65535, 65535
    }}, {{
      // float z_index_overlap_fraction = 1;
      {PROTOBUF_FIELD_OFFSET(AdditionalCheapPruningOptions, _impl_.z_index_overlap_fraction_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

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


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

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

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

constexpr EligibilitySpec::ParseTableT_ EligibilitySpec::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_._has_bits_),
      0, // no _extensions_
      5, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967264,  // skipmap
      offsetof(ParseTableT_, field_entries),
      5,  // num_field_entries
      5,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::EligibilitySpec>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .optimization_guide.proto.OrOfThresholdingRules cheap_pruning_rules = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.cheap_pruning_rules_)}},
      // repeated .optimization_guide.proto.OrOfThresholdingRules classifier_score_rules = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.classifier_score_rules_)}},
      // repeated .optimization_guide.proto.OrOfThresholdingRules post_renormalization_rules = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.post_renormalization_rules_)}},
      // repeated .optimization_guide.proto.SortingClause sorting_clauses = 4;
      {::_pbi::TcParser::FastMtR1,
       {34, 3, 3,
        PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.sorting_clauses_)}},
      // .optimization_guide.proto.AdditionalCheapPruningOptions additional_cheap_pruning_options = 5;
      {::_pbi::TcParser::FastMtS1,
       {42, 4, 4,
        PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.additional_cheap_pruning_options_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .optimization_guide.proto.OrOfThresholdingRules cheap_pruning_rules = 1;
      {PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.cheap_pruning_rules_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.OrOfThresholdingRules classifier_score_rules = 2;
      {PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.classifier_score_rules_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.OrOfThresholdingRules post_renormalization_rules = 3;
      {PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.post_renormalization_rules_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.SortingClause sorting_clauses = 4;
      {PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.sorting_clauses_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.AdditionalCheapPruningOptions additional_cheap_pruning_options = 5;
      {PROTOBUF_FIELD_OFFSET(EligibilitySpec, _impl_.additional_cheap_pruning_options_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OrOfThresholdingRules>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OrOfThresholdingRules_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OrOfThresholdingRules>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OrOfThresholdingRules_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::OrOfThresholdingRules>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::OrOfThresholdingRules_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::SortingClause>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::SortingClause_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::AdditionalCheapPruningOptions>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::AdditionalCheapPruningOptions_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr EligibilitySpec::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        cheap_pruning_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.cheap_pruning_rules_)>()
         }
        ,
        classifier_score_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.classifier_score_rules_)>()
         }
        ,
        post_renormalization_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.post_renormalization_rules_)>()
         }
        ,
        sorting_clauses_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.sorting_clauses_)>()
         }
        ,
        additional_cheap_pruning_options_{nullptr} {}

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

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

constexpr VisualSearchModelMetadata::ParseTableT_ VisualSearchModelMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(VisualSearchModelMetadata, _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<::optimization_guide::proto::VisualSearchModelMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // int64 metadata_version = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(VisualSearchModelMetadata, _impl_.metadata_version_)}},
      // .optimization_guide.proto.EligibilitySpec eligibility_spec = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(VisualSearchModelMetadata, _impl_.eligibility_spec_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.EligibilitySpec eligibility_spec = 1;
      {PROTOBUF_FIELD_OFFSET(VisualSearchModelMetadata, _impl_.eligibility_spec_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 metadata_version = 2;
      {PROTOBUF_FIELD_OFFSET(VisualSearchModelMetadata, _impl_.metadata_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::EligibilitySpec>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::EligibilitySpec_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr VisualSearchModelMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        eligibility_spec_{nullptr},
        metadata_version_{::int64_t{0}} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST VisualSearchModelMetadataGlobalsTypeInternal VisualSearchModelMetadata_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* VisualSearchModelMetadata_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return VisualSearchModelMetadata_globals_.GetClassData();
#else
  return VisualSearchModelMetadata_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace proto
}  // namespace optimization_guide
namespace optimization_guide {
namespace proto {
PROTOBUF_CONSTINIT const uint32_t FeatureLibrary_ImageLevelFeatureName_internal_data_[] = {
    1048576u, 0u, };
static const char FeatureLibrary_ImageLevelFeatureName_names[] = {
    "IMAGE_DISTANCE_TO_VIEWPORT_CENTER"
    "IMAGE_FRACTION_VISIBLE"
    "IMAGE_LEVEL_UNSPECIFIED"
    "IMAGE_ONPAGE_AREA"
    "IMAGE_ONPAGE_ASPECT_RATIO"
    "IMAGE_ONPAGE_HEIGHT"
    "IMAGE_ONPAGE_WIDTH"
    "IMAGE_ORIGINAL_AREA"
    "IMAGE_ORIGINAL_ASPECT_RATIO"
    "IMAGE_ORIGINAL_HEIGHT"
    "IMAGE_ORIGINAL_WIDTH"
    "IMAGE_VISIBLE_AREA"
    "NAT_WORLD_CLASSIFIER_SCORE"
    "PUB_FIGURES_CLASSIFIER_SCORE"
    "SENS_CLASSIFIER_SCORE"
    "SHOPPING_CLASSIFIER_SCORE"
};

static const ::google::protobuf::internal::EnumEntry FeatureLibrary_ImageLevelFeatureName_entries[] = {
    {{&FeatureLibrary_ImageLevelFeatureName_names[0], 33}, 13},
    {{&FeatureLibrary_ImageLevelFeatureName_names[33], 22}, 6},
    {{&FeatureLibrary_ImageLevelFeatureName_names[55], 23}, 0},
    {{&FeatureLibrary_ImageLevelFeatureName_names[78], 17}, 3},
    {{&FeatureLibrary_ImageLevelFeatureName_names[95], 25}, 4},
    {{&FeatureLibrary_ImageLevelFeatureName_names[120], 19}, 9},
    {{&FeatureLibrary_ImageLevelFeatureName_names[139], 18}, 10},
    {{&FeatureLibrary_ImageLevelFeatureName_names[157], 19}, 1},
    {{&FeatureLibrary_ImageLevelFeatureName_names[176], 27}, 2},
    {{&FeatureLibrary_ImageLevelFeatureName_names[203], 21}, 11},
    {{&FeatureLibrary_ImageLevelFeatureName_names[224], 20}, 12},
    {{&FeatureLibrary_ImageLevelFeatureName_names[244], 18}, 5},
    {{&FeatureLibrary_ImageLevelFeatureName_names[262], 26}, 14},
    {{&FeatureLibrary_ImageLevelFeatureName_names[288], 28}, 15},
    {{&FeatureLibrary_ImageLevelFeatureName_names[316], 21}, 8},
    {{&FeatureLibrary_ImageLevelFeatureName_names[337], 25}, 7},
};

static const int FeatureLibrary_ImageLevelFeatureName_entries_by_number[] = {
    2,  // 0 -> IMAGE_LEVEL_UNSPECIFIED
    7,  // 1 -> IMAGE_ORIGINAL_AREA
    8,  // 2 -> IMAGE_ORIGINAL_ASPECT_RATIO
    3,  // 3 -> IMAGE_ONPAGE_AREA
    4,  // 4 -> IMAGE_ONPAGE_ASPECT_RATIO
    11,  // 5 -> IMAGE_VISIBLE_AREA
    1,  // 6 -> IMAGE_FRACTION_VISIBLE
    15,  // 7 -> SHOPPING_CLASSIFIER_SCORE
    14,  // 8 -> SENS_CLASSIFIER_SCORE
    5,  // 9 -> IMAGE_ONPAGE_HEIGHT
    6,  // 10 -> IMAGE_ONPAGE_WIDTH
    9,  // 11 -> IMAGE_ORIGINAL_HEIGHT
    10,  // 12 -> IMAGE_ORIGINAL_WIDTH
    0,  // 13 -> IMAGE_DISTANCE_TO_VIEWPORT_CENTER
    12,  // 14 -> NAT_WORLD_CLASSIFIER_SCORE
    13,  // 15 -> PUB_FIGURES_CLASSIFIER_SCORE
};

bool FeatureLibrary_ImageLevelFeatureName_Parse(::absl::string_view name,
                                  FeatureLibrary_ImageLevelFeatureName* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      FeatureLibrary_ImageLevelFeatureName_entries, 16, name, &int_value);
  if (success) {
    *value = static_cast<FeatureLibrary_ImageLevelFeatureName>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    FeatureLibrary_ImageLevelFeatureName_strings[16] = {};

const ::std::string& FeatureLibrary_ImageLevelFeatureName_Name(FeatureLibrary_ImageLevelFeatureName value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      FeatureLibrary_ImageLevelFeatureName_entries, FeatureLibrary_ImageLevelFeatureName_entries_by_number, 16,
      FeatureLibrary_ImageLevelFeatureName_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(FeatureLibrary_ImageLevelFeatureName_entries,
                                  FeatureLibrary_ImageLevelFeatureName_entries_by_number,
                                  16, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FeatureLibrary_ImageLevelFeatureName_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t FeatureLibrary_NormalizingOp_internal_data_[] = {
    196608u, 0u, };
static const char FeatureLibrary_NormalizingOp_names[] = {
    "BY_MAX_VALUE"
    "BY_VIEWPORT_AREA"
    "NORMALIZE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry FeatureLibrary_NormalizingOp_entries[] = {
    {{&FeatureLibrary_NormalizingOp_names[0], 12}, 2},
    {{&FeatureLibrary_NormalizingOp_names[12], 16}, 1},
    {{&FeatureLibrary_NormalizingOp_names[28], 21}, 0},
};

static const int FeatureLibrary_NormalizingOp_entries_by_number[] = {
    2,  // 0 -> NORMALIZE_UNSPECIFIED
    1,  // 1 -> BY_VIEWPORT_AREA
    0,  // 2 -> BY_MAX_VALUE
};

bool FeatureLibrary_NormalizingOp_Parse(::absl::string_view name,
                                  FeatureLibrary_NormalizingOp* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      FeatureLibrary_NormalizingOp_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<FeatureLibrary_NormalizingOp>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    FeatureLibrary_NormalizingOp_strings[3] = {};

const ::std::string& FeatureLibrary_NormalizingOp_Name(FeatureLibrary_NormalizingOp value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      FeatureLibrary_NormalizingOp_entries, FeatureLibrary_NormalizingOp_entries_by_number, 3,
      FeatureLibrary_NormalizingOp_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(FeatureLibrary_NormalizingOp_entries,
                                  FeatureLibrary_NormalizingOp_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FeatureLibrary_NormalizingOp_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t FeatureLibrary_ThresholdingOp_internal_data_[] = {
    196608u, 0u, };
static const char FeatureLibrary_ThresholdingOp_names[] = {
    "GT"
    "LT"
    "THRESHOLDING_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry FeatureLibrary_ThresholdingOp_entries[] = {
    {{&FeatureLibrary_ThresholdingOp_names[0], 2}, 1},
    {{&FeatureLibrary_ThresholdingOp_names[2], 2}, 2},
    {{&FeatureLibrary_ThresholdingOp_names[4], 24}, 0},
};

static const int FeatureLibrary_ThresholdingOp_entries_by_number[] = {
    2,  // 0 -> THRESHOLDING_UNSPECIFIED
    0,  // 1 -> GT
    1,  // 2 -> LT
};

bool FeatureLibrary_ThresholdingOp_Parse(::absl::string_view name,
                                  FeatureLibrary_ThresholdingOp* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      FeatureLibrary_ThresholdingOp_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<FeatureLibrary_ThresholdingOp>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    FeatureLibrary_ThresholdingOp_strings[3] = {};

const ::std::string& FeatureLibrary_ThresholdingOp_Name(FeatureLibrary_ThresholdingOp value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      FeatureLibrary_ThresholdingOp_entries, FeatureLibrary_ThresholdingOp_entries_by_number, 3,
      FeatureLibrary_ThresholdingOp_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(FeatureLibrary_ThresholdingOp_entries,
                                  FeatureLibrary_ThresholdingOp_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FeatureLibrary_ThresholdingOp_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t FeatureLibrary_SortingOrder_internal_data_[] = {
    196608u, 0u, };
static const char FeatureLibrary_SortingOrder_names[] = {
    "SORT_ASCENDING"
    "SORT_DESCENDING"
    "SORT_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry FeatureLibrary_SortingOrder_entries[] = {
    {{&FeatureLibrary_SortingOrder_names[0], 14}, 1},
    {{&FeatureLibrary_SortingOrder_names[14], 15}, 2},
    {{&FeatureLibrary_SortingOrder_names[29], 16}, 0},
};

static const int FeatureLibrary_SortingOrder_entries_by_number[] = {
    2,  // 0 -> SORT_UNSPECIFIED
    0,  // 1 -> SORT_ASCENDING
    1,  // 2 -> SORT_DESCENDING
};

bool FeatureLibrary_SortingOrder_Parse(::absl::string_view name,
                                  FeatureLibrary_SortingOrder* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      FeatureLibrary_SortingOrder_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<FeatureLibrary_SortingOrder>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    FeatureLibrary_SortingOrder_strings[3] = {};

const ::std::string& FeatureLibrary_SortingOrder_Name(FeatureLibrary_SortingOrder value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      FeatureLibrary_SortingOrder_entries, FeatureLibrary_SortingOrder_entries_by_number, 3,
      FeatureLibrary_SortingOrder_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(FeatureLibrary_SortingOrder_entries,
                                  FeatureLibrary_SortingOrder_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : FeatureLibrary_SortingOrder_strings[idx].get();
}
// ===================================================================

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

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

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

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

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

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

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

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

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

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

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


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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_feature_name(), target);
  }

  // .optimization_guide.proto.FeatureLibrary.NormalizingOp normalizing_op = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_normalizing_op(), target);
  }

  // .optimization_guide.proto.FeatureLibrary.ThresholdingOp thresholding_op = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this_._internal_thresholding_op(), target);
  }

  // float threshold = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        4, this_._internal_threshold(), 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:optimization_guide.proto.ThresholdingRule)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 5;
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_feature_name());
    }
    // .optimization_guide.proto.FeatureLibrary.NormalizingOp normalizing_op = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_normalizing_op());
    }
    // .optimization_guide.proto.FeatureLibrary.ThresholdingOp thresholding_op = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_thresholding_op());
    }
  }
  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 ThresholdingRule::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ThresholdingRule*>(&to_msg);
  auto& from = static_cast<const ThresholdingRule&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.ThresholdingRule)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.feature_name_ = from._impl_.feature_name_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.normalizing_op_ = from._impl_.normalizing_op_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.thresholding_op_ = from._impl_.thresholding_op_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.threshold_ = from._impl_.threshold_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .optimization_guide.proto.ThresholdingRule rules = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_rules_size());
         i < n; i++) {
      const auto& repfield = this_._internal_rules().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:optimization_guide.proto.OrOfThresholdingRules)
  return target;
}

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

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


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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_feature_name(), target);
  }

  // .optimization_guide.proto.FeatureLibrary.SortingOrder sorting_order = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_sorting_order(), 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:optimization_guide.proto.SortingClause)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SortingClause::ByteSizeLong(const MessageLite& base) {
  const SortingClause& this_ = static_cast<const SortingClause&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SortingClause::ByteSizeLong() const {
  const SortingClause& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.SortingClause)
  ::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)) {
    // .optimization_guide.proto.FeatureLibrary.ImageLevelFeatureName feature_name = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_feature_name());
    }
    // .optimization_guide.proto.FeatureLibrary.SortingOrder sorting_order = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_sorting_order());
    }
  }
  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 SortingClause::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SortingClause*>(&to_msg);
  auto& from = static_cast<const SortingClause&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.SortingClause)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

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

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

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

  _impl_.z_index_overlap_fraction_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // float z_index_overlap_fraction = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        1, this_._internal_z_index_overlap_fraction(), 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:optimization_guide.proto.AdditionalCheapPruningOptions)
  return target;
}

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 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 AdditionalCheapPruningOptions::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<AdditionalCheapPruningOptions*>(&to_msg);
  auto& from = static_cast<const AdditionalCheapPruningOptions&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.AdditionalCheapPruningOptions)
  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->_impl_.z_index_overlap_fraction_ = from._impl_.z_index_overlap_fraction_;
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  EligibilitySpec* 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_.additional_cheap_pruning_options_ = (CheckHasBit(cached_has_bits, 0x00000010U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.additional_cheap_pruning_options_)
                : nullptr;

  // @@protoc_insertion_point(copy_constructor:optimization_guide.proto.EligibilitySpec)
}
PROTOBUF_NDEBUG_INLINE EligibilitySpec::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        cheap_pruning_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.cheap_pruning_rules_)>()
         }
        ,
        classifier_score_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.classifier_score_rules_)>()
         }
        ,
        post_renormalization_rules_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.post_renormalization_rules_)>()
         }
        ,
        sorting_clauses_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::EligibilitySpec,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::EligibilitySpec, _impl_.sorting_clauses_)>()
         }
     {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite EligibilitySpec_class_data_ =
    EligibilitySpec::InternalGenerateClassData_(EligibilitySpec_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EligibilitySpec::GetClassData() const {
  return EligibilitySpec_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
EligibilitySpec::GetClassData() const {
  return EligibilitySpec_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const EligibilitySpec::ParseTableT_
    EligibilitySpec::_table_ =
        EligibilitySpec::InternalGenerateParseTable_(EligibilitySpec_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void EligibilitySpec::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.EligibilitySpec)
  ::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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.cheap_pruning_rules_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.classifier_score_rules_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.post_renormalization_rules_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.sorting_clauses_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(_impl_.additional_cheap_pruning_options_ != nullptr);
      _impl_.additional_cheap_pruning_options_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // repeated .optimization_guide.proto.OrOfThresholdingRules post_renormalization_rules = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_post_renormalization_rules_size());
         i < n; i++) {
      const auto& repfield = this_._internal_post_renormalization_rules().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              3, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .optimization_guide.proto.SortingClause sorting_clauses = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_sorting_clauses_size());
         i < n; i++) {
      const auto& repfield = this_._internal_sorting_clauses().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              4, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // .optimization_guide.proto.AdditionalCheapPruningOptions additional_cheap_pruning_options = 5;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.additional_cheap_pruning_options_, this_._impl_.additional_cheap_pruning_options_->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:optimization_guide.proto.EligibilitySpec)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t EligibilitySpec::ByteSizeLong(const MessageLite& base) {
  const EligibilitySpec& this_ = static_cast<const EligibilitySpec&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t EligibilitySpec::ByteSizeLong() const {
  const EligibilitySpec& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.EligibilitySpec)
  ::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, 0x0000001fU)) {
    // repeated .optimization_guide.proto.OrOfThresholdingRules cheap_pruning_rules = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_cheap_pruning_rules_size();
      for (const auto& msg : this_._internal_cheap_pruning_rules()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .optimization_guide.proto.OrOfThresholdingRules classifier_score_rules = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_classifier_score_rules_size();
      for (const auto& msg : this_._internal_classifier_score_rules()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .optimization_guide.proto.OrOfThresholdingRules post_renormalization_rules = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1UL * this_._internal_post_renormalization_rules_size();
      for (const auto& msg : this_._internal_post_renormalization_rules()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .optimization_guide.proto.SortingClause sorting_clauses = 4;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1UL * this_._internal_sorting_clauses_size();
      for (const auto& msg : this_._internal_sorting_clauses()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .optimization_guide.proto.AdditionalCheapPruningOptions additional_cheap_pruning_options = 5;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.additional_cheap_pruning_options_);
    }
  }
  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 EligibilitySpec::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<EligibilitySpec*>(&to_msg);
  auto& from = static_cast<const EligibilitySpec&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.EligibilitySpec)
  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, 0x0000001fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_cheap_pruning_rules()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_cheap_pruning_rules());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_classifier_score_rules()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_classifier_score_rules());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_post_renormalization_rules()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_post_renormalization_rules());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_mutable_sorting_clauses()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_sorting_clauses());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      ABSL_DCHECK(from._impl_.additional_cheap_pruning_options_ != nullptr);
      if (_this->_impl_.additional_cheap_pruning_options_ == nullptr) {
        _this->_impl_.additional_cheap_pruning_options_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.additional_cheap_pruning_options_);
      } else {
        _this->_impl_.additional_cheap_pruning_options_->MergeFrom(*from._impl_.additional_cheap_pruning_options_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void EligibilitySpec::InternalSwap(EligibilitySpec* 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_.cheap_pruning_rules_.InternalSwap(&other->_impl_.cheap_pruning_rules_);
  _impl_.classifier_score_rules_.InternalSwap(&other->_impl_.classifier_score_rules_);
  _impl_.post_renormalization_rules_.InternalSwap(&other->_impl_.post_renormalization_rules_);
  _impl_.sorting_clauses_.InternalSwap(&other->_impl_.sorting_clauses_);
  swap(_impl_.additional_cheap_pruning_options_, other->_impl_.additional_cheap_pruning_options_);
}

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite VisualSearchModelMetadata_class_data_ =
    VisualSearchModelMetadata::InternalGenerateClassData_(VisualSearchModelMetadata_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    ABSL_DCHECK(_impl_.eligibility_spec_ != nullptr);
    _impl_.eligibility_spec_->Clear();
  }
  _impl_.metadata_version_ = ::int64_t{0};
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.EligibilitySpec eligibility_spec = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.eligibility_spec_, this_._impl_.eligibility_spec_->GetCachedSize(), target,
        stream);
  }

  // int64 metadata_version = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
            stream, this_._internal_metadata_version(), 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:optimization_guide.proto.VisualSearchModelMetadata)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t VisualSearchModelMetadata::ByteSizeLong(const MessageLite& base) {
  const VisualSearchModelMetadata& this_ = static_cast<const VisualSearchModelMetadata&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t VisualSearchModelMetadata::ByteSizeLong() const {
  const VisualSearchModelMetadata& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.VisualSearchModelMetadata)
  ::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)) {
    // .optimization_guide.proto.EligibilitySpec eligibility_spec = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.eligibility_spec_);
    }
    // int64 metadata_version = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_metadata_version());
    }
  }
  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 VisualSearchModelMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<VisualSearchModelMetadata*>(&to_msg);
  auto& from = static_cast<const VisualSearchModelMetadata&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.VisualSearchModelMetadata)
  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)) {
      ABSL_DCHECK(from._impl_.eligibility_spec_ != nullptr);
      if (_this->_impl_.eligibility_spec_ == nullptr) {
        _this->_impl_.eligibility_spec_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.eligibility_spec_);
      } else {
        _this->_impl_.eligibility_spec_->MergeFrom(*from._impl_.eligibility_spec_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.metadata_version_ = from._impl_.metadata_version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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