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

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

constexpr NTPComposeboxConfig_PlaceholderConfig::ParseTableT_ NTPComposeboxConfig_PlaceholderConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _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<::omnibox::NTPComposeboxConfig_PlaceholderConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // repeated .omnibox.NTPComposeboxConfig.PlaceholderConfig.Placeholder placeholders = 1;
      {::_pbi::TcParser::FastEr0R1,
       {8, 0, 7,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.placeholders_)}},
      // optional uint32 change_text_animation_interval_ms = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 1, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.change_text_animation_interval_ms_)}},
      // optional uint32 fade_text_animation_duration_ms = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 2, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.fade_text_animation_duration_ms_)}},
    }}, {{
      65535, 65535
    }}, {{
      // repeated .omnibox.NTPComposeboxConfig.PlaceholderConfig.Placeholder placeholders = 1;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.placeholders_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)},
      // optional uint32 change_text_animation_interval_ms = 2;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.change_text_animation_interval_ms_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // optional uint32 fade_text_animation_duration_ms = 3;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.fade_text_animation_duration_ms_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
    }},
    {{
        {0, 7},
    }},
    {{
    }},
  };
}


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

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

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

constexpr NTPComposeboxConfig_EntryPoint::ParseTableT_ NTPComposeboxConfig_EntryPoint::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_EntryPoint, _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<::omnibox::NTPComposeboxConfig_EntryPoint>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional int32 num_page_load_animations = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 0, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_EntryPoint, _impl_.num_page_load_animations_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 num_page_load_animations = 1;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_EntryPoint, _impl_.num_page_load_animations_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr NTPComposeboxConfig_Composebox_ImageUpload::ParseTableT_ NTPComposeboxConfig_Composebox_ImageUpload::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_._has_bits_),
      0, // no _extensions_
      6, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967232,  // skipmap
      offsetof(ParseTableT_, field_entries),
      6,  // 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<::omnibox::NTPComposeboxConfig_Composebox_ImageUpload>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // optional bool enable_webp_encoding = 1 [deprecated = true];
      {::_pbi::TcParser::FastV8S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.enable_webp_encoding_)}},
      // optional int32 downscale_max_image_size = 2;
      {::_pbi::TcParser::FastV32S1,
       {16, 2, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_size_)}},
      // optional int32 downscale_max_image_width = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 3, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_width_)}},
      // optional int32 downscale_max_image_height = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 4, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_height_)}},
      // optional int32 image_compression_quality = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 5, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.image_compression_quality_)}},
      // optional string mime_types_allowed = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.mime_types_allowed_)}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bool enable_webp_encoding = 1 [deprecated = true];
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.enable_webp_encoding_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional int32 downscale_max_image_size = 2;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 downscale_max_image_width = 3;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_width_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 downscale_max_image_height = 4;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.downscale_max_image_height_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional int32 image_compression_quality = 5;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.image_compression_quality_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string mime_types_allowed = 6;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.mime_types_allowed_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


inline constexpr NTPComposeboxConfig_Composebox_ImageUpload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        mime_types_allowed_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        enable_webp_encoding_{false},
        downscale_max_image_size_{0},
        downscale_max_image_width_{0},
        downscale_max_image_height_{0},
        image_compression_quality_{0} {}

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

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

constexpr NTPComposeboxConfig_Composebox_AttachmentUpload::ParseTableT_ NTPComposeboxConfig_Composebox_AttachmentUpload::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_AttachmentUpload, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      0,  // num_aux_entries
      offsetof(ParseTableT_, field_names),  // no aux_entries
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_Composebox_AttachmentUpload>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional string mime_types_allowed = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 0, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_AttachmentUpload, _impl_.mime_types_allowed_)}},
      // optional int32 max_size_bytes = 1;
      {::_pbi::TcParser::FastV32S1,
       {8, 1, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_AttachmentUpload, _impl_.max_size_bytes_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional int32 max_size_bytes = 1;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_AttachmentUpload, _impl_.max_size_bytes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string mime_types_allowed = 2;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_AttachmentUpload, _impl_.mime_types_allowed_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    // no aux_entries
    {{
    }},
  };
}


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

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

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

