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

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

constexpr NotificationContents::ParseTableT_ NotificationContents::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NotificationContents, _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::NotificationContents>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string url = 4 [features = {
      {::_pbi::TcParser::FastUS1,
       {34, 3, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.url_)}},
      // string notification_title = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_title_)}},
      // string notification_message = 2 [features = {
      {::_pbi::TcParser::FastUS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_message_)}},
      // repeated string notification_action_labels = 3;
      {::_pbi::TcParser::FastUR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_action_labels_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string notification_title = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_title_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string notification_message = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_message_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // repeated string notification_action_labels = 3;
      {PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.notification_action_labels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
      // string url = 4 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContents, _impl_.url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\55\22\24\32\3\0\0\0"
      "optimization_guide.proto.NotificationContents"
      "notification_title"
      "notification_message"
      "notification_action_labels"
      "url"
    }},
  };
}


inline constexpr NotificationContents::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        notification_action_labels_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::NotificationContents,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::NotificationContents, _impl_.notification_action_labels_)>()
         }
        ,
        notification_title_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        notification_message_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        url_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

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

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

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


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

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

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

constexpr NotificationContentDetectionQuality::ParseTableT_ NotificationContentDetectionQuality::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_._has_bits_),
      0, // no _extensions_
      7, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967168,  // skipmap
      offsetof(ParseTableT_, field_entries),
      7,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionQuality>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.UserFeedback user_feedback = 1 [features = {
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.user_feedback_)}},
      // .optimization_guide.proto.FinalModelStatus final_model_status = 2 [features = {
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.final_model_status_)}},
      // bool is_url_on_allowlist = 3 [features = {
      {::_pbi::TcParser::FastV8S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.is_url_on_allowlist_)}},
      // bool did_user_always_allow_url = 4 [features = {
      {::_pbi::TcParser::FastV8S1,
       {32, 3, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.did_user_always_allow_url_)}},
      // bool was_user_shown_warning = 5 [features = {
      {::_pbi::TcParser::FastV8S1,
       {40, 4, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.was_user_shown_warning_)}},
      // bool did_user_unsubscribe = 6 [features = {
      {::_pbi::TcParser::FastV8S1,
       {48, 5, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.did_user_unsubscribe_)}},
      // .optimization_guide.proto.SiteEngagementScore site_engagement_score = 7 [features = {
      {::_pbi::TcParser::FastV32S1,
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.site_engagement_score_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.UserFeedback user_feedback = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.user_feedback_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // .optimization_guide.proto.FinalModelStatus final_model_status = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.final_model_status_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
      // bool is_url_on_allowlist = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.is_url_on_allowlist_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool did_user_always_allow_url = 4 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.did_user_always_allow_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool was_user_shown_warning = 5 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.was_user_shown_warning_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // bool did_user_unsubscribe = 6 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.did_user_unsubscribe_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // .optimization_guide.proto.SiteEngagementScore site_engagement_score = 7 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionQuality, _impl_.site_engagement_score_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr NotificationContentDetectionQuality::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        user_feedback_{static_cast< ::optimization_guide::proto::UserFeedback >(0)},
        final_model_status_{static_cast< ::optimization_guide::proto::FinalModelStatus >(0)},
        is_url_on_allowlist_{false},
        did_user_always_allow_url_{false},
        was_user_shown_warning_{false},
        did_user_unsubscribe_{false},
        site_engagement_score_{static_cast< ::optimization_guide::proto::SiteEngagementScore >(0)} {}

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

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

constexpr NotificationContentDetectionRequest::ParseTableT_ NotificationContentDetectionRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NotificationContentDetectionRequest, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // .optimization_guide.proto.NotificationContents notification_contents = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionRequest, _impl_.notification_contents_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.NotificationContents notification_contents = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionRequest, _impl_.notification_contents_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContents>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::NotificationContents_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr NotificationContentDetectionLoggingData::ParseTableT_ NotificationContentDetectionLoggingData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_._has_bits_),
      0, // no _extensions_
      3, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionLoggingData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.NotificationContentDetectionRequest request = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.request_)}},
      // .optimization_guide.proto.NotificationContentDetectionResponse response = 2 [features = {
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.response_)}},
      // .optimization_guide.proto.NotificationContentDetectionQuality quality = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.quality_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.NotificationContentDetectionRequest request = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.NotificationContentDetectionResponse response = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.NotificationContentDetectionQuality quality = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(NotificationContentDetectionLoggingData, _impl_.quality_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::NotificationContentDetectionRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::NotificationContentDetectionResponse_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::NotificationContentDetectionQuality>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::NotificationContentDetectionQuality_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NotificationContentDetectionLoggingData::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        request_{nullptr},
        response_{nullptr},
        quality_{nullptr} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NotificationContentDetectionLoggingDataGlobalsTypeInternal NotificationContentDetectionLoggingData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NotificationContentDetectionLoggingData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NotificationContentDetectionLoggingData_globals_.GetClassData();
