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

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

constexpr Topic::ParseTableT_ Topic::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(Topic, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::Topic>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // int64 topic_id = 2;
      {::_pbi::TcParser::FastV64S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(Topic, _impl_.topic_id_)}},
      // string topic_name = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(Topic, _impl_.topic_name_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string topic_name = 1;
      {PROTOBUF_FIELD_OFFSET(Topic, _impl_.topic_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // int64 topic_id = 2;
      {PROTOBUF_FIELD_OFFSET(Topic, _impl_.topic_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr Topic::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        topic_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        topic_id_{::int64_t{0}} {}

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

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

constexpr PageTopicsVisibilityPostprocessingParams::ParseTableT_ PageTopicsVisibilityPostprocessingParams::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PageTopicsVisibilityPostprocessingParams, _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::PageTopicsVisibilityPostprocessingParams>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string category_name = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsVisibilityPostprocessingParams, _impl_.category_name_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string category_name = 1;
      {PROTOBUF_FIELD_OFFSET(PageTopicsVisibilityPostprocessingParams, _impl_.category_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr PageTopicsCategoryPostprocessingParams::ParseTableT_ PageTopicsCategoryPostprocessingParams::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::PageTopicsCategoryPostprocessingParams>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // float min_none_weight = 4;
      {::_pbi::TcParser::FastF32S1,
       {37, 3, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_none_weight_)}},
      // int32 max_categories = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.max_categories_)}},
      // float min_category_weight = 2;
      {::_pbi::TcParser::FastF32S1,
       {21, 1, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_category_weight_)}},
      // float min_normalized_weight_within_top_n = 3;
      {::_pbi::TcParser::FastF32S1,
       {29, 2, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_normalized_weight_within_top_n_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int32 max_categories = 1;
      {PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.max_categories_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // float min_category_weight = 2;
      {PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_category_weight_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float min_normalized_weight_within_top_n = 3;
      {PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_normalized_weight_within_top_n_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
      // float min_none_weight = 4;
      {PROTOBUF_FIELD_OFFSET(PageTopicsCategoryPostprocessingParams, _impl_.min_none_weight_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kFloat)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr PageTopicsCategoryPostprocessingParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        max_categories_{0},
        min_category_weight_{0},
        min_normalized_weight_within_top_n_{0},
        min_none_weight_{0} {}

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

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

constexpr TopicTaxonomy::ParseTableT_ TopicTaxonomy::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TopicTaxonomy, _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::TopicTaxonomy>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.Topic topics = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(TopicTaxonomy, _impl_.topics_)}},
      // int64 version = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(TopicTaxonomy, _impl_.version_)}},
    }}, {{
      65535, 65535
    }}, {{
      // int64 version = 1;
      {PROTOBUF_FIELD_OFFSET(TopicTaxonomy, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated .optimization_guide.proto.Topic topics = 2;
      {PROTOBUF_FIELD_OFFSET(TopicTaxonomy, _impl_.topics_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Topic>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Topic_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr PageTopicsOutputPostprocessingParams::ParseTableT_ PageTopicsOutputPostprocessingParams::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PageTopicsOutputPostprocessingParams, _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::PageTopicsOutputPostprocessingParams>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.PageTopicsCategoryPostprocessingParams category_params = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(PageTopicsOutputPostprocessingParams, _impl_.category_params_)}},
      // .optimization_guide.proto.PageTopicsVisibilityPostprocessingParams visibility_params = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsOutputPostprocessingParams, _impl_.visibility_params_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.PageTopicsVisibilityPostprocessingParams visibility_params = 1;
      {PROTOBUF_FIELD_OFFSET(PageTopicsOutputPostprocessingParams, _impl_.visibility_params_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.PageTopicsCategoryPostprocessingParams category_params = 2;
      {PROTOBUF_FIELD_OFFSET(PageTopicsOutputPostprocessingParams, _impl_.category_params_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::PageTopicsVisibilityPostprocessingParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::PageTopicsVisibilityPostprocessingParams_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::PageTopicsCategoryPostprocessingParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::PageTopicsCategoryPostprocessingParams_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr PageTopicsModelMetadata::ParseTableT_ PageTopicsModelMetadata::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967256,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::PageTopicsModelMetadata>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // int64 version = 1;
      {::_pbi::TcParser::FastV64S1,
       {8, 2, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.version_)}},
      // repeated .optimization_guide.proto.PageTopicsSupportedOutput supported_output = 2 [features = {
      {::_pbi::TcParser::FastEr0R1,
       {16, 0, 2,
        PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.supported_output_)}},
      // .optimization_guide.proto.PageTopicsOutputPostprocessingParams output_postprocessing_params = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.output_postprocessing_params_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // int64 taxonomy_version = 6;
      {::_pbi::TcParser::FastV64S1,
       {48, 3, 0,
        PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.taxonomy_version_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // int64 version = 1;
      {PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // repeated .optimization_guide.proto.PageTopicsSupportedOutput supported_output = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.supported_output_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)},
      // .optimization_guide.proto.PageTopicsOutputPostprocessingParams output_postprocessing_params = 3;
      {PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.output_postprocessing_params_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // int64 taxonomy_version = 6;
      {PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.taxonomy_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::PageTopicsOutputPostprocessingParams>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::PageTopicsOutputPostprocessingParams_globals_},
        #endif
        {0, 2},
    }},
    {{
    }},
  };
}


inline constexpr PageTopicsModelMetadata::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        supported_output_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::PageTopicsModelMetadata,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::PageTopicsModelMetadata, _impl_.supported_output_)>()
         }
        ,
        output_postprocessing_params_{nullptr},
        version_{::int64_t{0}},
        taxonomy_version_{::int64_t{0}} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PageTopicsModelMetadataGlobalsTypeInternal PageTopicsModelMetadata_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PageTopicsModelMetadata_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PageTopicsModelMetadata_globals_.GetClassData();
#else
  return PageTopicsModelMetadata_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 PageTopicsSupportedOutput_internal_data_[] = {
    196608u, 0u, };
static const char PageTopicsSupportedOutput_names[] = {
    "PAGE_TOPICS_SUPPORTED_OUTPUT_CATEGORIES"
    "PAGE_TOPICS_SUPPORTED_OUTPUT_UNKNOWN"
    "PAGE_TOPICS_SUPPORTED_OUTPUT_VISIBILITY"
};

static const ::google::protobuf::internal::EnumEntry PageTopicsSupportedOutput_entries[] = {
    {{&PageTopicsSupportedOutput_names[0], 39}, 2},
    {{&PageTopicsSupportedOutput_names[39], 36}, 0},
    {{&PageTopicsSupportedOutput_names[75], 39}, 1},
};

static const int PageTopicsSupportedOutput_entries_by_number[] = {
    1,  // 0 -> PAGE_TOPICS_SUPPORTED_OUTPUT_UNKNOWN
    2,  // 1 -> PAGE_TOPICS_SUPPORTED_OUTPUT_VISIBILITY
    0,  // 2 -> PAGE_TOPICS_SUPPORTED_OUTPUT_CATEGORIES
};

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

const ::std::string& PageTopicsSupportedOutput_Name(PageTopicsSupportedOutput value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PageTopicsSupportedOutput_entries, PageTopicsSupportedOutput_entries_by_number, 3,
      PageTopicsSupportedOutput_strings);
  (void)kDummy;

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

PageTopicsVisibilityPostprocessingParams::PageTopicsVisibilityPostprocessingParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PageTopicsVisibilityPostprocessingParams_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.PageTopicsVisibilityPostprocessingParams)
}
PROTOBUF_NDEBUG_INLINE PageTopicsVisibilityPostprocessingParams::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::PageTopicsVisibilityPostprocessingParams& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        category_name_(arena, from.category_name_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PageTopicsVisibilityPostprocessingParams* 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.PageTopicsVisibilityPostprocessingParams)
}
PROTOBUF_NDEBUG_INLINE PageTopicsVisibilityPostprocessingParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        category_name_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PageTopicsVisibilityPostprocessingParams_class_data_ =
    PageTopicsVisibilityPostprocessingParams::InternalGenerateClassData_(PageTopicsVisibilityPostprocessingParams_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string category_name = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_category_name();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

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

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

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

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

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


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

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

PageTopicsCategoryPostprocessingParams::PageTopicsCategoryPostprocessingParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PageTopicsCategoryPostprocessingParams_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.PageTopicsCategoryPostprocessingParams)
}
PageTopicsCategoryPostprocessingParams::PageTopicsCategoryPostprocessingParams(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PageTopicsCategoryPostprocessingParams& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PageTopicsCategoryPostprocessingParams_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 PageTopicsCategoryPostprocessingParams::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // int32 max_categories = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_max_categories(), target);
  }

  // float min_category_weight = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        2, this_._internal_min_category_weight(), target);
  }

  // float min_normalized_weight_within_top_n = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        3, this_._internal_min_normalized_weight_within_top_n(), target);
  }

  // float min_none_weight = 4;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteFloatToArray(
        4, this_._internal_min_none_weight(), target);
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += ::absl::popcount(0x0000000eU & cached_has_bits) * 5;
   {
    // int32 max_categories = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_max_categories());
    }
  }
  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 PageTopicsCategoryPostprocessingParams::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PageTopicsCategoryPostprocessingParams*>(&to_msg);
  auto& from = static_cast<const PageTopicsCategoryPostprocessingParams&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.PageTopicsCategoryPostprocessingParams)
  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_.max_categories_ = from._impl_.max_categories_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.min_category_weight_ = from._impl_.min_category_weight_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.min_normalized_weight_within_top_n_ = from._impl_.min_normalized_weight_within_top_n_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.min_none_weight_ = from._impl_.min_none_weight_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

PageTopicsOutputPostprocessingParams::PageTopicsOutputPostprocessingParams(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PageTopicsOutputPostprocessingParams_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.PageTopicsOutputPostprocessingParams)
}
PROTOBUF_NDEBUG_INLINE PageTopicsOutputPostprocessingParams::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::PageTopicsOutputPostprocessingParams& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PageTopicsOutputPostprocessingParams_class_data_ =
    PageTopicsOutputPostprocessingParams::InternalGenerateClassData_(PageTopicsOutputPostprocessingParams_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(_impl_.visibility_params_ != nullptr);
      _impl_.visibility_params_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.category_params_ != nullptr);
      _impl_.category_params_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .optimization_guide.proto.PageTopicsCategoryPostprocessingParams category_params = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.category_params_, this_._impl_.category_params_->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.PageTopicsOutputPostprocessingParams)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PageTopicsOutputPostprocessingParams::ByteSizeLong(const MessageLite& base) {
  const PageTopicsOutputPostprocessingParams& this_ = static_cast<const PageTopicsOutputPostprocessingParams&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PageTopicsOutputPostprocessingParams::ByteSizeLong() const {
  const PageTopicsOutputPostprocessingParams& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.PageTopicsOutputPostprocessingParams)
  ::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.PageTopicsVisibilityPostprocessingParams visibility_params = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.visibility_params_);
    }
    // .optimization_guide.proto.PageTopicsCategoryPostprocessingParams category_params = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.category_params_);
    }
  }
  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 PageTopicsOutputPostprocessingParams::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PageTopicsOutputPostprocessingParams*>(&to_msg);
  auto& from = static_cast<const PageTopicsOutputPostprocessingParams&>(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.PageTopicsOutputPostprocessingParams)
  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_.visibility_params_ != nullptr);
      if (_this->_impl_.visibility_params_ == nullptr) {
        _this->_impl_.visibility_params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.visibility_params_);
      } else {
        _this->_impl_.visibility_params_->MergeFrom(*from._impl_.visibility_params_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.category_params_ != nullptr);
      if (_this->_impl_.category_params_ == nullptr) {
        _this->_impl_.category_params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.category_params_);
      } else {
        _this->_impl_.category_params_->MergeFrom(*from._impl_.category_params_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

Topic::Topic(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, Topic_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.Topic)
}
PROTOBUF_NDEBUG_INLINE Topic::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::Topic& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        topic_name_(arena, from.topic_name_) {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite Topic_class_data_ =
    Topic::InternalGenerateClassData_(Topic_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string topic_name = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_topic_name();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Topic::ByteSizeLong(const MessageLite& base) {
  const Topic& this_ = static_cast<const Topic&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Topic::ByteSizeLong() const {
  const Topic& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.Topic)
  ::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)) {
    // string topic_name = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_topic_name());
    }
    // int64 topic_id = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_topic_id());
    }
  }
  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 Topic::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<Topic*>(&to_msg);
  auto& from = static_cast<const Topic&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.Topic)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

