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

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

constexpr ContextualCueingHistory::ParseTableT_ ContextualCueingHistory::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContextualCueingHistory, _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::ContextualCueingHistory>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string cuj = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCueingHistory, _impl_.cuj_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string cuj = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingHistory, _impl_.cuj_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
      "\60\3\0\0\0\0\0\0"
      "optimization_guide.proto.ContextualCueingHistory"
      "cuj"
    }},
  };
}


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

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

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

constexpr GeminiInChromeSurface::ParseTableT_ GeminiInChromeSurface::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(GeminiInChromeSurface, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::GeminiInChromeSurface>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.Tab tabs_to_share = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(GeminiInChromeSurface, _impl_.tabs_to_share_)}},
      // string prompt = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(GeminiInChromeSurface, _impl_.prompt_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string prompt = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(GeminiInChromeSurface, _impl_.prompt_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // repeated .optimization_guide.proto.Tab tabs_to_share = 2;
      {PROTOBUF_FIELD_OFFSET(GeminiInChromeSurface, _impl_.tabs_to_share_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Tab>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Tab_globals_},
        #endif
    }},
    {{
      "\56\6\0\0\0\0\0\0"
      "optimization_guide.proto.GeminiInChromeSurface"
      "prompt"
    }},
  };
}


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

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

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

constexpr ContextualCueingRequest::ParseTableT_ ContextualCueingRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_._has_bits_),
      0, // no _extensions_
      4, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCueingRequest>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.ContextualCueingHistory contextual_cueing_history = 4 [deprecated = true];
      {::_pbi::TcParser::FastMtR1,
       {34, 2, 2,
        PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.contextual_cueing_history_)}},
      // .optimization_guide.proto.PageContext active_tab_page_context = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 3, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.active_tab_page_context_)}},
      // repeated .optimization_guide.proto.Tab background_tabs = 2;
      {::_pbi::TcParser::FastMtR1,
       {18, 0, 1,
        PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.background_tabs_)}},
      // repeated .optimization_guide.proto.ContextualCueingSurface supported_surfaces = 3;
      {::_pbi::TcParser::FastV32P1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.supported_surfaces_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.PageContext active_tab_page_context = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.active_tab_page_context_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.Tab background_tabs = 2;
      {PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.background_tabs_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.ContextualCueingSurface supported_surfaces = 3;
      {PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.supported_surfaces_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)},
      // repeated .optimization_guide.proto.ContextualCueingHistory contextual_cueing_history = 4 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(ContextualCueingRequest, _impl_.contextual_cueing_history_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::PageContext>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::PageContext_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Tab>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Tab_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCueingHistory>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ContextualCueingHistory_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr ContextualCueingRequest::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        background_tabs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ContextualCueingRequest,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.background_tabs_)>()
         }
        ,
        supported_surfaces_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ContextualCueingRequest,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.supported_surfaces_)>()
         }
        ,
        _supported_surfaces_cached_byte_size_{0},
        contextual_cueing_history_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ContextualCueingRequest,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.contextual_cueing_history_)>()
         }
        ,
        active_tab_page_context_{nullptr} {}

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

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

constexpr AnchoredMessageCue::ParseTableT_ AnchoredMessageCue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _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
      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::AnchoredMessageCue>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string action_text = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.action_text_)}},
      // string anchored_message_text = 2 [features = {
      {::_pbi::TcParser::FastUS1,
       {18, 2, 0,
        PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.anchored_message_text_)}},
      // repeated .optimization_guide.proto.Tab tabs_to_show = 3;
      {::_pbi::TcParser::FastMtR1,
       {26, 0, 0,
        PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.tabs_to_show_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string action_text = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.action_text_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string anchored_message_text = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.anchored_message_text_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // repeated .optimization_guide.proto.Tab tabs_to_show = 3;
      {PROTOBUF_FIELD_OFFSET(AnchoredMessageCue, _impl_.tabs_to_show_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::Tab>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::Tab_globals_},
        #endif
    }},
    {{
      "\53\13\25\0\0\0\0\0"
      "optimization_guide.proto.AnchoredMessageCue"
      "action_text"
      "anchored_message_text"
    }},
  };
}