#else
  return NotificationContentDetectionLoggingData_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 SiteEngagementScore_internal_data_[] = {
    393216u, 0u, };
static const char SiteEngagementScore_names[] = {
    "SITE_ENGAGEMENT_SCORE_HIGH"
    "SITE_ENGAGEMENT_SCORE_LOW"
    "SITE_ENGAGEMENT_SCORE_MAX"
    "SITE_ENGAGEMENT_SCORE_MEDIUM"
    "SITE_ENGAGEMENT_SCORE_MINIMAL"
    "SITE_ENGAGEMENT_SCORE_NONE"
};

static const ::google::protobuf::internal::EnumEntry SiteEngagementScore_entries[] = {
    {{&SiteEngagementScore_names[0], 26}, 4},
    {{&SiteEngagementScore_names[26], 25}, 2},
    {{&SiteEngagementScore_names[51], 25}, 5},
    {{&SiteEngagementScore_names[76], 28}, 3},
    {{&SiteEngagementScore_names[104], 29}, 1},
    {{&SiteEngagementScore_names[133], 26}, 0},
};

static const int SiteEngagementScore_entries_by_number[] = {
    5,  // 0 -> SITE_ENGAGEMENT_SCORE_NONE
    4,  // 1 -> SITE_ENGAGEMENT_SCORE_MINIMAL
    1,  // 2 -> SITE_ENGAGEMENT_SCORE_LOW
    3,  // 3 -> SITE_ENGAGEMENT_SCORE_MEDIUM
    0,  // 4 -> SITE_ENGAGEMENT_SCORE_HIGH
    2,  // 5 -> SITE_ENGAGEMENT_SCORE_MAX
};