constexpr NTPComposeboxConfig_Composebox::ParseTableT_ NTPComposeboxConfig_Composebox::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_._has_bits_),
      0, // no _extensions_
      8, 56,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967040,  // skipmap
      offsetof(ParseTableT_, field_entries),
      8,  // 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::NTPComposeboxConfig_Composebox>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .omnibox.NTPComposeboxConfig.PlaceholderConfig placeholder_config = 8;
      {::_pbi::TcParser::FastMtS1,
       {66, 3, 2,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.placeholder_config_)}},
      // optional bool close_by_escape = 1;
      {::_pbi::TcParser::FastV8S1,
       {8, 4, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.close_by_escape_)}},
      // optional bool close_by_click_outside = 2;
      {::_pbi::TcParser::FastV8S1,
       {16, 5, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.close_by_click_outside_)}},
      // optional .omnibox.NTPComposeboxConfig.Composebox.ImageUpload image_upload = 3;
      {::_pbi::TcParser::FastMtS1,
       {26, 1, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.image_upload_)}},
      // optional .omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload attachment_upload = 4;
      {::_pbi::TcParser::FastMtS1,
       {34, 2, 1,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.attachment_upload_)}},
      // optional int32 max_num_files = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 7, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.max_num_files_)}},
      // optional string input_placeholder_text = 6;
      {::_pbi::TcParser::FastBS1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.input_placeholder_text_)}},
      // optional bool is_pdf_upload_enabled = 7;
      {::_pbi::TcParser::FastV8S1,
       {56, 6, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.is_pdf_upload_enabled_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional bool close_by_escape = 1;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.close_by_escape_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional bool close_by_click_outside = 2;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.close_by_click_outside_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional .omnibox.NTPComposeboxConfig.Composebox.ImageUpload image_upload = 3;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.image_upload_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload attachment_upload = 4;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.attachment_upload_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional int32 max_num_files = 5;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.max_num_files_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // optional string input_placeholder_text = 6;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.input_placeholder_text_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // optional bool is_pdf_upload_enabled = 7;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.is_pdf_upload_enabled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // optional .omnibox.NTPComposeboxConfig.PlaceholderConfig placeholder_config = 8;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.placeholder_config_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_Composebox_ImageUpload>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::NTPComposeboxConfig_Composebox_ImageUpload_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_Composebox_AttachmentUpload>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::NTPComposeboxConfig_Composebox_AttachmentUpload_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_PlaceholderConfig>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::NTPComposeboxConfig_PlaceholderConfig_globals_},
        #endif
    }},
    {{
    }},
  };
}


inline constexpr NTPComposeboxConfig_Composebox::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        input_placeholder_text_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        image_upload_{nullptr},
        attachment_upload_{nullptr},
        placeholder_config_{nullptr},
        close_by_escape_{false},
        close_by_click_outside_{false},
        is_pdf_upload_enabled_{false},
        max_num_files_{0} {}

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

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

constexpr NTPComposeboxConfig::ParseTableT_ NTPComposeboxConfig::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig, _impl_._has_bits_),
      0, // no _extensions_
      2, 8,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294967292,  // skipmap
      offsetof(ParseTableT_, field_entries),
      2,  // num_field_entries
      2,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      // optional .omnibox.NTPComposeboxConfig.Composebox composebox = 2;
      {::_pbi::TcParser::FastMtS1,
       {18, 1, 1,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig, _impl_.composebox_)}},
      // optional .omnibox.NTPComposeboxConfig.EntryPoint entry_point = 1;
      {::_pbi::TcParser::FastMtS1,
       {10, 0, 0,
        PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig, _impl_.entry_point_)}},
    }}, {{
      65535, 65535
    }}, {{
      // optional .omnibox.NTPComposeboxConfig.EntryPoint entry_point = 1;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig, _impl_.entry_point_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
      // optional .omnibox.NTPComposeboxConfig.Composebox composebox = 2;
      {PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig, _impl_.composebox_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
    }},
    {{
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_EntryPoint>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::NTPComposeboxConfig_EntryPoint_globals_},
        #endif
        #ifndef PROTOBUF_MESSAGE_GLOBALS
        {::_pbi::TcParser::GetTable<::omnibox::NTPComposeboxConfig_Composebox>()},
        #else
        {::_pbi::FieldAuxMessageGlobals(), &::omnibox::NTPComposeboxConfig_Composebox_globals_},
        #endif
    }},
    {{
    }},
  };
}


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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST NTPComposeboxConfigGlobalsTypeInternal NTPComposeboxConfig_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* NTPComposeboxConfig_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return NTPComposeboxConfig_globals_.GetClassData();
#else
  return NTPComposeboxConfig_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace omnibox