inline constexpr AnchoredMessageCue::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        tabs_to_show_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::AnchoredMessageCue,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::AnchoredMessageCue, _impl_.tabs_to_show_)>()
         }
        ,
        action_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        anchored_message_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST AnchoredMessageCueGlobalsTypeInternal AnchoredMessageCue_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* AnchoredMessageCue_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return AnchoredMessageCue_globals_.GetClassData();
#else
  return AnchoredMessageCue_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class ContextualCue::_Internal {
 public:
  using HasBits = decltype(::std::declval<ContextualCue>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_._has_bits_);
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCue, _impl_._oneof_case_);
};

constexpr ContextualCue::ParseTableT_ ContextualCue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_._has_bits_),
      0, // no _extensions_
      3, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967288,  // skipmap
      offsetof(ParseTableT_, field_entries),
      3,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCue>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // string suggested_cuj = 1 [features = {
      {::_pbi::TcParser::FastUS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_.suggested_cuj_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string suggested_cuj = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_.suggested_cuj_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2;
      {PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_.treatment_.anchored_message_cue_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3;
      {PROTOBUF_FIELD_OFFSET(ContextualCue, _impl_.fulfillment_surface_.gemini_in_chrome_surface_), _Internal::kOneofCaseOffset + 4, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::AnchoredMessageCue>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::AnchoredMessageCue_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::GeminiInChromeSurface>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::GeminiInChromeSurface_globals_},
        #endif
    }},
    {{
      "\46\15\0\0\0\0\0\0"
      "optimization_guide.proto.ContextualCue"
      "suggested_cuj"
    }},
  };
}


inline constexpr ContextualCue::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        suggested_cuj_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        treatment_{},
        fulfillment_surface_{},
        _oneof_case_{} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContextualCueGlobalsTypeInternal ContextualCue_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ContextualCue_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ContextualCue_globals_.GetClassData();
#else
  return ContextualCue_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
class ContextualCueingResponse::_Internal {
 public:
  using HasBits = decltype(::std::declval<ContextualCueingResponse>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_._has_bits_);
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingResponse, _impl_._oneof_case_);
};

constexpr ContextualCueingResponse::ParseTableT_ ContextualCueingResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_._has_bits_),
      0, // no _extensions_
      4, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967280,  // skipmap
      offsetof(ParseTableT_, field_entries),
      4,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCueingResponse>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .optimization_guide.proto.ContextualCue contextual_cues = 4;
      {::_pbi::TcParser::FastMtR1,
       {34, 0, 2,
        PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.contextual_cues_)}},
      // string suggested_cuj = 1 [deprecated = true, features = {
      {::_pbi::TcParser::FastUS1,
       {10, 1, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.suggested_cuj_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string suggested_cuj = 1 [deprecated = true, features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.suggested_cuj_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.treatment_.anchored_message_cue_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.fulfillment_surface_.gemini_in_chrome_surface_), _Internal::kOneofCaseOffset + 4, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .optimization_guide.proto.ContextualCue contextual_cues = 4;
      {PROTOBUF_FIELD_OFFSET(ContextualCueingResponse, _impl_.contextual_cues_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::AnchoredMessageCue>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::AnchoredMessageCue_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::GeminiInChromeSurface>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::GeminiInChromeSurface_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCue>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ContextualCue_globals_},
        #endif
    }},
    {{
      "\61\15\0\0\0\0\0\0"
      "optimization_guide.proto.ContextualCueingResponse"
      "suggested_cuj"
    }},
  };
}


inline constexpr ContextualCueingResponse::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        contextual_cues_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::optimization_guide::proto::ContextualCueingResponse,
            PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingResponse, _impl_.contextual_cues_)>()
         }
        ,
        suggested_cuj_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        treatment_{},
        fulfillment_surface_{},
        _oneof_case_{} {}

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

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