bool SiteEngagementScore_Parse(::absl::string_view name,
                                  SiteEngagementScore* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      SiteEngagementScore_entries, 6, name, &int_value);
  if (success) {
    *value = static_cast<SiteEngagementScore>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    SiteEngagementScore_strings[6] = {};

const ::std::string& SiteEngagementScore_Name(SiteEngagementScore value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      SiteEngagementScore_entries, SiteEngagementScore_entries_by_number, 6,
      SiteEngagementScore_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(SiteEngagementScore_entries,
                                  SiteEngagementScore_entries_by_number,
                                  6, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SiteEngagementScore_strings[idx].get();
}
// ===================================================================

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NotificationContentDetectionLoggingData_class_data_ =
    NotificationContentDetectionLoggingData::InternalGenerateClassData_(NotificationContentDetectionLoggingData_globals_._default);

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

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

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

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

  // .optimization_guide.proto.NotificationContentDetectionResponse response = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.response_, this_._impl_.response_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.NotificationContentDetectionQuality quality = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.quality_, this_._impl_.quality_->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.NotificationContentDetectionLoggingData)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    // .optimization_guide.proto.NotificationContentDetectionRequest request = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_);
    }
    // .optimization_guide.proto.NotificationContentDetectionResponse response = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_);
    }
    // .optimization_guide.proto.NotificationContentDetectionQuality quality = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quality_);
    }
  }
  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 NotificationContentDetectionLoggingData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NotificationContentDetectionLoggingData*>(&to_msg);
  auto& from = static_cast<const NotificationContentDetectionLoggingData&>(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.NotificationContentDetectionLoggingData)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ABSL_DCHECK(from._impl_.request_ != nullptr);
      if (_this->_impl_.request_ == nullptr) {
        _this->_impl_.request_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.request_);
      } else {
        _this->_impl_.request_->MergeFrom(*from._impl_.request_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.response_ != nullptr);
      if (_this->_impl_.response_ == nullptr) {
        _this->_impl_.response_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.response_);
      } else {
        _this->_impl_.response_->MergeFrom(*from._impl_.response_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.quality_ != nullptr);
      if (_this->_impl_.quality_ == nullptr) {
        _this->_impl_.quality_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.quality_);
      } else {
        _this->_impl_.quality_->MergeFrom(*from._impl_.quality_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NotificationContentDetectionRequest_class_data_ =
    NotificationContentDetectionRequest::InternalGenerateClassData_(NotificationContentDetectionRequest_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.NotificationContents notification_contents = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.notification_contents_, this_._impl_.notification_contents_->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.NotificationContentDetectionRequest)
  return target;
}

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

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

   {
    // .optimization_guide.proto.NotificationContents notification_contents = 1 [features = {
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.notification_contents_);
    }
  }
  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 NotificationContentDetectionRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NotificationContentDetectionRequest*>(&to_msg);
  auto& from = static_cast<const NotificationContentDetectionRequest&>(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.NotificationContentDetectionRequest)
  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)) {
    ABSL_DCHECK(from._impl_.notification_contents_ != nullptr);
    if (_this->_impl_.notification_contents_ == nullptr) {
      _this->_impl_.notification_contents_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.notification_contents_);
    } else {
      _this->_impl_.notification_contents_->MergeFrom(*from._impl_.notification_contents_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NotificationContents_class_data_ =
    NotificationContents::InternalGenerateClassData_(NotificationContents_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NotificationContents::GetClassData() const {
  return NotificationContents_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NotificationContents::GetClassData() const {
  return NotificationContents_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NotificationContents::ParseTableT_
    NotificationContents::_table_ =
        NotificationContents::InternalGenerateParseTable_(NotificationContents_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NotificationContents::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.NotificationContents)
  ::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)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.notification_action_labels_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.notification_title_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.notification_message_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.url_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // string notification_title = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_notification_title();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.NotificationContents.notification_title");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // string notification_message = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_notification_message();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.NotificationContents.notification_message");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // repeated string notification_action_labels = 3;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_notification_action_labels_size(); i < n; ++i) {
      const auto& s = this_._internal_notification_action_labels().Get(i);
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.NotificationContents.notification_action_labels");
      target = stream->WriteString(3, s, target);
    }
  }

  // string url = 4 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_url();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "optimization_guide.proto.NotificationContents.url");
    target = stream->WriteStringMaybeAliased(4, _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.NotificationContents)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NotificationContents::ByteSizeLong(const MessageLite& base) {
  const NotificationContents& this_ = static_cast<const NotificationContents&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NotificationContents::ByteSizeLong() const {
  const NotificationContents& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.NotificationContents)
  ::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 string notification_action_labels = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_notification_action_labels().size());
      for (int i = 0, n = this_._internal_notification_action_labels().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_notification_action_labels().Get(i));
      }
    }
    // string notification_title = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_notification_title());
    }
    // string notification_message = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_notification_message());
    }
    // string url = 4 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_url());
    }
  }
  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 NotificationContents::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NotificationContents*>(&to_msg);
  auto& from = static_cast<const NotificationContents&>(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.NotificationContents)
  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_notification_action_labels()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_notification_action_labels());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_notification_title(from._internal_notification_title());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_notification_message(from._internal_notification_message());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_url(from._internal_url());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

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

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

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

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

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

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 5;
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

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

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


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

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

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

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

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    ::memset(&_impl_.user_feedback_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.site_engagement_score_) -
        reinterpret_cast<char*>(&_impl_.user_feedback_)) + sizeof(_impl_.site_engagement_score_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.UserFeedback user_feedback = 1 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this_._internal_user_feedback(), target);
  }

  // .optimization_guide.proto.FinalModelStatus final_model_status = 2 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this_._internal_final_model_status(), target);
  }

  // bool is_url_on_allowlist = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        3, this_._internal_is_url_on_allowlist(), target);
  }

  // bool did_user_always_allow_url = 4 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        4, this_._internal_did_user_always_allow_url(), target);
  }

  // bool was_user_shown_warning = 5 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        5, this_._internal_was_user_shown_warning(), target);
  }

  // bool did_user_unsubscribe = 6 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        6, this_._internal_did_user_unsubscribe(), target);
  }

  // .optimization_guide.proto.SiteEngagementScore site_engagement_score = 7 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        7, this_._internal_site_engagement_score(), 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.NotificationContentDetectionQuality)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NotificationContentDetectionQuality::ByteSizeLong(const MessageLite& base) {
  const NotificationContentDetectionQuality& this_ = static_cast<const NotificationContentDetectionQuality&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NotificationContentDetectionQuality::ByteSizeLong() const {
  const NotificationContentDetectionQuality& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.NotificationContentDetectionQuality)
  ::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(0x0000003cU & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x00000043U)) {
    // .optimization_guide.proto.UserFeedback user_feedback = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_user_feedback());
    }
    // .optimization_guide.proto.FinalModelStatus final_model_status = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_final_model_status());
    }
    // .optimization_guide.proto.SiteEngagementScore site_engagement_score = 7 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_site_engagement_score());
    }
  }
  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 NotificationContentDetectionQuality::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NotificationContentDetectionQuality*>(&to_msg);
  auto& from = static_cast<const NotificationContentDetectionQuality&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:optimization_guide.proto.NotificationContentDetectionQuality)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_impl_.user_feedback_ = from._impl_.user_feedback_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.final_model_status_ = from._impl_.final_model_status_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.is_url_on_allowlist_ = from._impl_.is_url_on_allowlist_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.did_user_always_allow_url_ = from._impl_.did_user_always_allow_url_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.was_user_shown_warning_ = from._impl_.was_user_shown_warning_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.did_user_unsubscribe_ = from._impl_.did_user_unsubscribe_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.site_engagement_score_ = from._impl_.site_engagement_score_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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