namespace omnibox {
PROTOBUF_CONSTINIT const uint32_t NTPComposeboxConfig_PlaceholderConfig_Placeholder_internal_data_[] = {
    524288u, 0u, };
static const char NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[] = {
    "ASK"
    "ASK_TAB"
    "COMPARE"
    "IMAGE"
    "PLAN"
    "RESEARCH"
    "TEACH"
    "WRITE"
};

static const ::google::protobuf::internal::EnumEntry NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries[] = {
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[0], 3}, 0},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[3], 7}, 7},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[10], 7}, 2},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[17], 5}, 6},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[22], 4}, 1},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[26], 8}, 3},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[34], 5}, 4},
    {{&NTPComposeboxConfig_PlaceholderConfig_Placeholder_names[39], 5}, 5},
};

static const int NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries_by_number[] = {
    0,  // 0 -> ASK
    4,  // 1 -> PLAN
    2,  // 2 -> COMPARE
    5,  // 3 -> RESEARCH
    6,  // 4 -> TEACH
    7,  // 5 -> WRITE
    3,  // 6 -> IMAGE
    1,  // 7 -> ASK_TAB
};

bool NTPComposeboxConfig_PlaceholderConfig_Placeholder_Parse(::absl::string_view name,
                                  NTPComposeboxConfig_PlaceholderConfig_Placeholder* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries, 8, name, &int_value);
  if (success) {
    *value = static_cast<NTPComposeboxConfig_PlaceholderConfig_Placeholder>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    NTPComposeboxConfig_PlaceholderConfig_Placeholder_strings[8] = {};

const ::std::string& NTPComposeboxConfig_PlaceholderConfig_Placeholder_Name(NTPComposeboxConfig_PlaceholderConfig_Placeholder value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries, NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries_by_number, 8,
      NTPComposeboxConfig_PlaceholderConfig_Placeholder_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries,
                                  NTPComposeboxConfig_PlaceholderConfig_Placeholder_entries_by_number,
                                  8, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : NTPComposeboxConfig_PlaceholderConfig_Placeholder_strings[idx].get();
}
// ===================================================================

NTPComposeboxConfig_EntryPoint::NTPComposeboxConfig_EntryPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_EntryPoint_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.NTPComposeboxConfig.EntryPoint)
}
NTPComposeboxConfig_EntryPoint::NTPComposeboxConfig_EntryPoint(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const NTPComposeboxConfig_EntryPoint& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_EntryPoint_get_class_data()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_EntryPoint::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0} {}

inline void NTPComposeboxConfig_EntryPoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  _impl_.num_page_load_animations_ = {};
}
NTPComposeboxConfig_EntryPoint::~NTPComposeboxConfig_EntryPoint() {
  // @@protoc_insertion_point(destructor:omnibox.NTPComposeboxConfig.EntryPoint)
  SharedDtor(*this);
}
inline void NTPComposeboxConfig_EntryPoint::SharedDtor(MessageLite& self) {
  NTPComposeboxConfig_EntryPoint& this_ = static_cast<NTPComposeboxConfig_EntryPoint&>(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 NTPComposeboxConfig_EntryPoint_class_data_ =
    NTPComposeboxConfig_EntryPoint::InternalGenerateClassData_(NTPComposeboxConfig_EntryPoint_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional int32 num_page_load_animations = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
            stream, this_._internal_num_page_load_animations(), 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.NTPComposeboxConfig.EntryPoint)
  return target;
}

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

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

   {
    // optional int32 num_page_load_animations = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_num_page_load_animations());
    }
  }
  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 NTPComposeboxConfig_EntryPoint::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig_EntryPoint*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig_EntryPoint&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig.EntryPoint)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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

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

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NTPComposeboxConfig_PlaceholderConfig* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, change_text_animation_interval_ms_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, change_text_animation_interval_ms_),
           offsetof(Impl_, fade_text_animation_duration_ms_) -
               offsetof(Impl_, change_text_animation_interval_ms_) +
               sizeof(Impl_::fade_text_animation_duration_ms_));

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