constexpr ContextualCueingLoggingData::ParseTableT_ ContextualCueingLoggingData::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _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::ContextualCueingLoggingData>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // .optimization_guide.proto.ContextualCueingRequest request = 1 [features = {
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.request_)}},
      // .optimization_guide.proto.ContextualCueingResponse response = 2 [features = {
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.response_)}},
      // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
      {::_pbi::TcParser::FastMtS1,
       {26, 2, 2,
        PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.model_execution_info_)}},
    }}, {{
      65535, 65535
    }}, {{
      // .optimization_guide.proto.ContextualCueingRequest request = 1 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.request_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ContextualCueingResponse response = 2 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.response_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
      {PROTOBUF_FIELD_OFFSET(ContextualCueingLoggingData, _impl_.model_execution_info_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCueingRequest>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ContextualCueingRequest_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ContextualCueingResponse>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ContextualCueingResponse_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::optimization_guide::proto::ModelExecutionInfo>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::optimization_guide::proto::ModelExecutionInfo_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContextualCueingLoggingDataGlobalsTypeInternal ContextualCueingLoggingData_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* ContextualCueingLoggingData_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return ContextualCueingLoggingData_globals_.GetClassData();
#else
  return ContextualCueingLoggingData_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 ContextualCueingSurface_internal_data_[] = {
    131072u, 0u, };
static const char ContextualCueingSurface_names[] = {
    "CONTEXTUAL_CUEING_SURFACE_GEMINI_IN_CHROME"
    "CONTEXTUAL_CUEING_SURFACE_UNSPECIFIED"
};

static const ::google::protobuf::internal::EnumEntry ContextualCueingSurface_entries[] = {
    {{&ContextualCueingSurface_names[0], 42}, 1},
    {{&ContextualCueingSurface_names[42], 37}, 0},
};

static const int ContextualCueingSurface_entries_by_number[] = {
    1,  // 0 -> CONTEXTUAL_CUEING_SURFACE_UNSPECIFIED
    0,  // 1 -> CONTEXTUAL_CUEING_SURFACE_GEMINI_IN_CHROME
};

bool ContextualCueingSurface_Parse(::absl::string_view name,
                                  ContextualCueingSurface* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ContextualCueingSurface_entries, 2, name, &int_value);
  if (success) {
    *value = static_cast<ContextualCueingSurface>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ContextualCueingSurface_strings[2] = {};

const ::std::string& ContextualCueingSurface_Name(ContextualCueingSurface value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ContextualCueingSurface_entries, ContextualCueingSurface_entries_by_number, 2,
      ContextualCueingSurface_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ContextualCueingSurface_entries,
                                  ContextualCueingSurface_entries_by_number,
                                  2, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ContextualCueingSurface_strings[idx].get();
}
// ===================================================================

void ContextualCueingLoggingData::clear_model_execution_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_execution_info_ != nullptr) _impl_.model_execution_info_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
ContextualCueingLoggingData::ContextualCueingLoggingData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContextualCueingLoggingData_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.ContextualCueingLoggingData)
}
PROTOBUF_NDEBUG_INLINE ContextualCueingLoggingData::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::ContextualCueingLoggingData& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ContextualCueingLoggingData_class_data_ =
    ContextualCueingLoggingData::InternalGenerateClassData_(ContextualCueingLoggingData_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // .optimization_guide.proto.ContextualCueingRequest 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.ContextualCueingResponse 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.ModelExecutionInfo model_execution_info = 3 [features = {
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.model_execution_info_, this_._impl_.model_execution_info_->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.ContextualCueingLoggingData)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ContextualCueingLoggingData::ByteSizeLong(const MessageLite& base) {
  const ContextualCueingLoggingData& this_ = static_cast<const ContextualCueingLoggingData&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t ContextualCueingLoggingData::ByteSizeLong() const {
  const ContextualCueingLoggingData& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.ContextualCueingLoggingData)
  ::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.ContextualCueingRequest request = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_);
    }
    // .optimization_guide.proto.ContextualCueingResponse response = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_);
    }
    // .optimization_guide.proto.ModelExecutionInfo model_execution_info = 3 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_execution_info_);
    }
  }
  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 ContextualCueingLoggingData::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ContextualCueingLoggingData*>(&to_msg);
  auto& from = static_cast<const ContextualCueingLoggingData&>(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.ContextualCueingLoggingData)
  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_.model_execution_info_ != nullptr);
      if (_this->_impl_.model_execution_info_ == nullptr) {
        _this->_impl_.model_execution_info_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_execution_info_);
      } else {
        _this->_impl_.model_execution_info_->MergeFrom(*from._impl_.model_execution_info_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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

void ContextualCueingRequest::clear_active_tab_page_context() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.active_tab_page_context_ != nullptr) _impl_.active_tab_page_context_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
void ContextualCueingRequest::clear_background_tabs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.background_tabs_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
ContextualCueingRequest::ContextualCueingRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContextualCueingRequest_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.ContextualCueingRequest)
}
PROTOBUF_NDEBUG_INLINE ContextualCueingRequest::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::ContextualCueingRequest& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        background_tabs_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::ContextualCueingRequest,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.background_tabs_)>()
          , from.background_tabs_
        }
        ,
        supported_surfaces_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::ContextualCueingRequest,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.supported_surfaces_)>()
          , from.supported_surfaces_
        }
        ,
        _supported_surfaces_cached_byte_size_{0},
        contextual_cueing_history_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::ContextualCueingRequest,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingRequest, _impl_.contextual_cueing_history_)>()
          , from.contextual_cueing_history_
        }
     {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ContextualCueingRequest_class_data_ =
    ContextualCueingRequest::InternalGenerateClassData_(ContextualCueingRequest_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ContextualCueingRequest::GetClassData() const {
  return ContextualCueingRequest_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
ContextualCueingRequest::GetClassData() const {
  return ContextualCueingRequest_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ContextualCueingRequest::ParseTableT_
    ContextualCueingRequest::_table_ =
        ContextualCueingRequest::InternalGenerateParseTable_(ContextualCueingRequest_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void ContextualCueingRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:optimization_guide.proto.ContextualCueingRequest)
  ::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_.background_tabs_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.supported_surfaces_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.contextual_cueing_history_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.active_tab_page_context_ != nullptr);
      _impl_.active_tab_page_context_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

  // repeated .optimization_guide.proto.ContextualCueingSurface supported_surfaces = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    {
      ::size_t byte_size = this_._impl_._supported_surfaces_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            3, this_._internal_supported_surfaces(), byte_size, target);
      }
    }
  }

  // repeated .optimization_guide.proto.ContextualCueingHistory contextual_cueing_history = 4 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_contextual_cueing_history_size());
         i < n; i++) {
      const auto& repfield = this_._internal_contextual_cueing_history().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              4, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
    // repeated .optimization_guide.proto.Tab background_tabs = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_background_tabs_size();
      for (const auto& msg : this_._internal_background_tabs()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .optimization_guide.proto.ContextualCueingSurface supported_surfaces = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_supported_surfaces(), 1, this_._impl_._supported_surfaces_cached_byte_size_);
    }
    // repeated .optimization_guide.proto.ContextualCueingHistory contextual_cueing_history = 4 [deprecated = true];
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1UL * this_._internal_contextual_cueing_history_size();
      for (const auto& msg : this_._internal_contextual_cueing_history()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // .optimization_guide.proto.PageContext active_tab_page_context = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.active_tab_page_context_);
    }
  }
  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 ContextualCueingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ContextualCueingRequest*>(&to_msg);
  auto& from = static_cast<const ContextualCueingRequest&>(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.ContextualCueingRequest)
  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_background_tabs()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_background_tabs());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_supported_surfaces()->MergeFrom(from._internal_supported_surfaces());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_contextual_cueing_history()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_contextual_cueing_history());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.active_tab_page_context_ != nullptr);
      if (_this->_impl_.active_tab_page_context_ == nullptr) {
        _this->_impl_.active_tab_page_context_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.active_tab_page_context_);
      } else {
        _this->_impl_.active_tab_page_context_->MergeFrom(*from._impl_.active_tab_page_context_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void ContextualCueingRequest::InternalSwap(ContextualCueingRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.background_tabs_.InternalSwap(&other->_impl_.background_tabs_);
  _impl_.supported_surfaces_.InternalSwap(&other->_impl_.supported_surfaces_);
  _impl_.contextual_cueing_history_.InternalSwap(&other->_impl_.contextual_cueing_history_);
  swap(_impl_.active_tab_page_context_, other->_impl_.active_tab_page_context_);
}

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ContextualCueingHistory_class_data_ =
    ContextualCueingHistory::InternalGenerateClassData_(ContextualCueingHistory_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.cuj_.ClearNonDefaultToEmpty();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

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

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

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


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

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

void ContextualCueingResponse::set_allocated_anchored_message_cue(::optimization_guide::proto::AnchoredMessageCue* PROTOBUF_NULLABLE anchored_message_cue) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_treatment();
  if (anchored_message_cue) {
    ::google::protobuf::Arena* submessage_arena = anchored_message_cue->GetArena();
    if (message_arena != submessage_arena) {
      anchored_message_cue = ::google::protobuf::internal::GetOwnedMessage(message_arena, anchored_message_cue, submessage_arena);
    }
    set_has_anchored_message_cue();
    _impl_.treatment_.anchored_message_cue_ = anchored_message_cue;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ContextualCueingResponse.anchored_message_cue)
}
void ContextualCueingResponse::set_allocated_gemini_in_chrome_surface(::optimization_guide::proto::GeminiInChromeSurface* PROTOBUF_NULLABLE gemini_in_chrome_surface) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_fulfillment_surface();
  if (gemini_in_chrome_surface) {
    ::google::protobuf::Arena* submessage_arena = gemini_in_chrome_surface->GetArena();
    if (message_arena != submessage_arena) {
      gemini_in_chrome_surface = ::google::protobuf::internal::GetOwnedMessage(message_arena, gemini_in_chrome_surface, submessage_arena);
    }
    set_has_gemini_in_chrome_surface();
    _impl_.fulfillment_surface_.gemini_in_chrome_surface_ = gemini_in_chrome_surface;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ContextualCueingResponse.gemini_in_chrome_surface)
}
ContextualCueingResponse::ContextualCueingResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContextualCueingResponse_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.ContextualCueingResponse)
}
PROTOBUF_NDEBUG_INLINE ContextualCueingResponse::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::ContextualCueingResponse& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        contextual_cues_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::ContextualCueingResponse,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::ContextualCueingResponse, _impl_.contextual_cues_)>()
          , from.contextual_cues_
        }
        ,
        suggested_cuj_(arena, from.suggested_cuj_),
        treatment_{},
        fulfillment_surface_{},
        _oneof_case_{from._oneof_case_[0], from._oneof_case_[1]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ContextualCueingResponse* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (treatment_case()) {
    case TREATMENT_NOT_SET:
      break;
      case kAnchoredMessageCue:
        _impl_.treatment_.anchored_message_cue_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.treatment_.anchored_message_cue_);
        break;
  }
  switch (fulfillment_surface_case()) {
    case FULFILLMENT_SURFACE_NOT_SET:
      break;
      case kGeminiInChromeSurface:
        _impl_.fulfillment_surface_.gemini_in_chrome_surface_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        break;
  }

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

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

