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

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

constexpr SearchboxConfig::ParseTableT_ SearchboxConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_._has_bits_),
      0, // no _extensions_
      14, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294954502,  // skipmap
      offsetof(ParseTableT_, field_entries),
      9,  // num_field_entries
      6,  // 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::SearchboxConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional .omnibox.RuleSet rule_set = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 6, 0,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.rule_set_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .omnibox.InputTypeConfig input_type_configs = 4;
      {::_pbi::TcParser::FastMtR1,
       {34, 0, 1,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.input_type_configs_)}},
      // repeated .omnibox.ToolConfig tool_configs = 5;
      {::_pbi::TcParser::FastMtR1,
       {42, 1, 2,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.tool_configs_)}},
      // repeated .omnibox.ModelConfig model_configs = 6;
      {::_pbi::TcParser::FastMtR1,
       {50, 2, 3,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.model_configs_)}},
      // optional .omnibox.SectionConfig tools_section_config = 7;
      {::_pbi::TcParser::FastMtS1,
       {58, 7, 4,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.tools_section_config_)}},
      // optional .omnibox.SectionConfig model_section_config = 8;
      {::_pbi::TcParser::FastMtS1,
       {66, 8, 5,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.model_section_config_)}},
      // optional string hint_text = 9;
      {::_pbi::TcParser::FastUS1,
       {74, 3, 0,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.hint_text_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      // string account_check_token = 13;
      {::_pbi::TcParser::FastUS1,
       {106, 4, 0,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.account_check_token_)}},
      // string account_check_timestamp = 14;
      {::_pbi::TcParser::FastUS1,
       {114, 5, 0,
        PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.account_check_timestamp_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .omnibox.RuleSet rule_set = 1;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.rule_set_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .omnibox.InputTypeConfig input_type_configs = 4;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.input_type_configs_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .omnibox.ToolConfig tool_configs = 5;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.tool_configs_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // repeated .omnibox.ModelConfig model_configs = 6;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.model_configs_), _Internal::kHasBitsOffset + 2, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .omnibox.SectionConfig tools_section_config = 7;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.tools_section_config_), _Internal::kHasBitsOffset + 7, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .omnibox.SectionConfig model_section_config = 8;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.model_section_config_), _Internal::kHasBitsOffset + 8, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional string hint_text = 9;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.hint_text_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string account_check_token = 13;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.account_check_token_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
      // string account_check_timestamp = 14;
      {PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.account_check_timestamp_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::RuleSet>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::RuleSet_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::InputTypeConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::InputTypeConfig_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::ToolConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::ToolConfig_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::ModelConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::ModelConfig_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::SectionConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::SectionConfig_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::SectionConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::SectionConfig_globals_},
        #endif
    }},
    {{
      "\27\0\0\0\0\0\0\11\23\27\0\0\0\0\0\0"
      "omnibox.SearchboxConfig"
      "hint_text"
      "account_check_token"
      "account_check_timestamp"
    }},
  };
}


inline constexpr SearchboxConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        input_type_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.input_type_configs_)>()
         }
        ,
        tool_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.tool_configs_)>()
         }
        ,
        model_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.model_configs_)>()
         }
        ,
        hint_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        account_check_token_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        account_check_timestamp_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        rule_set_{nullptr},
        tools_section_config_{nullptr},
        model_section_config_{nullptr} {}

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

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