inline void NTPComposeboxConfig_PlaceholderConfig::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, change_text_animation_interval_ms_),
           0,
           offsetof(Impl_, fade_text_animation_duration_ms_) -
               offsetof(Impl_, change_text_animation_interval_ms_) +
               sizeof(Impl_::fade_text_animation_duration_ms_));
}
NTPComposeboxConfig_PlaceholderConfig::~NTPComposeboxConfig_PlaceholderConfig() {
  // @@protoc_insertion_point(destructor:omnibox.NTPComposeboxConfig.PlaceholderConfig)
  SharedDtor(*this);
}
inline void NTPComposeboxConfig_PlaceholderConfig::SharedDtor(MessageLite& self) {
  NTPComposeboxConfig_PlaceholderConfig& this_ = static_cast<NTPComposeboxConfig_PlaceholderConfig&>(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 NTPComposeboxConfig_PlaceholderConfig_class_data_ =
    NTPComposeboxConfig_PlaceholderConfig::InternalGenerateClassData_(NTPComposeboxConfig_PlaceholderConfig_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_PlaceholderConfig::GetClassData() const {
  return NTPComposeboxConfig_PlaceholderConfig_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_PlaceholderConfig::GetClassData() const {
  return NTPComposeboxConfig_PlaceholderConfig_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NTPComposeboxConfig_PlaceholderConfig::ParseTableT_
    NTPComposeboxConfig_PlaceholderConfig::_table_ =
        NTPComposeboxConfig_PlaceholderConfig::InternalGenerateParseTable_(NTPComposeboxConfig_PlaceholderConfig_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NTPComposeboxConfig_PlaceholderConfig::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.NTPComposeboxConfig.PlaceholderConfig)
  ::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_.placeholders_.Clear();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
    ::memset(&_impl_.change_text_animation_interval_ms_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.fade_text_animation_duration_ms_) -
        reinterpret_cast<char*>(&_impl_.change_text_animation_interval_ms_)) + sizeof(_impl_.fade_text_animation_duration_ms_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated .omnibox.NTPComposeboxConfig.PlaceholderConfig.Placeholder placeholders = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_placeholders_size(); i < n; ++i) {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteEnumToArray(
          1, static_cast<::omnibox::NTPComposeboxConfig_PlaceholderConfig_Placeholder>(this_._internal_placeholders().Get(i)),
          target);
    }
  }

  // optional uint32 change_text_animation_interval_ms = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        2, this_._internal_change_text_animation_interval_ms(), target);
  }

  // optional uint32 fade_text_animation_duration_ms = 3;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        3, this_._internal_fade_text_animation_duration_ms(), 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.NTPComposeboxConfig.PlaceholderConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NTPComposeboxConfig_PlaceholderConfig::ByteSizeLong(const MessageLite& base) {
  const NTPComposeboxConfig_PlaceholderConfig& this_ = static_cast<const NTPComposeboxConfig_PlaceholderConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NTPComposeboxConfig_PlaceholderConfig::ByteSizeLong() const {
  const NTPComposeboxConfig_PlaceholderConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.NTPComposeboxConfig.PlaceholderConfig)
  ::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.NTPComposeboxConfig.PlaceholderConfig.Placeholder placeholders = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      ::size_t data_size =
          ::_pbi::WireFormatLite::EnumSize(this_._internal_placeholders());
      ::size_t tag_size = ::size_t{1} *
          ::_pbi::FromIntSize(this_._internal_placeholders_size());
      total_size += data_size + tag_size;
    }
    // optional uint32 change_text_animation_interval_ms = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_change_text_animation_interval_ms());
    }
    // optional uint32 fade_text_animation_duration_ms = 3;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_fade_text_animation_duration_ms());
    }
  }
  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 NTPComposeboxConfig_PlaceholderConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig_PlaceholderConfig*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig_PlaceholderConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig.PlaceholderConfig)
  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_placeholders()->MergeFrom(from._internal_placeholders());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.change_text_animation_interval_ms_ = from._impl_.change_text_animation_interval_ms_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.fade_text_animation_duration_ms_ = from._impl_.fade_text_animation_duration_ms_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NTPComposeboxConfig_PlaceholderConfig::InternalSwap(NTPComposeboxConfig_PlaceholderConfig* 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_.placeholders_.InternalSwap(&other->_impl_.placeholders_);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.fade_text_animation_duration_ms_)
      + sizeof(NTPComposeboxConfig_PlaceholderConfig::_impl_.fade_text_animation_duration_ms_)
      - PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_PlaceholderConfig, _impl_.change_text_animation_interval_ms_)>(
          reinterpret_cast<char*>(&_impl_.change_text_animation_interval_ms_),
          reinterpret_cast<char*>(&other->_impl_.change_text_animation_interval_ms_));
}

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