void ContextualCueingResponse::clear_treatment() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.ContextualCueingResponse)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (treatment_case()) {
    case kAnchoredMessageCue: {
      if (GetArena() == nullptr) {
        delete _impl_.treatment_.anchored_message_cue_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.treatment_.anchored_message_cue_ != nullptr) {
          _impl_.treatment_.anchored_message_cue_->Clear();
        }
      }
      break;
    }
    case TREATMENT_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TREATMENT_NOT_SET;
}

void ContextualCueingResponse::clear_fulfillment_surface() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.ContextualCueingResponse)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (fulfillment_surface_case()) {
    case kGeminiInChromeSurface: {
      if (GetArena() == nullptr) {
        delete _impl_.fulfillment_surface_.gemini_in_chrome_surface_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.fulfillment_surface_.gemini_in_chrome_surface_ != nullptr) {
          _impl_.fulfillment_surface_.gemini_in_chrome_surface_->Clear();
        }
      }
      break;
    }
    case FULFILLMENT_SURFACE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[1] = FULFILLMENT_SURFACE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ContextualCueingResponse_class_data_ =
    ContextualCueingResponse::InternalGenerateClassData_(ContextualCueingResponse_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.contextual_cues_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.suggested_cuj_.ClearNonDefaultToEmpty();
    }
  }
  clear_treatment();
  clear_fulfillment_surface();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2 [deprecated = true];
  if (this_.treatment_case() == kAnchoredMessageCue) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.treatment_.anchored_message_cue_, this_._impl_.treatment_.anchored_message_cue_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3 [deprecated = true];
  if (this_.fulfillment_surface_case() == kGeminiInChromeSurface) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_, this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_->GetCachedSize(), target,
        stream);
  }

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

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .optimization_guide.proto.ContextualCue contextual_cues = 4;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_contextual_cues_size();
      for (const auto& msg : this_._internal_contextual_cues()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string suggested_cuj = 1 [deprecated = true, features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_suggested_cuj());
    }
  }
  switch (this_.treatment_case()) {
    // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2 [deprecated = true];
    case kAnchoredMessageCue: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.treatment_.anchored_message_cue_);
      break;
    }
    case TREATMENT_NOT_SET: {
      break;
    }
  }
  switch (this_.fulfillment_surface_case()) {
    // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3 [deprecated = true];
    case kGeminiInChromeSurface: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
      break;
    }
    case FULFILLMENT_SURFACE_NOT_SET: {
      break;
    }
  }
  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 ContextualCueingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ContextualCueingResponse*>(&to_msg);
  auto& from = static_cast<const ContextualCueingResponse&>(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.ContextualCueingResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_contextual_cues()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_contextual_cues());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_suggested_cuj(from._internal_suggested_cuj());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_treatment();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kAnchoredMessageCue: {
        if (oneof_needs_init) {
          _this->_impl_.treatment_.anchored_message_cue_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.treatment_.anchored_message_cue_);
        } else {
          _this->_impl_.treatment_.anchored_message_cue_->MergeFrom(*from._impl_.treatment_.anchored_message_cue_);
        }
        break;
      }
      case TREATMENT_NOT_SET:
        break;
    }
  }
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[1]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[1];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_fulfillment_surface();
      }
      _this->_impl_._oneof_case_[1] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kGeminiInChromeSurface: {
        if (oneof_needs_init) {
          _this->_impl_.fulfillment_surface_.gemini_in_chrome_surface_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        } else {
          _this->_impl_.fulfillment_surface_.gemini_in_chrome_surface_->MergeFrom(*from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        }
        break;
      }
      case FULFILLMENT_SURFACE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void ContextualCueingResponse::InternalSwap(ContextualCueingResponse* 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_.contextual_cues_.InternalSwap(&other->_impl_.contextual_cues_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.suggested_cuj_, &other->_impl_.suggested_cuj_, arena);
  swap(_impl_.treatment_, other->_impl_.treatment_);
  swap(_impl_.fulfillment_surface_, other->_impl_.fulfillment_surface_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
}

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

void AnchoredMessageCue::clear_tabs_to_show() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.tabs_to_show_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
AnchoredMessageCue::AnchoredMessageCue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, AnchoredMessageCue_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.AnchoredMessageCue)
}
PROTOBUF_NDEBUG_INLINE AnchoredMessageCue::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::AnchoredMessageCue& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        tabs_to_show_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::AnchoredMessageCue,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::AnchoredMessageCue, _impl_.tabs_to_show_)>()
          , from.tabs_to_show_
        }
        ,
        action_text_(arena, from.action_text_),
        anchored_message_text_(arena, from.anchored_message_text_) {}

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite AnchoredMessageCue_class_data_ =
    AnchoredMessageCue::InternalGenerateClassData_(AnchoredMessageCue_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.tabs_to_show_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.action_text_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.anchored_message_text_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t AnchoredMessageCue::ByteSizeLong(const MessageLite& base) {
  const AnchoredMessageCue& this_ = static_cast<const AnchoredMessageCue&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t AnchoredMessageCue::ByteSizeLong() const {
  const AnchoredMessageCue& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:optimization_guide.proto.AnchoredMessageCue)
  ::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)) {
    // repeated .optimization_guide.proto.Tab tabs_to_show = 3;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_tabs_to_show_size();
      for (const auto& msg : this_._internal_tabs_to_show()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string action_text = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_action_text());
    }
    // string anchored_message_text = 2 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_anchored_message_text());
    }
  }
  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 AnchoredMessageCue::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<AnchoredMessageCue*>(&to_msg);
  auto& from = static_cast<const AnchoredMessageCue&>(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.AnchoredMessageCue)
  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)) {
      _this->_internal_mutable_tabs_to_show()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_tabs_to_show());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_action_text(from._internal_action_text());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_anchored_message_text(from._internal_anchored_message_text());
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void AnchoredMessageCue::InternalSwap(AnchoredMessageCue* 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_.tabs_to_show_.InternalSwap(&other->_impl_.tabs_to_show_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.action_text_, &other->_impl_.action_text_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.anchored_message_text_, &other->_impl_.anchored_message_text_, arena);
}

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

