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

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

constexpr SuggestionEnhancement::ParseTableT_ SuggestionEnhancement::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_._has_bits_),
      0, // no _extensions_
      5, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967276,  // 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<::omnibox::SuggestionEnhancement>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string query = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 1, 0,
        PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_.query_)}},
      // optional string display_text = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_.display_text_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional string display_text = 1;
      {PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_.display_text_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional string query = 2;
      {PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_.query_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // map<string, string> query_cgi_params = 5;
      {PROTOBUF_FIELD_OFFSET(SuggestionEnhancement, _impl_.query_cgi_params_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
    }},
    {{
        {::_pbi::TcParser::GetMapAuxInfo(
            0, 0, 9, 9, 1)},
    }},
    {{
    }},
  };
}


inline constexpr SuggestionEnhancement::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        display_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        query_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        query_cgi_params_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SuggestionEnhancement,
            PROTOBUF_FIELD_OFFSET(::omnibox::SuggestionEnhancement, _impl_.query_cgi_params_)>()
         }
     {}

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

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

constexpr SuggestionEnhancements::ParseTableT_ SuggestionEnhancements::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SuggestionEnhancements, _impl_._has_bits_),
      0, // no _extensions_
      1, 0,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967294,  // skipmap
      offsetof(ParseTableT_, field_entries),
      1,  // num_field_entries
      1,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::omnibox::SuggestionEnhancements>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // repeated .omnibox.SuggestionEnhancement enhancements = 1;
      {::_pbi::TcParser::FastMtR1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(SuggestionEnhancements, _impl_.enhancements_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .omnibox.SuggestionEnhancement enhancements = 1;
      {PROTOBUF_FIELD_OFFSET(SuggestionEnhancements, _impl_.enhancements_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::SuggestionEnhancement>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::SuggestionEnhancement_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

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

constexpr RichAnswerTemplate::ParseTableT_ RichAnswerTemplate::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_._has_bits_),
      0, // no _extensions_
      7, 24,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967183,  // 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<::omnibox::RichAnswerTemplate>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .omnibox.SuggestionEnhancements enhancements = 5;
      {::_pbi::TcParser::FastMtS1,
       {42, 1, 0,
        PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.enhancements_)}},
      // repeated .omnibox.AnswerData answers = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 0, 1,
        PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.answers_)}},
      // optional .omnibox.FormattedString attribution = 7;
      {::_pbi::TcParser::FastMtS1,
       {58, 2, 2,
        PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.attribution_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .omnibox.SuggestionEnhancements enhancements = 5;
      {PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.enhancements_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .omnibox.AnswerData answers = 6;
      {PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.answers_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .omnibox.FormattedString attribution = 7;
      {PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.attribution_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::SuggestionEnhancements>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::SuggestionEnhancements_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::AnswerData>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::AnswerData_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::FormattedString>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::FormattedString_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr RichAnswerTemplate::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        answers_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::RichAnswerTemplate,
            PROTOBUF_FIELD_OFFSET(::omnibox::RichAnswerTemplate, _impl_.answers_)>()
         }
        ,
        enhancements_{nullptr},
        attribution_{nullptr} {}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST RichAnswerTemplateGlobalsTypeInternal RichAnswerTemplate_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* RichAnswerTemplate_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return RichAnswerTemplate_globals_.GetClassData();
#else
  return RichAnswerTemplate_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace omnibox
namespace omnibox {
// ===================================================================

void RichAnswerTemplate::clear_answers() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.answers_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void RichAnswerTemplate::clear_attribution() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.attribution_ != nullptr) _impl_.attribution_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
RichAnswerTemplate::RichAnswerTemplate(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, RichAnswerTemplate_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.RichAnswerTemplate)
}
PROTOBUF_NDEBUG_INLINE RichAnswerTemplate::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::RichAnswerTemplate& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        answers_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::omnibox::RichAnswerTemplate,
              PROTOBUF_FIELD_OFFSET(::omnibox::RichAnswerTemplate, _impl_.answers_)>()
          , from.answers_
        }
     {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite RichAnswerTemplate_class_data_ =
    RichAnswerTemplate::InternalGenerateClassData_(RichAnswerTemplate_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RichAnswerTemplate::GetClassData() const {
  return RichAnswerTemplate_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
RichAnswerTemplate::GetClassData() const {
  return RichAnswerTemplate_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const RichAnswerTemplate::ParseTableT_
    RichAnswerTemplate::_table_ =
        RichAnswerTemplate::InternalGenerateParseTable_(RichAnswerTemplate_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void RichAnswerTemplate::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.RichAnswerTemplate)
  ::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_.answers_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.enhancements_ != nullptr);
      _impl_.enhancements_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.attribution_ != nullptr);
      _impl_.attribution_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .omnibox.SuggestionEnhancements enhancements = 5;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        5, *this_._impl_.enhancements_, this_._impl_.enhancements_->GetCachedSize(), target,
        stream);
  }

  // repeated .omnibox.AnswerData answers = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_answers_size());
         i < n; i++) {
      const auto& repfield = this_._internal_answers().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .omnibox.FormattedString attribution = 7;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        7, *this_._impl_.attribution_, this_._impl_.attribution_->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:omnibox.RichAnswerTemplate)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t RichAnswerTemplate::ByteSizeLong(const MessageLite& base) {
  const RichAnswerTemplate& this_ = static_cast<const RichAnswerTemplate&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t RichAnswerTemplate::ByteSizeLong() const {
  const RichAnswerTemplate& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.RichAnswerTemplate)
  ::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 .omnibox.AnswerData answers = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_answers_size();
      for (const auto& msg : this_._internal_answers()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional .omnibox.SuggestionEnhancements enhancements = 5;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.enhancements_);
    }
    // optional .omnibox.FormattedString attribution = 7;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attribution_);
    }
  }
  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 RichAnswerTemplate::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<RichAnswerTemplate*>(&to_msg);
  auto& from = static_cast<const RichAnswerTemplate&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.RichAnswerTemplate)
  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_answers()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_answers());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.enhancements_ != nullptr);
      if (_this->_impl_.enhancements_ == nullptr) {
        _this->_impl_.enhancements_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.enhancements_);
      } else {
        _this->_impl_.enhancements_->MergeFrom(*from._impl_.enhancements_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.attribution_ != nullptr);
      if (_this->_impl_.attribution_ == nullptr) {
        _this->_impl_.attribution_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attribution_);
      } else {
        _this->_impl_.attribution_->MergeFrom(*from._impl_.attribution_);
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void RichAnswerTemplate::InternalSwap(RichAnswerTemplate* 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_.answers_.InternalSwap(&other->_impl_.answers_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.attribution_)
      + sizeof(RichAnswerTemplate::_impl_.attribution_)
      - PROTOBUF_FIELD_OFFSET(RichAnswerTemplate, _impl_.enhancements_)>(
          reinterpret_cast<char*>(&_impl_.enhancements_),
          reinterpret_cast<char*>(&other->_impl_.enhancements_));
}

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SuggestionEnhancements_class_data_ =
    SuggestionEnhancements::InternalGenerateClassData_(SuggestionEnhancements_globals_._default);

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .omnibox.SuggestionEnhancement enhancements = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_enhancements_size());
         i < n; i++) {
      const auto& repfield = this_._internal_enhancements().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              1, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

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

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
   {
    // repeated .omnibox.SuggestionEnhancement enhancements = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_enhancements_size();
      for (const auto& msg : this_._internal_enhancements()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

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

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

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


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

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

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

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SuggestionEnhancement_class_data_ =
    SuggestionEnhancement::InternalGenerateClassData_(SuggestionEnhancement_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SuggestionEnhancement::GetClassData() const {
  return SuggestionEnhancement_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SuggestionEnhancement::GetClassData() const {
  return SuggestionEnhancement_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SuggestionEnhancement::ParseTableT_
    SuggestionEnhancement::_table_ =
        SuggestionEnhancement::InternalGenerateParseTable_(SuggestionEnhancement_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SuggestionEnhancement::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.SuggestionEnhancement)
  ::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_.display_text_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.query_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.query_cgi_params_.Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional string query = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    const ::std::string& _s = this_._internal_query();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // map<string, string> query_cgi_params = 5;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    if (!this_._internal_query_cgi_params().empty()) {
      using MapType = ::google::protobuf::Map<::std::string, ::std::string>;
      using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string,
                                     _pbi::WireFormatLite::TYPE_STRING,
                                     _pbi::WireFormatLite::TYPE_STRING>;
      const auto& field = this_._internal_query_cgi_params();

      if (stream->IsSerializationDeterministic() && field.size() > 1) {
        for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
          target = WireHelper::InternalSerialize(
              5, entry.first, entry.second, target, stream);
        }
      } else {
        for (const auto& entry : field) {
          target = WireHelper::InternalSerialize(
              5, entry.first, entry.second, 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:omnibox.SuggestionEnhancement)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SuggestionEnhancement::ByteSizeLong(const MessageLite& base) {
  const SuggestionEnhancement& this_ = static_cast<const SuggestionEnhancement&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SuggestionEnhancement::ByteSizeLong() const {
  const SuggestionEnhancement& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.SuggestionEnhancement)
  ::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)) {
    // optional string display_text = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_display_text());
    }
    // optional string query = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_query());
    }
    // map<string, string> query_cgi_params = 5;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_query_cgi_params_size());
      for (const auto& entry : this_._internal_query_cgi_params()) {
        total_size += _pbi::MapEntryFuncs<::std::string, ::std::string,
                                       _pbi::WireFormatLite::TYPE_STRING,
                                       _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second);
      }
    }
  }
  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 SuggestionEnhancement::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SuggestionEnhancement*>(&to_msg);
  auto& from = static_cast<const SuggestionEnhancement&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.SuggestionEnhancement)
  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_set_display_text(from._internal_display_text());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_set_query(from._internal_query());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.query_cgi_params_.MergeFrom(from._impl_.query_cgi_params_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SuggestionEnhancement::InternalSwap(SuggestionEnhancement* 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_.display_text_, &other->_impl_.display_text_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.query_, &other->_impl_.query_, arena);
  _impl_.query_cgi_params_.InternalSwap(&other->_impl_.query_cgi_params_);
}

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