NTPComposeboxConfig_Composebox_ImageUpload::NTPComposeboxConfig_Composebox_ImageUpload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_Composebox_ImageUpload_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.NTPComposeboxConfig.Composebox.ImageUpload)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox_ImageUpload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::NTPComposeboxConfig_Composebox_ImageUpload& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        mime_types_allowed_(arena, from.mime_types_allowed_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NTPComposeboxConfig_Composebox_ImageUpload* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, enable_webp_encoding_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, enable_webp_encoding_),
           offsetof(Impl_, image_compression_quality_) -
               offsetof(Impl_, enable_webp_encoding_) +
               sizeof(Impl_::image_compression_quality_));

  // @@protoc_insertion_point(copy_constructor:omnibox.NTPComposeboxConfig.Composebox.ImageUpload)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox_ImageUpload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        mime_types_allowed_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NTPComposeboxConfig_Composebox_ImageUpload_class_data_ =
    NTPComposeboxConfig_Composebox_ImageUpload::InternalGenerateClassData_(NTPComposeboxConfig_Composebox_ImageUpload_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox_ImageUpload::GetClassData() const {
  return NTPComposeboxConfig_Composebox_ImageUpload_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox_ImageUpload::GetClassData() const {
  return NTPComposeboxConfig_Composebox_ImageUpload_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NTPComposeboxConfig_Composebox_ImageUpload::ParseTableT_
    NTPComposeboxConfig_Composebox_ImageUpload::_table_ =
        NTPComposeboxConfig_Composebox_ImageUpload::InternalGenerateParseTable_(NTPComposeboxConfig_Composebox_ImageUpload_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NTPComposeboxConfig_Composebox_ImageUpload::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.NTPComposeboxConfig.Composebox.ImageUpload)
  ::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_.mime_types_allowed_.ClearNonDefaultToEmpty();
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) {
    ::memset(&_impl_.enable_webp_encoding_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.image_compression_quality_) -
        reinterpret_cast<char*>(&_impl_.enable_webp_encoding_)) + sizeof(_impl_.image_compression_quality_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional bool enable_webp_encoding = 1 [deprecated = true];
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        1, this_._internal_enable_webp_encoding(), target);
  }

  // optional int32 downscale_max_image_size = 2;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
            stream, this_._internal_downscale_max_image_size(), target);
  }

  // optional int32 downscale_max_image_width = 3;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_downscale_max_image_width(), target);
  }

  // optional int32 downscale_max_image_height = 4;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_downscale_max_image_height(), target);
  }

  // optional int32 image_compression_quality = 5;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
            stream, this_._internal_image_compression_quality(), target);
  }

  // optional string mime_types_allowed = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_mime_types_allowed();
    target = stream->WriteStringMaybeAliased(6, _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.NTPComposeboxConfig.Composebox.ImageUpload)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000003dU)) {
    // optional string mime_types_allowed = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_mime_types_allowed());
    }
    // optional int32 downscale_max_image_size = 2;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_downscale_max_image_size());
    }
    // optional int32 downscale_max_image_width = 3;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_downscale_max_image_width());
    }
    // optional int32 downscale_max_image_height = 4;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_downscale_max_image_height());
    }
    // optional int32 image_compression_quality = 5;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_image_compression_quality());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void NTPComposeboxConfig_Composebox_ImageUpload::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig_Composebox_ImageUpload*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig_Composebox_ImageUpload&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig.Composebox.ImageUpload)
  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, 0x0000003fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_set_mime_types_allowed(from._internal_mime_types_allowed());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_impl_.enable_webp_encoding_ = from._impl_.enable_webp_encoding_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_impl_.downscale_max_image_size_ = from._impl_.downscale_max_image_size_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_impl_.downscale_max_image_width_ = from._impl_.downscale_max_image_width_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.downscale_max_image_height_ = from._impl_.downscale_max_image_height_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.image_compression_quality_ = from._impl_.image_compression_quality_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NTPComposeboxConfig_Composebox_ImageUpload::InternalSwap(NTPComposeboxConfig_Composebox_ImageUpload* 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_.mime_types_allowed_, &other->_impl_.mime_types_allowed_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.image_compression_quality_)
      + sizeof(NTPComposeboxConfig_Composebox_ImageUpload::_impl_.image_compression_quality_)
      - PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox_ImageUpload, _impl_.enable_webp_encoding_)>(
          reinterpret_cast<char*>(&_impl_.enable_webp_encoding_),
          reinterpret_cast<char*>(&other->_impl_.enable_webp_encoding_));
}

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