void GeminiInChromeSurface::clear_tabs_to_share() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.tabs_to_share_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
GeminiInChromeSurface::GeminiInChromeSurface(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, GeminiInChromeSurface_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.GeminiInChromeSurface)
}
PROTOBUF_NDEBUG_INLINE GeminiInChromeSurface::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::GeminiInChromeSurface& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        tabs_to_share_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::optimization_guide::proto::GeminiInChromeSurface,
              PROTOBUF_FIELD_OFFSET(::optimization_guide::proto::GeminiInChromeSurface, _impl_.tabs_to_share_)>()
          , from.tabs_to_share_
        }
        ,
        prompt_(arena, from.prompt_) {}

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite GeminiInChromeSurface_class_data_ =
    GeminiInChromeSurface::InternalGenerateClassData_(GeminiInChromeSurface_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.tabs_to_share_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.prompt_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .optimization_guide.proto.Tab tabs_to_share = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_tabs_to_share_size();
      for (const auto& msg : this_._internal_tabs_to_share()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string prompt = 1 [features = {
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_prompt());
    }
  }
  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 GeminiInChromeSurface::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<GeminiInChromeSurface*>(&to_msg);
  auto& from = static_cast<const GeminiInChromeSurface&>(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.GeminiInChromeSurface)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void GeminiInChromeSurface::InternalSwap(GeminiInChromeSurface* 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_.tabs_to_share_.InternalSwap(&other->_impl_.tabs_to_share_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.prompt_, &other->_impl_.prompt_, arena);
}

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

void ContextualCue::set_allocated_anchored_message_cue(::optimization_guide::proto::AnchoredMessageCue* PROTOBUF_NULLABLE anchored_message_cue) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_treatment();
  if (anchored_message_cue) {
    ::google::protobuf::Arena* submessage_arena = anchored_message_cue->GetArena();
    if (message_arena != submessage_arena) {
      anchored_message_cue = ::google::protobuf::internal::GetOwnedMessage(message_arena, anchored_message_cue, submessage_arena);
    }
    set_has_anchored_message_cue();
    _impl_.treatment_.anchored_message_cue_ = anchored_message_cue;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ContextualCue.anchored_message_cue)
}
void ContextualCue::set_allocated_gemini_in_chrome_surface(::optimization_guide::proto::GeminiInChromeSurface* PROTOBUF_NULLABLE gemini_in_chrome_surface) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_fulfillment_surface();
  if (gemini_in_chrome_surface) {
    ::google::protobuf::Arena* submessage_arena = gemini_in_chrome_surface->GetArena();
    if (message_arena != submessage_arena) {
      gemini_in_chrome_surface = ::google::protobuf::internal::GetOwnedMessage(message_arena, gemini_in_chrome_surface, submessage_arena);
    }
    set_has_gemini_in_chrome_surface();
    _impl_.fulfillment_surface_.gemini_in_chrome_surface_ = gemini_in_chrome_surface;
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ContextualCue.gemini_in_chrome_surface)
}
ContextualCue::ContextualCue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, ContextualCue_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.ContextualCue)
}
PROTOBUF_NDEBUG_INLINE ContextualCue::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::ContextualCue& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        suggested_cuj_(arena, from.suggested_cuj_),
        treatment_{},
        fulfillment_surface_{},
        _oneof_case_{from._oneof_case_[0], from._oneof_case_[1]} {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  ContextualCue* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (treatment_case()) {
    case TREATMENT_NOT_SET:
      break;
      case kAnchoredMessageCue:
        _impl_.treatment_.anchored_message_cue_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.treatment_.anchored_message_cue_);
        break;
  }
  switch (fulfillment_surface_case()) {
    case FULFILLMENT_SURFACE_NOT_SET:
      break;
      case kGeminiInChromeSurface:
        _impl_.fulfillment_surface_.gemini_in_chrome_surface_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        break;
  }

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

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