void SearchboxConfig::clear_rule_set() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.rule_set_ != nullptr) _impl_.rule_set_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
void SearchboxConfig::clear_input_type_configs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.input_type_configs_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
void SearchboxConfig::clear_tool_configs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.tool_configs_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
void SearchboxConfig::clear_model_configs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_configs_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
void SearchboxConfig::clear_tools_section_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.tools_section_config_ != nullptr) _impl_.tools_section_config_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
}
void SearchboxConfig::clear_model_section_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_section_config_ != nullptr) _impl_.model_section_config_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
SearchboxConfig::SearchboxConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, SearchboxConfig_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.SearchboxConfig)
}
PROTOBUF_NDEBUG_INLINE SearchboxConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::SearchboxConfig& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        input_type_configs_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::omnibox::SearchboxConfig,
              PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.input_type_configs_)>()
          , from.input_type_configs_
        }
        ,
        tool_configs_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::omnibox::SearchboxConfig,
              PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.tool_configs_)>()
          , from.tool_configs_
        }
        ,
        model_configs_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::omnibox::SearchboxConfig,
              PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.model_configs_)>()
          , from.model_configs_
        }
        ,
        hint_text_(arena, from.hint_text_),
        account_check_token_(arena, from.account_check_token_),
        account_check_timestamp_(arena, from.account_check_timestamp_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SearchboxConfig* 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_.rule_set_ = (CheckHasBit(cached_has_bits, 0x00000040U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rule_set_)
                : nullptr;
  _impl_.tools_section_config_ = (CheckHasBit(cached_has_bits, 0x00000080U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tools_section_config_)
                : nullptr;
  _impl_.model_section_config_ = (CheckHasBit(cached_has_bits, 0x00000100U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_section_config_)
                : nullptr;

  // @@protoc_insertion_point(copy_constructor:omnibox.SearchboxConfig)
}
PROTOBUF_NDEBUG_INLINE SearchboxConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        input_type_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.input_type_configs_)>()
         }
        ,
        tool_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.tool_configs_)>()
         }
        ,
        model_configs_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::omnibox::SearchboxConfig,
            PROTOBUF_FIELD_OFFSET(::omnibox::SearchboxConfig, _impl_.model_configs_)>()
         }
        ,
        hint_text_(arena),
        account_check_token_(arena),
        account_check_timestamp_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite SearchboxConfig_class_data_ =
    SearchboxConfig::InternalGenerateClassData_(SearchboxConfig_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SearchboxConfig::GetClassData() const {
  return SearchboxConfig_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
SearchboxConfig::GetClassData() const {
  return SearchboxConfig_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SearchboxConfig::ParseTableT_
    SearchboxConfig::_table_ =
        SearchboxConfig::InternalGenerateParseTable_(SearchboxConfig_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void SearchboxConfig::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.SearchboxConfig)
  ::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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.input_type_configs_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.tool_configs_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.model_configs_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.hint_text_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.account_check_token_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.account_check_timestamp_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(_impl_.rule_set_ != nullptr);
      _impl_.rule_set_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      ABSL_DCHECK(_impl_.tools_section_config_ != nullptr);
      _impl_.tools_section_config_->Clear();
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    ABSL_DCHECK(_impl_.model_section_config_ != nullptr);
    _impl_.model_section_config_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .omnibox.RuleSet rule_set = 1;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.rule_set_, this_._impl_.rule_set_->GetCachedSize(), target,
        stream);
  }

  // repeated .omnibox.InputTypeConfig input_type_configs = 4;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_input_type_configs_size());
         i < n; i++) {
      const auto& repfield = this_._internal_input_type_configs().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              4, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .omnibox.ToolConfig tool_configs = 5;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_tool_configs_size());
         i < n; i++) {
      const auto& repfield = this_._internal_tool_configs().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              5, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // repeated .omnibox.ModelConfig model_configs = 6;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_model_configs_size());
         i < n; i++) {
      const auto& repfield = this_._internal_model_configs().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              6, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  // optional .omnibox.SectionConfig tools_section_config = 7;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        7, *this_._impl_.tools_section_config_, this_._impl_.tools_section_config_->GetCachedSize(), target,
        stream);
  }

  // optional .omnibox.SectionConfig model_section_config = 8;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        8, *this_._impl_.model_section_config_, this_._impl_.model_section_config_->GetCachedSize(), target,
        stream);
  }

  // optional string hint_text = 9;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_hint_text();
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "omnibox.SearchboxConfig.hint_text");
    target = stream->WriteStringMaybeAliased(9, _s, target);
  }

  // string account_check_token = 13;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    if (!this_._internal_account_check_token().empty()) {
      const ::std::string& _s = this_._internal_account_check_token();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "omnibox.SearchboxConfig.account_check_token");
      target = stream->WriteStringMaybeAliased(13, _s, target);
    }
  }

  // string account_check_timestamp = 14;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    if (!this_._internal_account_check_timestamp().empty()) {
      const ::std::string& _s = this_._internal_account_check_timestamp();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "omnibox.SearchboxConfig.account_check_timestamp");
      target = stream->WriteStringMaybeAliased(14, _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:omnibox.SearchboxConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t SearchboxConfig::ByteSizeLong(const MessageLite& base) {
  const SearchboxConfig& this_ = static_cast<const SearchboxConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t SearchboxConfig::ByteSizeLong() const {
  const SearchboxConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.SearchboxConfig)
  ::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, 0x000000ffU)) {
    // repeated .omnibox.InputTypeConfig input_type_configs = 4;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_input_type_configs_size();
      for (const auto& msg : this_._internal_input_type_configs()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .omnibox.ToolConfig tool_configs = 5;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1UL * this_._internal_tool_configs_size();
      for (const auto& msg : this_._internal_tool_configs()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // repeated .omnibox.ModelConfig model_configs = 6;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1UL * this_._internal_model_configs_size();
      for (const auto& msg : this_._internal_model_configs()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // optional string hint_text = 9;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_hint_text());
    }
    // string account_check_token = 13;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (!this_._internal_account_check_token().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_account_check_token());
      }
    }
    // string account_check_timestamp = 14;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (!this_._internal_account_check_timestamp().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_account_check_timestamp());
      }
    }
    // optional .omnibox.RuleSet rule_set = 1;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rule_set_);
    }
    // optional .omnibox.SectionConfig tools_section_config = 7;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tools_section_config_);
    }
  }
   {
    // optional .omnibox.SectionConfig model_section_config = 8;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_section_config_);
    }
  }
  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 SearchboxConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<SearchboxConfig*>(&to_msg);
  auto& from = static_cast<const SearchboxConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.SearchboxConfig)
  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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_input_type_configs()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_input_type_configs());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_tool_configs()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_tool_configs());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_model_configs()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_model_configs());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_hint_text(from._internal_hint_text());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      if (!from._internal_account_check_token().empty()) {
        _this->_internal_set_account_check_token(from._internal_account_check_token());
      } else {
        if (_this->_impl_.account_check_token_.IsDefault()) {
          _this->_internal_set_account_check_token("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      if (!from._internal_account_check_timestamp().empty()) {
        _this->_internal_set_account_check_timestamp(from._internal_account_check_timestamp());
      } else {
        if (_this->_impl_.account_check_timestamp_.IsDefault()) {
          _this->_internal_set_account_check_timestamp("");
        }
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      ABSL_DCHECK(from._impl_.rule_set_ != nullptr);
      if (_this->_impl_.rule_set_ == nullptr) {
        _this->_impl_.rule_set_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rule_set_);
      } else {
        _this->_impl_.rule_set_->MergeFrom(*from._impl_.rule_set_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      ABSL_DCHECK(from._impl_.tools_section_config_ != nullptr);
      if (_this->_impl_.tools_section_config_ == nullptr) {
        _this->_impl_.tools_section_config_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.tools_section_config_);
      } else {
        _this->_impl_.tools_section_config_->MergeFrom(*from._impl_.tools_section_config_);
      }
    }
  }
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    ABSL_DCHECK(from._impl_.model_section_config_ != nullptr);
    if (_this->_impl_.model_section_config_ == nullptr) {
      _this->_impl_.model_section_config_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.model_section_config_);
    } else {
      _this->_impl_.model_section_config_->MergeFrom(*from._impl_.model_section_config_);
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void SearchboxConfig::InternalSwap(SearchboxConfig* 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_.input_type_configs_.InternalSwap(&other->_impl_.input_type_configs_);
  _impl_.tool_configs_.InternalSwap(&other->_impl_.tool_configs_);
  _impl_.model_configs_.InternalSwap(&other->_impl_.model_configs_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hint_text_, &other->_impl_.hint_text_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.account_check_token_, &other->_impl_.account_check_token_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.account_check_timestamp_, &other->_impl_.account_check_timestamp_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.model_section_config_)
      + sizeof(SearchboxConfig::_impl_.model_section_config_)
      - PROTOBUF_FIELD_OFFSET(SearchboxConfig, _impl_.rule_set_)>(
          reinterpret_cast<char*>(&_impl_.rule_set_),
          reinterpret_cast<char*>(&other->_impl_.rule_set_));
}

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