NTPComposeboxConfig_Composebox_AttachmentUpload::NTPComposeboxConfig_Composebox_AttachmentUpload(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_Composebox_AttachmentUpload_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox_AttachmentUpload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::NTPComposeboxConfig_Composebox_AttachmentUpload& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        mime_types_allowed_(arena, from.mime_types_allowed_) {}

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

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

  // @@protoc_insertion_point(copy_constructor:omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox_AttachmentUpload::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        mime_types_allowed_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NTPComposeboxConfig_Composebox_AttachmentUpload_class_data_ =
    NTPComposeboxConfig_Composebox_AttachmentUpload::InternalGenerateClassData_(NTPComposeboxConfig_Composebox_AttachmentUpload_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox_AttachmentUpload::GetClassData() const {
  return NTPComposeboxConfig_Composebox_AttachmentUpload_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox_AttachmentUpload::GetClassData() const {
  return NTPComposeboxConfig_Composebox_AttachmentUpload_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NTPComposeboxConfig_Composebox_AttachmentUpload::ParseTableT_
    NTPComposeboxConfig_Composebox_AttachmentUpload::_table_ =
        NTPComposeboxConfig_Composebox_AttachmentUpload::InternalGenerateParseTable_(NTPComposeboxConfig_Composebox_AttachmentUpload_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NTPComposeboxConfig_Composebox_AttachmentUpload::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload)
  ::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_.mime_types_allowed_.ClearNonDefaultToEmpty();
  }
  _impl_.max_size_bytes_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

  // optional string mime_types_allowed = 2;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_mime_types_allowed();
    target = stream->WriteStringMaybeAliased(2, _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.NTPComposeboxConfig.Composebox.AttachmentUpload)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NTPComposeboxConfig_Composebox_AttachmentUpload::ByteSizeLong(const MessageLite& base) {
  const NTPComposeboxConfig_Composebox_AttachmentUpload& this_ = static_cast<const NTPComposeboxConfig_Composebox_AttachmentUpload&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NTPComposeboxConfig_Composebox_AttachmentUpload::ByteSizeLong() const {
  const NTPComposeboxConfig_Composebox_AttachmentUpload& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload)
  ::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)) {
    // optional string mime_types_allowed = 2;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_mime_types_allowed());
    }
    // optional int32 max_size_bytes = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_max_size_bytes());
    }
  }
  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 NTPComposeboxConfig_Composebox_AttachmentUpload::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig_Composebox_AttachmentUpload*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig_Composebox_AttachmentUpload&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