void ContextualCue::clear_treatment() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.ContextualCue)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (treatment_case()) {
    case kAnchoredMessageCue: {
      if (GetArena() == nullptr) {
        delete _impl_.treatment_.anchored_message_cue_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.treatment_.anchored_message_cue_ != nullptr) {
          _impl_.treatment_.anchored_message_cue_->Clear();
        }
      }
      break;
    }
    case TREATMENT_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TREATMENT_NOT_SET;
}

void ContextualCue::clear_fulfillment_surface() {
// @@protoc_insertion_point(one_of_clear_start:optimization_guide.proto.ContextualCue)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (fulfillment_surface_case()) {
    case kGeminiInChromeSurface: {
      if (GetArena() == nullptr) {
        delete _impl_.fulfillment_surface_.gemini_in_chrome_surface_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        if (_impl_.fulfillment_surface_.gemini_in_chrome_surface_ != nullptr) {
          _impl_.fulfillment_surface_.gemini_in_chrome_surface_->Clear();
        }
      }
      break;
    }
    case FULFILLMENT_SURFACE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[1] = FULFILLMENT_SURFACE_NOT_SET;
}


#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite ContextualCue_class_data_ =
    ContextualCue::InternalGenerateClassData_(ContextualCue_globals_._default);

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

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.suggested_cuj_.ClearNonDefaultToEmpty();
  }
  clear_treatment();
  clear_fulfillment_surface();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2;
  if (this_.treatment_case() == kAnchoredMessageCue) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.treatment_.anchored_message_cue_, this_._impl_.treatment_.anchored_message_cue_->GetCachedSize(), target,
        stream);
  }

  // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3;
  if (this_.fulfillment_surface_case() == kGeminiInChromeSurface) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_, this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_->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.ContextualCue)
  return target;
}

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

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

   {
    // string suggested_cuj = 1 [features = {
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_suggested_cuj());
    }
  }
  switch (this_.treatment_case()) {
    // .optimization_guide.proto.AnchoredMessageCue anchored_message_cue = 2;
    case kAnchoredMessageCue: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.treatment_.anchored_message_cue_);
      break;
    }
    case TREATMENT_NOT_SET: {
      break;
    }
  }
  switch (this_.fulfillment_surface_case()) {
    // .optimization_guide.proto.GeminiInChromeSurface gemini_in_chrome_surface = 3;
    case kGeminiInChromeSurface: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
      break;
    }
    case FULFILLMENT_SURFACE_NOT_SET: {
      break;
    }
  }
  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 ContextualCue::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<ContextualCue*>(&to_msg);
  auto& from = static_cast<const ContextualCue&>(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.ContextualCue)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _this->_internal_set_suggested_cuj(from._internal_suggested_cuj());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_treatment();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kAnchoredMessageCue: {
        if (oneof_needs_init) {
          _this->_impl_.treatment_.anchored_message_cue_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.treatment_.anchored_message_cue_);
        } else {
          _this->_impl_.treatment_.anchored_message_cue_->MergeFrom(*from._impl_.treatment_.anchored_message_cue_);
        }
        break;
      }
      case TREATMENT_NOT_SET:
        break;
    }
  }
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[1]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[1];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_fulfillment_surface();
      }
      _this->_impl_._oneof_case_[1] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kGeminiInChromeSurface: {
        if (oneof_needs_init) {
          _this->_impl_.fulfillment_surface_.gemini_in_chrome_surface_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        } else {
          _this->_impl_.fulfillment_surface_.gemini_in_chrome_surface_->MergeFrom(*from._impl_.fulfillment_surface_.gemini_in_chrome_surface_);
        }
        break;
      }
      case FULFILLMENT_SURFACE_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


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

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