TopicTaxonomy::TopicTaxonomy(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TopicTaxonomy_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.TopicTaxonomy)
}
PROTOBUF_NDEBUG_INLINE TopicTaxonomy::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::TopicTaxonomy& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        topics_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::TopicTaxonomy,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::TopicTaxonomy, _impl_.topics_)>()
          , from.topics_
        }
     {}

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

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

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

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

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

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

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

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

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .optimization_guide.proto.Topic topics = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_topics_size();
      for (const auto& msg : this_._internal_topics()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // int64 version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_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 TopicTaxonomy::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TopicTaxonomy*>(&to_msg);
  auto& from = static_cast<const TopicTaxonomy&>(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.TopicTaxonomy)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_topics()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_topics());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void TopicTaxonomy::InternalSwap(TopicTaxonomy* 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_.topics_.InternalSwap(&other->_impl_.topics_);
  swap(_impl_.version_, other->_impl_.version_);
}

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

PageTopicsModelMetadata::PageTopicsModelMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PageTopicsModelMetadata_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.PageTopicsModelMetadata)
}
PROTOBUF_NDEBUG_INLINE PageTopicsModelMetadata::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::PageTopicsModelMetadata& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        supported_output_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::PageTopicsModelMetadata,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::PageTopicsModelMetadata, _impl_.supported_output_)>()
          , from.supported_output_
        }
     {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PageTopicsModelMetadata_class_data_ =
    PageTopicsModelMetadata::InternalGenerateClassData_(PageTopicsModelMetadata_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.supported_output_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.output_postprocessing_params_ != nullptr);
      _impl_.output_postprocessing_params_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
    ::memset(&_impl_.version_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.taxonomy_version_) -
        reinterpret_cast<char*>(&_impl_.version_)) + sizeof(_impl_.taxonomy_version_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // repeated .optimization_guide.proto.PageTopicsSupportedOutput supported_output = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_supported_output_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          2, static_cast<::optimization_guide::proto::PageTopicsSupportedOutput>(this_._internal_supported_output().Get(i)),
          target);
    }
  }

  // .optimization_guide.proto.PageTopicsOutputPostprocessingParams output_postprocessing_params = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.output_postprocessing_params_, this_._impl_.output_postprocessing_params_->GetCachedSize(), target,
        stream);
  }

  // int64 taxonomy_version = 6;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
            stream, this_._internal_taxonomy_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.PageTopicsModelMetadata)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // repeated .optimization_guide.proto.PageTopicsSupportedOutput supported_output = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size =
          ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_output());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_supported_output_size());
      total_size += data_size + tag_size;
    }
    // .optimization_guide.proto.PageTopicsOutputPostprocessingParams output_postprocessing_params = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.output_postprocessing_params_);
    }
    // int64 version = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_version());
    }
    // int64 taxonomy_version = 6;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_taxonomy_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 PageTopicsModelMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PageTopicsModelMetadata*>(&to_msg);
  auto& from = static_cast<const PageTopicsModelMetadata&>(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.PageTopicsModelMetadata)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_supported_output()->MergeFrom(from._internal_supported_output());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.output_postprocessing_params_ != nullptr);
      if (_this->_impl_.output_postprocessing_params_ == nullptr) {
        _this->_impl_.output_postprocessing_params_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.output_postprocessing_params_);
      } else {
        _this->_impl_.output_postprocessing_params_->MergeFrom(*from._impl_.output_postprocessing_params_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.version_ = from._impl_.version_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.taxonomy_version_ = from._impl_.taxonomy_version_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PageTopicsModelMetadata::InternalSwap(PageTopicsModelMetadata* 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_.supported_output_.InternalSwap(&other->_impl_.supported_output_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.taxonomy_version_)
      + sizeof(PageTopicsModelMetadata::_impl_.taxonomy_version_)
      - PROTOBUF_FIELD_OFFSET(PageTopicsModelMetadata, _impl_.output_postprocessing_params_)>(
          reinterpret_cast<char*>(&_impl_.output_postprocessing_params_),
          reinterpret_cast<char*>(&other->_impl_.output_postprocessing_params_));
}

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