void NTPComposeboxConfig_Composebox_AttachmentUpload::InternalSwap(NTPComposeboxConfig_Composebox_AttachmentUpload* 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_.mime_types_allowed_, &other->_impl_.mime_types_allowed_, arena);
  swap(_impl_.max_size_bytes_, other->_impl_.max_size_bytes_);
}

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

NTPComposeboxConfig_Composebox::NTPComposeboxConfig_Composebox(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_Composebox_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.NTPComposeboxConfig.Composebox)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::NTPComposeboxConfig_Composebox& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        input_placeholder_text_(arena, from.input_placeholder_text_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  NTPComposeboxConfig_Composebox* 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_.image_upload_ = (CheckHasBit(cached_has_bits, 0x00000002U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.image_upload_)
                : nullptr;
  _impl_.attachment_upload_ = (CheckHasBit(cached_has_bits, 0x00000004U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachment_upload_)
                : nullptr;
  _impl_.placeholder_config_ = (CheckHasBit(cached_has_bits, 0x00000008U))
                ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.placeholder_config_)
                : nullptr;
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, close_by_escape_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, close_by_escape_),
           offsetof(Impl_, max_num_files_) -
               offsetof(Impl_, close_by_escape_) +
               sizeof(Impl_::max_num_files_));

  // @@protoc_insertion_point(copy_constructor:omnibox.NTPComposeboxConfig.Composebox)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig_Composebox::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        input_placeholder_text_(arena) {}

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NTPComposeboxConfig_Composebox_class_data_ =
    NTPComposeboxConfig_Composebox::InternalGenerateClassData_(NTPComposeboxConfig_Composebox_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox::GetClassData() const {
  return NTPComposeboxConfig_Composebox_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
NTPComposeboxConfig_Composebox::GetClassData() const {
  return NTPComposeboxConfig_Composebox_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const NTPComposeboxConfig_Composebox::ParseTableT_
    NTPComposeboxConfig_Composebox::_table_ =
        NTPComposeboxConfig_Composebox::InternalGenerateParseTable_(NTPComposeboxConfig_Composebox_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void NTPComposeboxConfig_Composebox::Clear() {
// @@protoc_insertion_point(message_clear_start:omnibox.NTPComposeboxConfig.Composebox)
  ::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_.input_placeholder_text_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(_impl_.image_upload_ != nullptr);
      _impl_.image_upload_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(_impl_.attachment_upload_ != nullptr);
      _impl_.attachment_upload_->Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(_impl_.placeholder_config_ != nullptr);
      _impl_.placeholder_config_->Clear();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) {
    ::memset(&_impl_.close_by_escape_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.max_num_files_) -
        reinterpret_cast<char*>(&_impl_.close_by_escape_)) + sizeof(_impl_.max_num_files_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional bool close_by_escape = 1;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        1, this_._internal_close_by_escape(), target);
  }

  // optional bool close_by_click_outside = 2;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        2, this_._internal_close_by_click_outside(), target);
  }

  // optional .omnibox.NTPComposeboxConfig.Composebox.ImageUpload image_upload = 3;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        3, *this_._impl_.image_upload_, this_._impl_.image_upload_->GetCachedSize(), target,
        stream);
  }

  // optional .omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload attachment_upload = 4;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        4, *this_._impl_.attachment_upload_, this_._impl_.attachment_upload_->GetCachedSize(), target,
        stream);
  }

  // optional int32 max_num_files = 5;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
            stream, this_._internal_max_num_files(), target);
  }

  // optional string input_placeholder_text = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    const ::std::string& _s = this_._internal_input_placeholder_text();
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // optional bool is_pdf_upload_enabled = 7;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        7, this_._internal_is_pdf_upload_enabled(), target);
  }

  // optional .omnibox.NTPComposeboxConfig.PlaceholderConfig placeholder_config = 8;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        8, *this_._impl_.placeholder_config_, this_._impl_.placeholder_config_->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.NTPComposeboxConfig.Composebox)
  return target;
}

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

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  total_size += ::absl::popcount(0x00000070U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x0000008fU)) {
    // optional string input_placeholder_text = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_input_placeholder_text());
    }
    // optional .omnibox.NTPComposeboxConfig.Composebox.ImageUpload image_upload = 3;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.image_upload_);
    }
    // optional .omnibox.NTPComposeboxConfig.Composebox.AttachmentUpload attachment_upload = 4;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attachment_upload_);
    }
    // optional .omnibox.NTPComposeboxConfig.PlaceholderConfig placeholder_config = 8;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.placeholder_config_);
    }
    // optional int32 max_num_files = 5;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_max_num_files());
    }
  }
  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 NTPComposeboxConfig_Composebox::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig_Composebox*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig_Composebox&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig.Composebox)
  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_set_input_placeholder_text(from._internal_input_placeholder_text());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      ABSL_DCHECK(from._impl_.image_upload_ != nullptr);
      if (_this->_impl_.image_upload_ == nullptr) {
        _this->_impl_.image_upload_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.image_upload_);
      } else {
        _this->_impl_.image_upload_->MergeFrom(*from._impl_.image_upload_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      ABSL_DCHECK(from._impl_.attachment_upload_ != nullptr);
      if (_this->_impl_.attachment_upload_ == nullptr) {
        _this->_impl_.attachment_upload_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.attachment_upload_);
      } else {
        _this->_impl_.attachment_upload_->MergeFrom(*from._impl_.attachment_upload_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      ABSL_DCHECK(from._impl_.placeholder_config_ != nullptr);
      if (_this->_impl_.placeholder_config_ == nullptr) {
        _this->_impl_.placeholder_config_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.placeholder_config_);
      } else {
        _this->_impl_.placeholder_config_->MergeFrom(*from._impl_.placeholder_config_);
      }
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_impl_.close_by_escape_ = from._impl_.close_by_escape_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_impl_.close_by_click_outside_ = from._impl_.close_by_click_outside_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_impl_.is_pdf_upload_enabled_ = from._impl_.is_pdf_upload_enabled_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.max_num_files_ = from._impl_.max_num_files_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void NTPComposeboxConfig_Composebox::InternalSwap(NTPComposeboxConfig_Composebox* 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_.input_placeholder_text_, &other->_impl_.input_placeholder_text_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.max_num_files_)
      + sizeof(NTPComposeboxConfig_Composebox::_impl_.max_num_files_)
      - PROTOBUF_FIELD_OFFSET(NTPComposeboxConfig_Composebox, _impl_.image_upload_)>(
          reinterpret_cast<char*>(&_impl_.image_upload_),
          reinterpret_cast<char*>(&other->_impl_.image_upload_));
}

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

NTPComposeboxConfig::NTPComposeboxConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, NTPComposeboxConfig_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:omnibox.NTPComposeboxConfig)
}
PROTOBUF_NDEBUG_INLINE NTPComposeboxConfig::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::omnibox::NTPComposeboxConfig& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0} {}

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

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

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

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

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite NTPComposeboxConfig_class_data_ =
    NTPComposeboxConfig::InternalGenerateClassData_(NTPComposeboxConfig_globals_._default);

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

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

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

  cached_has_bits = this_._impl_._has_bits_[0];
  // optional .omnibox.NTPComposeboxConfig.EntryPoint entry_point = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        1, *this_._impl_.entry_point_, this_._impl_.entry_point_->GetCachedSize(), target,
        stream);
  }

  // optional .omnibox.NTPComposeboxConfig.Composebox composebox = 2;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
        2, *this_._impl_.composebox_, this_._impl_.composebox_->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.NTPComposeboxConfig)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t NTPComposeboxConfig::ByteSizeLong(const MessageLite& base) {
  const NTPComposeboxConfig& this_ = static_cast<const NTPComposeboxConfig&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t NTPComposeboxConfig::ByteSizeLong() const {
  const NTPComposeboxConfig& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:omnibox.NTPComposeboxConfig)
  ::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)) {
    // optional .omnibox.NTPComposeboxConfig.EntryPoint entry_point = 1;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.entry_point_);
    }
    // optional .omnibox.NTPComposeboxConfig.Composebox composebox = 2;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.composebox_);
    }
  }
  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 NTPComposeboxConfig::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<NTPComposeboxConfig*>(&to_msg);
  auto& from = static_cast<const NTPComposeboxConfig&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:omnibox.NTPComposeboxConfig)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

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

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


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

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